Archived Forum Post

Index of archived forum posts

Question:

java.lang.UnsatisfiedLinkError: Native Library /usr/lib/libchilkat.so already loaded in another classloader problem

Mar 21 '13 at 01:28

I am testing chilkat MHT java api. but , tomcat is down. I don't know reason. T.T help me..~~

2013. 3. 19 ¿?5:12:41 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
½?¢: The web application [] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@413afcd0]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@6d9d3901]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2013. 3. 19 ¿?5:12:41 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
½?¢: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@113dbe08]) and a value of type [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil.FactorySettings] (value [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil$FactorySettings@6d09a8df]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2013. 3. 19 ¿?5:12:41 org.apache.catalina.core.ApplicationContext log
dº¸: Initializing Spring root WebApplicationContext
DEFAULT_BINDNAME : test
bindName : test
===== [com.test.persistent.TestDataSource] =====
Native code library failed to load.
java.lang.UnsatisfiedLinkError: Native Library /usr/lib/libchilkat.so already loaded in another classloader
2013. 3. 19 ¿?5:12:44 org.apache.coyote.http11.Http11Protocol pause
dº¸: Pausing Coyote HTTP/1.1 on http-80
2013. 3. 19 ¿?5:12:44 org.apache.coyote.http11.Http11Protocol pause
dº¸: Pausing Coyote HTTP/1.1 on http-443
2013. 3. 19 ¿?5:12:45 org.apache.catalina.core.StandardService stop
dº¸: Stopping service Catalina

Answer

See this: http://stackoverflow.com/questions/1403788/java-lang-unsatisfiedlinkerror-no-dll-in-java-library-path


Answer

I save chilkat.jar to tomcat lib folder. and ld_path_library folder has libchilkat.so. but , error happened.