Components that use an XBean based SU can create a classloader
for the SU.  The jbi maven plugin will help a bit and package the
jars in the SU.   However, there is still one manual step involved
(which should be automatic in 3.1).  You need to add the following
tags at the top of your xbean.xml / servicemix.xml file in the SU:
  <classpath>
    <location> xxx </location>
  </classpath>

where xxx is the path of the jar relative in the SU zip.
So you should have:
  <classpath>
    <location>lib/oro-2.0.8.jar</location>
    <location>lib/commons-net-1.4.1.jar</location>
  </classpath>

On 10/5/06, robottaway <[EMAIL PROTECTED]> wrote:

I have a SU which uses the ftp poller in a light weight container. When
deploying the SA I have created I get exception:
java.lang.NoClassDefFoundError: org/apache/commons/net/SocketClient. I
included dependencies

                <dependency>
                        <groupId>oro</groupId>
                        <artifactId>oro</artifactId>
                        <version>2.0.8</version>
                </dependency>
                <dependency>
                        <groupId>commons-net</groupId>
                        <artifactId>commons-net</artifactId>
                        <version>1.4.1</version>
                </dependency>

In the SU's pom.xml. What else do I need to do for the FTP Poller to work?
--
View this message in context: 
http://www.nabble.com/Problem-with-dependencies-tf2386188.html#a6651741
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to