2 Replies Latest reply on Nov 6, 2006 12:31 PM by Arnie Morein

    Errors on Deploy

    Arnie Morein Novice

      I have been attempting to create a new Seam app based on the code generated by Seam. I then modified the code and pages, fleshed out the first page (a user login) and that part was working. Then when I tried to build the second page (the query/view results page), things when wrong:

      09:51:35,531 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      09:51:35,593 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/lib/ui.jar!/META-INF/faces-config.xml
      09:51:37,359 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/tmp/deploy/tmp8172DPSLicenseInquiry.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
      09:51:37,375 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      09:51:37,421 ERROR [[/DPSLicenseInquiryWeb]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
      java.lang.NoClassDefFoundError: javax/el/ELException
       at org.apache.myfaces.application.ApplicationFactoryImpl.<init>(ApplicationFactoryImpl.java:42)
      


      followed by a:

      09:51:37,421 ERROR [StandardContext] Error listenerStart
      


      This "error listener start" is something I also get trying to create a basic JSF application and getting it to run on JBoss as well. I'm sure its something to do w/a missing or misplaced Jar but I cannot find any error messages online that help narrow it down.

      Anyone have any ideas?

      My web.xml file:
      <?xml version="1.0" ?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
       version="2.4">
      
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
      
       <listener>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</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>facelets.DEVELOPMENT</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
      
      
       <filter>
       <filter-name>Seam Exception Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
       </filter>
      
       <filter>
       <filter-name>Seam Redirect Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>Seam Exception Filter</filter-name>
       <url-pattern>/*</url-pattern>
       </filter-mapping>
      
       <filter-mapping>
       <filter-name>Seam Redirect Filter</filter-name>
       <url-pattern>*.seam</url-pattern>
       </filter-mapping>
      
       <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>*.seam</url-pattern>
       </servlet-mapping>
      </web-app>
      


      My faces-config.xml:

      <?xml version='1.0' encoding='UTF-8'?>
      
      <!DOCTYPE faces-config PUBLIC
       "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
       "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
      
      <faces-config>
      
       <application>
       <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
       </application>
      
       <lifecycle>
       <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
       </lifecycle>
      
       <application>
       <message-bundle>messages</message-bundle>
       <locale-config>
       <default-locale>en</default-locale>
       <supported-locale>en</supported-locale>
       </locale-config>
       </application>
      
       <navigation-rule>
       <navigation-case>
       <from-outcome>userLogin</from-outcome>
       <to-view-id>/userLogin.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       </navigation-rule>
      </faces-config>
      



        • 1. Re: Errors on Deploy
          Pete Muir Master

          probably el-api.jar and el-ri-.jar

          • 2. Re: Errors on Deploy
            Arnie Morein Novice

            Found several messages online but all were unanswered or were dead-ends.

            BUT, I found one that mentioned having to create a /META-DATA/services folder with these files that referenced the actual class names that implemented the Sun face classes. Got those built and things got a little better.

            But what's really annoying, is that another message gave me a hint that worked:

            deploy\jbossweb-tomcat55.sar\jsf-libs

            I had to put, all the JSF related files in that folder for things to come together. That included: commons-*, jsf-facelets, jsf-impl, jstl, myfaces-*

            Don't know WHY but at least I'm beyond that problem.