`

从JDeveloper 11.1.1.4.0升级到JDeveloper 11.1.2.2.0,运行JDeveloper 11.1.1.4.0项目时报错的解决方法

    博客分类:
  • ADF
阅读更多

最近把JDeveloper 11.1.1.4.0升级到JDeveloper 11.1.2.2.0,发现原来在JDeveloper 11.1.1.4.0环境开发的项目不能运行了,查了一下资料,发现原来是JDK版本的原因,JDeveloper 11.1.2.2.0环境的jdk版本最低要求是jdk6 update 24,于是到官网上下载了一个最新的jdk7,发现还是不行,会报如下错误:

*** Using HTTP port 7101 ***
*** Using SSL port 7102 ***
C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
.
WLS Start Mode=Development
.
CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\app\zhang\product\11.2.0\dbhome_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\VanDyke Software\Clients\;d:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http:\\hostname:port\console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b51)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Users\zhang\AppData\Local\Temp\trustStore1795206760763835782.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\zhang\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath  weblogic.Server
<2012-8-22 上午10时38分12秒 CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<2012-8-22 上午10时38分12秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<2012-8-22 上午10时38分12秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 17.0-b17 from Sun Microsystems Inc.> 
<2012-8-22 上午10时38分13秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 > 
<2012-8-22 上午10时38分14秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2012-8-22 上午10时38分14秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<2012-8-22 上午10时38分14秒 CST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<2012-8-22 上午10时38分14秒 CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00018. Log messages will continue to be logged in C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.> 
<2012-8-22 上午10时38分14秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.> 
<2012-8-22 上午10时38分20秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<2012-8-22 上午10时38分21秒 CST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<2012-8-22 上午10时38分21秒 CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\access.log00007. Log messages will continue to be logged in C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\access.log.> 
<2012-8-22 上午10时38分25秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<2012-8-22 上午10时38分25秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00017. Log messages will continue to be logged in C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
<2012-8-22 上午10时38分33秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 
[10:38:34 AM] **** Warning: Application HR_EJB_JPA may have been left deployed on the server.  Undeploy it from the admin console.
IntegratedWebLogicServer startup time: 23551 ms.
IntegratedWebLogicServer started.
[Running application HR_EJB_JPA on Server Instance IntegratedWebLogicServer...] 
[10:38:35 AM] EJB Module ModelEJB.jar recognized in project Model.jpr
[10:38:35 AM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
[10:38:35 AM] ----  Deployment started.  ----
[10:38:35 AM] Target platform is  (Weblogic 10.3).
[10:38:35 AM] Retrieving existing application information
[10:38:35 AM] Running dependency analysis...
[10:38:35 AM] Deploying 3 profiles...
[10:38:35 AM] Wrote Web Application Module to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\o.j2ee\drs\HR_EJB_JPA\ViewControllerWebApp.war
[10:38:35 AM] Wrote EJB Module to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\o.j2ee\drs\HR_EJB_JPA\ModelEJB.jar
[10:38:36 AM] Wrote Enterprise Application Module to C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\o.j2ee\drs\HR_EJB_JPA
[10:38:36 AM] Deploying Application...
<2012-8-22 上午10时38分37秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1345603116668' for task '0'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(ModelEJB.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
 Error processing annotations: .'
weblogic.application.ModuleException: Exception preparing module: EJBModule(ModelEJB.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
 Error processing annotations: .
 at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
 at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
 at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 Truncated. see log file for complete stacktrace
Caused By: weblogic.utils.ErrorCollectionException: 

There are 1 nested errors:

weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class oracle.model.HRFacadeBean in Jar C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\o.j2ee\drs\HR_EJB_JPA\ModelEJB.jar : java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'oracle.model.HRFacadeBean'
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addProcessingError(BaseJ2eeAnnotationProcessor.java:1323)
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError(BaseJ2eeAnnotationProcessor.java:1328)
 at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:165)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
 at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
 at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1245)
 at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:397)
 at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
 at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
 at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
 at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
 at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
 at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
 at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
 at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
 at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addProcessingError(BaseJ2eeAnnotationProcessor.java:1322)
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError(BaseJ2eeAnnotationProcessor.java:1328)
 at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:165)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
 Truncated. see log file for complete stacktrace
> 
<2012-8-22 上午10时38分38秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'HR_EJB_JPA'.> 
<2012-8-22 上午10时38分38秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Exception preparing module: EJBModule(ModelEJB.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
 Error processing annotations: .
 at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
 at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
 at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 Truncated. see log file for complete stacktrace
Caused By: weblogic.utils.ErrorCollectionException: 

There are 1 nested errors:

weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class oracle.model.HRFacadeBean in Jar C:\Users\zhang\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\o.j2ee\drs\HR_EJB_JPA\ModelEJB.jar : java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'oracle.model.HRFacadeBean'
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addProcessingError(BaseJ2eeAnnotationProcessor.java:1323)
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError(BaseJ2eeAnnotationProcessor.java:1328)
 at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:165)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
 at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
 at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1245)
 at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:397)
 at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
 at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
 at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
 at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
 at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
 at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
 at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
 at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
 at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addProcessingError(BaseJ2eeAnnotationProcessor.java:1322)
 at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError(BaseJ2eeAnnotationProcessor.java:1328)
 at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:165)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344)
 at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
 Truncated. see log file for complete stacktrace
> 
[10:38:38 AM] Deployment cancelled.
[10:38:38 AM] ----  Deployment incomplete  ----.
[10:38:38 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application HR_EJB_JPA due to error deploying to IntegratedWebLogicServer.
[Application HR_EJB_JPA stopped and undeployed from Server Instance IntegratedWebLogicServer]

 
从报错信息看,也不是别的原因,还是这个jdk的原因,于是把jdk就降到jdk6 update24这个刚能满足要求的版本,发现又会报一个在c:\oracle\..\jdk160_21 找不到jre的错误,细想了一下,jdk160_21是原来JDeveloper 11.1.1.4.0版本用的jdk,所以报这个错是由于JDeveloper 11.1.1.4.0在安装时不需要选择jdk版本,会自带安装jdk160_21,所以JDeveloper 11.1.1.4.0的jdk是安装在C:\oracle\Middleware这个目录下,而JDeveloper 11.1.2.2.0的jdk是在安装JDeveloper时选择的路径处的。所以在运行老的项目时会报找不到jre的错误,那这个问题怎么解决呢?把jdk6 update 24版本的jre拷贝一份放到C:\oracle\Middleware这个目录,重命名为老版本的jdk名字,即jdk160_21,然后再运行项目时就ok.

 

分享到:
评论

相关推荐

    Oracle JDeveloper 11.1.1.7

    Oracle JDeveloper 11.1.1.7是一款强大的集成开发环境(IDE),专为构建、测试和部署Java EE、SOA(面向服务的架构)和Web 2.0应用程序而设计。它由甲骨文公司(Oracle Corporation)开发,是Oracle Fusion ...

    oracle JDeveloper Studio 11.1.1.0.2初学者入门,带demo。

    通过这个初学者入门教程,学习者可以期望掌握如何启动JDeveloper、创建第一个Java EE项目、使用ADF组件、设计和测试用户界面、连接到数据库、调试代码、打包和部署应用等内容。同时,实践demo项目将使理论知识转化为...

    OBIEE11.1.6.2 BP1 补丁升级方法

    ### OBIEE11.1.6.2 BP1 补丁升级方法 #### 关于 Oracle Business Intelligence 11.1.1.6.2 BP1 补丁集 Oracle Business Intelligence (OBIEE) 11.1.1.6.2 BP1 补丁集是一组重要的更新,用于解决在 OBIEE 11.1.1.6 ...

    Jdeveloper 11g(11.1.1.6.0)连接SVN2.0

    本文将详细介绍如何使用JDeveloper 11g (11.1.1.6.0) 连接并操作SVN 2.0。 ### 在 JD 中使用 SVN 的目的 1. **版本控制**:通过与SVN的集成,JDeveloper能够追踪代码的修改历史,提供不同版本之间的比较和合并功能...

    SRDemoSampleADFBC-migrated-to-11.1.13.0

    6. **版本升级**:了解从早期版本的ADF项目迁移到11.1.13.0的过程,包括可能遇到的问题和解决策略。 通过深入研究这个示例,你可以增强对Oracle ADF和JDeveloper 11g的理解,并能够运用这些知识到实际的项目开发中...

    在weblogic上部署ADF 11g应用(英文)

    在文档附录中,提供了针对ADR 11g 11.1.1.4.0和11.1.1.3.0的详细步骤,以适应不同版本的差异。请确保参考相应版本的指南进行操作。 总结,部署ADF 11g应用至WebLogic Server是一项涉及多个步骤的过程,涵盖了从软件...

    oracle jdeveloper 11g 教程

    Oracle JDeveloper 11g 是一个强大的集成开发环境(IDE),专为构建Java应用程序和Oracle融合中间件解决方案而设计。本教程将引导你了解JDeveloper 11g 11.1.1.2.0的主要组件,并教你如何利用它们创建一个基本的Java...

    OracleJ2EE高级技术与JDeveloper概述.pptx

    OracleJ2EE高级技术与JDeveloper概述.pptx

    ADF BC 初始化顺序测试代码

    ADF BC 初始化顺序测试代码,基于Oracle JDeveloper 11.1.1.3.0。

    JDBC.4.0.and.Oracle.JDeveloper.for.J2EE.Development

    本书为J2EE开发者提供了一套全面的指南,不仅介绍了Oracle JDeveloper集成数据库功能的使用方法,还详细讲解了如何通过这些工具构建复杂的数据驱动应用。 ### JDBC 4.0:新一代数据库连接技术 JDBC(Java Database...

    Packtpub.Processing.XML.documents.with.Oracle.JDeveloper.11g.May.2009.rar

    标题 "Packtpub.Processing.XML.documents.with.Oracle.JDeveloper.11g.May.2009.rar" 暗示我们关注的是一个关于使用Oracle JDeveloper 11g处理XML文档的教程或指南,发布于2009年5月。这个压缩包可能包含了详细的...

    JDeveloper(10.3.5&10.1.2)

    总的来说,Oracle EBS OAF与JDeveloper的组合为企业提供了一种强大的开发工具链,它涵盖了从设计、开发到部署的整个应用程序生命周期。JDeveloper 10.1.2和10.1.3版本的更新,不仅增强了开发效率,也拓宽了EBS的可...

    Oracle12c JDeveloper 安装JAR包和1.8版本JDK.zip

    在安装JDeveloper时,通常需要先安装Java Development Kit (JDK),因为它是运行JDeveloper所必需的。 JDK 1.8是Java的一个重要版本,它包含了Java编译器、调试器、JVM(Java虚拟机)以及其他必要的开发工具。对于...

    Packt.Processing.XML.documents.with.Oracle.JDeveloper.11g

    通过阅读《Packt.Processing.XML.documents.with.Oracle.JDeveloper.11g》,读者不仅可以学习到如何使用Oracle JDeveloper 11g处理XML文档的基础知识,还能深入了解各种高级技巧和技术,为实际项目开发提供有力支持...

Global site tag (gtag.js) - Google Analytics