Nithya,
You don't have to specify the <classpath/> in your xbean.xml since
ServiceMix 3.1 (cfr. http://servicemix.apache.org/classloaders.html) you
put the JAR file in the lib/ folder in your SU. Even better, if you are
using the Maven JBI plugin, you can simply add a dependency to the
JSR-181 project's pom.xml to get the JAR file in the SU automatically.
Gert
nvijayak wrote:
Hi,
I have the following directory structure for a JSR181 project:
apache-servicemix-3.2.1/examples/Calculator
apache-servicemix-3.2.1/examples/Calculator/calc-http-su
apache-servicemix-3.2.1/examples/Calculator/calc-jsr181-su
apache-servicemix-3.2.1/examples/Calculator/calc-sa
In my JSR181-su I need to use a jar file. In the
calc-jsr181-su/src/main/resources/xbean.xml, I have added the following
<classpath><location>foo.jar</location></classpath>
Where do I place this foo.jar so that it get embeeded inside the SU? I tried
placing it in Calculator, calculator-jsr181-su directories and it still
complains of ClassNotFound
Could someone please tell me where the jar needs to be placed in the
directory structure?
Thanks,
Nithya