无法通过com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages加载任何资源包

时间:2014-07-31 08:07:00

标签: java deployment jenkins glassfish jenkins-plugins

我有一个Web应用程序并使用jenkins构建和部署到glassfish 3+服务器。但现在我遇到了一个问题。 jenkins正在成功构建应用程序,但是当它尝试将应用程序部署到目标服务器时,它失败并出现以下错误

将/ var / lib / jenkins / workspace / Gordon Converter Dev / target / gordons-dev-deployment.war部署到容器GlassFish 3.x Remote

ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Exception while deploying the app [gordons-dev-deployment] : Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages. Please see server.log for more details.
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220)
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76)
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:920)
at hudson.FilePath.act(FilePath.java:893)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
at hudson.model.Run.execute(Run.java:1735)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)

完成:失败

1 个答案:

答案 0 :(得分:2)

我也遇到了这个错误,我注意到Java已自动更新到最新版本。所以我用Java 1.7.0_131编译应用程序,但Glassfish3仍在Java 1.7.0_121下运行。我的解决方案是重新启动Glassfish,以便它在新版本的Java 1.7.0_131下运行。我想我本可以将我的Java降级回1.7.0_121并用我的编译我的应用程序......这里的底线是确保你使用与Glassfish运行的相同版本的Java进行编译。