XUggler java.lang.UnsatisfiedLinkError: xuggle (Not found in java.library.path)

176 views
Skip to first unread message

Angelo Immediata

unread,
Mar 7, 2015, 3:09:21 PM3/7/15
to xuggle...@googlegroups.com
hi there

I'm very new to XUggler
I'm using xuggler 5.4 with maven. This is my pom.xml fragment:

<dependency>
<groupId>xuggle</groupId>
<artifactId>xuggle-xuggler</artifactId>
<version>${xuggle.xuggler.version}</version>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>logback-core</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>commons-cli</artifactId>
<groupId>commons-cli</groupId>
</exclusion>
</exclusions>
</dependency>

I'm excluding slf4j and logback because I have a newer version in my spring based web application. I'm excluding commons-cli because I don't need to built xuggler (but i have the same error also if I include commons-cli)
Under my eclipse project all works pretty good and by using xuggler i'm able to create thumbnails from video
Now I need to deploy the Web App in IBM WAS 8.
Now by reading the XUggler documentation I saww the following:

"
Using Xuggler with J2EE Containers
Xuggler contains Native Code and therefore requires special installation with J2EE containers such as Tomcat, Jetty or Glassfish. It must be installed in a location where the J2EE container loads it, rather than a specific web application (unless you can guarantee that your application is the only application in the server that will load Xuggler). You will have to look up the specific documentation for your specific container, but as an example, for Tomcat make sure you install xuggle-xuggler.jar file to $CATALINA_HOME/shared/lib. See tomcat JNI notes for the reason why.
"
I can guarantee that my application is the only application in loading xuggler
In any case, when I try to run the same code who worked under eclipse I get the following error:
"
2015-03-07 15:40:59,519 67436 [WebContainer : 3] WARN com.xuggle.ferry.JNILibrary - Failure: library load of library: xuggle; url: /opt/IBM/WebSphere/
wp_profile/temp/xuggle/xuggle2908329163095446051.tmp; error: {}
java.lang.UnsatisfiedLinkError: /opt/IBM/WebSphere/wp_profile/temp/xuggle/xuggle2908329163095446051.tmp (/lib64/libc.so.6: version `GLIBC_2.11' not fou
nd (required by /opt/IBM/WebSphere/wp_profile/temp/xuggle/xuggle2908329163095446051.tmp))
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1091) ~[na:1.6.0]
at java.lang.System.load(System.java:498) ~[na:1.6.0]
at com.xuggle.ferry.JNILibrary.doJNILoad(JNILibrary.java:213) [xuggle-xuggler-5.4.jar:5.4.0]
at com.xuggle.ferry.JNILibrary.unpackLibrary(JNILibrary.java:293) [xuggle-xuggler-5.4.jar:5.4.0]
at com.xuggle.ferry.JNILibrary.loadFromClasspath(JNILibrary.java:195) [xuggle-xuggler-5.4.jar:5.4.0]
at com.xuggle.ferry.JNILibrary.load(JNILibrary.java:176) [xuggle-xuggler-5.4.jar:5.4.0]
at com.xuggle.ferry.JNILibrary.load(JNILibrary.java:158) [xuggle-xuggler-5.4.jar:5.4.0]
.
.
.
.
.
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864) [com.ibm.ws.runtime.jar:na]
2015-03-07 15:40:59,531 67448 [WebContainer : 3] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle; version: 5; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
2015-03-07 15:40:59,575 67492 [WebContainer : 3] WARN n.s.e.constructs.web.filter.Filter - Throwable thrown during doFilter on request with URI: /wps/CustomWfActions/comiajax/media/plupload and Query: nullHandler processing failed; nested exception is java.lang.UnsatisfiedLinkError: xuggle (Not found in java.library.path)
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.UnsatisfiedLinkError: xuggle (Not found in java.library.path)
at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1287) ~[spring-webmvc-4.1.5.RELEASE.jar:4.1.5.RELEASE]
"

Can anybody tell me where I'm wrong? why does it work on my eclipse/tomcat but it doesn't under IBM WAS?

Any tips is really apreciated

regards
Angelo
Reply all
Reply to author
Forward
0 new messages