wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes path of a non-default app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "path of a non-default app" Watch "path of a non-default app" New topic

path of a non-default app

tony wang

Joined: Apr 13, 2002
Posts: 14
I created an app in tomcat-root/webapps/myapp.
Put a servlet in tomcat-root/webapps/myapp/web-inf/classes/a-servlet. I can't run it. What's wrong with it?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

I found this out recently
You servlets need to be in the c:\tomcatdir\webapps\root\web-inf\classes directory.
If you have packages you place the base leve of the package starting at that directory.
Tomcat did not automatically create that classes directory, so you will need to make that dir.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link: http://aspose.com/file-tools
subject: path of a non-default app
Similar Threads
Customize 404 errors in Apache Tomcat
Session lost due to....?
setting up Tomcat
Identify context path + servlet path+ path info for given URL
Tomcat -why so fiddly?