Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

JNLP loads Sigar native libs via file: but not http:

$
0
0

I have an app that is using jnlp as the launcher. It uses the Sigar libraries which require dynamically loaded native libraries for platform specific code.

For purposes of debugging this I have two JNLP files, one that references the codebase using file: urls and the other using http: urls. The http urls point to localhost apache which is properly serving the files. I can watch JNLP download them during its launch sequence via apache logs so I know the files are getting to my app properly.

 

Here are the two codebase tags

 

codebase="file:/Users/siberian/Documents/workspace_mnis/MNIS/localhost/" 
href="file:/Users/siberian/Documents/workspace_mnis/MNIS/localhost/minis.jnlp"

 

and

 

codebase="http://localhost/" 
href="http://localhost/mnis.jnlp"

 

If I double click the file: version it works fine. If I load it via my browser it works fine.

 

If I double click or browser load the http: version it fails to find the dynamic libraries with this error:

 

JNLPClassLoader: Finding library liblibsigar-universal64-macosx.dylib.dylib
[AWT-EventQueue-0] DEBUG Sigar  - no libsigar-universal64-macosx.dylib in java.library.path
org.hyperic.sigar.SigarException: no libsigar-universal64-macosx.dylib in java.library.path

 

Now, the interesting to note is that file that it says it cant find liblibsigar-universal64-macosx.dylib.dylib

 

Note the prefix extra 'lib' and postfix extra '.dylib'.

 

There are notes on the Sigar/vmware forums about similar problems with no solutions.

 

The core question is, why is this acting differently in a file: context vs an http: context?

 

Also of note, I have unsigned and resigned all of my files, there are no signature errors that I can see.

 

Also: JaNeLa tells me all is fine


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>