aspose file tools*
The moose likes BEA/Weblogic and the fly likes Setting WEBLOGIC_CLASSPATH in commEnv.sh does not help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Setting WEBLOGIC_CLASSPATH in commEnv.sh does not help" Watch "Setting WEBLOGIC_CLASSPATH in commEnv.sh does not help" New topic
Author

Setting WEBLOGIC_CLASSPATH in commEnv.sh does not help

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi

I am working on a Dev build version of WebLogic server where the libraries in modules folder are not completely available yet..

So I've tried using libraries from 11g version for oracle.adf.share_11.1.1/ adf-share-support.jar for class oracle.adf.share.security.authentication.AuthenticationServlet.

But even after setting WEBLOGIC_CLASSPATH in oracle_common/common/bin/commEnv.sh, above mentioned class is not loaded and throws below error -

java.lang.NoClassDefFoundError: Could not initialize class oracle.adf.share.security.authentication.AuthenticationServlet

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:408)

at java.lang.Class.newInstance(Class.java:433)

at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:252)

at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:245)

at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:274)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.newServletInstanceIfNecessary(StubSecurityHelper.java:357)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:309)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:286)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

Adding other libraries like JRF works by following above approach works. Am not sure what is wrong or missing here?

As a few alternative approaches tried adding the oracle.adf.share_11.1.1/ adf-share-support.jar to WLS ext directory and domain's lib directory..both the ideas did not work.

Kindly suggest.

Thank you.


Praveen
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 178

Does you domain have JRF installed ?


http://devwebcl.blogspot.com/
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
As I mentioned at this time I do not have JRF libraries packaged with the WLS build.
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 178

Ok. I didn't read that.

Well, it is mandatory to install those libraries.
The Windows installer has built-in (10.3.6)

http://devwebcl.blogspot.com/2012/04/wls-extensions-jrf-owsm-etc.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting WEBLOGIC_CLASSPATH in commEnv.sh does not help