|
From: David H. <da...@sm...> - 2006-05-31 00:36:15
|
Bill, Others may tell me I am wrong, but you should only need a wrapper.dll in your directory. The way that Leif coded it, was to look for the platform specific version (catering for 32bit/64bit windows) first, and if it couldn't load that, then to simply load the wrapper.dll (also for legacy support). So I wouldn't worry about the fact you don't have a wrapper-x86-32.dll. I noticed from the output of your log files, it keeps mentioning wrappertesta.jar which your classpath doesn't have (Java is complaining about the fact it cannot find it). One thing I would suggest trying, since the classpath has a couple of spaces in it, is to single quote (or maybe double quote) the thing after the equals sign on the classpath, e.g. # Java Classpath (include wrapper.jar ) Add class path elements as # needed starting from 1 wrapper.java.classpath.1='C:\Program Files\VCS Server\wrapper.jar' wrapper.java.classpath.2='C:\Program Files\VCS Server\wrappertest.jar' wrapper.java.classpath.3='C:\Program Files\VCS Server\ImageServer.jar' Or # Java Classpath (include wrapper.jar ) Add class path elements as # needed starting from 1 wrapper.java.classpath.1="C:\Program Files\VCS Server\wrapper.jar" wrapper.java.classpath.2="C:\Program Files\VCS Server\wrappertest.jar" wrapper.java.classpath.3="C:\Program Files\VCS Server\ImageServer.jar" And see if that gets you any further. I don't expect that it will, but it just might! David _____ From: wra...@li... [mailto:wra...@li...] On Behalf Of Bill Rees Sent: 30 May 2006 13:43 To: wra...@li... Subject: [Wrapper-user] Issues With Windows v3.2 Hello, I'm trying to use v3.2 of the Java Service Wrapper and have run into an issue that I can't seem to get past. Here is my wrapper.conf file: #******************************************************************** # TestWrapper Properties # # NOTE - Please use src/conf/wrapper.conf.in as a template for your # own application rather than the values used for the # TestWrapper sample. #******************************************************************** # Java Application wrapper.java.command=java wrapper.debug=true # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar ) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=C:\Program Files\VCS Server\wrapper.jar wrapper.java.classpath.2=C:\Program Files\VCS Server\wrappertest.jar wrapper.java.classpath.3=C:\Program Files\VCS Server\ImageServer.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=C:\Program Files\VCS Server\vcsNative # Java Additional Parameters wrapper.java.additional.1=-Duser.timezone=UTC wrapper.java.additional.2=-Duser.dir="C:\Program Files\VCS Server" # Initial Java Heap Size (in MB) wrapper.java.initmemory=128 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=256 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=ImageServer #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=server.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=FINEST # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=10mb # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=10 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper Windows Properties #******************************************************************** # Title to use when running as a console wrapper.console.title=VCS #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.ntservice.name=VCS # Display name of the service wrapper.ntservice.displayname=VCS # Description of the service wrapper.ntservice.description=VCS # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=AUTO_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false Here is the output that is produced from the log when I attempt to install and run the service: DEBUG | wrapper | 2006/05/30 11:32:16 | Service command: "C:\Program Files\VCS Server\wrapper.exe" -s wrapper.conf STATUS | wrapper | 2006/05/30 11:32:17 | VCS installed. STATUS | wrapper | 2006/05/30 11:32:23 | --> Wrapper Started as Service DEBUG | wrapper | 2006/05/30 11:32:23 | Using tick timer. DEBUG | wrapperp | 2006/05/30 11:32:23 | server listening on port 32000. DEBUG | wrapper | 2006/05/30 11:32:23 | Classpath element, wrapper.java.classpath.2 , does not exist: C:\Program Files\VCS Server\wrappertesta.jar STATUS | wrapper | 2006/05/30 11:32:23 | Launching a JVM... DEBUG | wrapper | 2006/05/30 11:32:23 | command: "C:\WINDOWS\system32\java.exe" - Duser.timezone=UTC -Duser.dir="C:\Program Files\VCS Server" -Xms128m -Xmx256m -Djava.library.path="C:\Program Files\VCS Server\vcsNative" -classpath "C:\Program Files\VCS Server\wrapper.jar;C:\Program Files\VCS Server\wrappertesta.jar;C:\Program Files\VCS Server\ImageServer.jar" - Dwrapper.key="xEe2o3phm7_2ayOo" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=640 -Dwrapper.version="3.2.0" -Dwrapper.native_library= "wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp ImageServerDEBUG | wrapper | 2006/05/30 11:32:23 | JVM started (PID=3952) INFO | jvm 1 | 2006/05/30 11:32:23 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleAppINFO | jvm 1 | 2006/05/30 11:32:23 | Exception in thread "main" DEBUG | wrapper | 2006/05/30 11:32:23 | JVM process exited with a code of 1, setting the wrapper exit code to 1. ERROR | wrapper | 2006/05/30 11:32:23 | JVM exited while loading the application. DEBUG | wrapper | 2006/05/30 11:32:23 | JVM was only running for 0 seconds leading to a failed restart count of 1. DEBUG | wrapper | 2006/05/30 11:32:23 | Waiting 5 seconds before launching another JVM. Running as a console produces this output: wrapper | Attempt to set the console title failed: The handle is invalid. (0x6) wrapper | --> Wrapper Started as Console wrapper | Using tick timer. wrapperp | server listening on port 32000. wrapper | Launching a JVM... wrapper | command: "c:\WINDOWS\system32\java.exe" -Duser.timezone=UTC -Duser.dir="C:\Program Files\VCS Server" -Xms128m -Xmx256m - Djava.library.path="C:\Program Files\VCS Server\vcsNative" -classpath "C:\Program Files\VCS Server\wrapper.jar;C:\Program Files\VCS Server\wrappertest.jar;C:\Program Files\VCS Server\ImageServer.jar" - Dwrapper.key="E6uyLkDxlffbFLn5" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=4408 -Dwrapper.version="3.2.0" -Dwrapper.native_library= "wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp ImageServer wrapper | JVM started (PID=4508) jvm 1 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@e39a3e jvm 1 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org jvm 1 | jvm 1 | Wrapper Manager: JVM #1 jvm 1 | Running a 32-bit JVM. jvm 1 | Wrapper Manager: Registering shutdown hook jvm 1 | Wrapper Manager: Using wrapper jvm 1 | Load native library. One or more attempts may fail if platform specific libraries do not exist. jvm 1 | Loading native library failed: wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library.path jvm 1 | Loaded native library: wrapper.dll jvm 1 | Calling native initialization method. jvm 1 | Initializing WrapperManager native library. jvm 1 | Java Executable: c:\WINDOWS\system32\java.exe jvm 1 | Windows version: 5.1.2600 jvm 1 | Java Version : 1.5.0_06-b05 Java HotSpot(TM) Client VM jvm 1 | Java VM Vendor : Sun Microsystems Inc. jvm 1 | jvm 1 | WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@c5c3ac, args[]) called by thread: main jvm 1 | Open socket to wrapper...Wrapper-Connection jvm 1 | Opened Socket from 31000 to 32000 jvm 1 | Send a packet KEY : E6uyLkDxlffbFLn5 jvm 1 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) wrapperp | accepted a socket from 127.0.0.1 on port 31000 wrapperp | read a packet KEY : E6uyLkDxlffbFLn5 wrapper | Got key from JVM: E6uyLkDxlffbFLn5 wrapperp | send a packet LOW_LOG_LEVEL : 1 wrapperp | send a packet PING_TIMEOUT : 30 wrapperp | send a packet PROPERTIES : (Property Values) wrapper | Start Application. wrapperp | send a packet START : start 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 PROPERTIES : (Property Values) jvm 1 | Monitoring of the JVM thread count will be delayed for 1 seconds. jvm 1 | Received a packet START : start jvm 1 | calling listener.start() jvm 1 | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete. jvm 1 | WrapperSimpleApp: invoking main method jvm 1 | Send a packet START_PENDING : 5000 wrapperp | read a packet START_PENDING : 5000 wrapper | JVM signalled a start pending with waitHint of 5000 millis. jvm 1 | Send a packet START_PENDING : 5000 jvm 1 | WrapperSimpleApp: start(args) end. Main Completed=false, exitCode=null jvm 1 | returned from listener.start() jvm 1 | Send a packet STARTED : wrapperp | read a packet START_PENDING : 5000 wrapper | JVM signalled a start pending with waitHint of 5000 millis. wrapperp | read a packet STARTED : wrapper | JVM signalled that it was started. wrapperp | send a packet PING : ping jvm 1 | Received a packet PING : ping jvm 1 | Send a packet PING : ok jvm 1 | Non-daemon thread count = 4 - 1(system) = 3 wrapperp | read a packet PING : ok wrapper | Got ping response from JVM jvm 1 | Got Control Signal 2->201 jvm 1 | Handled signal jvm 1 | Processing control event(WRAPPER_CTRL_CLOSE_EVENT) jvm 1 | WrapperSimpleApp: controlEvent(201) Stopping jvm 1 | WrapperManager.stop(0) called by thread: Wrapper-Control-Event-Monitor jvm 1 | Send a packet STOP : 0 wrapperp | read a packet STOP : 0 wrapper | JVM requested a shutdown. (0) wrapper | wrapperStopProcess(0) called. wrapper | Sending stop signal to JVM wrapperp | send a packet STOP : NULL jvm 1 | Received a packet STOP : jvm 1 | Non-daemon thread count = 4 - 1(system) = 3 jvm 1 | Thread, Wrapper-Control-Event-Monitor, handling the shutdown process. jvm 1 | calling listener.stop() jvm 1 | WrapperSimpleApp: stop(0) jvm 1 | returned from listener.stop() jvm 1 | Send a packet STOPPED : 0 wrapperp | read a packet STOPPED : 0 wrapper | JVM signalled that it was stopped. jvm 1 | Closing socket. jvm 1 | Closed socket: java.net.SocketException: socket closed wrapperp | socket read no code (closed?). wrapperp | server listening on port 32001. jvm 1 | Server daemon shut down jvm 1 | calling System.exit(0) wrapper | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. wrapper | JVM exited normally. wrapper | <-- Wrapper Stopped There was no file wrapper-windows-x86-32.dll included in the zip file I downloaded. Am I missing something? There is a wrapper.dll file which I copied to my native directory. thanks in advance, Bill Rees |