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

trouble with war file

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it is there:
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic