Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying an app to Tomcat

 
Greg L Tonn
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problems getting a very simple app (html form) to deploy to tomcat. I'm using the "copy directory structure" method.

I have a dir called webApp and under that I have the html form (form.html) and the WEB-INF dir. The WEB-INF dir has the classes, lib and web.xml. That's all very simple. I just want Tomcat to display the html form at first. Once I get that working I can start adding on but for now I can't even do that!

The Tomcat documentation said that the copy method works but you have to stop and start Tomcat for it to pick it up. I've done that too and still nothing. What am I doing wrong?

Thanks in advance for any help!!
Greg
 
Greg L Tonn
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, I'm using Tomcat 6.0.

Thanks again.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you put this "webApp" directory?
What URL are you using when trying to access the HTML page?
 
Greg L Tonn
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URL is: http://localhost:8080/Beer-v1/form.html

The dir stgructure is: C:\Tomcat 6.0\apache-tomcat-6.0.10\webapps\Beer-v1

BTW, this is an example from the Head First Servlet and JSP

Thanks
 
Greg L Tonn
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There must be some kind of trick with Tomcat 6.0! I uninstalled 6.0 and installed 5.5 and copyed over the same directory structure and files and it works fine.

If anyone knows what the trick is for 6.0 I would appreciate it.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic