I am totally newbie in Jenkins and i have been trying to configure Jenkins  
+ Bitbucket + jboss 6.2.

I have a repository in Bitbucket. I am able to pull the code from Bitbucket 
and Jenkins able to build it. but at the time of deploying in Jboss its 
throwing an error 

*  javax.security.auth.login.LoginException: unable to find LoginModule 
class: org.jboss.security.ClientLoginModule *
 
I have tried with multiple solution but error could not resolve.

*Stack-trace*

Started by user anonymous <http://localhost:8080/user/null>
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 
 > g...@bitbucket.org:DrunkenCooder/spring33helloworld.git # timeout=10
Fetching upstream changes from 
g...@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 g...@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
 57586
<===[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 [37 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.510 s
[INFO] Finished at: 2015-07-10T06:37:42+05:30
[INFO] Final Memory: 13M/228M
[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 6.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 exceptionorg.codehaus.cargo.util.CargoException 
<http://stacktrace.jenkins-ci.org/search?query=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)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy&entity=method>
        at 
org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy&entity=method>
        at 
hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter.deploy&entity=method>
        at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invoke&entity=method>
        at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invoke&entity=method>
        at hudson.FilePath.act(FilePath.java:989) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at hudson.FilePath.act(FilePath.java:967) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at 
hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter.redeploy&entity=method>
        at 
hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.DeployPublisher.perform&entity=method>
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$3.perform&entity=method>
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method>
        at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1053)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2&entity=method>
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post&entity=method>
        at hudson.model.Run.execute(Run.java:1766) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
        at hudson.model.ResourceController.execute(ResourceController.java:98) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
        at hudson.model.Executor.run(Executor.java:374) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: javax.security.auth.login.LoginException 
<http://stacktrace.jenkins-ci.org/search?query=javax.security.auth.login.LoginException>:
 unable to find LoginModule class: org.jboss.security.ClientLoginModule
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:800) 
<http://stacktrace.jenkins-ci.org/search/?query=javax.security.auth.login.LoginContext.invoke&entity=method>
        at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) 
<http://stacktrace.jenkins-ci.org/search/?query=javax.security.auth.login.LoginContext.access$000&entity=method>
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690) 
<http://stacktrace.jenkins-ci.org/search/?query=javax.security.auth.login.LoginContext$4.run&entity=method>
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688) 
<http://stacktrace.jenkins-ci.org/search/?query=javax.security.auth.login.LoginContext$4.run&entity=method>
        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:70)
        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:70)
        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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e9ef6cdd-7895-4015-9608-5d0d71f8279a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to