Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Tomcat Servlets - Resource not available

Thread view: 
Magnus Warker - 17 Jun 2006 07:23 GMT
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
Marc E - 18 Jun 2006 04:08 GMT
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.

> Hello group,
>
[quoted text clipped - 9 lines]
> Many thanks,
> Magnus
Chris Smith - 18 Jun 2006 07:04 GMT
> 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.

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation

William Brogden - 18 Jun 2006 17:34 GMT
> Hello group,
>
[quoted text clipped - 9 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.