| Author |
What can cause a .war file not to show/load?
|
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
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
Joined: Feb 12, 2010
Posts: 62
|
|
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
Joined: Jan 10, 2002
Posts: 56185
|
|
|
Tomcat? Resin? Websphere? Fred's Fabulous Server?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
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
Joined: Jan 10, 2002
Posts: 56185
|
|
|
Moved to the Tomcat forum.
|
 |
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
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
Joined: Dec 11, 2004
Posts: 13410
|
|
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 TomcatDelete all the logs in tomcat/logsRemove the war file and the directory it created (if it did) from tomact/webappsStart TomcatWhile 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.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
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
Joined: Feb 12, 2010
Posts: 62
|
|
This is what I got when I did the steps above.
|
 |
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
|
|
 |
Misha Ver
Ranch Hand
Joined: Mar 03, 2008
Posts: 470
|
|
|
Typical causes of this error are that the XML is not valid.
|
 |
Ricky Jay
Ranch Hand
Joined: Feb 12, 2010
Posts: 62
|
|
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.
|
 |
 |
|
|
subject: What can cause a .war file not to show/load?
|
|
|