users@glassfish.java.net

RE: Re: glassfish directory? for user-libraries (.dll or .so)

From: Martin, Ray <armart3_at_tycho.ncsc.mil>
Date: Mon, 27 Apr 2009 12:45:42 -0400

Sir,

Using glassfish-v2u2 - /usr/local/glassfish-u2v2

Placed my shared library and jar file (NeticaJ) into
/usr/local/glassfish-v2u2/lib - which according to server.log is the
java.library.path

I restart glassfish from the command line. My service assembly appears
with a list-jbi-service-assemblies. I run my service. I continue to
get the java.lang.UnsatisfiedLink error.

In server.log, I see that my code called the NeticaJ.jar, which attempts
to call the shared library - but, no good. Any idea?

Thanx,
Ray

-----Original Message-----
From: Sanjeeb.Sahoo_at_Sun.COM [mailto:Sanjeeb.Sahoo_at_Sun.COM] On Behalf Of
Sahoo
Sent: Saturday, April 04, 2009 2:48 AM
To: users_at_glassfish.dev.java.net
Subject: Re: glassfish directory? for user-libraries (.dll or .so)

A java program looks for shared libraries in directories specified via
java.library.path system property. In server.log if you look at the
command line used to launch appserver, you shall notice it is set to
<glassfish-home>/lib dir. So, place your .so or .dll files in
<glassfish-home>/lib dir.

Thanks,
Sahoo

Martin, Ray wrote:
> Where does one put shared libraries from third parties when deploying
> an app to glassfish?
>
> i deploy my java code, which calls the third party java code which in
> turn wants to call a .so (Linux) or .dll(Windows) i placed the third
> party jar file into <glassfish-home>/lib/endorsed and
> <glassfish-home/domains/domain1/lib/ext because i did not know which
> was correct. now i just need to get the shared library placed into
> the correct place.
>
> thanx.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net