Tomcat Servlets - Resource not available

M

Magnus Warker

Hello group,

since I upgraded to Tomcat 5.5 I cannot access my servlets anymore.

With Tomcat 4.1 I could access them with the followung URL:
http://localhost/myApp/servlets/myPackage.myServlet

Are there relevant changes in the new Tomcat? How can I access my servlets?
Can I access them without defining them in some configuration files?

Many thanks,
Magnus
 
M

Marc E

this is mentioned in the 5.5 release notes. check out the readme file.

now, it does tell you how to get your /servlets/ path back, but it also says
that it's not supported in production. not sure what that means. try
accessing your servlets without the /servlets/ in your path and see what
happens.
 
C

Chris Smith

Marc E said:
now, it does tell you how to get your /servlets/ path back, but it also says
that it's not supported in production. not sure what that means.

They are basically trying to get across the concept that it's a really,
really bad idea to do things that way. We've had the web.xml file for
quite a few years now, and it's time to move on. Explicit servlet
mappings lead to better security situations, cleaner and less complex
applications, and more flexibility. It escapes me why anyone would want
a /servlets directory.
 
W

William Brogden

Hello group,

since I upgraded to Tomcat 5.5 I cannot access my servlets anymore.

With Tomcat 4.1 I could access them with the followung URL:
http://localhost/myApp/servlets/myPackage.myServlet

Are there relevant changes in the new Tomcat? How can I access my
servlets?
Can I access them without defining them in some configuration files?

Many thanks,
Magnus

That url is using the dreaded "invoker" servlet, source of any number
of hard to figure out bugs - see

http://faq.javaranch.com/view?InvokerServlet

Just bite the bullet and learn to use web.xml - you will be glad you did.


Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top