2 Replies Latest reply on Nov 18, 2009 2:08 PM by Daniele Canteri

    Custom component + Facelet + JSF + War Deployment

    Vemula sriramsudheer Newbie

      HI i am trying to create a custom component and i am getting classnotfoundException The following is the related stackTrace, when i try to deploy same example as EAR deployment i am successful, I am using JBoss AS 4.2 and I Tried both Seam2.0.1GA and Seam 2.0.2CA:



      NFO: Added Library from: file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/META-INF/landmarksoftware.taglib.xml
      11:41:34,730 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      11:41:34,730 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      11:41:34,746 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      11:41:34,777 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      11:41:34,777 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      11:41:34,793 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      11:41:34,809 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      11:41:34,824 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      11:41:34,840 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
      11:41:34,840 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
      11:41:34,918 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
      11:41:34,918 ERROR [STDERR] Apr 18, 2008 11:41:34 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/Test.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
      11:41:42,090 FATAL [application] JSF1004: Cannot instantiate component of type org.domain.Test.session.UIPdfLabel
      11:41:42,184 ERROR [STDERR] Apr 18, 2008 11:41:42 AM com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/customComponent.xhtml]
      javax.faces.FacesException: Expression Error: Named Object: org.domain.Test.session.UIPdfLabel not found.
           at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:553)
           at org.jboss.seam.jsf.SeamApplication.createComponent(SeamApplication.java:91)
           at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:243)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139)
           at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
           at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           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:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)