9 Replies Latest reply on Sep 1, 2014 10:53 AM by Charles Odili

    Errai Security Deployment Errors

    Carl Lewis Newbie

      Hi,

       

      I'm trying to incorporate Errai Security into my Errai 3.0 project and I'm getting the following errors when my app is deployed. My pom is also listed below, which is basically the tutorial pom with a few modifications for my project and the addtion of a dependency on Errai-Security. I've had limited success with changing the scope on some of the dependencies, but that leads to other issues; I've not been able to get the security module deployed successfully. Any help on this would be appreciated.

       

      Thanks,

       

      Carl

       

      [INFO] 16:48:56,864 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-3) starting errai cdi ...

      [INFO] 16:48:57,564 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-3) discovered errai service: public@Service @ApplicationScoped class org.jboss.errai.security.server.PicketLinkAuthenticationService

      [INFO] 16:48:57,585 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class org.jboss.errai.security.shared.LoginPage in Module "deployment.ALDAAR.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/errai/security/shared/LoginPage (Module "deployment.ALDAAR.war:main" from Service Module Loader)

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

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

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

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

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

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

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

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

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

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

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

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

      [INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      [INFO] Caused by: java.lang.NoClassDefFoundError: org/jboss/errai/ui/nav/client/local/UniquePageRole

      [INFO]     at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

      [INFO]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

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

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

      [INFO]     ... 20 more

      [INFO] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.ui.nav.client.local.UniquePageRole from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

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

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

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

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

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

      [INFO]     ... 25 more

      [INFO]

      [INFO] 16:48:57,605 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) WELD-000119 Not generating any bean definitions from org.jboss.errai.security.shared.LoginPage because of underlying class loading error

      [INFO] 16:48:57,605 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: org.jboss.errai.security.shared.LoginPage from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:74) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

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

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

      [INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      [INFO] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.security.shared.LoginPage from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

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

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

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

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

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

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     ... 11 more

      [INFO]

      [INFO] 16:48:57,625 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class org.jboss.errai.security.shared.SecurityError in Module "deployment.ALDAAR.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/errai/security/shared/SecurityError (Module "deployment.ALDAAR.war:main" from Service Module Loader)

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

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

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

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

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

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

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

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

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

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

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

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

      [INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      [INFO] Caused by: java.lang.NoClassDefFoundError: org/jboss/errai/ui/nav/client/local/UniquePageRole

      [INFO]     at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

      [INFO]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

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

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

      [INFO]     ... 20 more

      [INFO] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.ui.nav.client.local.UniquePageRole from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

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

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

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

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

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

      [INFO]     ... 25 more

      [INFO]

      [INFO] 16:48:57,645 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) WELD-000119 Not generating any bean definitions from org.jboss.errai.security.shared.SecurityError because of underlying class loading error

      [INFO] 16:48:57,645 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: org.jboss.errai.security.shared.SecurityError from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:74) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

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

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

      [INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      [INFO] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.security.shared.SecurityError from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

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

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

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

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

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

      [INFO]     at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     ... 11 more

      [INFO]

      [INFO] 16:48:57,655 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-3) discovered errai service: public@Service @Alternative @ApplicationScoped class org.jboss.errai.security.server.JaasAuthenticationService

      [INFO] 16:48:57,675 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) WELD-000119 Not generating any bean definitions from org.jboss.errai.security.server.AuthenitcationCodeDecorator because of underlying class loading error

      [INFO] 16:48:57,675 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.jboss.errai.security.server.AuthenitcationCodeDecorator

      [INFO]     at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:152) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

      [INFO]     at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

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

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

      [INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      [INFO] Caused by: java.lang.TypeNotPresentException: Type org.jboss.errai.ui.nav.client.local.Page not present

      [INFO]     at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.reflect.Constructor.getGenericParameterTypes(Constructor.java:245) [rt.jar:1.7.0_45]

      [INFO]     at org.jboss.weld.introspector.jlr.WeldConstructorImpl.<init>(WeldConstructorImpl.java:116) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.introspector.jlr.WeldConstructorImpl.of(WeldConstructorImpl.java:66) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:205) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355) [guava-13.0.1.jar:]

      [INFO]     at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184) [guava-13.0.1.jar:]

      [INFO]     at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) [guava-13.0.1.jar:]

      [INFO]     at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) [guava-13.0.1.jar:]

      [INFO]     at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393) [guava-13.0.1.jar:]

      [INFO]     at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

      [INFO]     ... 11 more

      [INFO] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.ui.nav.client.local.Page from [Module "deployment.ALDAAR.war:main" from Service Module Loader]

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

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

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

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

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

      [INFO]     at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_45]

      [INFO]     at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_45]

      [INFO]     at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) [rt.jar:1.7.0_45]

      [INFO]     ... 30 more

      [INFO]

      [INFO] 16:48:57,845 INFO  [org.jboss.errai.common.metadata.MetaDataScanner] (Thread-85) added class scanning extensions: org.jboss.errai.common.metadata.JbossVFsTypeHandler

      [INFO] 16:48:58,427 INFO  [org.jboss.errai.reflections.Reflections] (Thread-85) Reflections took 582 ms to scan 15 urls, producing 513 keys and 2131 values [using 2 cores]

      [INFO] 16:48:58,557 INFO  [org.jboss.errai.cdi.server.CDIExtensionPoints] (pool-12-thread-1) all services registered successfully

      [INFO] 16:48:58,957 INFO  [org.jboss.errai.bus.server.cluster.noop.NoopClusteringProvider] (MSC service thread 1-5) clustering support not configured.

      [INFO] 16:48:58,958 INFO  [org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap] (MSC service thread 1-5) starting errai bus ...

      [INFO] 16:48:58,958 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (MSC service thread 1-5) using dispatcher implementation: org.jboss.errai.bus.server.SimpleDispatcher

      [INFO] 16:48:58,958 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (MSC service thread 1-5) using session provider implementation: org.jboss.errai.bus.server.HttpSessionProvider

      [INFO] 16:48:58,978 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (MSC service thread 1-5) searching for errai extensions ...

      [INFO] 16:48:58,988 INFO  [org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap] (MSC service thread 1-5) errai bus started.

      [INFO] 16:48:58,998 INFO  [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /ALDAAR

      [INFO] 16:48:59,158 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018559: Deployed "ALDAAR.war"



      Pom.xml


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

      <project

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

        xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

       

        <groupId>org.test</groupId>

        <artifactId>ALDAAR</artifactId>

        <version>1.0</version>

        <packaging>war</packaging>

        <name>ALDAAR</name>

       

        <properties>

          <errai.version>3.0-SNAPSHOT</errai.version>

          <gwt.version>2.5.1</gwt.version>

          <slf4j.version>1.5.11</slf4j.version>

          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

          <javaee.version>3.0.2.Final</javaee.version>

          <errai.dev.context>${project.artifactId}</errai.dev.context>

          <as.version>7.1.1.Final</as.version>

          <!-- Add the absolute path for $JBOSS_HOME below to manage another instance -->

      <!--      <errai.jboss.home>${project.build.directory}/jboss-as-${as.version}</errai.jboss.home> -->

          <errai.jboss.home>C:\Development\servers\jboss-as-7.1.1.Final</errai.jboss.home>

        </properties>

       

        <dependencyManagement>

          <dependencies>

       

            <dependency>

              <groupId>org.jboss.errai.bom</groupId>

              <artifactId>errai-version-master</artifactId>

              <version>${errai.version}</version>

              <type>pom</type>

              <scope>import</scope>

            </dependency>

       

            <dependency>

              <groupId>org.jboss.errai</groupId>

              <artifactId>errai-parent</artifactId>

              <version>${errai.version}</version>

              <type>pom</type>

              <scope>import</scope>

            </dependency>

       

            <dependency>

              <groupId>org.jboss.spec</groupId>

              <artifactId>jboss-javaee-6.0</artifactId>

              <version>${javaee.version}</version>

              <type>pom</type>

              <scope>import</scope>

            </dependency>

       

            <dependency>

              <groupId>org.jboss.weld</groupId>

              <artifactId>weld-core</artifactId>

              <version>1.1.5.Final</version>

            </dependency>

            <dependency>

              <groupId>org.jboss.weld.servlet</groupId>

              <artifactId>weld-servlet-core</artifactId>

              <version>1.1.5.Final</version>

            </dependency>

          

            <dependency>

              <groupId>org.jboss.errai</groupId>

              <artifactId>errai-cdi-jboss</artifactId>       

              <version>${errai.version}</version>

            </dependency>

          </dependencies>

        </dependencyManagement>

       

        <dependencies>

          <dependency>

            <groupId>com.google.gwt</groupId>

            <artifactId>gwt-user</artifactId>

            <scope>provided</scope> 

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-javaee-all</artifactId>

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-cordova</artifactId>

          </dependency>

          <dependency>

            <groupId>org.jboss.spec</groupId>

            <artifactId>jboss-javaee-6.0</artifactId>

            <version>${javaee.version}</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

       

          <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-log4j12</artifactId>

          </dependency>

       

          <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <scope>test</scope>

          </dependency>

       

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-cdi-jboss</artifactId>   

          </dependency>

       

       

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-security</artifactId>

            <version>${errai.version}</version>

          </dependency>

        </dependencies>

       

        <repositories>

          <repository>

            <id>JBOSS_NEXUS</id>

            <url>http://repository.jboss.org/nexus/content/groups/public</url>

          </repository>

        </repositories>

       

        <build>

          <finalName>${project.artifactId}</finalName>

          <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

       

          <resources>

            <resource>

              <directory>src/main/java</directory>

            </resource>

            <resource>

              <directory>src/main/resources</directory>

            </resource>

          </resources>

       

          <pluginManagement>

            <plugins>

              <plugin>

                <groupId>org.eclipse.m2e</groupId>

                <artifactId>lifecycle-mapping</artifactId>

                <version>1.0.0</version>

                <configuration>

                  <lifecycleMappingMetadata>

                    <pluginExecutions>

                      <pluginExecution>

                        <pluginExecutionFilter>

                          <groupId>org.codehaus.mojo</groupId>

                          <artifactId>gwt-maven-plugin</artifactId>

                          <versionRange>[2.4.0,)</versionRange>

                          <goals>

                            <goal>resources</goal>

                          </goals>

                        </pluginExecutionFilter>

                        <action>

                          <execute />

                        </action>

                      </pluginExecution>

                    </pluginExecutions>

                  </lifecycleMappingMetadata>

                </configuration>

              </plugin>

            </plugins>

          </pluginManagement>

       

          <plugins>

            <plugin>

              <groupId>org.codehaus.mojo</groupId>

              <artifactId>gwt-maven-plugin</artifactId>

              <version>${gwt.version}</version>

              <executions>

                <execution>

                  <goals>

                    <goal>resources</goal>

                    <goal>compile</goal>

                  </goals>

                </execution>

              </executions>

              <configuration>

                <extraJvmArgs>-Xmx712m -XX:CompileThreshold=7000 -XX:MaxPermSize=128M -Derrai.jboss.home=${errai.jboss.home} -Derrai.dev.context=${errai.dev.context} -Derrai.jboss.javaagent.path=${settings.localRepository}/org/jboss/errai/errai-client-local-class-hider/${errai.version}/errai-client-local-class-hider-${errai.version}.jar</extraJvmArgs>

                <logLevel>INFO</logLevel>

                <noServer>false</noServer>

                <server>org.jboss.errai.cdi.server.gwt.JBossLauncher</server>

                <disableCastChecking>true</disableCastChecking>

                <runTarget>${errai.dev.context}</runTarget>

                <soyc>false</soyc>

                <hostedWebapp>src/main/webapp</hostedWebapp>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-clean-plugin</artifactId>

              <version>2.4.1</version>

              <configuration>

                <filesets>

                  <fileset>

                    <directory>${basedir}</directory>

                    <includes>

                      <include>src/main/webapp/app/</include>

                      <include>src/main/webapp/WEB-INF/deploy/</include>

                      <include>src/main/webapp/WEB-INF/lib/</include>

                      <include>**/gwt-unitCache/**</include>

                      <include>.errai/</include>

                    </includes>

                  </fileset>

                </filesets>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-compiler-plugin</artifactId>

              <version>2.3.2</version>

              <configuration>

                <source>1.6</source>

                <target>1.6</target>

              </configuration>

            </plugin>

            <!-- Unpack jboss-as from maven. Remove this if you wish to use your own jboss/wildfly instance. -->

      <!-- 

        <plugin>

              <groupId>org.apache.maven.plugins</groupId>

              <artifactId>maven-dependency-plugin</artifactId>

              <executions>

            <execution>

                  <id>unpack</id>

                  <phase>process-resources</phase>

                  <goals>

                    <goal>unpack</goal>

                  </goals>

                  <configuration>

                    <artifactItems>

                      <artifactItem>

                        <groupId>org.jboss.as</groupId>

                        <artifactId>jboss-as-dist</artifactId>

                        <version>${as.version}</version>

                        <type>zip</type>

                        <overWrite>false</overWrite>

                        <outputDirectory>${project.build.directory}</outputDirectory>

                      </artifactItem>

                    </artifactItems>

                  </configuration>

                </execution>

              </executions>

            </plugin> -->      

          </plugins>

        </build>

       

        <profiles>

          <profile>

            <id>jboss7</id>

            <activation>

              <activeByDefault>true</activeByDefault>

            </activation>

            <build>

              <plugins>

                <plugin>

                  <artifactId>maven-war-plugin</artifactId>

                  <version>2.2</version>

                  <configuration>

                    <packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>

                    <outputFileNameMapping>@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>

                  </configuration>

                </plugin>

                <plugin>

                  <groupId>org.jboss.as.plugins</groupId>

                  <artifactId>jboss-as-maven-plugin</artifactId>

                  <version>7.1.1.Final</version>

                  <extensions>false</extensions>

                </plugin>

              </plugins>

            </build>

            <dependencies>

       

              <dependency>

                <groupId>org.jboss.errai</groupId>

                <artifactId>errai-jboss-as-support</artifactId>

              </dependency>

       

               <!-- TODO figure out how to force all these things to provided scope without doing it explicitly in EVERY SINGLE ERRAI PROJECT!!!!111!!!!1 -->

              <!-- Don't deploy any of this -->

              <dependency><groupId>com.google.guava</groupId><artifactId>guava-gwt</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>hsqldb</groupId><artifactId>hsqldb</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>javax.annotation</groupId><artifactId>jsr250-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>javax.enterprise</groupId><artifactId>cdi-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>javax.inject</groupId><artifactId>javax.inject</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>javax.validation</groupId><artifactId>validation-api</artifactId><classifier>sources</classifier><scope>provided</scope></dependency>

              <dependency><groupId>javax.validation</groupId><artifactId>validation-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>junit</groupId><artifactId>junit</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate.common</groupId><artifactId>hibernate-commons-annotations</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate.javax.persistence</groupId><artifactId>hibernate-jpa-2.0-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate</groupId><artifactId>hibernate-core</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate</groupId><artifactId>hibernate-validator</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.hibernate</groupId><artifactId>hibernate-validator</artifactId><classifier>sources</classifier><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-cdi-jetty</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-cdi-jboss</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-codegen-gwt</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-data-binding</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-javax-enterprise</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-jaxrs-client</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-jpa-client</artifactId><scope>provided</scope></dependency>

                <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-navigation</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai</groupId><artifactId>errai-tools</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.logging</groupId><artifactId>jboss-logging</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.resteasy</groupId><artifactId>jaxrs-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.spec.javax.interceptor</groupId><artifactId>jboss-interceptors-api_1.1_spec</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.spec.javax.transaction</groupId><artifactId>jboss-transaction-api_1.1_spec</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.weld.servlet</groupId><artifactId>weld-servlet-core</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.weld</groupId><artifactId>weld-core</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.weld</groupId><artifactId>weld-api</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.weld</groupId><artifactId>weld-spi</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>xml-apis</groupId><artifactId>xml-apis</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.jboss.errai.io.netty</groupId><artifactId>netty</artifactId><scope>provided</scope></dependency>

              <dependency><groupId>org.mortbay.jetty</groupId><artifactId>jetty-naming</artifactId><scope>provided</scope></dependency>  

            </dependencies>

          </profile>

       

          <profile>

            <id>mobile</id>

            <build>

              <plugins>

                <plugin>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>cordova-maven-plugin</artifactId>

                  <version>2.4.1.Final</version>

                  <executions>

                    <execution>

                      <id>build</id>

                      <phase>package</phase>

                      <goals>

                        <goal>build-project</goal>

                      </goals>

                    </execution>

                  </executions>

                </plugin>

              </plugins>

            </build>

            <pluginRepositories>

              <pluginRepository>

                <id>snapshots.jboss.org</id>

                <name>JBoss Snapshot Repository</name>

                <url>http://snapshots.jboss.org/maven2</url>

                <layout>default</layout>

                <snapshots>

                  <enabled>true</enabled>

                </snapshots>

              </pluginRepository>

            </pluginRepositories>

          </profile>

        </profiles>

      </project>

        • 1. Re: Errai Security Deployment Errors
          Max Barkley Expert

          Hi Carl,

           

          Your problem seems to be caused by a bug in errai-security. LoginPage, a shared class, implements a client-side only interface in errai-navigation. As a temporary workaround, you can remove the line in the jboss7 profile that sets errai-navigation to provided scope (you may also need to do that for errai-ui). That should allow you to run development mode. Production mode is a little trickier: it looks like these classes are not used at all on the server, so you could try adding them to the exclusion pattern in the war plugin configuration in the jboss7 profile.

           

          You can follow the status of the issue here: https://issues.jboss.org/browse/ERRAI-683

           

          Cheers.

          • 2. Re: Errai Security Deployment Errors
            Max Barkley Expert

            Hi Carl,

             

            I've pushed a temporary fix to 3.0-SNAPSHOT that allows an app with errai-security to be deployed. Note that you will still experience Exceptions similar to the one you have posted (for other classes) but they shouldn't prevent you from deploying your app.

             

            In case it may be of use to you, there is now an errai-security-demo in the errai-demos project in 3.0-SNAPSHOT, with a similar pom.xml structure to errai-tutorial.

            • 3. Re: Errai Security Deployment Errors
              Carl Lewis Newbie

              Hi Max,

               

              Thanks for your help on this. I can see you changes in GitHub, but I'm not really setup to use it. I'm assuming the changes will be pushed to the Maven Repository when M4 is released?

               

              Thanks,

               

              Carl

              • 4. Re: Errai Security Deployment Errors
                Max Barkley Expert

                Hi Carl,

                 

                The changes will be in milestone 4, but they are also currently in the maven repository under 3.0-SNAPSHOT.

                 

                Cheers.

                • 5. Re: Errai Security Deployment Errors
                  Carl Lewis Newbie

                  Hi Max,

                   

                  Now that 3.0 Final is out I've gone back to revisit using Errai Security. I was able to quickly get the default implementation working by following the documentation. However, we would like to use our own custom authentication and we're running into issues here. If I include the Picketlink dependencies and remove the Errai-Security-Picketlink dependency (as described in the documentation) I get the following error when attempting to display the Login page:

                   

                  13:23:03,064 INFO  [org.jboss.errai.common.client.api.extension.InitVotes] (http--0.0.0.0-8888-2)   still waiting for -> [org.jboss.errai.security.client.local.api.SecurityContext]

                  13:23:47,517 SEVERE [org.jboss.errai.common.client.api.extension.InitVotes] (http--0.0.0.0-8888-2) components failed to initialize

                  13:23:47,540 SEVERE [org.jboss.errai.common.client.api.extension.InitVotes] (http--0.0.0.0-8888-2)    [failed] -> org.jboss.errai.security.client.local.api.SecurityContext

                   

                   

                  It seems like SecurityContext is part of Errai-Security-Picketlink. If I include the Errai-Security-Picketlink dependency than I get an ambiguous dependency on my AuthenticationService implementation.

                   

                  WELD-001409 Ambiguous dependencies for type with qualifiers [@Default] at injection point

                   

                  Basically what we are trying to accomplish is to use all the client side functionality of Errai Security but provide our own custom authenticator via PicketLink on the server.

                   

                  Thanks,

                   

                  Carl

                  • 6. Re: Errai Security Deployment Errors
                    Max Barkley Expert

                    Hi Carl,

                     

                    The SecurityContext is part of errai-security-client. The SecurityContext participates in the client-side intialization process and in particular will wait for the message bus and then make an call to the AuthenticationService to see if a user is logged in.

                     

                    The log statements you've posted show that the SecurityContext is failing to initialize, meaning the initial RPC is probably failing. You can diagnose this further by:

                    • Checking for any log statements or errors on the server to do with the AuthenticationService or the NonCachingUserService.
                    • Setting the client-side logging level to "ALL" and looking for log statements from the SecurityContextImpl.

                     

                    I'd be happy to take a look at anything you find. Cheers.

                    1 of 1 people found this helpful
                    • 7. Re: Errai Security Deployment Errors
                      Carl Lewis Newbie

                      Hi Max,

                       

                      I had some time to spend on this again this week and I have this working now. I'm using kind of a hybrid solution. We use Atlassian Crowd for our Identity management; our applications connect via the Crowd REST API for Authentication / Authorization. I ended up just reusing the default Errai / PicketLink Security infrastructure and extending the PicketLink BaseAuthenticator with my own CrowdAuthenticator instead of implementing a custom AuthenticationService. This is somewhat redundant, I'm keeping the local PicketLink DB in sync with Crowd at the point of authentication. Maybe at some point I'll revisit this and look for a cleaner solution, but this seems to be working fine for now.

                       

                      Thanks for all your help on this long running thread.

                       

                      -Carl

                      • 8. Re: Errai Security Deployment Errors
                        Max Barkley Expert

                        Carl,

                         

                        Glad to hear you got your app working!

                         

                        Cheers.

                        • 9. Re: Errai Security Deployment Errors
                          Charles Odili Apprentice

                          I am having deployment errors traced to Errai Security. They are ClassNotFoundErrors for classes in Errai Security. I set the scope of the errai-security modules in my pom to "provided" and there errors are here : http://fpaste.org/130104/14095818/