1 Reply Latest reply on Mar 26, 2018 2:57 PM by Har P

    Error Initializing picketlink 2.7.1Final with JBoss AS 7.1.1.Final

    Har P Newbie

      We are trying to convert our Java web-app into a service provider using picket link. After following the steps on PicketLink , when we try to bring JBoss up, it throws the following exception.

       

      JavaVersion: 1.7

       

      15:50:53,698 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Context [] startup failed due to previous errors: java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLValidateContext

          at org.picketlink.identity.federation.bindings.tomcat.sp.BaseFormAuthenticator.processConfiguration(BaseFormAuthenticator.java:525) [picketlink-jbas7-2.7.1.Final.jar:2.7.1.Final]

          at org.picketlink.identity.federation.bindings.tomcat.sp.BaseFormAuthenticator.startPicketLink(BaseFormAuthenticator.java:725) [picketlink-jbas7-2.7.1.Final.jar:2.7.1.Final]

          at org.picketlink.identity.federation.bindings.tomcat.sp.AbstractSPFormAuthenticator.startPicketLink(AbstractSPFormAuthenticator.java:102) [picketlink-jbas7-2.7.1.Final.jar:2.7.1.Final]

          at org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator.start(ServiceProviderAuthenticator.java:20) [picketlink-jbas7-2.7.1.Final.jar:2.7.1.Final]

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

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3786) [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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]

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

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

      Caused by: java.lang.ClassNotFoundException: javax.xml.crypto.dsig.XMLValidateContext from [Module "org.picketlink.federation:main" from local module loader @4ee90e9 (roots: {$MYLOACLPATH}\jboss-as-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.performLoadClass(ConcurrentClassLoader.java:398)

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

          ... 12 more

       

      15:50:53,713 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Context [] startup failed due to previous errors

      15:50:53,729 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

       

       

      when we searched the modules of local JBoss, we can see that class(javax.xml.crypto.dsig.XMLValidateContext) in module org/apache/santuario/xmlsec and we added that module in jboss deployment structure file but still same issue.

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