This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

missing application web.xml using defaults

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Tomcat is version 5.5.7 and the java is version 1-4-2-05.
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic