• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ricky Jay
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.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65217
95
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
Author and ninkuma
Marshal
Pie
Posts: 65217
95
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
 
Ben Souther
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
     
    Misha Ver
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic