gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:23:50 27 4
gpt4 key购买 nike

我有一个 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)

完成:失败

最佳答案

我也遇到了这个错误,我注意到 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 进行编译。

关于java - 无法通过 com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages 加载任何资源包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25053784/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com