Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassFormatError on startup

Michael Gor
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic