1 Reply Latest reply on Dec 7, 2007 5:02 AM by marc collin

    javax/el/ELResolver problem

    marc collin Newbie

      hi

      i used jboss 4.05, i upgraded to jboss 4.2.2, i use jboss seam 1.2.1

      since i upgraded, i get this error

      (listener) org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.NoClassDefFoundError: javax/el/ELResolver
       at org.jboss.seam.jsf.SeamApplication12.<init>(SeamApplication12.java:35)
      ...
      ...
      Error listenerStart
      



      in my lib folder about el i only have

      el-api-jboss-seam-1.2.1.GA.jar
      el-ri-jboss-seam-1.2.1.GA.jar
      


      for jsf in this folder, i only have: jsf-facelets-jboss-seam-1.2.1.GA.jar

      WEB-INF/face-config.xml i have

      <faces-config>
      
       <application>
       <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
       </application>
      
       <!-- Phase listener needed for all Seam applications -->
      
       <lifecycle>
       <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
       </lifecycle>
      
      
       <application>
       <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
       </application>
      
       <!-- Customize JSF validation messages -->
      
       <application>
       <message-bundle>messages</message-bundle>
       </application>
      
      </faces-config>



      in my web.xml i have

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
       <!-- Seam -->
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
       <filter>
       <filter-name>Seam Filter</filter-name>
       <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>Seam Filter</filter-name>
       <url-pattern>/*</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Seam Filter</filter-name>
       <url-pattern>*.seam</url-pattern>
       </filter-mapping>
       <filter>
       <display-name>Ajax4jsf Filter</display-name>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.FastFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
       <servlet>
       <servlet-name>Seam Resource Servlet</servlet-name>
       <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
       </servlet>
       <servlet-mapping>
       <servlet-name>Seam Resource Servlet</servlet-name>
       <url-pattern>/seam/resource/*</url-pattern>
       </servlet-mapping>
       <!-- MyFaces -->
       <!--
       <listener>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
       </listener>
       -->
       <listener>
       <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
       </listener>
       <listener>
       <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
       </listener>
       <listener>
       <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
       </listener>
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</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>*.do</url-pattern>
       </servlet-mapping>
       <!-- Web Service -->
      </web-app>
      
      



      any idea?

      thanks

        • 1. Re: javax/el/ELResolver problem
          marc collin Newbie

          ok i downloaded: facelets-1.1.13

          i put el-impl-1.0.jar to the lib folder...

          now i get

          java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
           at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)
           at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:2048)