• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

missing application web.xml using defaults

 
Bill McCollough
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Tomcat is version 5.5.7 and the java is version 1-4-2-05.
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic