Вопрос

Я получаю следующие трассы исключения, когда я запускаю веб-приложение, развернутое на Jety Web-сервер. Похоже, мне не хватает файла JAR. Может кто-нибудь сказать мне, что не так?

Ошибка http 500

Проблема доступа к /pmcounters/default.jsp. Причина:

javax/faces/model/SelectItem
.

вызвано:

java.lang.noclassdeffoundeRror: javax / faces / model / selectiTem AT COM.EERICSSON.DAE.PM.DAO.VIRTUALCONFIGTALDAO. (VirtualDaeconfigtabledao.java:41) в org.apache.jsp.default_jsp._jspserservice (org.apache.jsp.default_jsp: 162) в org.apache.jasper.runtime.httpjspbase.service (httpjspbase.java:109) в javax.servlet.http.httpservlet.service (httpservlet.java:717) at org.apache.jasper.servlet.jsspservletwrapper.service (jssservletwrapper.java:389) ap org.apache.jasper.servlet.jspservlet.servicejspfile (jspservlet.java:486) на org.apache.jasper.servlet.jspservlet.service (jspservlet.java:380) в javax.servlet.http.httpservlet.service (httpservlet.java:717) в org.eclipse.jetty.servlet.servletholder.handle (servletholder.java:547) в org.eclipse.jetty.servlet.servlethandler.dohandle (servlethandler.java:481) в org.eclipse.jetty.server.handler.scopedhandler.handle (ScopedHandler.java:119) на org.eclipse.jetty.security.securityHandler.Handle (SecurityHandler.java:520) на org.eclipse.jetty.server.session.sessionhandler.dohandle (Sessionandler.java:227) в org.eclipse.jetty.server.handler.contexthandler.dohandle (contexthandler.java:940) в org.eclipse.jetty.servlet.servlethandler.doscope (servlethandler.java:409) в org.eclipse.jetty.server.session.sessionhandler.doscope (sessionandler.java:186) в org.eclipse.jetty.server.handler.contexthandler.doscope (contexthandler.java:874) в org.eclipse.jetty.server.handler.scopedhandler.handle (ScopedHandler.java:117) в org.eclipse.jetty.server.handler.handlercollection.handle (Handlercollection.java:149) в org.eclipse.jetty.server.handler.handlerwrapper.handle (handlerwrapper.java:110) в org.eclipse.jetty.server.server.handle (server.java:349) в org.eclipse.jetty.server.httpcconnection.handleRequest (httpconnection.java:441) на org.eclipse.jetty.server.httpconnection $ creamphandhandler.headeercomplete (httpconnection.java:904) на org.eclipse.jetty.http.httparser.Parsenext (httpparser.java:565) в org.eclipse.jetty.http.httparser.parseavailable (httpParser.java:217) в org.eclipse.jetty.server.asynchttpconnection.handle (asynchttpconnection.java:46) в org.eclipse.jetty.io.nio.selectchannelendpoint.handle (selectchannelendpoint.java:545) в org.eclipse.jetty.io.nio.selectchannelendpoint $ 1.run (selectchannelendpoint.java:43) в org.eclipse.jetty.util.thread.queuedThreadpool.runjob (queuedtreadpool.java:598) в org.eclipse.jetty.util.thread.queedThreadpool $ 3.run (queuedtreadpool.java:533) в java.lang.thread.run (thread.java:662)

Вот мой web.xml:

   <?xml version="1.0" encoding="UTF-8"?>
   <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
      <context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
</context-param>
<context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>


<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
    <session-timeout>
        30
    </session-timeout>
</session-config>
<welcome-file-list>
    <welcome-file>default.jsp</welcome-file>
</welcome-file-list>
.

Это было полезно?

Решение

Обычно эта ошибка заключается в том, что имеется несколько версий этого класса, убедитесь, что у вас нет нескольких версий банок с таковым классом в вашем приложении, или что сервер приложений не дает вам одну версию и ваш WebAppУпаковка другая версия.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top