appliation X --|
|
|--block 1
| |
| |---jar 1
| |---jar 2
block 1: is a component with jar dependencies. It runs fine on this
own.
application X is a block that uses block 1 and declares it in its
block.xml as a component.
If I don't declare jar 1, and jar 2 in application X's block.xml as
resource dependecy for its classloader, merlin will not load the
component.
I get following error:
WARN ] (applicationX.classloader.scanner): Ignoring component type
[com.....Block1.MyComponent] as the implementation class contains a
reference to the class [com/mycompany/mycomponent/MyComponentException]
which does not exist in the classloader.
I thought that block 1's, block.xml that defines the jar 1 and jar 2 as
resrouce dependency, would result in the jars being automatically
loaded by merlin's container manager due to the hierarchial processing
scheme.
What am I doing wrong? I know I am still somewhat vague about the
composite block and component declrations.
Above problem, suggests that ALL jar dependencies for ALL components
need to be defined at the top level by the consumer of the services of a
composite block.
i.e. if Appliation X, is using block 1, block 2, block 3,...etc. then
all jar dependencies for block1, block2, block3 need to be defined in
Appliation X' block.xml
appreciate anyone shedding some light on this for me.
Korosh.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]