Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deploying a .war on Tomcat

Posted on 2003-11-21
6
Medium Priority
?
2,660 Views
Last Modified: 2012-08-14
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.

0
Comment
Question by:asip
  • 3
  • 3
6 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9802924
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
 

Author Comment

by:asip
ID: 9806453
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
 
LVL 9

Expert Comment

by:vzilka
ID: 9808731
Another alternative is to move the WEB-INF directory to the samples root (instead of tsamples).
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Author Comment

by:asip
ID: 9818200
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
 
LVL 9

Accepted Solution

by:
vzilka earned 2000 total points
ID: 9818211
Can you give the URL from where you downloaded the WAR? this sounds very weird.
0
 

Author Comment

by:asip
ID: 9820046
I am sending the information on ur mail id liran@2train4.com
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question