在weblogic安装应用后报异常 'java.lang.NoClassDefFoundError: oracle/dms/http/Request' 处理方法

来源:互联网 发布:centos切换到图形界面 编辑:程序博客网 时间:2024/06/05 12:00

http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html

使用以上官方文档安装后,直接安装应用会出现以下错误

<Error> <Deployer> <UNIBRAU> <adfserver1> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <4434b55da0f9041e:755c3f1:12f4a4c22dd:-8000-0000000000000b3d> <1302639266661> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1302639261332' for task 'weblogic.deploy.configChangeTask.1'. Error is: 'java.lang.NoClassDefFoundError: oracle/dms/http/Request'
java.lang.NoClassDefFoundError: oracle/dms/http/Request
     at java.lang.Class.getDeclaredFields0(Native Method)
     at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
     at java.lang.Class.getDeclaredFields(Class.java:1743)

其实原因就是节点管理器中的JAR包没有被重新加载

有人用这种方法解决了

So far, I have resolved the above error buy updating nodemanager.properties file

I have set the StartScriptEnables=true 

This will load the StartWeblogic.cmd file before running node manager (i believe) so necessary jars are loaded and after that if you apply JRF template, it works fine.

还有人建议以下方法

1) Run setNMProps script

For Windows installations: <MW_HOME>\oracle_common\common\bin\setNMProps.cmd
For Linux/Unix installations: <MW_HOME>/oracle_common/common/bin/setNMProps.sh


2) Restart the NodeManager process

For Windows installations: Stop and start the NodeManager Windows Service
For Linux/Unix installations: Stop nodemanager process by killing it and restart it with <MW_HOME>/wlserver_10.3/server/bin/startNodeManager.sh script

3) Restart the ADF Managed Server and verify that the same error is no longer reported .

4) Confirm in Admin Console that the DMS application is targeted to both the AdminServer and the ADF "Managed Server".

From Admin Console:
- Click in the Deployments section in the left panel
- Locate the application "DMS Application(11.1.1.1.0)" and validate its status is "Active"
- Click on the link in the application name "DMS Application(11.1.1.1.0)", and navigate to the "Targets"
- Verify that both AdminServer and the ADF "Managed Server" are listed

5) Start DMS application if not already started then access http://<host>:<managed server port>/dms/ and confirm dms application is working as expected.

0 0
原创粉丝点击