aspose file tools*
The moose likes Tomcat and the fly likes Deploying an app to Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying an app to Tomcat" Watch "Deploying an app to Tomcat" New topic
Author

Deploying an app to Tomcat

Greg L Tonn
Ranch Hand

Joined: Nov 27, 2006
Posts: 52
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

Joined: Nov 27, 2006
Posts: 52
BTW, I'm using Tomcat 6.0.

Thanks again.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where did you put this "webApp" directory?
What URL are you using when trying to access the HTML page?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Greg L Tonn
Ranch Hand

Joined: Nov 27, 2006
Posts: 52
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

Joined: Nov 27, 2006
Posts: 52
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying an app to Tomcat