工程中依赖这两个jar
所以必须加入classpath
但是部署到tomcat下会与common/lib冲突
有人说解决办法是手动去删
有人说解决办法是在JAVA_HOME中加入这两个jar
但更好的办法应该是直接不让它部署
在maven中:
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
这个在myelipse中还有问题需要:
Most people should be able to hot-deploy as normal now using the MyEclipse server tools, however i have noticed some people have problems with servlet-api.jar and jsp-api.jar conflicts, if that is the case then the following steps should fix that:
Right click on your project and go to the properties>java build path>libraries You will need to look through this list for servlet-api.jar and jsp-api.jar, remove them and add the J2EE library (You will need to do this each time you run the eclipse target or else your servlet-api.jar and jsp-api.jar will get deployed to your web server and may interfere with the one it already has in it’s classpath
Next, still under the project properties item go to MyEclpse->Web->Deployment uncheck the ‘workbench default settings’ and ‘Jars in web Projects user Libraries’ you should now be able to do a normal MyEclipse hot-deploy…
见http://www.oneadam.net/?p=39
感谢大牛GL的指导!
分享到:
相关推荐
含有servlet-api.jar和jsp-api.jar文件;解压获得servlet-api.jar和jsp-api.jar文件;需要下载!
activation.jar、jsp-api.jar、servlet-api.jar、mail.jar
jsp-api.jar和servlet-api.jar,jsp-api.jar和servlet-api.jarjsp-api.jar和servlet-api.jarjsp-api.jar和servlet-api.jar,实用
压缩包包含jsp-api.jar 2.3版 和servlet-api.jar 3.1版
servlet-api-2.5.jar和jsp-api-2.1.jar
servlet-api.jar 和jsp-api 工具jar包
jsp-api.jar和servlet-api包
servlet-api.jar && jsp-api.jar
java中常用的几个jar,希望你在微信开发有困难的时候可以帮助到你包含有json.jar jsp-api.jar servlet-api.jar
javax.servlet-api-3.1.0.jar,很多程序无法运行都是因为他!!!加了就好了
增加servlet-api.jar和jsp-api.jar依赖(csdn)————程序
jsp-api.jar servlet-api.jar
javax.servlet.jsp.jstl-api-1.2.1.jar
servlet-api-2.5.jar和jsp-api-2.1.jar
jakarta.servlet.jsp.jstl-api-2.0.0.jar
jsp-api.jar,servlet-api.jar
javax.servlet.jsp-api-2.3.1.jar