This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes trouble with war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "trouble with war file" Watch "trouble with war file" New topic
Author

trouble with war file

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i'm totally new to spring
i downloaded a rcp zip from spring and there is a war file; i used my tomcat to deploy it, tomcat says its running, but i cant see it(petclinic web app)
what am i doing wrong? when i click in tomcats manager link column of respective app (of the war), shows 404 error msg...
HTTP Status 404 - /spring-richclient-petclinic-server-0.2.1/

type Status report

message /spring-richclient-petclinic-server-0.2.1/

description The requested resource (/spring-richclient-petclinic-server-0.2.1/) is not available.
Apache Tomcat/5.5.17


[ September 30, 2006: Message edited by: miguel lisboa ]
i just typed in adress bar:
http://localhost:8080/manager/start?path=/spring-richclient-petclinic-server-0.2.1
and got this page:
OK - Started application at context path /spring-richclient-petclinic-server-0.2.1

but ehre can i see it?
[ September 30, 2006: Message edited by: miguel lisboa ]

java amateur
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i deleted war file from tomcat install, used tomcat's manager page to deploy it agsain, restarted server and got:
/spring-richclient-petclinic-server-0.2.1 Petclinic RCP Web Services false 0 Start Stop Reload Undeploy
when i click on start, i get:
FAIL - Application at context path /spring-richclient-petclinic-server-0.2.1 could not be started
i inspected inside war file and couldnt find any jsp, servlet or html file, so i guess maybe this war file isnt ready for displaying
could this be true?
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Originally posted by miguel lisboa:

i inspected inside war file and couldnt find any jsp, servlet or html file, so i guess maybe this war file isnt ready for displaying
could this be true?


I think that you need at least a WEB-INF/web.xml file to define a J2EE app, is it there?


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

Joined: Feb 08, 2004
Posts: 1281
yes, it is there:
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Next, you need to make sure that everything needed by your web.xml is present, for example the Spring jar should be in WEB-INF/lib.

In any case, check the logs under Tomcat_home/logs to see what exactly goes wrong during context initialization. Or if you can run Tomcat from command line, you should be able to see it on your console.

HTH.

- Sonny
 
 
subject: trouble with war file
 
Similar Threads
first program error, something is missing
Need to stop start twice to have my app instead of manager app
is there any way to monitor application server when it is working ?
Replacing a Web Application without restarting the container
JBoss Error!