This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes webapps can't auto deploy directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "webapps can Watch "webapps can New topic

webapps can't auto deploy directory

Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40
When I create a new sub directory in webapps/, doesn't the directory get deployed automatically?

This is what I have...
I'm suppose to get my index.htm when I type "http://localhost/root2/index.htm", but I don't.

I don't know what's amiss.

Do you have a parka?<br /> <br /><a href="" target="_blank" rel="nofollow">Visit my homepage</a> | <a href="" target="_blank" rel="nofollow">Parka Deviantart gallery</a>
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211


You may want to post more details -
What App server you are using, 'auto deploy' varies a lot among different application servers.
What output do you get on the console when you start up the server? It may show an exception being thrown while loading the webapp.
The actual directory structure on your file-system. The image you posted appears to be out of Dreamweaver, if I am not mistaken.

The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40

I solved my own problem after much fustration.

Apparently, if there is wrong link in the FORM ACTION, it will render the whole page unloadable (can't be found).

I edited my index.htm's FORM ACTION and it works now. Didn't realise that before. My previous FORM ACTION wasn't able to find the processing servlet because of some linking address error...

I agree. Here's the link:
subject: webapps can't auto deploy directory
Similar Threads
tomcat running but gives an Invalid HTTP get error
SCJD development team accepts new member again!
Where to place - under webapps or ROOT ?
jforum installation/configuration
Tomcat is *almost* running