aspose file tools*
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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassFormatError on startup