Hi, That issue is solved by giving the name that in jbi.xml. (ie my-sl)
Now, My component on loading uses one of the class in my jar file which is inside shared lib. But i am getting class not found exception.(but that class is present inside the jar file) How to find that classes or jar in the shared lib is loaded ? Barath. Barath wrote: > > Hi , > Thank you. > > I created a shared lib my-sl and gave dependency for myjarfile.jar. > my-sl-1.0-SNAPSHOT.zip contains myjarfile.jar file in lib folder. > > In my component's xbean i included this xml tag > > <classpath> > <library>my-sl-1.0-SNAPSHOT</library> > </classpath> > > 1 . I copied the my-sl-1.0-SNAPSHOT.zip to hot deploy. > 2 . But when i deploy the SA in smx 3.2 its giving the following error , > > > <loc-message>org.springframework.beans.f > actory.BeanDefinitionStoreException: Unexpected exception parsing XML > document f > rom file > [C:\apache-servicemix-3.2\data\smx\service-assemblies\my-sa\version_1 > \sus\my-comp\my-comp-su\xbean.xml]; nested exception is > java.lang.IllegalSta > teException: No such shared library: my-sl-1.0-SNAPSHOT</loc-message >> > > Query : > > 1 . What i should include in <library> tag.(shared lib name or my jar file > name. i tried both even with the file extension too). ? > 2 . Can i use this in smx 3.1.2 ? > > Barath. > > > > > gnodet wrote: >> >> In the last sentence I meant "to reference the SL (shared library) >> from the SUs". >> >> On Wed, Feb 20, 2008 at 11:36 AM, Guillaume Nodet <[EMAIL PROTECTED]> >> wrote: >>> Not really, this is unfortunately a limitation of the JBI specification. >>> The easiest solution is to embed your jar into your 3 SUs. >>> However, ServiceMix can allow to work around the problem if you create >>> a shared library (which is a JBI artifact embedding a collection of >>> jars) and if >>> you add the needed entries in the SU xbean.xml (see bottom of >>> http://servicemix.apache.org/classloaders.html) to reference the SA >>> from the SUs. >>> >>> >>> >>> On Wed, Feb 20, 2008 at 10:35 AM, Barath <[EMAIL PROTECTED]> wrote: >>> > >>> > Hi, >>> > I have a Service Assembly with 3 Service - Units. >>> > >>> > All 3 SUs require a set of common classes and I would like to keep >>> the SA >>> > self-contained. >>> > >>> > Is there any way I can jar the common classes and add them to the >>> SA, >>> > something like a dependency. >>> > I am assuming the structure to be something like >>> > >>> > Service Assembly >>> > - SU1 >>> > - SU2 >>> > - SU3 >>> > - common.jar >>> > >>> > Is this possible? >>> > >>> > Thanks for the reply, >>> > Barath >>> > -- >>> > View this message in context: >>> http://www.nabble.com/Common-jars-for-a-Service---Assembly-tp15585373s12049p15585373.html >>> > Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> > >>> > >>> >>> >>> >>> -- >>> Cheers, >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> >> >> >> >> -- >> Cheers, >> Guillaume Nodet >> ------------------------ >> Blog: http://gnodet.blogspot.com/ >> >> > > -- View this message in context: http://www.nabble.com/Common-jars-for-a-Service---Assembly-tp15585373s12049p15590247.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
