This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes When have this web.xml file directory is Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "When have this web.xml file directory is "unavailable"" Watch "When have this web.xml file directory is "unavailable"" New topic
Author

When have this web.xml file directory is "unavailable"

Mike Parker
Greenhorn

Joined: Nov 21, 2004
Posts: 18
Hi, I have been attempting to get the listener class attribute to work for days now, and in the process upgraded to tomcat 5.5. I have made a directory, with a jsp page in it for testing my the listener servlet. When I add a web.xml page, to the directory/WEB-INF , I get an error when I try to access the directory through my browser "the directory is not available." So, something in the web.xml page must be very troublesome to the tomcat process.

Here is the web.xml page: can anyone see where I am going wrong?

-Much thanks, Mike
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4347

Originally posted by Mike Parker:

Here is the web.xml page: can anyone see where I am going wrong?

-Much thanks, Mike


Did you forget to add web.xml, because i don't see any


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12265
    
    1
Most likely cause is a parsing error - that should show up in a log file.
Bill
Mike Parker
Greenhorn

Joined: Nov 21, 2004
Posts: 18
Thanks, guys.

It was a parsing issue that I was able to fix after looking at my log ( thanks a million for suggesting what is obvious--I needed that.)

Apparently, having "encoding = ISO-8859-1" appended to my xml version tag did not sit well with tomcat 5.5.

I am in business now-- looks like even my listening class works !!

Much gracious, again.

Mike
 
I agree. Here's the link: jrebel
 
subject: When have this web.xml file directory is "unavailable"
 
Similar Threads
Spring's ContextLoaderListener fails to start in Tomcat
Meaning of error message in Catalina.out?
help with session listener
listener tag in web.xml
web.xml error