嗨,我尝试将战争部署到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
感谢您的帮助:)
答案 0 :(得分:1)
将jar依赖项添加到pom.xml。如果您的项目不在Maven中,请下载此jar并添加您的lib文件夹。
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>2.9.1</version>
</dependency>