wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ClassFormatError on startup" Watch "ClassFormatError on startup" New topic
Author

ClassFormatError on startup

Michael Gor
Greenhorn

Joined: Oct 07, 2011
Posts: 8
Hello,

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

<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>


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?
 
 
subject: ClassFormatError on startup
 
Similar Threads
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project
Richfaces + Spring + Maven Setup help
Maven web project dependencies
JSF2 + SeamFaces
Maven dependencies