-
1. Native library already loaded in another classloader ?! (Axis2)
izgur Jan 11, 2011 5:15 AM (in response to izgur)Anybody?:)
I heard there are 2 possibilities.
1st: try other version of the library (i'll test now)
2nd: write your own classloader
I believe the 1st possibility isn't going to work, but I'll try. So, my question:
??? HOW TO WRITE YOUR OWN CLASSLOADER FOR JBOSS ???
or If anybody knows how to send a file over SFTP in BPEL
Anybody tried ?
-
2. Native library already loaded in another classloader ?! (Axis2)
izgur Jan 11, 2011 10:49 AM (in response to izgur)Make a shared lib ? How ?
-
3. Native library already loaded in another classloader ?! (Axis2)
jaikiran Jan 11, 2011 11:28 AM (in response to izgur)Igor JStarter wrote:
Make a shared lib ? How ?
Try placing it in JBOSS_HOME/server/<servername>/lib folder.
-
4. Native library already loaded in another classloader ?! (Axis2)
izgur Jan 12, 2011 3:16 AM (in response to jaikiran)No change if I copy the jar to /server/default/lib/.
If I don't have the jar in the jboss/bin, i always get:
com.chilkatsoft.chilkatJNI.new_CkSFtp()J
If I have the jar in the jboss/bin and don't load the jar into the axis2 archive when making it:
com.chilkatsoft.chilkatJNI.new_CkSFtp()J
If I have the jar in the jboss/bin and load it when making axis2 archive:
native library already loaded...
And there are no changes... no matter where I copy the library
-
5. Native library already loaded in another classloader ?! (Axis2)
izgur Jan 12, 2011 3:23 AM (in response to izgur)If I understand this right...
Because I have chilkat in jboss/bin, it probably loaded by the classloader...
And because I loaded chilkat into the axis2 archive, it will load this library too -> error: already loaded...
I have to tell axis2 that he should use the SHARE lib, which is /server/default/lib ?? And not take his attached library ...
Is this right ?
What is more... I read about changing <attribute name="UseJBossWebLoader"> to TRUE could force JBoss to load every library just once.
Anybody did that ?
I don't even find that .... shuold be in jbossweb-tomcat55.sar/META-INF/jboss-service.xml, but I don't find that in JBoss5.1 in the jbossweb.sar