You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Leif M. <le...@ta...> - 2006-08-09 23:50:52
|
Andreas showed you this page, which shows how to install a working application as a service: http://wrapper.tanukisoftware.org/doc/english/launch-win.html#service Before you do so however, you need to be getting it working as a standalone console application. See this page: http://wrapper.tanukisoftware.org/doc/english/introduction.html It looks like you are attempting to use the "ADVANCED" integration method 3 to get running. Please don't until you understand Eclipse, Java, and the Wrapper a little bit more. You will only cause yourself headaches. Please start out by using integration method #1 to get up and running. Read over that page thoroughly and then post back if you have any questions. The problem you are running into below is with your classpath. It is not finding your classes. You most likely do not want to be placing your wrapper files in your package however. Cheers, Leif tweety123 wrote: > When I run JSWrapper.bat (i.e. App.bat renamed), I get the error : > > wrapper | --> Wrapper Started as Console > wrapper | Launching a JVM... > jvm 1 | java.lang.NoClassDefFoundError: JSWrapper > jvm 1 | Exception in thread "main" > wrapper | JVM exited while loading the application. > > > This' my folder structire: > Under 'Test' project folder, I have put: > 1. the bin folder which contains the batch files > 2. conf folder containing wrapper.conf > 3. the class, java file which implements WrapperListener class. > > Is there anything wrong with the directory structure? > > |
|
From: <Win...@je...> - 2006-08-09 17:00:27
|
I am running in console mode right now and am unable to get the application running using the WrapperSimpleApp. Below is my log file. Does anyone have an idea what's happening? The main() method of my application simply instantiates itself and calls another method to get into the event loop (it's a GUI application). Thanks in advance. -wr wrapper | --> Wrapper Started as Console wrapper | Using tick timer. wrapperp | server listening on port 32000. wrapper | Launching a JVM... wrapper | command: "C:\jdk\jdk1.5.0_05\bin\java.exe" -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../comfyj-2.1.jar;../jniwrap-3.1.jar;../winpack-3.0.jar;../ddm-cda-desktop-4.0-app.jar" -Dwrapper.key="5iHZKaFwxhyjtBT_" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=3640 -Dwrapper.version="3.2.1" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.jeppesen.ebiz.ddm.cda.desktop.ui.DesktopApp wrapper | JVM started (PID=2220) jvm 1 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@133056f jvm 1 | Wrapper (Version 3.2.1) 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:\jdk\jdk1.5.0_05\bin\java.exe jvm 1 | Windows version: 5.1.2600 jvm 1 | Java Version : 1.5.0_05-b05 Java HotSpot(TM) Client VM jvm 1 | Java VM Vendor : Sun Microsystems Inc. jvm 1 | jvm 1 | Control event monitor thread started. jvm 1 | Startup runner thread started. jvm 1 | WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@16a55fa, args[]) called by thread: main jvm 1 | Communications runner thread started. jvm 1 | Open socket to wrapper...Wrapper-Connection jvm 1 | Failed attempt to bind using local port 31000 jvm 1 | Opened Socket from 31001 to 32000 jvm 1 | Send a packet KEY : 5iHZKaFwxhyjtBT_ jvm 1 | handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=31001]) wrapperp | accepted a socket from 127.0.0.1 on port 31001 wrapperp | read a packet KEY : 5iHZKaFwxhyjtBT_ wrapper | Got key from JVM: 5iHZKaFwxhyjtBT_ 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 | PingTimeout from Wrapper is 30000 jvm 1 | Received a packet PROPERTIES : (Property Values) jvm 1 | Received a packet START : start jvm 1 | calling WrapperListener.start() jvm 1 | Waiting for WrapperListener.start runner thread to complete. jvm 1 | WrapperListener.start runner thread started. 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 | WrapperSimpleApp: main method completed jvm 1 | WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=null jvm 1 | WrapperListener.start runner thread stopped. jvm 1 | returned from WrapperListener.start() jvm 1 | Send a packet STARTED : jvm 1 | Startup runner thread stopped. jvm 1 | Wrapper Manager: ShutdownHook started jvm 1 | WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook jvm 1 | Send a packet STOP : 0 wrapperp | read a packet STARTED : wrapper | JVM signalled that it was started. 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 | Thread, Wrapper-Shutdown-Hook, 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 | Wrapper Manager: ShutdownHook complete wrapper | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. wrapper | JVM exited normally. wrapper | <-- Wrapper Stopped |
|
From: tweety123 <the...@ya...> - 2006-08-09 13:52:42
|
When I run JSWrapper.bat (i.e. App.bat renamed), I get the error : wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | java.lang.NoClassDefFoundError: JSWrapper jvm 1 | Exception in thread "main" wrapper | JVM exited while loading the application. This' my folder structire: Under 'Test' project folder, I have put: 1. the bin folder which contains the batch files 2. conf folder containing wrapper.conf 3. the class, java file which implements WrapperListener class. Is there anything wrong with the directory structure? -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5726193 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: tweety123 <the...@ya...> - 2006-08-09 10:10:32
|
Also am unable to confirm that the service running is "my" application & not the test application. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5723000 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: Leif M. <le...@ta...> - 2006-08-09 07:06:49
|
Swapnil,
Thanks for pointing this out. The shell script was completely
broken when using
paths containing spaces. I think I have gotten everything worked out
however for
the next release (3.2.2).
If you could give the attached script a try and give post back with
your results
or any comments, I would appreciate it.
Cheers,
Leif
Swapnil Shinde wrote:
> Ok I figured out the problem. And you will be surprised to hear what
> it is :)
>
> I had created the structure under directory called "Linux Release
> Candidate" like this:
> Linux Release Candidate
> - bin
> - conf
> - lib
>
> The problem is with the directory name. It seems the script does not
> support directory names with spaces. I changed this to "Daemonized"
> and the script ran successfully. It seems there is a bug in the script.
>
> Thanks for your help.
> Swapnil.
|
|
From: tweety123 <the...@ya...> - 2006-08-09 06:56:39
|
Hi,
I run my App in Eclipse IDE. My App is in a package called Test & the dir
structure is like this:
D:\eclipse\workspace\Workspace1\Test\Test
where the first 'Test' is the project name & the second 'Test' is the
package name. Following the instructions in the page ("
http://wrapper.tanukisoftware.org/doc/english/launch-win.html ") 'Launching
your application (Win32)' , I created a 'bin' dir under the 'Test' package
dir. Then I copied the files App.bat, InstallApp-NT.bat, UninstallApp-NT.bat
& wrapper.exe to this 'bin' dir. After that, as said in the page, I replaced
the word 'App' in the names of the batch files to 'JSWrapper' (where
JSWrapper is the name of my class that implements WrapperListener). I also
created a conf dir under 'Test' package dir & put 'wrapper.conf' in it. I
haven't done any changes to this conf file. Also, in the JSWrapper class
(which implements WrapperListener), I've implemented the 'start()', 'stop()'
& 'controlEvent()' classes. Is this all I need to do to use JSWrapper to run
the java program as a service or is there more to it? I ran the JSWrapper
application using eclipse & also ran 'InstallApp-NT.bat'. Am able to see
'Test Wrapper Application' service running, but am unable to start it. Am I
doing things right? Please guide me.
Thanks.
--
View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5720805
Sent from the Java Service Wrapper forum at Nabble.com.
|
|
From: Leif M. <le...@ta...> - 2006-08-09 02:16:26
|
When you run the install batch file what output are you seeing? If you have the services control panel open before installing the service, you may have to do a refresh (F5) to update the list. Cheers, Leif tweety123 wrote: > I wrote a sample program which uses Java Service Wrapper. But it's not being > listed as a Service in the list of Windows' Services. Any ideas why? > > Thanks. > > |
|
From: Andreas W. <And...@ag...> - 2006-08-08 13:57:01
|
Hi tweety123, did you install it as a service?=20 Please refer to = http://wrapper.tanukisoftware.org/doc/english/launch-win.html#service. Please read the very good documentation before posting questions to the = forum that are answered there in detail. -Andreas=20 -----Original Message----- From: wra...@li... = [mailto:wra...@li...] On Behalf Of = tweety123 Sent: Dienstag, 8. August 2006 13:54 To: wra...@li... Subject: [Wrapper-user] Wrapper service is not being listed in the list = of services I wrote a sample program which uses Java Service Wrapper. But it's not = being listed as a Service in the list of Windows' Services. Any ideas = why? Thanks. -- View this message in context: = http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-= services-tf2072176.html#a5704844 Sent from the Java Service Wrapper forum at Nabble.com. -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: tweety123 <the...@ya...> - 2006-08-08 11:53:36
|
I wrote a sample program which uses Java Service Wrapper. But it's not being listed as a Service in the list of Windows' Services. Any ideas why? Thanks. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5704844 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: tweety123 <the...@ya...> - 2006-08-08 11:05:41
|
Thanks Andreas!! It worked! I ran it, but I don't see it listed as a service in the Windows' list of Services. Any idea why? Thanks. -- View this message in context: http://www.nabble.com/Error-in-WrapperListener.start-callback.-tf2071532.html#a5704243 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: tweety123 <the...@ya...> - 2006-08-08 11:02:06
|
Thaks, Andrew! Yes, your solution worked! Donno how I missed initializing it. -- View this message in context: http://www.nabble.com/Error-in-WrapperListener.start-callback.-tf2071532.html#a5704209 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: Andreas W. <And...@ag...> - 2006-08-08 09:55:59
|
Hi tweety123,
first of all, the second argument of the start method is meant to pass =
the command line arguments from the main method. If you do not need =
them, the
array may be null or empty.
Your problem arises from the fact that you use an object that has not =
been initialized in the following line (38 as mentioned in the stack =
trace):=20
socket_pgm.createSocket();
I do not see any code that creates the object (e.g. socket_pgm =3D new =
SocketPgm()).
-Andreas
-----Original Message-----
From: wra...@li... =
[mailto:wra...@li...] On Behalf Of =
tweety123
Sent: Dienstag, 8. August 2006 11:17
To: wra...@li...
Subject: [Wrapper-user] Error in WrapperListener.start callback.
Hi,
I don't understand what the second argument means in =
"WrapperManager.start(WrapperListener listener, java.lang.String[] =
args)".
Also, I wrote a sample code. Am getting the following error when =
trying to execute it:
"Wrapper (Version 3.2.1) http://wrapper.tanukisoftware.org
Error in WrapperListener.start callback.=20
java.lang.NullPointerExceptionjava.lang.NullPointerException
at Test.JSWrapper.start(JSWrapper.java:38)
at
org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:=
3125)
at
org.tanukisoftware.wrapper.WrapperManager.privilegedStart(WrapperManager.=
java
:2109)
at
org.tanukisoftware.wrapper.WrapperManager.access$2400(WrapperManager.java=
:416)
at
org.tanukisoftware.wrapper.WrapperManager$5.run(WrapperManager.java:2044)=
at java.security.AccessController.doPrivileged (Native Method)
at
org.tanukisoftware.wrapper.WrapperManager.start(WrapperManager.java:2041)=
at Test.JSWrapper.main(JSWrapper.java:73)"
Can someone please throw light on this?
This is the implementation of WrapperListener that I have:
package Test;
import org.tanukisoftware.wrapper.WrapperListener;
import org.tanukisoftware.wrapper.WrapperManager;
public class JSWrapper implements WrapperListener {
SocketPgm socket_pgm;
private boolean status =3D false;=20
=20
public JSWrapper()
{
=20
}
=20
public void displayHi()
{
System.out.println("Hi");
}
=20
public Integer start(String args[])
{
status =3D true;
System.out.println("Status =3D "+status);
socket_pgm.createSocket();
return null;
=20
}
=20
=20
public int stop(int exitCode)
{
status =3D false;
System.out.println("Status =3D "+status);
return exitCode;
}
=20
=20
public void controlEvent(int event)
{
if (WrapperManager.isControlledByNativeWrapper()) {
// The Wrapper will take care of this event
} else {
// We are not being controlled by the Wrapper, so
// handle the event ourselves.
if ((event =3D=3D WrapperManager.WRAPPER_CTRL_C_EVENT) =
||
(event =3D=3D =
WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) ||
(event =3D=3D =
WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT )){
WrapperManager.stop(0);
}
}
}
=20
=20
public static void main(String[] args)
{
String[] arg =3D new String[2];
arg[0] =3D "Hi";
arg[1] =3D "hello";
WrapperManager.start(new JSWrapper(), arg);
}
}
where SocketPgm is a program that creates a server socket & waits on =
a port for connections.
Please throw some light on how to resolve this error.
Thanks.
--
View this message in context: =
http://www.nabble.com/Error-in-WrapperListener.start-callback.-tf2071532.=
html#a5702990
Sent from the Java Service Wrapper forum at Nabble.com.
-------------------------------------------------------------------------=
Using Tomcat but need to do more? Need to support web services, =
security?
Get stuff done quickly with pre-integrated technology to make your job =
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache =
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: tweety123 <the...@ya...> - 2006-08-08 09:43:21
|
Hi,
I don't understand what the second argument means in
"WrapperManager.start(WrapperListener listener, java.lang.String[] args)".
Also, I wrote a sample code. Am getting the following error when trying
to execute it:
"Wrapper (Version 3.2.1) http://wrapper.tanukisoftware.org
Error in WrapperListener.start callback.
java.lang.NullPointerExceptionjava.lang.NullPointerException
at Test.JSWrapper.start(JSWrapper.java:38)
at
org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:3125)
at
org.tanukisoftware.wrapper.WrapperManager.privilegedStart(WrapperManager.java
:2109)
at
org.tanukisoftware.wrapper.WrapperManager.access$2400(WrapperManager.java:416)
at
org.tanukisoftware.wrapper.WrapperManager$5.run(WrapperManager.java:2044)
at java.security.AccessController.doPrivileged (Native Method)
at
org.tanukisoftware.wrapper.WrapperManager.start(WrapperManager.java:2041)
at Test.JSWrapper.main(JSWrapper.java:73)"
Can someone please throw light on this?
This is the implementation of WrapperListener that I have:
package Test;
import org.tanukisoftware.wrapper.WrapperListener;
import org.tanukisoftware.wrapper.WrapperManager;
public class JSWrapper implements WrapperListener {
SocketPgm socket_pgm;
private boolean status = false;
public JSWrapper()
{
}
public void displayHi()
{
System.out.println("Hi");
}
public Integer start(String args[])
{
status = true;
System.out.println("Status = "+status);
socket_pgm.createSocket();
return null;
}
public int stop(int exitCode)
{
status = false;
System.out.println("Status = "+status);
return exitCode;
}
public void controlEvent(int event)
{
if (WrapperManager.isControlledByNativeWrapper()) {
// The Wrapper will take care of this event
} else {
// We are not being controlled by the Wrapper, so
// handle the event ourselves.
if ((event == WrapperManager.WRAPPER_CTRL_C_EVENT) ||
(event == WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) ||
(event == WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT )){
WrapperManager.stop(0);
}
}
}
public static void main(String[] args)
{
String[] arg = new String[2];
arg[0] = "Hi";
arg[1] = "hello";
WrapperManager.start(new JSWrapper(), arg);
}
}
where SocketPgm is a program that creates a server socket & waits on a
port for connections.
Please throw some light on how to resolve this error.
Thanks.
--
View this message in context: http://www.nabble.com/Error-in-WrapperListener.start-callback.-tf2071532.html#a5702990
Sent from the Java Service Wrapper forum at Nabble.com.
|
|
From: Raaga T <ra...@gm...> - 2006-08-08 09:12:51
|
Hi, I don't understand what the second argument means in "WrapperManager.start(WrapperListener listener, java.lang.String[] args)". Also, I wrote a sample code. Am getting the following error when trying to execute it: "Wrapper (Version 3.2.1) http://wrapper.tanukisoftware.org Error in WrapperListener.start callback. java.lang.NullPointerExceptionjava.lang.NullPointerException at Test.JSWrapper.start(JSWrapper.java:38) at org.tanukisoftware.wrapper.WrapperManager.startInner( WrapperManager.java:3125) at org.tanukisoftware.wrapper.WrapperManager.privilegedStart( WrapperManager.java:2109) at org.tanukisoftware.wrapper.WrapperManager.access$2400( WrapperManager.java:416) at org.tanukisoftware.wrapper.WrapperManager$5.run(WrapperManager.java :2044) at java.security.AccessController.doPrivileged(Native Method) at org.tanukisoftware.wrapper.WrapperManager.start(WrapperManager.java :2041) at Test.JSWrapper.main(JSWrapper.java:73)" Can someone please throw light on this? This is the implementation of WrapperListener that I have: package Test; import org.tanukisoftware.wrapper.WrapperListener; import org.tanukisoftware.wrapper.WrapperManager; public class JSWrapper implements WrapperListener { SocketPgm socket_pgm; private boolean status = false; public JSWrapper() { } public void displayHi() { System.out.println("Hi"); } public Integer start(String args[]) { status = true; System.out.println("Status = "+status); socket_pgm.createSocket(); return null; } public int stop(int exitCode) { status = false; System.out.println("Status = "+status); return exitCode; } public void controlEvent(int event) { if (WrapperManager.isControlledByNativeWrapper()) { // The Wrapper will take care of this event } else { // We are not being controlled by the Wrapper, so // handle the event ourselves. if ((event == WrapperManager.WRAPPER_CTRL_C_EVENT) || (event == WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) || (event == WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT)){ WrapperManager.stop(0); } } } public static void main(String[] args) { String[] arg = new String[2]; arg[0] = "Hi"; arg[1] = "hello"; WrapperManager.start(new JSWrapper(), arg); } } where SocketPgm is a program that creates a server socket & waits on a port for connections. Please throw some light on how to resolve this error. Thanks. |
|
From: Swapnil S. <swa...@ya...> - 2006-08-07 06:11:56
|
Ok I figured out the problem. And you will be surprised to hear what it is :)
I had created the structure under directory called "Linux Release Candidate" like this:
Linux Release Candidate
- bin
- conf
- lib
The problem is with the directory name. It seems the script does not support directory names with spaces. I changed this to "Daemonized" and the script ran successfully. It seems there is a bug in the script.
Thanks for your help.
Swapnil.
----- Original Message ----
From: Leif Mortenson <le...@ta...>
To: Wrapper User List <wra...@li...>
Sent: Sunday, August 6, 2006 10:21:00 PM
Subject: Re: [Wrapper-user] Startup script does not give ANY output :(
Swapnil,
Please post to the list rather than to me directly.
The script normally works, you have verified that it is being parsed
as a script. If you
are not seeing the usage, I would guess that there is a syntax error
someplace that is
causing the script to exit.
Obtain the original script, then do a diff. Make sure that all of
the modifications in
your version are expected.
If that doesn't work, add more echo statements to figure out where
the script is
going wrong.
Cheers,
Leif
Swapnil Shinde wrote:
> Sorry forgot to mention the OS details.
> CentOS - LINUX 2.6.9 with JRE 1.5.0_6 installed.
Swapnil Shinde wrote:
> Hi Lief,
> Thank you for the prompt reply. I know that this script takes in
> different arguments. But when I do not specify any arguments I expect
> it to give me USAGE as you mentioned below. I tried running it with
> console argument too but it just does not give any output :(
>
> I added a echo line after copyright and it did print the line. Dont
> know why it is not working :(
>
> Any idea?
>
> Swapnil.
>
> ----- Original Message ----
> From: Leif Mortenson <le...@ta...>
> To: Swapnil Shinde <swa...@ya...>;
> wra...@li...
> Sent: Sunday, August 6, 2006 6:37:47 PM
> Subject: Re: [Wrapper-user] Startup script does not give ANY output :(
>
> Shinde,
> What version and platform are you running?
>
> The script requires that a command be passed as the first parameter
> as follows:
>
> ./bin/startHSServer console
>
> The thing is that if you omit the command as you appear to be doing,
> you should
> be getting an error message telling you how to use the script:
>
> Usage: bin/startHSServer { console | start | stop | restart | status |
> dump }
>
> Is there any possibility that your script has been corrupted
> somehow? Does the file
> have windows line feeds, etc.?
>
> Try adding the following immediately after the copyright in the
> shell script.
> echo "test"
>
> If that shows up then you at least know that the script is being run
> as a script.
>
> Cheers,
> Leif
>
>
>
> Swapnil Shinde wrote:
> > Hi Guys,
> > This is the first time I am using this wrapper. I am having a very
> > basic problem. I have followed all the steps for integration accroding
> > to method 1. But when I start my script it gives NO output atall.
> >
> > ./bin/startHSServer
> > <NO-OUTPUT>
> >
> > No log file is created. I have used CHMOD 777 for the all files and
> > directoties. However I am successfully able to run the my application
> > by DIRECTLY executing the wrapper as:
> > ./bin/wrapper -c ../conf/wrapper.conf.
> >
> > I have no idea as to why the start script is not working though. Here
> > is my script. Please help. Thanks.
> >
> > #! /bin/sh
> <snip>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: Leif M. <le...@ta...> - 2006-08-07 05:21:00
|
Swapnil,
Please post to the list rather than to me directly.
The script normally works, you have verified that it is being parsed
as a script. If you
are not seeing the usage, I would guess that there is a syntax error
someplace that is
causing the script to exit.
Obtain the original script, then do a diff. Make sure that all of
the modifications in
your version are expected.
If that doesn't work, add more echo statements to figure out where
the script is
going wrong.
Cheers,
Leif
Swapnil Shinde wrote:
> Sorry forgot to mention the OS details.
> CentOS - LINUX 2.6.9 with JRE 1.5.0_6 installed.
Swapnil Shinde wrote:
> Hi Lief,
> Thank you for the prompt reply. I know that this script takes in
> different arguments. But when I do not specify any arguments I expect
> it to give me USAGE as you mentioned below. I tried running it with
> console argument too but it just does not give any output :(
>
> I added a echo line after copyright and it did print the line. Dont
> know why it is not working :(
>
> Any idea?
>
> Swapnil.
>
> ----- Original Message ----
> From: Leif Mortenson <le...@ta...>
> To: Swapnil Shinde <swa...@ya...>;
> wra...@li...
> Sent: Sunday, August 6, 2006 6:37:47 PM
> Subject: Re: [Wrapper-user] Startup script does not give ANY output :(
>
> Shinde,
> What version and platform are you running?
>
> The script requires that a command be passed as the first parameter
> as follows:
>
> ./bin/startHSServer console
>
> The thing is that if you omit the command as you appear to be doing,
> you should
> be getting an error message telling you how to use the script:
>
> Usage: bin/startHSServer { console | start | stop | restart | status |
> dump }
>
> Is there any possibility that your script has been corrupted
> somehow? Does the file
> have windows line feeds, etc.?
>
> Try adding the following immediately after the copyright in the
> shell script.
> echo "test"
>
> If that shows up then you at least know that the script is being run
> as a script.
>
> Cheers,
> Leif
>
>
>
> Swapnil Shinde wrote:
> > Hi Guys,
> > This is the first time I am using this wrapper. I am having a very
> > basic problem. I have followed all the steps for integration accroding
> > to method 1. But when I start my script it gives NO output atall.
> >
> > ./bin/startHSServer
> > <NO-OUTPUT>
> >
> > No log file is created. I have used CHMOD 777 for the all files and
> > directoties. However I am successfully able to run the my application
> > by DIRECTLY executing the wrapper as:
> > ./bin/wrapper -c ../conf/wrapper.conf.
> >
> > I have no idea as to why the start script is not working though. Here
> > is my script. Please help. Thanks.
> >
> > #! /bin/sh
> <snip>
>
|
|
From: Leif M. <le...@ta...> - 2006-08-07 01:37:48
|
Shinde,
What version and platform are you running?
The script requires that a command be passed as the first parameter
as follows:
./bin/startHSServer console
The thing is that if you omit the command as you appear to be doing,
you should
be getting an error message telling you how to use the script:
Usage: bin/startHSServer { console | start | stop | restart | status |
dump }
Is there any possibility that your script has been corrupted
somehow? Does the file
have windows line feeds, etc.?
Try adding the following immediately after the copyright in the
shell script.
echo "test"
If that shows up then you at least know that the script is being run
as a script.
Cheers,
Leif
Swapnil Shinde wrote:
> Hi Guys,
> This is the first time I am using this wrapper. I am having a very
> basic problem. I have followed all the steps for integration accroding
> to method 1. But when I start my script it gives NO output atall.
>
> ./bin/startHSServer
> <NO-OUTPUT>
>
> No log file is created. I have used CHMOD 777 for the all files and
> directoties. However I am successfully able to run the my application
> by DIRECTLY executing the wrapper as:
> ./bin/wrapper -c ../conf/wrapper.conf.
>
> I have no idea as to why the start script is not working though. Here
> is my script. Please help. Thanks.
>
> #! /bin/sh
<snip>
|
|
From: Swapnil S. <swa...@ya...> - 2006-08-07 01:20:54
|
Hi Guys, This is the first time I am using this wrapper. I am having a very basic problem. I have followed all the steps for integration accroding to method 1. But when I start my script it gives NO output atall. ./bin/startHSServer <NO-OUTPUT> No log file is created. I have used CHMOD 777 for the all files and directoties. However I am successfully able to run the my application by DIRECTLY executing the wrapper as: ./bin/wrapper -c ../conf/wrapper.conf. I have no idea as to why the start script is not working though. Here is my script. Please help. Thanks. #! /bin/sh # # Copyright (c) 1999, 2006 Tanuki Software Inc. # # Java Service Wrapper sh script. Suitable for starting and stopping # wrapped Java applications on UNIX platforms. # #----------------------------------------------------------------------------- # These settings can be modified to fit the needs of your application # Application APP_NAME="HSServer" APP_LONG_NAME="HS Login Server" # Wrapper WRAPPER_CMD="./wrapper" WRAPPER_CONF="../conf/wrapper.conf" # Priority at which to run the wrapper. See "man nice" for valid priorities. # nice is only used if a priority is specified. PRIORITY= # Location of the pid file. PIDDIR="." # If uncommented, causes the Wrapper to be shutdown using an anchor file. # When launched with the 'start' command, it will also ignore all INT and # TERM signals. #IGNORE_SIGNALS=true # If specified, the Wrapper will be run as the specified user. # IMPORTANT - Make sure that the user has the required privileges to write # the PID file and wrapper.log files. Failure to be able to write the log # file will cause the Wrapper to exit without any way to write out an error # message. # NOTE - This will set the user which is used to run the Wrapper as well as # the JVM and is not useful in situations where a privileged resource or # port needs to be allocated prior to the user being changed. #RUN_AS_USER= # The following two lines are used by the chkconfig command. Change as is # appropriate for your application. They should remain commented. # chkconfig: 2345 20 80 # description: @app.long.name@ |
|
From: Leif M. <le...@ta...> - 2006-08-05 01:03:18
|
Chris,
Your java command is simply "java". This means that it will try to
locate it on the PATH.
When running the way you are, that environment variable most likely does
not contain the
java bin directory.
Try setting an absolute path your your java binary. If that works,
then back out to using
%JAVA_HOME/bin/java And make sure that JAVA_HOME is set.
You should be getting a better error message in this case. I will
look into why you are
not.
Cheers,
Leif
Chris Medinger wrote:
> Using latest ubuntu, and sun java (also tried
> blackhawk), program runs when not in wrapper. I've
> been able to run it before on FC4 in wrapper, but for
> some reason I'm getting an error now after switching
> over. I think it has something to do with privileges,
> but even when I open up all areas (777) by everyone
> (or run by root) it doesn't go away. All related
> software is current. I've tried with specify user
> commented out, or under its own user id. Here's the
> debug log:
>
> ---
>
> DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning
> intermediate process...
> DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning
> daemon process...
> STATUS | wrapper | 2006/08/04 11:38:43 | --> Wrapper
> Started as Daemon
> DEBUG | wrapper | 2006/08/04 11:38:43 | Using tick
> timer.
> DEBUG | wrapperp | 2006/08/04 11:38:43 | server
> listening on port 32000.
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[0] :
> java
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[1] :
> -jar
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[2] :
> -Djava.library.path=/usr/share/jgnash/lib
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[3] :
> -classpath
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[4] :
> /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[5] :
> -Dwrapper.key=guHBaIGT1bqxejQQ
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[6] :
> -Dwrapper.port=32000
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[7] :
> -Dwrapper.jvm.port.min=31000
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[8] :
> -Dwrapper.jvm.port.max=31999
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[9] :
> -Dwrapper.debug=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[10]
> : -Dwrapper.pid=4563
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[11]
> : -Dwrapper.version=3.2.1
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[12]
> : -Dwrapper.native_library=wrapper
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[13]
> : -Dwrapper.service=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[14]
> : -Dwrapper.cpu.timeout=10
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[15]
> : -Dwrapper.jvmid=1
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[16]
> : org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[17]
> : jgnash.Main
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[18]
> : -server
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[19]
> : /srv/jgnash/personal.jgnash.xml
> STATUS | wrapper | 2006/08/04 11:38:43 | Launching a
> JVM...
> DEBUG | wrapper | 2006/08/04 11:38:43 | Signal
> trapped. Details:
> DEBUG | wrapper | 2006/08/04 11:38:43 | signal
> number=17 (SIGCHLD), source="unknown"
> DEBUG | wrapper | 2006/08/04 11:38:43 | Received
> SIGCHLD, calling wait().
> DEBUG | wrapper | 2006/08/04 11:38:43 | wait()
> returned, child process should be gone.
> INFO | jvm 1 | 2006/08/04 11:38:43 | Unable to
> access jarfile
> org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:43 | JVM process
> is gone.
> ERROR | wrapper | 2006/08/04 11:38:43 | JVM exited
> while loading the application.
> DEBUG | wrapper | 2006/08/04 11:38:44 | JVM was only
> running for 0 seconds leading to a failed restart
> count of 1.
> DEBUG | wrapper | 2006/08/04 11:38:44 | Waiting 5
> seconds before launching another JVM.
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[0] :
> java
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[1] :
> -jar
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[2] :
> -Djava.library.path=/usr/share/jgnash/lib
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[3] :
> -classpath
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[4] :
> /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[5] :
> -Dwrapper.key=YRn8y30Afr7tKYjS
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[6] :
> -Dwrapper.port=32000
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[7] :
> -Dwrapper.jvm.port.min=31000
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[8] :
> -Dwrapper.jvm.port.max=31999
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[9] :
> -Dwrapper.debug=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[10]
> : -Dwrapper.pid=4563
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[11]
> : -Dwrapper.version=3.2.1
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[12]
> : -Dwrapper.native_library=wrapper
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[13]
> : -Dwrapper.service=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[14]
> : -Dwrapper.cpu.timeout=10
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[15]
> : -Dwrapper.jvmid=2
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[16]
> : org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[17]
> : jgnash.Main
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[18]
> : -server
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[19]
> : /srv/jgnash/personal.jgnash.xml
> STATUS | wrapper | 2006/08/04 11:38:48 | Launching a
> JVM...
> DEBUG | wrapper | 2006/08/04 11:38:48 | JVM process
> is gone.
> ERROR | wrapper | 2006/08/04 11:38:48 | Unable to
> start a JVM
> DEBUG | wrapper | 2006/08/04 11:38:48 | Signal
> trapped. Details:
> DEBUG | wrapper | 2006/08/04 11:38:48 | signal
> number=17 (SIGCHLD), source="unknown"
> DEBUG | wrapper | 2006/08/04 11:38:48 | Received
> SIGCHLD, calling wait().
> DEBUG | wrapper | 2006/08/04 11:38:48 | wait()
> returned, child process should be gone.
> INFO | jvm 2 | 2006/08/04 11:38:48 | Unable to
> access jarfile
> org.tanukisoftware.wrapper.WrapperSimpleApp
> STATUS | wrapper | 2006/08/04 11:38:48 | <-- Wrapper
> Stopped
> ---
>
> and here's my wrapper.conf (note: it doesn't change
> anything if I write the full path to java):
>
> ---
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
> wrapper.java.command=java
>
> # 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=/usr/share/jgnash/lib/wrapper.jar
> wrapper.java.classpath.2=/usr/share/jgnash/bin/jgnash.jar
>
> # Java Library Path (location of Wrapper.DLL or
> libwrapper.so)
> wrapper.java.library.path.1=/usr/share/jgnash/lib
>
> # Java Additional Parameters
> wrapper.java.additional.1=-jar
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
>
> # Application parameters. Add parameters as needed
> starting from 1
> wrapper.app.parameter.1=jgnash.Main
> wrapper.app.parameter.2=-server
> wrapper.app.parameter.3=/srv/jgnash/personal.jgnash.xml
>
> #********************************************************************
> # 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=DEBUG
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=../logs/wrapper.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=DEBUG
>
> # 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=0
>
> # 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=0
>
> # 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
> wra...@ap...@
>
> #********************************************************************
> # 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
> wra...@ap...@
>
> # Display name of the service
> wra...@ap...@
>
> # Description of the service
> wra...@ap...@
>
> # 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
>
|
|
From: Chris M. <ixa...@ya...> - 2006-08-04 20:03:05
|
Using latest ubuntu, and sun java (also tried blackhawk), program runs when not in wrapper. I've been able to run it before on FC4 in wrapper, but for some reason I'm getting an error now after switching over. I think it has something to do with privileges, but even when I open up all areas (777) by everyone (or run by root) it doesn't go away. All related software is current. I've tried with specify user commented out, or under its own user id. Here's the debug log: --- DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning intermediate process... DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning daemon process... STATUS | wrapper | 2006/08/04 11:38:43 | --> Wrapper Started as Daemon DEBUG | wrapper | 2006/08/04 11:38:43 | Using tick timer. DEBUG | wrapperp | 2006/08/04 11:38:43 | server listening on port 32000. DEBUG | wrapper | 2006/08/04 11:38:43 | Command[0] : java DEBUG | wrapper | 2006/08/04 11:38:43 | Command[1] : -jar DEBUG | wrapper | 2006/08/04 11:38:43 | Command[2] : -Djava.library.path=/usr/share/jgnash/lib DEBUG | wrapper | 2006/08/04 11:38:43 | Command[3] : -classpath DEBUG | wrapper | 2006/08/04 11:38:43 | Command[4] : /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar DEBUG | wrapper | 2006/08/04 11:38:43 | Command[5] : -Dwrapper.key=guHBaIGT1bqxejQQ DEBUG | wrapper | 2006/08/04 11:38:43 | Command[6] : -Dwrapper.port=32000 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[7] : -Dwrapper.jvm.port.min=31000 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[8] : -Dwrapper.jvm.port.max=31999 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[9] : -Dwrapper.debug=TRUE DEBUG | wrapper | 2006/08/04 11:38:43 | Command[10] : -Dwrapper.pid=4563 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[11] : -Dwrapper.version=3.2.1 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[12] : -Dwrapper.native_library=wrapper DEBUG | wrapper | 2006/08/04 11:38:43 | Command[13] : -Dwrapper.service=TRUE DEBUG | wrapper | 2006/08/04 11:38:43 | Command[14] : -Dwrapper.cpu.timeout=10 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[15] : -Dwrapper.jvmid=1 DEBUG | wrapper | 2006/08/04 11:38:43 | Command[16] : org.tanukisoftware.wrapper.WrapperSimpleApp DEBUG | wrapper | 2006/08/04 11:38:43 | Command[17] : jgnash.Main DEBUG | wrapper | 2006/08/04 11:38:43 | Command[18] : -server DEBUG | wrapper | 2006/08/04 11:38:43 | Command[19] : /srv/jgnash/personal.jgnash.xml STATUS | wrapper | 2006/08/04 11:38:43 | Launching a JVM... DEBUG | wrapper | 2006/08/04 11:38:43 | Signal trapped. Details: DEBUG | wrapper | 2006/08/04 11:38:43 | signal number=17 (SIGCHLD), source="unknown" DEBUG | wrapper | 2006/08/04 11:38:43 | Received SIGCHLD, calling wait(). DEBUG | wrapper | 2006/08/04 11:38:43 | wait() returned, child process should be gone. INFO | jvm 1 | 2006/08/04 11:38:43 | Unable to access jarfile org.tanukisoftware.wrapper.WrapperSimpleApp DEBUG | wrapper | 2006/08/04 11:38:43 | JVM process is gone. ERROR | wrapper | 2006/08/04 11:38:43 | JVM exited while loading the application. DEBUG | wrapper | 2006/08/04 11:38:44 | JVM was only running for 0 seconds leading to a failed restart count of 1. DEBUG | wrapper | 2006/08/04 11:38:44 | Waiting 5 seconds before launching another JVM. DEBUG | wrapper | 2006/08/04 11:38:48 | Command[0] : java DEBUG | wrapper | 2006/08/04 11:38:48 | Command[1] : -jar DEBUG | wrapper | 2006/08/04 11:38:48 | Command[2] : -Djava.library.path=/usr/share/jgnash/lib DEBUG | wrapper | 2006/08/04 11:38:48 | Command[3] : -classpath DEBUG | wrapper | 2006/08/04 11:38:48 | Command[4] : /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar DEBUG | wrapper | 2006/08/04 11:38:48 | Command[5] : -Dwrapper.key=YRn8y30Afr7tKYjS DEBUG | wrapper | 2006/08/04 11:38:48 | Command[6] : -Dwrapper.port=32000 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[7] : -Dwrapper.jvm.port.min=31000 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[8] : -Dwrapper.jvm.port.max=31999 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[9] : -Dwrapper.debug=TRUE DEBUG | wrapper | 2006/08/04 11:38:48 | Command[10] : -Dwrapper.pid=4563 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[11] : -Dwrapper.version=3.2.1 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[12] : -Dwrapper.native_library=wrapper DEBUG | wrapper | 2006/08/04 11:38:48 | Command[13] : -Dwrapper.service=TRUE DEBUG | wrapper | 2006/08/04 11:38:48 | Command[14] : -Dwrapper.cpu.timeout=10 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[15] : -Dwrapper.jvmid=2 DEBUG | wrapper | 2006/08/04 11:38:48 | Command[16] : org.tanukisoftware.wrapper.WrapperSimpleApp DEBUG | wrapper | 2006/08/04 11:38:48 | Command[17] : jgnash.Main DEBUG | wrapper | 2006/08/04 11:38:48 | Command[18] : -server DEBUG | wrapper | 2006/08/04 11:38:48 | Command[19] : /srv/jgnash/personal.jgnash.xml STATUS | wrapper | 2006/08/04 11:38:48 | Launching a JVM... DEBUG | wrapper | 2006/08/04 11:38:48 | JVM process is gone. ERROR | wrapper | 2006/08/04 11:38:48 | Unable to start a JVM DEBUG | wrapper | 2006/08/04 11:38:48 | Signal trapped. Details: DEBUG | wrapper | 2006/08/04 11:38:48 | signal number=17 (SIGCHLD), source="unknown" DEBUG | wrapper | 2006/08/04 11:38:48 | Received SIGCHLD, calling wait(). DEBUG | wrapper | 2006/08/04 11:38:48 | wait() returned, child process should be gone. INFO | jvm 2 | 2006/08/04 11:38:48 | Unable to access jarfile org.tanukisoftware.wrapper.WrapperSimpleApp STATUS | wrapper | 2006/08/04 11:38:48 | <-- Wrapper Stopped --- and here's my wrapper.conf (note: it doesn't change anything if I write the full path to java): --- #******************************************************************** # Wrapper Properties #******************************************************************** # Java Application wrapper.java.command=java # 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=/usr/share/jgnash/lib/wrapper.jar wrapper.java.classpath.2=/usr/share/jgnash/bin/jgnash.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=/usr/share/jgnash/lib # Java Additional Parameters wrapper.java.additional.1=-jar # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=jgnash.Main wrapper.app.parameter.2=-server wrapper.app.parameter.3=/srv/jgnash/personal.jgnash.xml #******************************************************************** # 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=DEBUG # Log file to use for wrapper output logging. wrapper.logfile=../logs/wrapper.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=DEBUG # 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=0 # 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=0 # 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 wra...@ap...@ #******************************************************************** # 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 wra...@ap...@ # Display name of the service wra...@ap...@ # Description of the service wra...@ap...@ # 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Milton T. <mc...@gm...> - 2006-08-04 05:20:40
|
> In general, you should use the universal format: > \\host\share > > This works reliably. The SYSTEM user will still not be able to see > these however. > > True and True. However I wasn't even trying to run across the LAN to another machine...this was a case of using a mapped drive letter on the same machine! Thanks, Milt > Cheers, > Leif > > Milton Taylor wrote: > >> Sorry Leif- wild goose chase. It turns out what I had done was install >> the wrapper when the current directory was using a mapped drive letter, >> rather than the physical letter. So as soon as I logged out, the mapping >> disappeared, and JBoss could no longer find things! I only worked this >> out because eventually I rebooted the machine and the service failed to >> start. >> >> Thanks anyway! The service wrapper is a very nice piece of work... >> >> Milt >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: David D. <hap...@hu...> - 2006-08-04 05:14:05
|
Sorry---forgot to change the subject on that one. Should have been "New JSWConf uploaded." Leif and Friends, > I've uploaded the next version of the JSWConf tool. It can be > downloaded at the following URL: > > http://www.tdcs.cc/apps/jswconf/JSWConf.jar > > to use, simply enter (sans quotations) "java -jar JSWConf.jar". > (The JavaWebStart file is at the same location, but for some reason, > the new features don't work. I'm trying to figure that one out.) > > Here are the changes, features, bugs, next steps, etc. > > Features: > --Documentation (incomplete but there): When a known setting is > selected, the basic documentation from the website is displayed. > Otherwise, either a "coming soon" type message or "No documentation > found." is displayed. > --Adding "available" settings: the "Add Setting" dialog now has a > combo-box at the top that lists the remaining settings (the ones not > included in the wrapper.conf file yet). Selecting a setting in the > combo will fill out the setting field. (You still have to enter the > value yourself.) When you next add a setting, note that the list is > decreased appropriately. > --Side note: You still must change <n> settings to the > appropriate numerical order (e.g. java.classpath.<n> must be changed to > 1,2,etc as appropriate.) > > Bugs/Issues/General ugliness: > --Documentation is incomplete. Basically, I copied the > documentation from the website and pasted it into a > java.util.Properties-formatted file (adding appropriate html). This is > slow, and takes a lot of time. Only the first 15-20 settings are > documented. I'll try to add more as time goes along > --Documentation setup: In order to keep the whole thing compact (a > single, deliverable JAR file), I had to include the documentation file > in a single file (located in package com.tdcs.jswconf.opt, in case you > are wondering.) It works, but I'm open to other ways of making this > happening...especially if it would make a collaborative effort easier. > --Layout is rather ugly. I'll keep playing with it, but suggestions > would be appreciated. > --As I said, the Java WebStart is not working. For some reason, > it's failing to find the documentation file within the jar, and I can't > figure out why (It was throwing a NullPointerException for no apparent > reason, so I had to trap it with a try-catch just to keep it from > killing the whole dialog. Anyone have any idea why this is so? > > Next steps: > --Better layout! > --Dividing the documentation and "available" properties into > appropriate groups. > --Getting help. Documentation is slow, and I know that I'm not the > sharpest knife in the drawer when it comes to some of the "cooler" GUI > tricks (I'm more of a server-side man, myself). I've applied for a > project at java.net, but I haven't gotten approval yet. If I can't get > it set up there, I'll host it on my own site (no CVS, unfortunately) and > fold in the updates myself. > > Let me know what you think, and we'll see where we can go from > here. As always, feel free to fire those slings and arrows, and I'll > see what I can do. > > David Days. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |
|
From: Leif M. <le...@ta...> - 2006-08-04 05:02:50
|
Milton,
That is a weirdness with the way Windows has implemented mapped
network drives.
They appear to be global rather than user specific. So when nobody is
logged in, you
get no mapped drives. You can also run into problems when the wrong
account is
logged in.
In general, you should use the universal format:
\\host\share
This works reliably. The SYSTEM user will still not be able to see
these however.
Cheers,
Leif
Milton Taylor wrote:
> Sorry Leif- wild goose chase. It turns out what I had done was install
> the wrapper when the current directory was using a mapped drive letter,
> rather than the physical letter. So as soon as I logged out, the mapping
> disappeared, and JBoss could no longer find things! I only worked this
> out because eventually I rebooted the machine and the service failed to
> start.
>
> Thanks anyway! The service wrapper is a very nice piece of work...
>
> Milt
>
|
|
From: David D. <hap...@hu...> - 2006-08-04 03:33:10
|
Leif and Friends,
I've uploaded the next version of the JSWConf tool. It can be
downloaded at the following URL:
http://www.tdcs.cc/apps/jswconf/JSWConf.jar
to use, simply enter (sans quotations) "java -jar JSWConf.jar".
(The JavaWebStart file is at the same location, but for some reason,
the new features don't work. I'm trying to figure that one out.)
Here are the changes, features, bugs, next steps, etc.
Features:
--Documentation (incomplete but there): When a known setting is
selected, the basic documentation from the website is displayed.
Otherwise, either a "coming soon" type message or "No documentation
found." is displayed.
--Adding "available" settings: the "Add Setting" dialog now has a
combo-box at the top that lists the remaining settings (the ones not
included in the wrapper.conf file yet). Selecting a setting in the
combo will fill out the setting field. (You still have to enter the
value yourself.) When you next add a setting, note that the list is
decreased appropriately.
--Side note: You still must change <n> settings to the
appropriate numerical order (e.g. java.classpath.<n> must be changed to
1,2,etc as appropriate.)
Bugs/Issues/General ugliness:
--Documentation is incomplete. Basically, I copied the
documentation from the website and pasted it into a
java.util.Properties-formatted file (adding appropriate html). This is
slow, and takes a lot of time. Only the first 15-20 settings are
documented. I'll try to add more as time goes along
--Documentation setup: In order to keep the whole thing compact (a
single, deliverable JAR file), I had to include the documentation file
in a single file (located in package com.tdcs.jswconf.opt, in case you
are wondering.) It works, but I'm open to other ways of making this
happening...especially if it would make a collaborative effort easier.
--Layout is rather ugly. I'll keep playing with it, but suggestions
would be appreciated.
--As I said, the Java WebStart is not working. For some reason,
it's failing to find the documentation file within the jar, and I can't
figure out why (It was throwing a NullPointerException for no apparent
reason, so I had to trap it with a try-catch just to keep it from
killing the whole dialog. Anyone have any idea why this is so?
Next steps:
--Better layout!
--Dividing the documentation and "available" properties into
appropriate groups.
--Getting help. Documentation is slow, and I know that I'm not the
sharpest knife in the drawer when it comes to some of the "cooler" GUI
tricks (I'm more of a server-side man, myself). I've applied for a
project at java.net, but I haven't gotten approval yet. If I can't get
it set up there, I'll host it on my own site (no CVS, unfortunately) and
fold in the updates myself.
Let me know what you think, and we'll see where we can go from
here. As always, feel free to fire those slings and arrows, and I'll
see what I can do.
David Days.
|
|
From: Milton T. <mc...@gm...> - 2006-08-03 08:10:03
|
Sorry Leif- wild goose chase. It turns out what I had done was install the wrapper when the current directory was using a mapped drive letter, rather than the physical letter. So as soon as I logged out, the mapping disappeared, and JBoss could no longer find things! I only worked this out because eventually I rebooted the machine and the service failed to start. Thanks anyway! The service wrapper is a very nice piece of work... Milt Leif Mortenson wrote: > Milton, > Can you set wrapper.debug=true, reproduce this, then reply with the > resulting > wrapper.log file for that one JVM invocation? I would like to see > exactly what > signals are being sent to the Wrapper and JVM. This should show me what is > happening. > > Cheers, > Leif > > |