jeeWx部署问题
如图:部署后,访问http://localhost:8080/项目名报 登录 500 项目环境 jdk7+tomcat7+eclipsepom文件中有加入插件(eclipse部署时,没有copy lib包)
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/jeewx</path>
<port>8080</port>
<uriEncoding>UTF-8</uriEncoding>
<url>http://localhost:8080/manager/html</url>
<server>tomcat6</server>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<configuration>
<outputDirectory>${pro.outerDirectory}/WEB-INF/lib</outputDirectory>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin> 解决了。。。
原因是使用eclipse时,打包的时候,把servlet-api 和 jsp-api 两个jar包也打包到lib中了,导致和tomcat中lib包冲突
页:
[1]