E
euroq
Hello all. I am just starting this project for my company. I already
have a web directory that is running on my company's server with
Apache. I needed to have some dynamic content going on, and PHP was
unfortunately not an option because I needed PHP-MySQL and the Linux
distribution on the server is dated (RedHat 8.0) and I couldn't for the
life of me find the compatible PHP-MySQL .RPM with the right
dependencies.
So... I installed Tomcat and mod_jk. In the httpd.conf for Apache, I
have here:
# Send everything ending with .jsp to worker named worker1 (ajp13)
JkMount /*.jsp worker1
Well I figured out that when mod_jk sends the requests over to Tomcat,
Tomcat expects the .jsp files to be stored _IN_ Tomcat's directory.
Which already presents a problem, because now I have to deploy from one
directory structure to multiple locations. (Does anybody have another
suggestion?)
Besides that, here is my problem:
I have this test page "test.jsp" in my root apache directory. The url
is
http://my.domain.com/test.jsp
I copied "test.jsp" to the Tomcat directory:
TOMCAT_DIR/webapps/ROOT/
And it worked great. But when I have the url:
http://my.domain.com/subdir/test.jsp
And "test.jsp" is copied to the Tomcat directory:
TOMCAT_DIR/webapps/subdir/
Tomcat gives me a 404 (Not Found) error!
How do I have .jsp pages in subdirectories with Tomcat? From what I
can see, the only things in the Tomcat directories are webapps, i.e.
they all have WEB-INF/web.xml files and each webapp is probably stored
in another large .XML file. This seems overly complicated, as all I
need is a simple .JSP page to be processed.
Thanks for any help out there universe,
-euroq
have a web directory that is running on my company's server with
Apache. I needed to have some dynamic content going on, and PHP was
unfortunately not an option because I needed PHP-MySQL and the Linux
distribution on the server is dated (RedHat 8.0) and I couldn't for the
life of me find the compatible PHP-MySQL .RPM with the right
dependencies.
So... I installed Tomcat and mod_jk. In the httpd.conf for Apache, I
have here:
# Send everything ending with .jsp to worker named worker1 (ajp13)
JkMount /*.jsp worker1
Well I figured out that when mod_jk sends the requests over to Tomcat,
Tomcat expects the .jsp files to be stored _IN_ Tomcat's directory.
Which already presents a problem, because now I have to deploy from one
directory structure to multiple locations. (Does anybody have another
suggestion?)
Besides that, here is my problem:
I have this test page "test.jsp" in my root apache directory. The url
is
http://my.domain.com/test.jsp
I copied "test.jsp" to the Tomcat directory:
TOMCAT_DIR/webapps/ROOT/
And it worked great. But when I have the url:
http://my.domain.com/subdir/test.jsp
And "test.jsp" is copied to the Tomcat directory:
TOMCAT_DIR/webapps/subdir/
Tomcat gives me a 404 (Not Found) error!
How do I have .jsp pages in subdirectories with Tomcat? From what I
can see, the only things in the Tomcat directories are webapps, i.e.
they all have WEB-INF/web.xml files and each webapp is probably stored
in another large .XML file. This seems overly complicated, as all I
need is a simple .JSP page to be processed.
Thanks for any help out there universe,
-euroq