Hi,
I printed the MyEndpoint.java classloader in that my shared lib is not
there.
System.out.println("This classloader : " + getClass().getClassLoader());
When i gave the below statement in MyEndpoint.java,
Object cl =
getClass().getClassLoader().getClass().forName("com.test.util.Constanttest").newInstance();
I am getting this error,
ERROR - MyComponent - Error processing exchange InOut[
id: ID:172.16.5.11-1183c6eef9c-20:0
status: Active
role: provider
service: {http://test.http}http
endpoint: httpendpoint
in: null
]
java.lang.ClassNotFoundException: com.test.util.Constanttest in classloader
c
om.test.util.Constanttest
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiPa
rentClassLoader.java:206)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.test.http.MyEndpoint.handleParameters(MyEndpoint.java:1
81)
Barath.
--
View this message in context:
http://www.nabble.com/Common-jars-for-a-Service---Assembly-tp15585373s12049p15613067.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.