We help IT Professionals succeed at work.

IIS/Tomcat - Can't find servlet.

pomfrit asked
Last Modified: 2010-04-01

I have integrated Tomcat with IIS running asp together with jsp.

The asp site is located here:



and I added this to the server.xml file:

<Context path="/jspfiles"
                 reloadable="true" />


The workers2.properties:

info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\temp\jk2.shm

info=Ajp13 forwarding over socket

# Map webapps to the Web server uri space


"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?

Watch Question

Manikandan ThiagarajanSenior consultant

put the servlet file into root directory.


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



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?
This one is on us!
(Get your first solution completely free - no credit card required)


Thanks!! It helped me a lot.

I uncommented the Invorker Servlet and everything works. :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.