I gave your suggestion a try but still get no class def errors:  Bean
'ftpClientPool'; nested exception is java.lang.NoClassDefFoundError:
org/apache/commons/net/SocketClient....

This is what I did.  In my servicemix.xml, it looks like this:
  <classpath>
    <location>lib/commons-net-1.4.1.jar</location>
  </classpath>
  ....

For my SU directory structure looks like this:

test-su.zip
   -->/lib
       -->commons-net-1.4.1.jar
   -->servicemix.xml

For my SA directory structure looks like this:

test-sa.zip
   -->test-su.zip
   -->/META-INF
       -->jbi.xml


In the servicemix.xml file, I also tried these:
  <classpath>
    <location>/lib/commons-net-1.4.1.jar</location>
  </classpath>

and
  <classpath>
    <location>./lib/commons-net-1.4.1.jar</location>
  </classpath>

to no avail.  Any other suggestions?  Thanks.

-los



gnodet wrote:
> 
> You should bundle these jars in the SU.
> In addition you currently need to specify
> these jars in the servicemix.xml file
> in your SU using:
>   <classpath>
>     <location>lib/commons-net-1.4.1.jar</location>
>   </classpath>
> 
> On 10/9/06, moraleslos <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm finally coming along with my first SA deployment.  My question is
>> that
>> I'm currently trying to run my FTPPoller class but there are some
>> dependencies that need to be addressed, i.e.
>> org/apache/commons/net/SocketClient, etc.  I've been dropping these
>> dependent jars into the %servicemix_home%/lib/optional directory. 
>> Instead
>> of doing this, can I just package the dependent jars inside the SA (or
>> the
>> SU) itself, e.g.:
>>
>> test-sa.zip
>>    -->/lib
>>       -->commons-net-1.4.1.jar
>>    -->/META-INF
>>       -->jbi.xml
>>    -->test-su.zip
>>
>> Thanks in advance.
>>
>> -los
>> --
>> View this message in context:
>> http://www.nabble.com/class-dependencies-in-SA--tf2412903.html#a6725809
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: 
http://www.nabble.com/class-dependencies-in-SA--tf2412903.html#a6737298
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to