1 Reply Latest reply on Jun 10, 2013 1:31 PM by Fernando Martins

    java.lang.ClassNotFoundException: com.sun.faces.spi.AnnotationProvider

    Fernando Martins Newbie

      I need some help to configure class loading with JBoss 7.1.1 final

       

      I'm migrating from JSP 1.2 with tiles for JSF 2.0 facelets using only the standards, I'm making something from the sratch to be the template for other projects

       

      I get this error :

       

      15:33:11,329 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider in Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/web/deployment/jsf/JandexAnnotationProvider (Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules))

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

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

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

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

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

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

          at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.spi.ServiceFactoryUtils.getProviderFromEntry(ServiceFactory.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:70) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:808) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

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

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

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.NoClassDefFoundError: com/sun/faces/spi/AnnotationProvider

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_24]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630) [rt.jar:1.6.0_24]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:614) [rt.jar:1.6.0_24]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_24]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

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

          ... 22 more

      Caused by: java.lang.ClassNotFoundException: com.sun.faces.spi.AnnotationProvider from [Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules)]

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

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

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

          ... 28 more

       

      15:33:11,361 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider in Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/web/deployment/jsf/JandexAnnotationProvider (Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules))

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

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

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

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

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

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

          at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.spi.ServiceFactoryUtils.getProviderFromEntry(ServiceFactory.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:73) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:808) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

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

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

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.NoClassDefFoundError: com/sun/faces/spi/AnnotationProvider

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_24]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630) [rt.jar:1.6.0_24]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:614) [rt.jar:1.6.0_24]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_24]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

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

          ... 22 more

      Caused by: java.lang.ClassNotFoundException: com.sun.faces.spi.AnnotationProvider from [Module "org.jboss.as.web:main" from local module loader @9444d1 (roots: C:\JBoss\jboss-7.1.1.Final\modules)]

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

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

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

          ... 28 more

       

      15:33:11,392 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/JBoss/jboss-7.1.1.Final/bin/content/desenv_v0.0.1_iDigital.pedPagamento.ear/iDigital.pedPagamento-WebApp.war/WEB-INF/lib/tomahawk20-1.1.14.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      15:33:11,407 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

          at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_24]

          at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_24]

          at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_24]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_24]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:165) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:124) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:844) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:796) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24]

          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_24]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

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

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

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

      15:33:11,423 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/JBoss/jboss-7.1.1.Final/bin/content/desenv_v0.0.1_iDigital.pedPagamento.ear/iDigital.pedPagamento-WebApp.war/WEB-INF/lib/richfaces-core-impl-4.3.2.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      15:33:11,423 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

          at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_24]

          at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_24]

          at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_24]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_24]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:165) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:124) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:844) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:796) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24]

          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_24]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

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

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

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

      15:33:11,454 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/JBoss/jboss-7.1.1.Final/bin/content/desenv_v0.0.1_iDigital.pedPagamento.ear/iDigital.pedPagamento-WebApp.war/WEB-INF/lib/richfaces-components-ui-4.3.2.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      15:33:11,454 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

          at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_24]

          at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_24]

          at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_24]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_24]

          at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_24]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:165) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:124) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:844) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:796) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24]

          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_24]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

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

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

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

       

       

      Here is my jboss-deployment-structure

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

            <sub-deployment name="@WAR_FILE_NAME@">

              <exclusions>

                  <module name="org.apache.log4j" slot="main"/>

              </exclusions>

              <dependencies>

                  <module name="pt.ifap.iDigitalModel" slot="1.0"/>

                  <module name="pt.ifap.iDigitalWeb" slot="3.0"/>

              </dependencies>

              <resources>

                  <resource-root path="lib/@JAR_FILE_NAME@"/>

              </resources>

          </sub-deployment>

      </jboss-deployment-structure>

       

       

      here is iDigitalWeb definition :

       

       

      <module xmlns="urn:jboss:module:1.1" name="pt.ifap.iDigitalWeb" slot="3.0">

          <properties>

              <property name="jboss.api" value="private"/>

          </properties>

       

          <dependencies>

              <module name="javax.faces.api"/>

              <module name="javax.el.api"/>

              <module name="javax.servlet.api"/>

              <module name="javax.servlet.jsp.api"/>

              <module name="javaee.api"/>

              <module name="org.apache.commons.logging"/>

              <module name="org.apache.commons.beanutils"/>

              <module name="org.apache.commons.collections"/>

              <module name="org.apache.commons.lang"/>

              <module name="com.sun.jsf-impl"/>

       

              <module name="org.w3c.css.sac"/>

              <module name="net.sourceforge.cssparser"/>

              <module name="com.google.guava"/>

       

          </dependencies>  

       

          <resources>   

          <resource-root path="commons-digester-1.8.1.jar"/>

          <resource-root path="commons-digester-1.6.jar"/>   

          <resource-root path="commons-fileupload-1.2.1.jar"/>

          <resource-root path="htmLib.jar"/>

          <resource-root path="j4j.jar"/>   

       

          <resource-root path="richfaces-core-impl-4.3.2.Final.jar"/>

          <resource-root path="richfaces-components-ui-4.3.2.Final.jar"/>

          <resource-root path="richfaces-core-api-4.3.2.Final.jar"/>

          <resource-root path="richfaces-components-api-4.3.2.Final.jar"/>

       

          <resource-root path="standard-1.1.2.jar"/>

          <resource-root path="tiles-api-2.1.2.jar"/>

          <resource-root path="tiles-core-2.1.2.jar"/>

          <resource-root path="tiles-jsp-2.1.2.jar"/>

          <resource-root path="tiles-servlet-2.1.2.jar"/>

          <resource-root path="tomahawk20-1.1.14.jar"/>

          <resource-root path="gson-2.2.2.jar"/>

       

          </resources> 

       

      </module>

       

       

      ---------------

       

       

      I have a dependency declared to com.sun.jsf-impl, why doesn't jboss find that class com.sun.faces.spi.AnnotationProvider ????

       

      RichFaces works, but I'm worried about this annoying error when deploying

       

      please can someone help me ?

        • 1. Re: java.lang.ClassNotFoundException: com.sun.faces.spi.AnnotationProvider
          Fernando Martins Newbie

          I have found the error

           

          I have copied jboss modules structure from a colegue of mine that started this job of conversion, but he configured it all for jsf 1.2

           

          the error was in this module that he changed, notice that it is implementing   ( com.sun.jsf-impl" slot="1.2 )

           

          forgot this, it's clean now

           

          <module xmlns="urn:jboss:module:1.1" name="org.jboss.as.web">

              <properties>

                  <property name="jboss.api" value="private"/>

              </properties>

           

              <resources>

                  <resource-root path="jboss-as-web-7.1.1.Final.jar"/>

                  <resource-root path="jasper-jdt-7.0.3.Final.jar"/>

                  <resource-root path="jbossweb-7.0.13.Final.jar"/>

                  <!-- Insert resources here -->

              </resources>

           

              <dependencies>

                  <module name="sun.jdk"/>

                  <!--module name="com.sun.jsf-impl"/-->

                  <module name="com.sun.jsf-impl" slot="1.2"/>

                  <module name="javax.annotation.api"/>

                  <module name="javax.api"/>

                  <module name="javax.faces.api"/>

                  <module name="javax.faces.api" slot="1.2"/>

                  <module name="javax.security.auth.message.api"/>

                  <module name="javax.servlet.api"/>

                  <module name="javax.servlet.jsp.api"/>

                  <module name="org.jboss.jandex"/>

                  <module name="org.jboss.staxmapper"/>

                  <module name="org.jboss.as.clustering.api" optional="true"/>

                  <module name="org.jboss.as.clustering.web.spi" optional="true"/>

                  <module name="org.jboss.as.controller"/>

                  <module name="org.jboss.as.ee"/>

                  <module name="org.jboss.as.naming"/>

                  <module name="org.jboss.as.network"/>

                  <module name="org.jboss.as.security"/>

                  <module name="org.jboss.as.server"/>

                  <module name="org.jboss.as.threads"/>

                  <module name="org.jboss.invocation"/>

                  <module name="org.jboss.marshalling"/>

                  <module name="org.jboss.metadata"/>

                  <module name="org.jboss.modules"/>

                  <module name="org.jboss.msc"/>

                  <module name="org.jboss.threads"/>

                  <module name="org.jboss.vfs"/>

                  <module name="org.jboss.logging"/>

                  <module name="org.jboss.common-core"/>

                  <module name="org.picketbox"/>

                  <module name="javax.security.jacc.api"/>

                  <module name="pt.ifap.iDigitalWeb" slot="1.0"/>

              </dependencies>

          </module>