Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error configuring application listener of class listeners.ContextListener

 
Franz Coriand
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like the class file is corrupt. I'd wipe them out and recompile.
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the information.

Franz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic