I am looking for some suggestions on managing internal jar dependencies.
Ideally, I would like to create a single jar (with its own
block-inf/block.xml file). Then, use this jar within a top level
block.xml.
Like this:
------------------------------------
<container name="TopContainer" >
<classloader>
<classpath> <!-- no jars here, perhaps only platform/system.jar-->
</classpath>
</classloader>
<include name="CoreSystem" id="platform:system" version="1.0" />
<component name='AnotherConsole' class='platform.system.Console'
activation='startup' >
<configuration><port>9001</port> </configuration>
</component>
</container>
Now, if I leave out the definition for component "AnotherConsole", all
works great.
But as it, it gets numerous ClassNotFoundExceptions. All the required
jars for "platform:system" are in its own block-inf/block.xml file;
however, they are not visible to the new component "AnotherConsole".
I do not want to bring the jars to the "TopContainer" block. The idea
being the user of my work should not need to know all my jar dependencies.
Also, I do want my components in platform:system's block.xml to be
deployed under CoreSystem.
I have experimented with Artifact; it either cannot solve my problem or I
have not yet mastered it. I am using Merlin 3.3.0
Any suggestions are appreciated.
Thanks,
Rakesh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]