0 Replies Latest reply on Oct 3, 2011 3:32 AM by loargann

    Failed to link org/ajax4jsf/webapp/taglib/EmptyHandler  and  ClassNotFoundException: com.sun.facelets.tag.TagHandler

    loargann Newbie

      Hi,

       

      When I deploy my appli under jboss7 I have linkage and classDef errors that I can't resolve  (it is OK with jboss6).

       

      Here is deployment trace:

       

       

       

       

              java:global/ARMv5/RoleBean!com.devoteam.armv4.ejb.RoleBeanRemote

              java:app/ARMv5/RoleBean!com.devoteam.armv4.ejb.RoleBeanRemote

              java:module/RoleBean!com.devoteam.armv4.ejb.RoleBeanRemote

              java:global/ARMv5/RoleBean

              java:app/ARMv5/RoleBean

              java:module/RoleBean

       

      08:48:02,091 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

      08:48:02,121 INFO  [org.jboss.jpa] (MSC service thread 1-1) starting Persistence Unit Service 'ARMv5.war#allrole'

      08:48:02,122 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH00204:Processing PersistenceUnitInfo [

              name: allrole

              ...]

      08:48:02,133 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: com.devoteam.armv4.ejb

      08:48:02,183 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.DisplayReport

      08:48:02,183 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.DisplayReport

      08:48:02,184 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.ProjectUser

      08:48:02,184 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.ProjectUser

      08:48:02,184 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.ProjectStatus

      08:48:02,184 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.ProjectStatus

      08:48:02,185 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.ReportCategory

      08:48:02,185 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.ReportCategory

      08:48:02,186 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.ProjectAttachType

      08:48:02,186 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.ProjectAttachType

      08:48:02,186 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.FieldVal

      08:48:02,186 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.FieldVal

      08:48:02,187 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.ProjectRole

      08:48:02,187 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.ProjectRole

      08:48:02,187 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00038:Composite-id class does not override equals(): com.devoteam.armv4.ejb.Enable

      08:48:02,188 WARN  [org.hibernate.mapping.RootClass] (MSC service thread 1-1) HHH00039:Composite-id class does not override hashCode(): com.devoteam.armv4.ejb.Enable

      08:48:02,188 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH00130:Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      08:48:02,246 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH00400:Using dialect: org.hibernate.dialect.MySQLDialect

      08:48:02,248 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH00268:Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

      08:48:02,249 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH00397:Using ASTQueryTranslatorFactory

      08:48:02,613 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

      08:48:02,627 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initialisation de Mojarra 2.0.4 (FCS b09-jbossorg-4) pour le contexte '/ARMv5'

      08:48:03,700 ATTENTION [javax.enterprise.resource.webcontainer.jsf.managedbean] (MSC service thread 1-1) JSF1074 : Le bean géré nommé 'a4j' a déjà été enregistré.  Remplacement du type de classe du bean géré existant org.richfaces.VersionBean par org.richfaces.VersionBean.

      08:48:03,700 ATTENTION [javax.enterprise.resource.webcontainer.jsf.managedbean] (MSC service thread 1-1) JSF1074 : Le bean géré nommé 'a4jSkin' a déjà été enregistré.  Remplacement du type de classe du bean géré existant org.richfaces.skin.SkinBean par org.richfaces.skin.SkinBean.

      08:48:03,701 ATTENTION [javax.enterprise.resource.webcontainer.jsf.managedbean] (MSC service thread 1-1) JSF1074 : Le bean géré nommé 'richSkin' a déjà été enregistré.  Remplacement du type de classe du bean géré existant org.richfaces.skin.SkinBean par org.richfaces.skin.SkinBean.

      08:48:03,701 ATTENTION [javax.enterprise.resource.webcontainer.jsf.managedbean] (MSC service thread 1-1) JSF1074 : Le bean géré nommé 'ajaxContext' a déjà été enregistré.  Remplacement du type de classe du bean géré existant org.ajax4jsf.context.AjaxContextImpl par org.ajax4jsf.context.AjaxContextImpl.

      08:48:04,215 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.ajax4jsf.webapp.taglib.EmptyHandler in Module "deployment.ARMv5.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/ajax4jsf/webapp/taglib/EmptyHandler (Module "deployment.ARMv5.war:main" from Service Module Loader)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)

              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)

              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)

              at org.jboss.modules.Module.loadModuleClass(Module.java:588)

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

              at com.sun.faces.util.Util.loadClass(Util.java:332) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass(FaceletTaglibConfigProcessor.java:420) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:371) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:341) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

              at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_25]

              at java.lang.Thread.run(Unknown Source) [:1.6.0_25]

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

              at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_25]

              at java.lang.ClassLoader.defineClassCond(Unknown Source) [:1.6.0_25]

              at java.lang.ClassLoader.defineClass(Unknown Source) [:1.6.0_25]

              at java.security.SecureClassLoader.defineClass(Unknown Source) [:1.6.0_25]

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)

              ... 23 more

      Caused by: java.lang.ClassNotFoundException: com.sun.facelets.tag.TagHandler from [Module "deployment.ARMv5.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

       

      Thanks for your help