2 Replies Latest reply on Jan 23, 2008 4:32 AM by sdfef fewfwe

    web.xml proble

    sdfef fewfwe Newbie

      hi,
      I get error by running my application :

      14:09:01,687 ERROR [/Formular1]:3715 - Error configuring application listener of class com.sun.faces.config.ConfigureListener
      java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      14:09:01,700 ERROR [/Formular1]:3722 - Skipped installing application listeners due to previous error(s)
      22.01.2008 14:09:01 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Error listenerStart
      22.01.2008 14:09:01 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Context [/Formular1] startup failed due to previous errors
      22.01.2008 14:09:01 org.apache.catalina.startup.ContextConfig processDefaultWebConfig
      SCHWERWIEGEND: Parse error in default web.xml
      java.lang.NullPointerException
       at com.bluecast.xml.XMLDecoderFactory.createDecoder(XMLDecoderFactory.java:58)
       at com.bluecast.xml.XMLStreamReader.setEncoding(XMLStreamReader.java:177)
       at com.bluecast.xml.XMLStreamReader.reset(XMLStreamReader.java:118)
       at com.bluecast.xml.DocumentEntity.open(DocumentEntity.java:86)
       at com.bluecast.xml.PiccoloLexer.reset(PiccoloLexer.java:981)
       at com.bluecast.xml.Piccolo.parse(Piccolo.java:709)
       at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
       at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:677)
       at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:614)
       at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1043)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      22.01.2008 14:09:01 org.apache.catalina.startup.ContextConfig applicationWebConfig
      SCHWERWIEGEND: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml
      java.lang.NullPointerException
       at com.bluecast.xml.XMLDecoderFactory.createDecoder(XMLDecoderFactory.java:58)
       at com.bluecast.xml.XMLStreamReader.setEncoding(XMLStreamReader.java:177)
       at com.bluecast.xml.XMLStreamReader.reset(XMLStreamReader.java:118)
       at com.bluecast.xml.DocumentEntity.open(DocumentEntity.java:86)
       at com.bluecast.xml.PiccoloLexer.reset(PiccoloLexer.java:981)
       at com.bluecast.xml.Piccolo.parse(Piccolo.java:709)
       at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
       at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:352)
       at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1044)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      22.01.2008 14:09:01 org.apache.catalina.startup.ContextConfig start
      SCHWERWIEGEND: Marking this application unavailable due to previous error(s)
      22.01.2008 14:09:01 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Error getConfigured
      22.01.2008 14:09:01 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Context [] startup failed due to previous errors
      22.01.2008 14:09:01 org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      22.01.2008 14:09:02 org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      22.01.2008 14:09:02 org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/44 config=null
      22.01.2008 14:09:02 org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      22.01.2008 14:09:02 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 1630 ms
      

      I suppose that there're some errors in web.xml.
      web.xml
      <?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">
      
       <description>JbossPortalBuscadorIntervinientes</description>
      
       <context-param>
       <param-name>javax.portlet.faces.BridgeImplClass</param-name>
       <param-value>org.apache.myfaces.portlet.faces.bridge.BridgeImpl</param-value>
       </context-param>
      
       <context-param>
       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
       <param-value>org.ajax4jsf.portlet.application.FaceletPortletViewHandler</param-value>
       </context-param>
       <filter>
       <display-name>Ajax4jsf Filter</display-name>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
      
       <!-- JSF -->
       <!--<context-param>
       <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
       <param-value>NEKO,TIDY,NONE</param-value>
       </context-param>-->
       <!--<context-param>
       <param-name>org.ajax4jsf.xmlparser.TIDY</param-name>
       <param-value>/pages/repeater.xhtml,/pages/tabs.xhtml</param-value>
       </context-param>-->
      
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</param-value>
       </context-param>
      
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
      
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>false</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>*.seam</url-pattern>
       </servlet-mapping>
      
       <listener>
       <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
       </listener>
      
       <session-config>
       <session-timeout>30</session-timeout>
       </session-config>
      
       <welcome-file-list>
       <welcome-file>/faces/index.html</welcome-file>
       </welcome-file-list>
      
      
      </web-app>
      

      thanks for help!