Deploying a .war on Tomcat

I have .war (downloaded from net) and i want to deploy that to my Tomcat4.1. I put the .war in webapps and on startup of tomcat it opens up and gets deployed. but the thing is it has multiple directories and the top most directory "samples" doesn't contain the WEB-INF but a directory inside this "samples" , which is "tsamples", contains the JSPs and WEB-INF directory. in WEB-INF/classes it has got some servlets (in packages) and the also has the required .xml file( i.e. mapping for servlets to /servlet/*) . But when i invoke the servlets (in web-inf/classes/client/servlets) through the html (in /samples/tsamples/html/abc.html) it gives http status 404. the address i am using for servlet calling is http://localhost/samples/tsamples/servlet/name_of_servlet.
 
In the tomcat logs i have
2003-11-21 23:23:45 ContextConfig[/samples]: Missing application web.xml, using defaults only

Do i need to have an .xml in the "samples" ... ? Can anyone suggest something on this.

thanx.

asipAsked:
Who is Participating?
 
vzilkaCommented:
Can you give the URL from where you downloaded the WAR? this sounds very weird.
0
 
vzilkaCommented:
Copy the tsamples directory to the webapps directory. You must have a WEB-INF directory that contains a web.xml file in each web application you deploy.
0
 
asipAuthor Commented:
But the url for all html and servlets are with respect to samples. I'll have to change everything in the code in that case.

thanks
0
The Lifecycle Approach to Managing Security Policy

Managing application connectivity and security policies can be achieved more effectively when following a framework that automates repeatable processes and ensures that the right activities are performed in the right order.

 
vzilkaCommented:
Another alternative is to move the WEB-INF directory to the samples root (instead of tsamples).
0
 
asipAuthor Commented:
I tried that, but it gives error.
It throws some load exception in the servlets. I am trying to look into this and will get back to you soon.


thanks
asip
0
 
asipAuthor Commented:
I am sending the information on ur mail id liran@2train4.com
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.