Hi Tennis,
JSTAF.dll is a C++ native library. Java classloaders are not permitted to
share native libraries. Ant uses a separate classloader for each taskdef
which causes this error. But, you can get around this problem by creating
an antlib specification that combines all of your tasks. For how to do
this see the blog post at
http://blog.kdgregory.com/2010/08/ant-taskdef-and-running-out-of-permgen.html
.
Note the following (found by googling for the error message) describes
this issue in more detail:
http://stackoverflow.com/questions/5432630/ant-taskdef-java-lang-unsatisfiedlinkerror-jstaf-library-is-already-loaded-i
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Tennis Smith <tennis_sm...@yahoo.com>
To: staf-users@lists.sourceforge.net,
Date: 05/30/2013 12:52 PM
Subject: [staf-users] What Could Cause This?
Hi,
I'm not much of a java user. I'm getting this error from an ant script:
C:\tcwork\e439645218c38e5a\common.xml:2749:
java.lang.UnsatisfiedLinkError: Native Library C:\STAF\bin\JSTAF.dll
already loaded in another classloader
Any ideas how this can happen?
--
Tks,
-Tennis
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users