File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes missing application web.xml using defaults Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "missing application web.xml using defaults" Watch "missing application web.xml using defaults" New topic
Author

missing application web.xml using defaults

Bill McCollough
Greenhorn

Joined: Feb 12, 2005
Posts: 2
The xml.web works fine in the ROOT directory. But in my Web application the tomcat server is unable to fine the xml.web file in WEB-INF file when it starts up. I get the error message "Missing application web.xml, using defaults only Standard Engine[Catalina].StandardHost [localhost].StandardContext[/WEB-INF]" The file structure is tomcat\webapps\hfch1\WEB-INF\classes.

The servlet in classes file works fine if manually put in the path at http:\\localhost\hfch1\servlet\myservlet. Any ideas?

Bill
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
http:\\localhost\hfch1\servlet\myservlet

Sounds like you may have run into the notorious "Invoker" servlet related problems. See this FAQ here at the ranch.

Did you create the web.xml file in webapps/hfch1/WEB-INF or copy it from somewhere. Your servlet class is in a package and the location under classes reflects that package, right?

Which version of Tomcat, which Java version?
Bill
Bill McCollough
Greenhorn

Joined: Feb 12, 2005
Posts: 2
The Tomcat is version 5.5.7 and the java is version 1-4-2-05.
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
I am not sure, if this is the cause of your problem or the solution, but Tomcat 5.5.? is designed to run on Java 1.5 or later.
naveen gupta
Ranch Hand

Joined: Apr 12, 2006
Posts: 129
I also had the same problem, and i banged my head to computer 1000 times, but couldn't figure out the solution

I agree to the responses posted by kalpitan and jnad. But that didn't solved my problem. After deploying the application when i tried to access the page i got Tomcat 404 error.

The problem was in my WEB-INF/classes folder there is .properties file for which the logs path was given as
/usr/local/.. some unix path and when i changed it to
C:/logs , my problem got fixed

Hope this helps somebody, when they search google for this error
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: missing application web.xml using defaults