Upload * .so files to Websphere

My JSP is configured to run on Websphere under HP-UX.

I have some .jar files and a .so file containing the classes that my program should execute.

By putting my .jar files in a folder \MyProgram\WEB-INF\lib\, I was able to get them to work.

However, I see UnsatisfiedLinkError, caused by the fact that my lib.so file is not recognized.

One of the ways I found was:

  • In the "Administrative Console", go to "Environment → Shared Libraries → Create

  • Enter the location of the .jar files in the Classpath, enter the location of the .so file in the Native Library path

  • In the administrative console, go to Applications → Application Types → Enterprise Applications

  • In the MyProgram section → Shared library links → Library sharing, assign a library to the program by moving it from the available to the selected one.

I have two questions:

  • Is it possible to simply get the .jar and .so file to work from my folder \lib\

  • If I can’t, can I specify the class path and the source library path from the folder of my application? Something like loading my .war application with a websphere variable directory %MYPROGRAM%\WEB-INF\lib\lib.soinstead of placing the file on a physical server with an absolute path C:\IBM\WebSphere\AppServer\bin\lib.so?

[EDIT-01] Further information below:

Received error: "Error 500: java.lang.UnsatisfiedLinkError: com.chrysalisits.crypto.LunaAPI.Initialize () V"

Websphere LunaSA HSM / . : libLunaAPI.sl, libLunaAPI.so, LunaJCASP.jar, LunaJCESP.jar. IBM Websphere V8 → → , , *.so HP-UX, . - , Websphere. .

: , myProgram.war , WinSCP . , , \WEB-INF\lib \. , HSM LunaSA.

** PS. , . .

+5
1

, , Native Library Path, . , , /opt/apps/WebSphere/AppServer/bin.

, , WebSphere WAS_LIBPATH SHLIB_PATH, . ( $WAS_HOME/bin/setupCmdLine.sh.)

, , - luna .

+1

All Articles