如何在Weblogic上部署应用程序期间修复“ ClassNotFoundException”?

时间:2019-01-25 15:21:23

标签: jasper-reports maven-ear-plugin

我将maven-ear-plugin版本从2.10.1升级到3.0.0(或3.0.1)。进行此更改后,当我尝试将应用程序部署到weblogic时,出现了与jasperreports插件相关的错误。

此插件的最高版本为2.10.1,没有问题-升级到3.0.0后,该应用程序不希望部署。

[ERROR] Target state: deploy failed on Cluster cl1
[ERROR] weblogic.utils.ErrorCollectionException:
[ERROR] 
[ERROR] There are 2 nested errors:
[ERROR] 
[ERROR] weblogic.application.ModuleException: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JasperReport
[ERROR] at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
[ERROR] at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
[ERROR] at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:175)
[ERROR] at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:170)
[ERROR] at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
[ERROR] at weblogic.work.ContextWrap.run(ContextWrap.java:40)
[ERROR] at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548)
[ERROR] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
[ERROR] at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
[ERROR] Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JasperReport
[ERROR] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)
[ERROR] at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR] at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
[ERROR] at java.lang.Class.getDeclaredMethods(Class.java:1975)
[ERROR] at weblogic.ejb.container.metadata.EjbAnnotationProcessor.processAsyncMethods(EjbAnnotationProcessor.java:1059)
[ERROR] at weblogic.ejb.container.metadata.EjbAnnotationProcessor.processSessionAnnotations(EjbAnnotationProcessor.java:691)
[ERROR] at weblogic.ejb.container.metadata.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:287)
[ERROR] at weblogic.ejb.container.metadata.EjbDescriptorReaderImpl.processAnnotations(EjbDescriptorReaderImpl.java:387)
[ERROR] at weblogic.ejb.container.deployer.EJBMetadataHandler.processAnnotations(EJBMetadataHandler.java:157)
[ERROR] at weblogic.ejb.container.deployer.EJBMetadataHandler.processAnnotations(EJBMetadataHandler.java:152)
[ERROR] at weblogic.ejb.container.deployer.EJBModule.processAnnotations(EJBModule.java:178)
[ERROR] at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:404)
[ERROR] at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:295)
[ERROR] at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
[ERROR] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
[ERROR] at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
[ERROR] ... 8 more

我试图增加jasperreports版本-目前我有6.1.0。我什至提高到了最新的6.7.0,但也无济于事。

新版本的maven-ear-plugin是否有可能导致此类错误的更改?

0 个答案:

没有答案