PDA

View Full Version : Can I run jsp with Tomcat in the httpdocs?


cyberadmin
27th June 2005, 06:35 PM
know that there are similars questions.. but.

In PLESK FAQ say:

Does Plesk 7 with the tomcat option allow a web designer to upload *.jsp files to their httpdocs directory via ftp and have them executed as jsp files with tomcat?

And they respond:

Plesk uses mod_webapp Tomcat connector which can be found in opt/java/ distribution subdirectory [...] mod_webapp allows Apache to redirect all requests for JSP pages to Tomcat, so anything like http://www.mysite.com/index.jsp would be automatically passed through the connector. [...]

But after ...

Tomcat uses different document root than Apache, so it's wrong to simply post JSP pages to domain's httpdocs directory. Tomcat web applications should be uploaded in a web application archive (WAR) format which is a JAR similar to the package used for Java class libraries. Uploading should be performed with Control Panel -> Domains -> thedomain.com -> Tomcat.

http://www.mysite.com/index.jsp is not true!! or Can I run jsp in the httpdocs.. What I need to do?! NOW I am running jsp in http://www.mysite.com/MYWEBAPP/index.jsp .. but I would like to know if this is possible (http://www.mysite.com/index.jsp) using plesk and apache! Or I should stop to use plesk for my J2EE customers and install a server with only tomcat or with a tomcat + apache connector?

kosepusen
21st January 2006, 11:26 PM
I found this:
http://kb.swsoft.com/article_57_902_en.html

But I don't see path="/application_name" that they refer to. Let me know if you figure this out!