In WebLogic 10.0, I use the Shared J2EE Libraries library ( http://download.oracle.com/docs/cd/E11035_01/wls100/programming/libraries.html ) to group several jars that should have been available in several ears. These banks were located on the way to the system class, and I'm trying to move them to the shared lib from there.
My problem:
- in the WLS administration console, I click on the shared library (called "theSharedLib") in the "Deployments" section
- The list of "Applications linking to this library" is empty.
- I can also deploy lib using weblogic.Deployer, but the next time the server restarts, it complains about the missing reference library when loading the reference application
So it seems that the link takes effect at startup, but at the time of WLS execution somehow forgets about it (do I need some magic trick here?).
I could also achieve this:
- undeploy theSharedLib (no complaints)
- undeploy someReferencingApp (ok)
- deploy someReferencingApp (error! missing lib)
- expand theSharedLib (ok)
- expand someReferencingApp (ok; the application gets the list in the web console, however, the next time you restart or after random other deployments, the list becomes empty again)
The structure of a shared ear lib in a blasted catalog format:
- META-INF
- MANIFEST.MF
- application.xml
- Lib
- dummyejb.jar( - )
MANIFEST.MF :
..
-: theSharedLib
-: 1.0
: 1.0.0
..
application.xml ( dummyejb ejb).
:
, META-INF/weblogic-application.xml, :
<? xml version = "1.0"? <
< WebLogic- >
< - >
< - > theSharedLib < - >/;
< - > 1,0 </- >
& ; - > 1.0.0 </- >
< > </ >
</- >
</WebLogic- >
? - , (1) , , (2) ?
, lib , sys. ?
!