aspose file tools*
The moose likes Tomcat and the fly likes Error configuring application listener of class listeners.ContextListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error configuring application listener of class listeners.ContextListener" Watch "Error configuring application listener of class listeners.ContextListener" New topic
Author

Error configuring application listener of class listeners.ContextListener

Franz Coriand
Greenhorn

Joined: Mar 28, 2006
Posts: 2
Hi,

I have installed JDK 1.5.06 and Tomcat 5.5.16 under Windows XP prof.
Now I wanted to try the examples come with Tomcat, but they didn't work!? I just get a "http status 404".

I have looked in the log files and there you go ... I found this:
"28.03.2006 18:30:33 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
28.03.2006 18:30:34 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Error configuring application listener of class listeners.ContextListener
java.lang.ClassFormatError: Extra bytes at the end of class file listeners/ContextListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
..."

What's going on here?
It must be a very stupid mistake - I just want to try the examples with a standard instalation unter windows.

Can someone help me?

Thanks, Franz
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Looks like the class file is corrupt. I'd wipe them out and recompile.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
I googled this error and got this page:
http://www.nabble.com/tomcat-examples-t1307951.html

which implies that the 5.5.16.exe release of tomcat is broken. Try the zip installation or an earlier version.
Franz Coriand
Greenhorn

Joined: Mar 28, 2006
Posts: 2
Thank you for the information.

Franz
 
 
subject: Error configuring application listener of class listeners.ContextListener