3 Replies Latest reply on Jan 5, 2007 11:13 AM by Norman Richards

    "messages" example problem

    Gennady Evstratov Newbie

      Hello.

      When I change context-root of messages example from "seam-messages" to, say, "seam-messages-az" I get the following exception:

      03:48:45,465 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application
       at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
       at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
       at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
       at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
       at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
       at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
       at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
       at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
       at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
       at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
       at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
       at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
       at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
       at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:613)
      


      Changing loader-repository from "seam.jboss.org:loader=seam-messages" to "seam.jboss.org:loader=seam-messages-az" in jboss-app.xml does not help.

      I am using seam 1.1.0.GA and JBoss 4.0.5.GA

        • 1. Re:
          Norman Richards Master

          I don't see the connection. Does this happen with a clean restart? (you should probably clean out the tmp and work directories to be sure) Does it go away if you change it back?

          • 2. Re:
            Gennady Evstratov Newbie

            Thank you for your reply.

            Yes, it does happen after clean restart. Yes, it goes away when I change everything back.

            If I add myfaces jars to WEB-INF/lib directory of my war file this error dissapears, but apperar another one:

            11:29:31,740 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
            java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.faces.application.ApplicationFactory
             at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:132)
             at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:107)
             at org.apache.myfaces.context.servlet.ServletFacesContextImpl.<init>(ServletFacesContextImpl.java:88)
             at org.apache.myfaces.context.servlet.ServletFacesContextImpl.<init>(ServletFacesContextImpl.java:81)
             at org.apache.myfaces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:60)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:131)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:613)
            


            Looks like when I change context-root something weird happens to classloading.

            • 3. Re:
              Norman Richards Master

              I can see no way that changing the context root in application.xml, by itself, could possibly have that effect. I cannot reproduce it doing this:

              build/deploy messages to jboss
              test application
              change context-root in application.xml
              build/deploy to jboss
              test application

              I would recommend carefully looking at your lib and deploy directories to see if there is anything unusual there. And, if you didn't do it early, please wipe out your tmp and data directories when you do a clean restart just to make sure there isn't something weird happening there.