2009-06-30 14:54:48 UTC
Hello, Im a student implementing Hackystat.org' s SOA services with JSW using integration method 3.
I implemented a WrapperListener on mac osx which starts a RESTLet Service in a Jar.
I pass the Listener to the WrapperManager after setting the configuration properties via System.setProperty(...).
It seem like The service gets started (even the debug says "Not using wrapper"), but there is no way to shut it down anymore, even not with the kill command. The WrapperManager.start() never returns but the SOA service gets started properly. In VisualVM i cant see any new JVM but I guess thats normal because its stared as unix service.
Properties set:
System.setProperty("wrapper.java.mainclass","SensorBaseExecutionAgent");
System.setProperty("wrapper.java.classpath.1","../lib/wrapper.jar");
System.setProperty("wrapper.java.library.path.1","../lib");
System.setProperty("wrapper.java.additional.auto_bits","TRUE");
System.setProperty("wrapper.debug","TRUE");
System.setProperty("wrapper.console.format","PM");
System.setProperty("wrapper.console.loglevel","INFO");
System.setProperty("wrapper.logfile","../logs/wrapper.log");
System.setProperty("wrapper.logfile.format","LPTM");
System.setProperty("wrapper.logfile.loglevel","INFO");
System.setProperty("wrapper.logfile.maxsize","0");
System.setProperty("wrapper.logfile.maxfiles","0");
System.setProperty("wrapper.syslog.loglevel","NONE");
System.setProperty("wrapper.console.title","sensorbase");
System.setProperty("wrapper.ntservice.name","sensorbase");
System.setProperty("wrapper.ntservice.displayname","sensorbase");
System.setProperty("wrapper.ntservice.description","thisissensorbase");
System.setProperty("wrapper.native_library", "wrapper");
System.setProperty("wrapper.version", "3.3.5");
Console:
WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@553f5d07
WrapperManager: Initializing...
WrapperManager Debug: JVM #1
WrapperManager Debug: Running a 64-bit JVM.
WrapperManager Debug: Registering shutdown hook
WrapperManager Debug: Not using wrapper. (key not specified)
WrapperManager Debug: Load native library. One or more attempts may fail if platform specific libraries do not exist. This is NORMAL and is only a problem if they all fail.
WrapperManager Debug: Loaded native library: libwrapper-macosx-universal-64.jnilib
WrapperManager Debug: Calling native initialization method.
WrapperJNI Debug: Inside native WrapperManager initialization method
WrapperManager Debug: Java Version : 1.6.0_13-b03-211 Java HotSpot(TM) 64-Bit Server VM
WrapperManager Debug: Java VM Vendor : Apple Inc.
WrapperManager Debug: OS Name : Mac OS X
WrapperManager Debug: OS Arch : x86_64
WrapperManager Debug:
WrapperManager Debug: Startup runner thread started.
WrapperManager Debug: Control event monitor thread started.
WrapperManager Debug: WrapperManager.start(SensorbaseServiceWrapper@19632847, args[]) called by thread: main
WrapperManager Debug: calling WrapperListener.start()
WrapperManager Debug: Waiting for WrapperListener.start runner thread to complete.
WrapperManager Debug: WrapperListener.start runner thread started.
Sensorbase Start.
Loading SensorBase properties from: /Users/herve/.hackystat/sensorbase/sensorbase.properties
06/30 16:45:22 Starting sensorbase.
06/30 16:45:22 Host:
http://localhost:9876/sensorbase/
06/30 16:45:22 SensorBase Properties:
sensorbase.admin.email =
admin@hackystat.org
sensorbase.admin.passw
...
...
WrapperManager Debug: returned from WrapperListener.start()
Anyway, it says that it returned but I am not able to stop it and my method calling WrapperManager.start never returns and everything is frozen.
Thank you a lot for your help.
Best Regards,
Harvey