項目是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
求解 謝謝各位大大
問題已解決,由於本地.m2下沒清理以往曾用過的jetty高版本jar包,導致包沖突的低級問題,清理.m2重新下載依賴即可