• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Can I run jsp with Tomcat in the httpdocs?

C

cyberadmin

Guest
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?
 
Back
Top