Hello,

I have never crossed 'fatjar' so far... but I guess that it allows to
pack together multiple jar's and use them in a style like war or ear
by using a fatjar specific classloader.

I further guess that your problem occurs at unmarshalling? This lead
to a question: How do you initialize and call the unmarshaller? Maybe
- if you use it a little bit different - we can solve your problem.

On the other hand - Castor provides a way to specify a domain
classloader that should be used to load the class at unmarshalling -
but I personally haven't used this feature until now. You could put
the fatjar classload as domain classloader.

Hope this helps
Joachim

2009/4/3 darrickc <[email protected]>:
>
> 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.
> --
> View this message in context: 
> http://www.nabble.com/How-to-map-classes-that-are-in-jars-inside-an-executable-jar-tp22872469p22872469.html
> Sent from the Castor - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to