出现在JDeveloper11克11112错误(error appears in jdevelope

2019-10-18 11:07发布

我需要在JDeveloper11克编译我的项目提供帮助。 以前我的应用程序(JSP + servlet的)工程进展顺利在JDeveloper 10g中与OC4J(在WAR文件部署)。 但因为我迁移到JDeveloper 11g中,它出现几个错误是这样的:

<Nov 27, 2009 1:13:50 PM WIT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1259302429721' for task '2'. Error is: 'java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType'
java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 Truncated. see log file for complete stacktrace
> 
<Nov 27, 2009 1:13:50 PM WIT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'TA_HelpDesk'.> 
<Nov 27, 2009 1:13:50 PM WIT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 Truncated. see log file for complete stacktrace
> 
[01:13:50 PM] ####  Deployment incomplete.  ####
[01:13:50 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application TA_HelpDesk due to error deploying to IntegratedWebLogicServer.
[Application TA_HelpDesk stopped and undeployed from Server Instance IntegratedWebLogicServer]
<Nov 27, 2009 1:16:55 PM WIT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1259302613288' for task '3'. Error is: 'java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType'
java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
 Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
 Truncated. see log file for complete stacktrace
> 
<Nov 27, 2009 1:16:55 PM WIT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'helpdesk'.> 
<Nov 27, 2009 1:16:55 PM WIT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
 Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType
 at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
 at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
 Truncated. see log file for complete stacktrace
> 

和错误编译如下:

Warning: <Nov 27, 2009 1:16:44 PM WIT> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.> 
Warning: There are 1 nested errors:
Warning: weblogic.servlet.internal.dd.compliance.ComplianceException: The element servlet-class, "helpdesk_project.CaptchaServiceSingleton" must be a subclass of "javax.servlet.Servlet".
Warning:  at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDescriptorError(BaseComplianceChecker.java:74)
Warning:  at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDescriptorError(BaseComplianceChecker.java:80)
Warning:  at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.isClassAssignable(BaseComplianceChecker.java:149)
Warning:  at weblogic.servlet.internal.dd.compliance.ServletComplianceChecker.checkServlet(ServletComplianceChecker.java:104)
Warning:  at weblogic.servlet.internal.dd.compliance.ServletComplianceChecker.check(ServletComplianceChecker.java:42)
Warning:  at weblogic.servlet.internal.dd.compliance.ComplianceUtils.checkCompliance(ComplianceUtils.java:48)
Warning:  at weblogic.servlet.jsp.JspcInvoker.checkCompliance(JspcInvoker.java:145)
Warning:  at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:198)
Warning:  at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:377)
Warning:  at weblogic.application.compiler.WARModule.compile(WARModule.java:236)
Warning:  at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
Warning:  at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:37)
Warning:  at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
Warning:  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
Warning:  at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
Warning:  at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
Warning:  at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
Warning:  at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
Warning:  at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
Warning:  at weblogic.application.compiler.Appc.runBody(Appc.java:200)
Warning:  at weblogic.utils.compiler.Tool.run(Tool.java:158)
Warning:  at weblogic.utils.compiler.Tool.run(Tool.java:115)
Warning:  at weblogic.application.compiler.Appc.main(Appc.java:259)
Warning:  at weblogic.appc.main(appc.java:14)

然后在部署过程中不完全的状态结束。 我应该怎么办呢? 多谢。

Answer 1:

它看起来像你缺少oracle.dmt.op.re.base.Enum在classpath,因此:

java.lang.ClassNotFoundException: oracle.dmt.op.re.base.Enum$EnumType

添加${ORACLE_HOME}/dmt/oputil.jar和/或${ORACLE_HOME}/dmt/opreapi-batch.jar在classpath(不知道哪一个包含缺少的类,但他们往往反正一起使用)。

然后,重新运行APPC作为第二误差(与helpdesk_project.CaptchaServiceSingleton可能与第一个问题。



Answer 2:

似乎不能找到这个类:抛出java.lang.ClassNotFoundException:oracle.dmt.op.re.base.Enum $ EnumType

需要包括上述类也,你需要找到包含该类的罐子。



文章来源: error appears in jdeveloper 11g 11112