Hi,

I am not sure this is possible at all. To my knowledge, Java so far has
no support for nested JARs; unless there's special classloaders involved
like with web archives (WAR) or enterprise archives (EAR).

So I am afraid there's currently no solution to this problem.

Regards
Werner

darrickc wrote:
> We use fatjar to build an executable jar that contains multiple
> projects/jars. Some of the objects we want to marshal/unmarshal are in a jar
> within the executable jar. How can I specify the proper mapping in castor so
> that it can find the classes within the other jars. Currently I am getting
> java.lang.NoClassDefFoundError. Here is an example:
> 
> Exe.jar contains main.jar which is our main application. It also contains
> DomainModel.jar which has the classes we need to marshal/unmarshal using the
> mapping file. So currently our mapping file tries to reference the class
> type directly via com/company/project/class without specifying which jar
> file its in. 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to