.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/Expression

项目是struts2.3.15+spring3,搭建后,用jetty正常启动后,访问jsp时Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.ast.Expression的问题。
部分maven配置:

         <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty</artifactId>
        <version>${jetty.version}</version>
    </dependency>               
    <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-2.1-jetty</artifactId>
        <version>${jetty.version}</version>
    </dependency>
    <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-2.1-glassfish</artifactId>
        <version>2.1.v20091210</version>
    </dependency>
    <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-api-2.1-glassfish</artifactId>
        <version>2.1.v20091210</version>
    </dependency>
</dependencies>
<properties>
    <jetty.version>6.1.26</jetty.version>
</properties>

<!-- jetty -->

org.mortbay.jetty
maven-jetty-plugin
${jetty.version}

<!-- Log to the console. -->

<!-- This doesn't do anything for Jetty, but is a workaround for a
Maven bug that prevents the requestLog from being set. -->
true

10

src/main/java
src/main/webapp/WEB-INF
src/main/resources

求解,是jetty版本过低导致的么?
servlet版本是2.5 用的IDE是eclipse3.6
求解 谢谢各位大大

1个回答

问题已解决,由于本地.m2下没清理以往曾用过的jetty高版本jar包,导致包冲突的低级问题,清理.m2重新下载依赖即可

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问