This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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