Thursday, May 17, 2012

java.lang.NoClassDefFoundError: oracle/dms/http/Request

when we try to start a OSB server using nodemanager by default you will get

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)
        at 

plus bunch of  other cnf errors

it is because the nodmanager does not inherit the classpath of your soa environment , to fix this 
in nodemanager.proeperties  change the value for  StartScriptEnabled. to true

this will use the classpath of setDomainEnv.sh invoked in startWebLogic.sh


if you want to customize more like heap values /3rd party jars only for this specific instance

then you can flip that value back to false and edit the admin console(server->configuration->server start)  to have those classes


attached a screen shot which is self explanatory on what what values required. To populate the class path and java argument , first start the server using startManagedWebLogic look into the generated server.log file and grab them


1 comment: