|
From: Leif M. <le...@ta...> - 2002-12-09 16:38:33
|
San...@DM... wrote: >Hello wrapper users, > >I have developed an application that works fine individually. > Do you mean that your application is working correctly without using the Wrapper, but when using the Wrapper you are getting the error below? >The next step is join both applications. And here is the problem. >I get the next exception: > > --> Wrapper Started as Console > server listening on port 1777. > Launching a JVM... > command: "C:/jdk1.3/bin/java" -Xms16m -Xmx64m -Djava.library.path > ="C:/WINNT/System32" -classpath > From this part of your output, I can see that the Wrapper will only load native libraries from the C:\WINNT\System32 directory. You must have the following in your config file: wrapper.java.library.path=C:/WINNT/System32 > Initializing WrapperManager native library. > Are you installing the Wrapper.DLL file into the C:/WINNT/System32 directory? That will work, but it will mean that all applications on a given machine will have to be using the same version of the Wrapper. I usually keep the Wrapper.DLL and Wrapper.exe files with the application being installed. That also keeps the Windows directory from getting cluttered. (Just personal preference though) > Cannot load npjavanative3: > java.lang.UnsatisfiedLinkError: no npjavanative3 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) > at java.lang.Runtime.loadLibrary0(Runtime.java:749) > at java.lang.System.loadLibrary(System.java:820) > at > com.vitria.roi.javanative.XportNativeImpl.<init>(XportNativeImpl.java:34) > This error usually means that the npjavanative3.DLL file can not be found on the java.library.path. I assume that this is a DLL that is specific to your application? Please verify that it exists. If you wish, starting with Wrapper version 2.2.9 (The one you are running) you can specify multiple directories in the library search path. wrapper.java.library.path.1=C:/WINNT/System32 wrapper.java.library.path.2=C:/Program Files/AppHome/lib Can you go back and check the command you are using to launch your application when not using the Wrapper. Make sure that there are not any other directories where libraries are being loaded. Note that the current directory will only be searched if it is included in the path: wrapper.java.library.path.1=C:/WINNT/System32 wrapper.java.library.path.2=./ >All the paths and libraries are OK in the conf file. > My only guess right now is that your npjavanative3.DLL file is not being found. :-/ Cheers, Leif |