Hi,

I'm in the process of moving from Maven 1 and Tomcat to Maven 2 and
Jetty.  I'm having a problem, though, that I'm not understanding.

I have a program (that is a 3rd party app, not open source) that calls
some native libraries.  When I run the program (a webapp) in
standalone Jetty, it works fine.  Also, when I write a little sample
app that tries to load the native libs from my command line it works
fine.  But, when I try to run the webapp from within the Jetty6/Maven2
plugin it doesn't work.

I'm running: mvn -X -Djava.library.path=/usr/local/lib jetty6:run

I have a ServletContextListener that can check that the
java.library.path is set correctly in the servlet loaded by Jetty
(System.getProperty()); then it tries to System.loadLibrary(). 
However, when I run this in the Maven2/Jetty6 plugin, unlike whenI run
it in the standalone Jetty, I get: java.lang.UnsatisfiedLinkError: no
awj2k in java.library.path

There seems to be something about trying to load a library from within
Maven2/Jetty6 that is not working for me and I'm stumped.  Any ideas? 
The debugging statements output from mvn haven't given me any clues.

Thanks, Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to