We help IT Professionals succeed at work.

IIS/Tomcat - Can't find servlet.

pomfrit
pomfrit asked
on
473 Views
Last Modified: 2010-04-01
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?

Comment
Watch Question

Manikandan ThiagarajanSenior consultant

Commented:
put the servlet file into root directory.

wepaaps/root.

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

Author

Commented:

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

Author

Commented:
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.

OR

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.