Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes ClassFormatError on startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ClassFormatError on startup" Watch "ClassFormatError on startup" New topic

ClassFormatError on startup

Michael Gor

Joined: Oct 07, 2011
Posts: 8

with tomcat 7, I get the following exception on startup:

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException

I use maven for dependency management. After some searching, I found out that the following dependency seams to cause the problem


But the scope of the dependency is provided, so it should not case problems at startup? And I think, tomcat 7 should include the required servlet api 3.0 implementation, so I donĀ“t really understand the problem. Could some one help me?
I agree. Here's the link:
subject: ClassFormatError on startup
It's not a secret anymore!