Yes, the jar is there.  I do notice the name is slightly different.  It
includes the version of the jar within the name like jaxrpc.jar has become
jaxrpc-1.4.jar.



Gert Vanthienen wrote:
> 
> Benamin,
> 
> 
> Can you check if the resulting SU archive contains a lib directory with 
> the required JAR in there?  Normally, if you add a dependency to a SU 
> pom.xml file, it is copied to the target/xxx-...-installer/lib directory 
> to be packaged with the SU.
> 
> 
> Gert
> 
> Benamin wrote:
>> I'm building both a JBI component and a Service Unit.  I have now figured
>> out
>> how to get ServiceMix to recognize the jars in the JBI component (for
>> others
>> that are having this problem, see my next post for solution), but I am
>> still
>> having problems with the Service Unit.  
>> 
>> I am building a Service Unit based on a JSR 181 component.  The third
>> party
>> jar I am adding is for Web Service support.  I added  jaxrpc.jar to the
>> dependency section of the pom, so that it would build correctly, but at
>> runtime I get the no class def found error for one of the classes in
>> jaxrpc.jar.  The version of ServiceMix is 3.1.  Thanks.
>> 
>> 
>> 
>> Gert Vanthienen wrote:
>>> L.S.,
>>>
>>> Some additional questions...
>>> - Are you building a service unit or a JBI component?
>>> - What version of ServiceMix are you using?
>>> - Can you give an example of a third party jar that causes you the
>>> problem?
>>>
>>> Gert
>>>
>>> Benamin wrote:
>>>> I can build ServiceMix components with third party jars, but I get
>>>> errors
>>>> at
>>>> runtime, such as no class found errors.  It appears the jars do get
>>>> packaged
>>>> within the zip file that ServiceMix creates in the target directory. If
>>>> I
>>>> put the jars into the $SERVICEMIX_HOME/lib dir manually, it works, I
>>>> don't
>>>> get the NO class found errors.
>>>>
>>>> Why does SMIX seem to ignore the jars it packages in the .zip file?
>>>>   
>>>
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/runtime-error-when-referencing-third-party-jars-tf4098572s12049.html#a11668138
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to