u012273212
ryX59421
采纳率50%
2018-01-17 07:52

weblogic部署war项目报错java.lang.ClassNotFoundException

5
已采纳

<Failure occurred in the execution of deployment request with ID "621173883586108" for task "12" on [partition-name: DOMAIN]. Error is: "weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor"
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor
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.springframework.beans.factory.config.BeanPostProcessor
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
Truncated. see log file for complete stacktrace


<Stack trace for message 149004
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor
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.springframework.beans.factory.config.BeanPostProcessor
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
Truncated. see log file for complete stacktrace

java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor找不到这个类,但是war包里面jar中有
图片说明

应用使用ext+spring+servlet,之前在tomcat里一直都是正常的,现在领导要求使用weblogic,安装了weblogic12c,但是部署项目时失败,麻烦哪位大神帮忙解决一下,不胜感激

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • baijun44 baijun44 3年前

    有很大可能是你web.xml引用spring相关xml配置使用了模糊匹配,改成使用完整匹配

    点赞 1 评论 复制链接分享
  • u012273212 ryX59421 3年前

    图片说明

    web.xm开头内容这样,在下面就是一堆的servlet了,这是别人离职前交接给我的项目,之前一直用tomcat跑的好好地,现在领导要求用weblogic,可是我本地
    打的war在weblogic里就报错,之前那个离职的人留下的war就能发布,我对比了他的war里面的jar和我本地是一样的,配置文件也都是一样,找不到原因,
    为什么我本地打出来的war就发布不了

    点赞 评论 复制链接分享
  • u012273212 ryX59421 3年前

    按照你说的orderAndExport里面把jar勾选,重新打了war部署还是报这个错误

    点赞 评论 复制链接分享
  • morgerton 白萝卜blb 3年前

    jar包找不到,删了重新添加试试,或者是orderAndExport下面对号没加吧

    点赞 评论 复制链接分享
  • cangwu cangwu 3年前

    在weblogic管理界面,使用打包好的war包重新部署

    点赞 评论 复制链接分享

相关推荐