詹金斯在Glassfish上的部署问题

时间:2019-07-15 11:52:46

标签: jenkins glassfish glassfish-4

我正在尝试在Jenkins的glassfish4服务器上部署应用程序,但这显示了部署失败问题。

我试图查看插件问题和jar文件不匹配。

[DeployPublisher][INFO] Deploying /var/jenkins_home/workspace/BranchApproval/target/CONS_WEB-1.0.0-BUILD-SNAPSHOT.war to container GlassFish 4.x Remote with context null
ERROR: Build step failed with exception
    org.codehaus.cargo.util.CargoException: Cannot create the DeploymentManager
(What is happening here? )
        at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:345)
        at )org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:185)
        at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:80)
        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:165)
        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:135)
        at hudson.FilePath.act(FilePath.java:1078)
        at hudson.FilePath.act(FilePath.java:1061)
        at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:132)
        at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:93)
        at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:105)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)

(What is happening here? )
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074)

(What is happening here? )

        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
        at hudson.model.Run.execute(Run.java:1843)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:429)
    Caused by: (What is main issue I am not getting? ) javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: Exception while connecting to deployer:Sun:AppServer::localhost:4848 : org/glassfish/hk2/Binding
        at 
    Build step 'Deploy war/ear to a container' marked build as failure
    Finished: FAILURE

请:战争文件应该部署在glassfish服务器上,帮帮我

0 个答案:

没有答案