【问题标题】:java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class=javax/servlet/http/HttpServlet, method=<init>()V, pc=0?java.lang.ClassFormatError: JVMCFRE074 没有指定代码属性;类=javax/servlet/http/HttpServlet,方法=<init>()V,pc=0?
【发布时间】:2014-09-24 09:50:37
【问题描述】:

我在启动服务器时收到此错误? 'java.lang.ClassFormatError: JVMCFRE074 没有指定代码属性; class=javax/servlet/http/HttpServlet, 方法=()V, pc=0'

谁能帮我解决这个问题?

【问题讨论】:

  • 您使用的是哪个服务器?能简单介绍一下吗?
  • Websphere 8.5 和 jdk 1.6

标签: jakarta-ee maven-3


【解决方案1】:

尝试从依赖项中排除 javaee-api:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
      <classpathDependencyExcludes>
        <classpathDependencyExclude>javax:javaee-api</classpathDependencyExclude>
      </classpathDependencyExcludes>
    </configuration>
  </plugin>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-24
    • 2012-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-10
    • 1970-01-01
    相关资源
    最近更新 更多