1 Reply Latest reply on Jan 20, 2013 5:30 AM by Jörg E

    JBoss5.1 Classloading problems after 30 minutes

    Jörg E Newbie

      Hello,

       

      I am using following configuration:

       

      • JBoss 5.1 - (JBoss [EAP] 5.1.0 (build: SVNTag=JBPAPP_5_1_0 date=201009150028))
      • Richfaces3 - 3.3.3.CR1
      • JSF-Facelets - 1.1.15.B1

       

       

      After Jboss start and first access to application (enter the start page), this results usually in following one time output in server.log:

       

      ...

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-fn.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/richfaces-ui-3.3.3.CR1.jar/META-INF/a4j.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/richfaces-ui-3.3.3.CR1.jar/META-INF/rich.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/richfaces-ui-3.3.3.CR1.jar/META-INF/jsp.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/richfaces-ui-3.3.3.CR1.jar/META-INF/richfaces.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/richfaces-ui-3.3.3.CR1.jar/META-INF/ajax4jsf.taglib.xml

      com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:432 - Added Library from: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar/META-INF/mojarra_ext.taglib.xml

      ...

       

       

       

      But, when I start JBoss and I do the first access after 30 minutes, this results in following stacktrace:

      ...

      2012-12-19 13:47:45,085 SEVERE [http-10.151.108.108-8080-11] com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:434 - Error Loading Library: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml

      java.io.IOException: Error parsing [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml]:

          at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:410)

          at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431)

          at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87)

          at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)

          at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:218)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:149)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:100)

          at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)

          at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)

          at org.apache.jsp.index_jsp._jspService(index_jsp.java:66)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: org.xml.sax.SAXException: Error Handling [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml@25,74] <library-class>

          at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:271)

          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

          at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)

          at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:407)

          ... 59 more

      2012-12-19 13:47:45,101 SEVERE [http-10.151.108.108-8080-11] com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:434 - Error Loading Library: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml

      java.io.IOException: Error parsing [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml]:

      ...

      Caused by: org.xml.sax.SAXException: Error Handling [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml@25,74] <library-class>

      ...

      2012-12-19 13:47:45,116 SEVERE [http-10.151.108.108-8080-11] com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:434 - Error Loading Library: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml

      java.io.IOException: Error parsing [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml]:

      ...

      Caused by: org.xml.sax.SAXException: Error Handling [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml@25,66] <library-class>

      ...

      2012-12-19 13:47:45,132 SEVERE [http-10.151.108.108-8080-11] com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:434 - Error Loading Library: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml

      java.io.IOException: Error parsing [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml]:

      ...

      Caused by: org.xml.sax.SAXException: Error Handling [vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml@25,79] <library-class>

      ...

      2012-12-19 13:47:45,147 SEVERE [http-10.151.108.108-8080-11] com.sun.facelets.compiler.TagLibraryConfig.loadImplicit:434 - Error Loading Library: vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-fn.taglib.xml

      ...

      2012-12-19 13:47:45,163 ERROR [http-10.151.108.108-8080-11] org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter:227 - Exception in the filter chain

      javax.servlet.ServletException: Servlet execution threw an exception

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)

          at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)

          at org.apache.jsp.index_jsp._jspService(index_jsp.java:66)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagException

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:169)

          at com.sun.facelets.compiler.TagLibraryConfig.class$(TagLibraryConfig.java:190)

          at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:210)

          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

          at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)

          at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:407)

          at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431)

          at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87)

          at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)

          at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:218)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:149)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:100)

          at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          ... 44 more

      Caused by: java.lang.ClassNotFoundException: com.sun.facelets.tag.TagException from BaseClassLoader@28d49111{vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/}

          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

          ... 78 more

      2012-12-19 13:47:45,165 ERROR [http-10.151.108.108-8080-11] org.jboss.logging.Logger.error:419 - Servlet.service() for servlet Faces Servlet threw exception

      java.lang.ClassNotFoundException: com.sun.facelets.tag.TagException from BaseClassLoader@28d49111{vfszip:/ag/XXXX/jboss-eap-5.1/server/default/deploy/XXXX.ear/XXXX_GUI.war/}

          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:169)

          at com.sun.facelets.compiler.TagLibraryConfig.class$(TagLibraryConfig.java:190)

          at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:210)

          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

          at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

          at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)

          at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:407)

          at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431)

          at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87)

          at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)

          at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:218)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:149)

          at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:100)

          at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)

          at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)

          at org.apache.jsp.index_jsp._jspService(index_jsp.java:66)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

          at java.lang.Thread.run(Thread.java:662)

       

      After this failure, all following requests result in this TagException.

       

      This is the same problem for all deployed applications (they use the same RF, JSF).

       

      The session timeout in web.xml is set to 60 minutes.

       

      I tried to modify the stateful/stateless bean session-timeouts, but this has no effect.

          default\conf\standardjboss.xml    838              <remover-period>1800</remover-period>

          default\conf\standardjboss.xml    839              <max-bean-life>1800</max-bean-life>

       

          default\conf\standardjboss.xml    882              <remover-period>1800</remover-period>

          default\conf\standardjboss.xml    883              <max-bean-life>1800</max-bean-life>

       

      Also modifing VFS-Cache timeout brings no result:

              -Djboss.vfs.cache=org.jboss.virtual.plugins.cache.IterableTimedVFSCache

              -Djboss.vfs.cache.TimedPolicyCaching.lifetime=1440

       

      When I run the whole server in DEBUG-mode, I also can't find any errors or hints for this error.

       

      It is also not possible to reproduce this error in my local dev-environment.

       

      What can be the reason for this error?

       

      What else can I do to find the reason for this problem?

       

      Thank You!

        • 1. Re: JBoss5.1 Classloading problems after 30 minutes
          Jörg E Newbie

          The problems comes with the new VFS Cache in JBoss 5.1:

          https://community.jboss.org/wiki/VFS3UserGuide

           

          The NoClassDefFoundError occurs after a ClassNotFoundException. The ClassNotFoundException will occur the first time the class is referenced and the classloader tries to load it. The next time the class is referenced, the classloader has cached that is is not found and will throw a NoClassDefFoundError.

          The ultimate cause of the original ClassNotFoundException is an implementation detail of VFS caching and housekeeping. With VFS permanentRoots that contain symlinks, there was a bug that caused the paths making up the roots to be stored in their canonical form in a permanent cache while lookups were performed with the non-canonical path, causing a cache miss on every access.

          When using a non-standard deployment directory, the directory isn't known to VFS as a permanentRoot, so the VFS internal housekeeping only keeps up with it in a temporary cache that times out after 30 minutes.

           

          Solution:

          Remove any symlinks in the JBoss path

           

          or use parameter:

           

          -Djboss.vfs.forceCanonical=true