3 Replies Latest reply on Nov 22, 2006 12:52 PM by Eric Anderson

    Can't deploy war with faces, works fine in Tomcat Standalone

    Eric Anderson Newbie

      I have a small faces app that I am trying to deploy to Jboss.. It works fine in Tomcat but for some reason when I deploy to JBoss I get

      java.lang.NullPointerException
       at javax.faces.webapp.FacesServlet.init(FacesServlet.java:165)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:1105)
       at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93
      2)
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
      t.java:3951)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
      



      Here is my web.xml

      
      <?xml version = '1.0' encoding = 'windows-1252'?>
      <web-app 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" xmlns="http://java.sun.com/xml/ns/j2ee">
       <description>Empty web.xml file for Web Application</description>
       <filter>
       <filter-name>adfFaces</filter-name>
       <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>adfFaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       </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>
       <servlet-name>resources</servlet-name>
       <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>/faces/*</url-pattern>
       </servlet-mapping>
       <servlet-mapping>
       <servlet-name>resources</servlet-name>
       <url-pattern>/adf/*</url-pattern>
       </servlet-mapping>
       <session-config>
       <session-timeout>35</session-timeout>
       </session-config>
       <mime-mapping>
       <extension>html</extension>
       <mime-type>text/html</mime-type>
       </mime-mapping>
       <mime-mapping>
       <extension>txt</extension>
       <mime-type>text/plain</mime-type>
       </mime-mapping>
      </web-app>
      


      And here are the files in my WEB-INF/lib directory
      adf-faces-api.jar
      adf-faces-impl.jar
      commons-beanutils.jar
      commons-collections.jar
      commons-digester.jar
      commons-logging.jar
      commons-logging-api.jar
      jsf-api.jar
      jsf-impl.jar
      jstl.jar