This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

What can cause a .war file not to show/load?  RSS feed

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've uploaded my .war file to /webapps. I'm able to see it in the path, but if I got to //localhost:8080/Test it's not pulling up....or if I got to the localhost/manager.

Any tips to look for?
 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
btw, sorry if i posted this in the wrong spot. I'm new here and didn't quite know where this one fell. Thanks.

 
Sheriff
Posts: 67260
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat? Resin? Websphere? Fred's Fabulous Server?
 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 6.0
Mysql
JDK update 17 i think.

I set the context path="<name of my war file>"

I'm able to load it in Netbeans, but not on tomcat.
 
Bear Bibeault
Sheriff
Posts: 67260
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the error I'm getting. The .war file is in /webapps and I have other .war files visible when i go to tomcat manager....this one is not showing.

HTTP Status 404 - /MyApp

--------------------------------------------------------------------------------

type Status report

message /MyApp

description The requested resource (/MyApp) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.24
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by looking in the tomcat logs. Tomcat is very good about logging any problems it is having when trying to deploy a web application.
I would:
  • Stop Tomcat
  • Delete all the logs in tomcat/logs
  • Remove the war file and the directory it created (if it did) from tomact/webapps
  • Start Tomcat
  • While watching the logs, copy the war file to the webapps directory again


  • This way you won't have to sift through any older issues to find out what is actually causing the problem.
     
    Ricky Jay
    Ranch Hand
    Posts: 62
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'll try this. Thanks for the reply.

    It never created a directory/folder from my .war file. Does that matter or aid in the troubleshooting? my helloworld.war did.

     
    Ricky Jay
    Ranch Hand
    Posts: 62
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    This is what I got when I did the steps above.

     
    Ricky Jay
    Ranch Hand
    Posts: 62
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
     
    Ranch Hand
    Posts: 470
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Typical causes of this error are that the XML is not valid.
     
    Ricky Jay
    Ranch Hand
    Posts: 62
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I don't know what happened, but I recreated the project under a different name in net beans and it works.

    I just copied the files out of the orginal and pasted them in the new one too...strange. The only thing I could think of is that my project name/war file was the same name as my database. This may have cause conflicts in xml.
     
    Anderson gave himself the promotion. So I gave myself this tiny ad:
    how do I do my own kindle-like thing - without amazon
    https://coderanch.com/t/711421/engineering/kindle-amazon
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!