Friday, July 22, 2011

Class Loader in weblogic

The class loading hierarchy in the weblogic will be
System -- where commanenv and setdomain env will be called
Domain -- where the domain/.lib libraries will be loaded.
Application -- where application specific jar will be loaded. The root class loader was application loader for an application,
WebApp -- for particular to webapplication. web-inf/lib

So in order to deploy only webapplication without ejb we can inform classloaders to load particular jars in the .xml with the tag <prefer-application-package> from 10.3.4. before <prefer-web-inf-package>. so it will load the classes from web-inf.

We have one good feature in 10.3.4 called FilteringClassLoaders which overrides the classes loaded by weblogic server allowing you to use your libraries.

we have one feature in 10.3.4 Classloader analysis tool -- which check the class conflicts and classpath conflicts. we can also find where the conflict was and help us to resolve the conflict.

we can get the Analysing tool by adding wls-cat at the end of the url of console.

http://www.oracle.com/technetwork/middleware/weblogic/overview/index.html


No comments:

Post a Comment