pomfrit
asked on
IIS/Tomcat - Can't find servlet.
Hi,
I have integrated Tomcat with IIS running asp together with jsp.
The asp site is located here:
C:/Inetpub/wwwroot/www.mydomain.com
--
and I added this to the server.xml file:
<Context path="/jspfiles"
docBase="C:/Inetpub/wwwroo t/www.mydomain.com/java/"
crossContext="false"
debug="0"
reloadable="true" />
--
The workers2.properties:
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\temp\jk2.shm
size=1048576
[channel.socket:localhost: 8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map webapps to the Web server uri space
[uri:/jsp-examples/*]
[uri:/servlets-examples/*]
[uri:/jspfiles/servlet/*]
[uri:/jspfiles/*.jsp]
--
"C:/Inetpub/wwwroot/www.mydomain.com/java/" contains WEB-INF and the jsp files.
when I access http://www.mydomain.com/jspfiles/* everything works.
--
But when i try to access the servlet directory I get this error:
HTTP Status 404 - /jspfiles/servlet/com.mydo main.file. FileDownlo ad
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
type Status report
message /jspfiles/servlet/com.mydo main.file. FileDownlo ad
description The requested resource (/jspfiles/servlet/com.myd omain.file .FileDownl oad) is not available.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Apache Tomcat/5.0.28
--
What am I doing wrong?
I have integrated Tomcat with IIS running asp together with jsp.
The asp site is located here:
C:/Inetpub/wwwroot/www.mydomain.com
--
and I added this to the server.xml file:
<Context path="/jspfiles"
docBase="C:/Inetpub/wwwroo
crossContext="false"
debug="0"
reloadable="true" />
--
The workers2.properties:
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\temp\jk2.shm
size=1048576
[channel.socket:localhost:
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map webapps to the Web server uri space
[uri:/jsp-examples/*]
[uri:/servlets-examples/*]
[uri:/jspfiles/servlet/*]
[uri:/jspfiles/*.jsp]
--
"C:/Inetpub/wwwroot/www.mydomain.com/java/" contains WEB-INF and the jsp files.
when I access http://www.mydomain.com/jspfiles/* everything works.
--
But when i try to access the servlet directory I get this error:
HTTP Status 404 - /jspfiles/servlet/com.mydo
--------------------------
type Status report
message /jspfiles/servlet/com.mydo
description The requested resource (/jspfiles/servlet/com.myd
--------------------------
Apache Tomcat/5.0.28
--
What am I doing wrong?
make sure that the WEB-INF folder points to where you've actually got your servlet
ASKER
stmani2005 ->
It is not an option to put the servlet files in the wepapps/root. I need it to be in the folder for the specific website.
Can I change tomcats root-directory to another location ( "C:/Inetpub/wwwroot/www.mydomain.com/java/" )?
seopher ->
Yes, I know ;)
But how can I change where the WEB-INF folder points?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!! It helped me a lot.
I uncommented the Invorker Servlet and everything works. :)
I uncommented the Invorker Servlet and everything works. :)
wepaaps/root.