Link to home
Start Free TrialLog in
Avatar of pomfrit
pomfritFlag for Denmark

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/wwwroot/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.mydomain.file.FileDownload

--------------------------------------------------------------------------------

type Status report

message /jspfiles/servlet/com.mydomain.file.FileDownload

description The requested resource (/jspfiles/servlet/com.mydomain.file.FileDownload) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28

--

What am I doing wrong?

Avatar of Manikandan Thiagarajan
Manikandan Thiagarajan
Flag of India image

put the servlet file into root directory.

wepaaps/root.

Avatar of seopher
seopher

make sure that the WEB-INF folder points to where you've actually got your servlet
Avatar of pomfrit

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
Avatar of seopher
seopher

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pomfrit

ASKER

Thanks!! It helped me a lot.

I uncommented the Invorker Servlet and everything works. :)