aspose file tools*
The moose likes Tomcat and the fly likes Not able to creat new Applications in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Not able to creat new Applications in Tomcat" Watch "Not able to creat new Applications in Tomcat" New topic
Author

Not able to creat new Applications in Tomcat

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi all,

I am using Tomcat 4.1.18. My problem is that I am not able to create new Projects in the WebApps. I created a project some days back and that's working fine

If I try adding my files to the ROOT, that too works.

But i need to create a new application, if i try creating the directory structure and place my JSPs and Servlets accordingly, i get an error message when i call it from the Browser(IE).

The error message is


HTTP Status 404 - /SampleApp/

--------------------------------------------------------------------------------

type Status report

message /SampleApp/

description The requested resource (/SampleApp/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/4.1.18


Any idea would be highly appreciated.

Cheers,
Swamy
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
The most likely cause is that your new SampleApp directory does not have a WEB-INF subdirectory containing a valid web.xml deployment descriptor. Tomcat only recognizes a directory under webapps as an application if it meets those requirements. This recognition is done during startup.
You should download the servlet API documentation where you will find the requirements for deployment descriptors in minute detail.
Bill
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Bill....

Thanks for the reply...but i have a web-inf folder with a web.xml descriptor
and stuff....Still, no luck.

Cheers,
Swamy
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Hi Swamy,

How about working backwards?

Assuming that the http://localhost:8080/servlets-examples is working fine. Make a copy of "servlets-examples" directory under webapps and rename it to any name, e.g. testing. So now under webapps, a new application called "testing" is created and its contents are similar to servlets-examples. Startup the tomcat and see if you can run this new application http://localhost:8080/testing. If it's ok, you may want to compare the web.xml of the SampleApp and the one in servlets-examples.

Joyce
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hey Joyce,

Sparkling idea.

Shall work it out and get back.

Cheers,
Swamy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to creat new Applications in Tomcat