This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 17276

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 - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: path of a non-default app
jQuery in Action, 3rd edition