java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class=javax/servlet/http/HttpServlet, method=<init>()V, pc=0?
Question
I am getting this error while starting the server? 'java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class=javax/servlet/http/HttpServlet, method=()V, pc=0'
Can anybody help me to sort out this?
La solution
Try excluding javaee-api from dependencies:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<classpathDependencyExcludes>
<classpathDependencyExclude>javax:javaee-api</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</plugin>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow