?
Solved

How to set java.library.path in Sun Java Web Server

Posted on 2009-04-22
6
Medium Priority
?
654 Views
Last Modified: 2013-11-21
Hi,

May i know how to configure or set the java.library.path in Sun Java Web Server 7?

thanks in advance :)
0
Comment
Question by:edisonffs
  • 3
  • 3
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 24212175
think you can just set the LD_LIBRARY_PATH environemnt variable before starting it up

0
 

Author Comment

by:edisonffs
ID: 24212299
Possible to guide me on the commands to do it?

anyway i did a  and this is the print out:
/sun/webserver7/lib:/sun/webserver7/jdk/jre/lib/s
parc/server:/sun/webserver7/jdk/jre/lib/sparc:/sun/webserver7/jdk/jre/lib/sparc/native_threads:/sun/webserver7/https-bkpppv
ms/web-app/bkpppvms/ppvms/lib::/sun/webserver7/lib:/sun/webserver7/lib:/sun/webserver7/jdk/jre/lib/sparc/server:/sun/webser
ver7/jdk/jre/lib/sparc:/sun/webserver7/jdk/jre/lib/sparc/native_threads::/sun/webserver7/lib::/usr/lib

Basically, i have inserted a .dll file in/sun/webserver7/https-bkpppv
ms/web-app/bkpppvms/ppvms/lib (which is already shown in the print out for java.library.path) but yet i still get this exception:

java.lang.UnsatisfiedLinkError: no pgpi in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at PGPi.<clinit>(PGPi.java:250)
        at PGPServlet.encryptFile(PGPServlet.java:70)
        at PGPServlet.service(PGPServlet.java:39)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
        at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)


0
 

Author Comment

by:edisonffs
ID: 24212308
the print out was retrieved using System.getProperty("java.library.path")
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 24212324
what OS?

0
 

Author Comment

by:edisonffs
ID: 24212348
i m on Solaris 10
0
 
LVL 92

Accepted Solution

by:
objects earned 1500 total points
ID: 24212350
you shouldn't be using a dll, they are for windows

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question