• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

trouble with war file

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, it is there:
 
Sonny Gill
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic