java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class=javax/servlet/http/HttpServlet, method=<init>()V, pc=0?

StackOverflow https://stackoverflow.com//questions/25076045

  •  02-01-2020
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top