i have Apache, Mysql, Php installed on suse 11.0. Can i use same (apache) server for running servlets. plz tell me how 2 do it any case. i hv java installed n other java programs run fine.
You need a Web Container like Tomcat. Servlets run inside Web Containers. You can usually run them in Application Servers because those include a Web Container.
As for your Apache web server, Tomcat comes with a ‘lesser’ web server. However, if you still want to use Apache (web server), both can be nicely integrated (in fact Tomcat is developed by the Apache Foundation): in a typical configuration Apache server serves all non-servlet content (static, php, etc.) and Tomcat serves the servlets.
For a better idea. Take a look at Tomcat’s documentation: you need a ‘connector’ to connect both pieces of software. Welcome to the fascinating world of Java’s web component development!!
eklavya chotu wrote:
> i have Apache, Mysql, Php installed on suse 11.0. Can i use same
> (apache) server for running servlets. plz tell me how 2 do it any case.
> i hv java installed n other java programs run fine.
You’re probably looking for tomcat6 packages.
Kind regards,
Andreas Stieger
As mentioned by TioDuke, apache can be integrated with tomcat and run the servlets seamlessly. Help is available at the tomcat site.
People use this typical combinations if they have static pages and dynamic pages generated by servlets and other programs.