您好,我尝试将 war 部署到 weblogic 12c 中,但出现以下错误

java.lang.ClassNotFoundException: org.apache.camel.Processor when deploying war to weblogic 

以下是日志跟踪:

weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.apache.camel.Processor at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:132) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:244) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:52) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65) Truncated. see log file for complete stacktrace 
 
 
Caused By: java.lang.ClassNotFoundException: org.apache.camel.Processor at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:104) at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543) Truncated. see log file for complete stacktrace 

感谢您的帮助:)

请您参考如下方法:

将 jar 依赖项添加到 pom.xml。如果您的项目不在 Maven 中,请下载此 jar 并添加您的 lib 文件夹。

<dependency> 
 <groupId>org.apache.camel</groupId> 
 <artifactId>camel-core</artifactId> 
 <version>2.9.1</version> 
</dependency> 


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!