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

Not able to creat new Applications in Tomcat

 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Joyce,

Sparkling idea.

Shall work it out and get back.

Cheers,
Swamy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic