0 Replies Latest reply on Jul 10, 2015 2:26 AM by barun.vishwakarma

    javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.ClientLoginModule

    barun.vishwakarma

       


       

      Its been more than 3 days couldn't figure out what is wrong with my Jenkins.

      I have Jenkins job, which pull the source from Bitbucket and build and Deploy in Jboss 5.1.

      But at the time of deployment I am getting the bellow exception tried multiple solution but I am getting the same annoying error.

       

      Stack-trace

      Started by user anonymous
      Building in workspace /var/lib/jenkins/jobs/Spring33helloWorld/workspace
      > /usr/src/git-1.9.4/bin-wrappers/git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > /usr/src/git-1.9.4/bin-wrappers/git config remote.origin.url git@bitbucket.org:DrunkenCooder/spring33helloworld.git # timeout=10
      Fetching upstream changes from git@bitbucket.org:DrunkenCooder/spring33helloworld.git
      > /usr/src/git-1.9.4/bin-wrappers/git --version # timeout=10
      using GIT_SSH to set credentials
      > /usr/src/git-1.9.4/bin-wrappers/git -c core.askpass=true fetch --tags --progress git@bitbucket.org:DrunkenCooder/spring33helloworld.git +refs/heads/*:refs/remotes/origin/*
      > /usr/src/git-1.9.4/bin-wrappers/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
      > /usr/src/git-1.9.4/bin-wrappers/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
      Checking out Revision 1aea05d4f0c1934e883886197f88563e0823f153 (refs/remotes/origin/master)
      > /usr/src/git-1.9.4/bin-wrappers/git config core.sparsecheckout # timeout=10
      > /usr/src/git-1.9.4/bin-wrappers/git checkout -f 1aea05d4f0c1934e883886197f88563e0823f153
      > /usr/src/git-1.9.4/bin-wrappers/git rev-list 1aea05d4f0c1934e883886197f88563e0823f153 # timeout=10
      Parsing POMs
      [workspace] $ /usr/java/jdk1.7.0_79/bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.6.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.3/boot/plexus-classworlds-2.5.2.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.3/conf/logging jenkins.maven3.agent.Maven32Main /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.3 /var/cache/jenkins/war/WEB-INF/lib/remoting-2.50.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.6.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.6.jar 35011
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Executing Maven:  -B -f /var/lib/jenkins/jobs/Spring33helloWorld/workspace/pom.xml install
      [INFO] Scanning for projects...
      [INFO]                                                                        
      [INFO] ------------------------------------------------------------------------
      [INFO] Building spring3 mvc maven 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring3-mvc-maven-xml-hello-world ---
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/Spring33helloWorld/workspace/src/main/resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ spring3-mvc-maven-xml-hello-world ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring3-mvc-maven-xml-hello-world ---
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/Spring33helloWorld/workspace/src/test/resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ spring3-mvc-maven-xml-hello-world ---
      [INFO] No sources to compile
      [INFO]
      [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring3-mvc-maven-xml-hello-world ---
      [INFO] No tests to run.
      [JENKINS] Recording test results
      [INFO]
      [INFO] --- maven-war-plugin:2.2:war (default-war) @ spring3-mvc-maven-xml-hello-world ---
      [INFO] Packaging webapp
      [INFO] Assembling webapp [spring3-mvc-maven-xml-hello-world] in [/var/lib/jenkins/jobs/Spring33helloWorld/workspace/target/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT]
      [INFO] Processing war project
      [INFO] Copying webapp resources [/var/lib/jenkins/jobs/Spring33helloWorld/workspace/src/main/webapp]
      [INFO] Webapp assembled in [170 msecs]
      [INFO] Building war: /var/lib/jenkins/jobs/Spring33helloWorld/workspace/target/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war
      [INFO] WEB-INF/web.xml already added, skipping
      [INFO]
      [INFO] --- maven-install-plugin:2.4:install (default-install) @ spring3-mvc-maven-xml-hello-world ---
      [INFO] Installing /var/lib/jenkins/jobs/Spring33helloWorld/workspace/target/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war to /var/lib/jenkins/.m2/repository/com/mkyong/spring3-mvc-maven-xml-hello-world/1.0-SNAPSHOT/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war
      [INFO] Installing /var/lib/jenkins/jobs/Spring33helloWorld/workspace/pom.xml to /var/lib/jenkins/.m2/repository/com/mkyong/spring3-mvc-maven-xml-hello-world/1.0-SNAPSHOT/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.916 s
      [INFO] Finished at: 2015-07-09T23:34:54+05:30
      [INFO] Final Memory: 15M/223M
      [INFO] ------------------------------------------------------------------------
      [JENKINS] Archiving /var/lib/jenkins/jobs/Spring33helloWorld/workspace/pom.xml to com.mkyong/spring3-mvc-maven-xml-hello-world/1.0-SNAPSHOT/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.pom
      [JENKINS] Archiving /var/lib/jenkins/jobs/Spring33helloWorld/workspace/target/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war to com.mkyong/spring3-mvc-maven-xml-hello-world/1.0-SNAPSHOT/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war
      channel stopped
      Deploying /var/lib/jenkins/jobs/Spring33helloWorld/workspace/target/spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war to container JBoss 5.x Remote
        The undeployment phase of the redeploy action has failed: org.codehaus.cargo.util.CargoException: Cannot undeploy deployable org.codehaus.cargo.container.deployable.WAR[spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war]
      ERROR: Build step failed with exception
      org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.deployable.WAR[spring3-mvc-maven-xml-hello-world-1.0-SNAPSHOT.war]
           at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:216)
           at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)
           at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
           at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
           at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
           at hudson.FilePath.act(FilePath.java:989)
           at hudson.FilePath.act(FilePath.java:967)
           at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
           at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
           at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
           at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1053)
           at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
           at hudson.model.Run.execute(Run.java:1766)
           at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537)
           at hudson.model.ResourceController.execute(ResourceController.java:98)
           at hudson.model.Executor.run(Executor.java:374)
      Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.ClientLoginModule
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:800)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:595)
           at org.codehaus.cargo.tools.jboss.JBossDeployer.getDeploymentManager(JBossDeployer.java:176)
           at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:71)
           at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212)
           ... 17 more
      javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.ClientLoginModule
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:800)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:595)
           at org.codehaus.cargo.tools.jboss.JBossDeployer.getDeploymentManager(JBossDeployer.java:176)
           at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:71)
           at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212)
           at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)
           at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
           at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
           at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
           at hudson.FilePath.act(FilePath.java:989)
           at hudson.FilePath.act(FilePath.java:967)
           at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
           at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
           at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
           at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1053)
           at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
           at hudson.model.Run.execute(Run.java:1766)
           at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537)
           at hudson.model.ResourceController.execute(ResourceController.java:98)
           at hudson.model.Executor.run(Executor.java:374)
      Build step 'Deploy war/ear to a container' marked build as failure
      Finished: FAILURE