|
From: <Ale...@Qu...> - 2005-11-30 15:57:58
|
Hello, Wrapper users, [Duplicate because I sent the first copy from the wrong address - moderator please discard first copy] I am having trouble running my application under the Wrapper because it is unable to load the wrapper.dll. As you can see from the console log below, the Wrapper code can "see" the dll, but the system gives an UnsatisfiedLinkError. As you can see at the foot of the log, a dir command using the path cut-and-pasted from the error message says that the DLL is there. I have reloaded the wrapper.dll from the unzipped issue kit a couple of times, and viewed it with the Microsoft Dependency Walker to see if it is corrupted, and it does not appear to be. I have run the WrapperTest from the distribution directory and it works fine. My application still will not run even when I set its library search to point to the copy of the dll being used by TestWtqapper i.e. wrapper.java.library.path.1=C:\Wrapper\wrapper_win32_3.1.2\lib I know this problem has come up before on the list, but I did not see any resolution posted. Thanks in advance for any assistance. Alec Cawley C:\Shared>wrapper -c QuentinWrapper.conf wrapper.debug=true wrapper | --> Wrapper Started as Console wrapper | Using system timer. wrapperp | server listening on port 32000. wrapper | Launching a JVM... wrapper | command: "c:\j2sdk1.4.2_08\bin\java" -Djava.endorsed.dirs="F:\\jars" -Xms128m -Xmx512m -Djava.library.path="F:\\dlls" -classpath "F:\\QuentinManager.jar" -Dwrapper.key="xdiEbq3Ldtgq7x9r" -Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.use_system_time="TRUE" -Dwrapper.version="3.1.2" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 com.quantel.QuentinManager.QuentinWrapper quentin.properties wrapper | JVM started (PID=2832) jvm 1 | WrapperManager class initialized by thread: main Using classloader: null jvm 1 | Wrapper Manager: JVM #1 jvm 1 | Wrapper Manager: Registering shutdown hook jvm 1 | Wrapper Manager: Using wrapper jvm 1 | Loading native library failed: wrapper.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper in java.library.path jvm 1 | jvm 1 | WARNING - Unable to load the Wrapper's native library 'wrapper.dll'. jvm 1 | The file is located on the path at the following location but jvm 1 | could not be loaded: jvm 1 | F:\dlls\wrapper.dll wrapper | Pause reading child output to share cycles. wrapperp | accepted a socket from 127.0.0.1 on port 3231 wrapperp | read a packet KEY : xdiEbq3Ldtgq7x9r wrapper | Got key from JVM: xdiEbq3Ldtgq7x9r wrapperp | send a packet LOW_LOG_LEVEL : 1 wrapperp | send a packet PING_TIMEOUT : 30 wrapper | Start Application. wrapperp | send a packet START : start jvm 1 | Please verify that the file is readable by the current user wrapper | Pause reading child output to share cycles. jvm 1 | and that the file has not been corrupted in any way. jvm 1 | System signals will not be handled correctly. jvm 1 | jvm 1 | Java Version : 1.4.2_08-b03 Java HotSpot(TM) Client VM jvm 1 | Java VM Vendor : Sun Microsystems Inc. jvm 1 | jvm 1 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org jvm 1 | jvm 1 | WrapperManager.start(com.quantel.QuentinManager.QuentinWrapper@a32b, args["quentin.properties"]) called by thread: main jvm 1 | Open socket to wrapper... wrapper | Pause reading child output to share cycles. jvm 1 | Opened Socket jvm 1 | Send a packet KEY : xdiEbq3Ldtgq7x9r jvm 1 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=3231]) jvm 1 | Received a packet LOW_LOG_LEVEL : 1 jvm 1 | Wrapper Manager: LowLogLevel from Wrapper is 1 jvm 1 | Received a packet PING_TIMEOUT : 30 jvm 1 | Wrapper Manager: PingTimeout from Wrapper is 30000 jvm 1 | Received a packet START : start jvm 1 | calling listener.start() jvm 1 | Not headless wrapper | Pause reading child output to share cycles. jvm 1 | 30-Nov-2005 15:25:46 : SEVERE : QuentinManager T3.0.18.14 jvm 1 | 30-Nov-2005 15:25:46 : SEVERE : Invalid format 10000 in format table wrapper | CTRL-C trapped. Shutting down. wrapper | wrapperStopProcess(0) called. wrapper | CTRL-C trapped. Forcing immediate shutdown. wrapper | JVM did not exit on request, terminated wrapper | <-- Wrapper Stopped C:\Shared>dir F:\dlls\wrapper.dll Volume in drive F has no label. Volume Serial Number is 40A7-B465 Directory of F:\dlls 01/10/2004 12:24 65,536 wrapper.dll 1 File(s) 65,536 bytes 0 Dir(s) 23,068,835,840 bytes free C:\Shared> |