2 coderman llq coderMan_Llq 于 2013.10.08 18:43 提问

.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个回答

coderMan_Llq
coderMan_Llq   2013.10.09 10:35
已采纳

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

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!