Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

path of a non-default app

 
tony wang
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Thanks,
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic