在服务器启动时,冒犯性的类告诉我什么? [英] What does offending class tell me on server startup?
本文介绍了在服务器启动时,冒犯性的类告诉我什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将jee7 Web API作为依赖项.我可以在 tomcat
应用程序上成功启动我的应用程序,但是以下令人讨厌的类"语句告诉我什么?我需要采取任何行动吗?
I'm having the jee7 web api as dependency. I can start my app on tomcat
application successfully, but what does the following "offending class" statements tell me? Do I have to take any actions?
Jan 13, 2014 5:47:47 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Information: validateJarFile(C:\Users\me\Servers\apache-tomcat-7.0.50\wtpwebapps\app\WEB-INF\lib\el-api-2.2.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
Jan 13, 2014 5:47:47 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Information: validateJarFile(C:\Users\me\Servers\apache-tomcat-7.0.50\wtpwebapps\app\WEB-INF\lib\javaee-web-api-7.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
pom.xml
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
</dependency>
推荐答案
您(您的Servlet容器)似乎正在尝试加载一些已经加载的类. servlet-api
和 el-api
应该由Servlet容器提供.
It seems like you (your Servlet container) are trying to load some classes that have already been loaded. The servlet-api
and el-api
should be provided by the Servlet container.
更改您的pom.xml以解决该问题
Change your pom.xml to account for that
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
这篇关于在服务器启动时,冒犯性的类告诉我什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文