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...> - 2005-06-30 01:54:37
|
I have had problems on some Windows versions with this as well, but have
never been able to figure out exactly what is causing the problems. It
works on some machines but not others.
I have seen cases where starting the service on system starup will not
work, but starting it when the account that the service is running as is
is also logged in works fine. I haven't seen any clues that this is a
Wrapper specific problem, there may be something that the Wrapper
needs to be doing on initialization that I am not aware of however.
A workaround that I found was to use Universal paths rather than the
mapped drives. So use the original \\computer\path rather than the
mapped drive. That has worked reliably for me. You still need to
be running as a user with network access, who has permission to
access the specific remote resource.
Cheers,
Leif
Krassimir Boyanov wrote:
> Hi,
>
> I have Java application, using the Wrapper and installed as a NT
> service, which have to save a file on a mapped network drive (for
> example U:). Before saving a file it checks for the existence of the
> directory path - see below:
>
> File rootDir = new File("U:/");
> if (!rootDir.exists())
> {
> logger.error("Root directory does not exist! ");
> }
>
> The problem is that the exists() method returns false. I do not
> observe the same issue if I run the same code under command prompt
> (without using the wrapper and the NT service), i.e. the same method
> exists() returns true.
>
> The service is setup to run under the same account as the network
> drive is mapped.
>
> Please advice on how to resolve this problem. Your help is highly
> appreciated.
>
> Krassimir
>
|
|
From: Krassimir B. <kr...@ho...> - 2005-06-30 01:36:43
|
<html><div style='background-color:'><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>Hi, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>I have Java application, using the Wrapper and installed as a NT service, which have to save a file on a mapped network drive (for example U:). Before saving a file it checks for the existence of the directory path - see below:<o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>File rootDir = new File("U:/");<BR>if (!rootDir.<SPAN style="COLOR: #ff0066">exists</SPAN>())<BR>{<BR> logger.error("Root directory does not exist! ");<BR>}<o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>The problem is that the exists() method returns false. I do not observe the same issue if I run the same code under command prompt (without using the wrapper and the NT service), i.e. the same method exists() returns true.<o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>The service is setup to run under the same account as the network drive is mapped.<o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>Please advice on how to resolve this problem. Your help is highly appreciated.<o:p></o:p></FONT></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><FONT face="Times New Roman, Times, Serif"><FONT size=3>Krassimir<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman, Times, Serif" size=3> </FONT></o:p></P></div></html>
|
|
From: Leif M. <le...@ta...> - 2005-06-28 19:46:37
|
Jindal, It should be possible, but you will need to write a simple "wrapper" or container class around that has a static main method, then instantiates and sets up your applet. Applets are not normally designed to be run as standalone applications. You will need to handle all of the setup and tearing down of the applet yourself to get it working. Cheers, Leif Jindal, Anubhav wrote: > I need to make a Java applet work as a Windows Service. Can I do that > with Wrapper?? > > > Thanks, > Anubhav Jindal > |
|
From: Leif M. <le...@ta...> - 2005-06-28 18:49:13
|
Yogesh, You should be getting a stack trace after that error in the logs. Can you post that as well? Also, you said that you remove the reflection bit. Did you modify the Wrapper source, or your source? I should be able to tell where the problem is from the stack trace. Cheers, Leif Yogesh Patel wrote: > I've got a class running under Simple Wrapper which gets executed at > the start of my machine. When I'm calling my class from the wrapper > that uses java reflection api it gives me following error: > > WrapperSimpleApp: Encountered an error running main: > java.lang.NoSuchFieldError: > > When I trying running it normally it works fine. If I take out the > reflection bit and run my class it wrapper it works fine. > Any solution to this problem??? > Thanks > ------------------------------------------------------- SF.Net email > is sponsored by: Discover Easy Linux Migration Strategies from IBM. > Find simple to follow Roadmaps, straightforward articles, informative > Webcasts and more! Get everything you need to get up to speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ Wrapper-user mailing > list Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2005-06-28 18:44:46
|
Faysal, The problem is that your implementation of the WrapperListener.start method never returns. The API requires that that method returns within a short period of time. Unless you really need to write your own WrapperListener, I would suggest first trying to make the WrapperSimpleApp helper class work for you. That is integration method 1. Cheers, Leif Alzabit, Faysal wrote: > Hi, > > I am using org.apache.log4j.net.SocketServer as a service to > centralize logging from different servers; the problem is that the > SocketServer starts and goes into a loop waiting for a connection; > when I implement the WrapperListener it seems that it starts the > application but it does not come back even when the application is > started as a thread; so the wrapper ends restarting the JVM !!! Any > idea how I can get the service to start and end ? > > The following is the debug message I am getting : > > STATUS | wrapper | 2005/06/27 15:48:57 | --> Wrapper Started as Console > ERROR | wrapper | 2005/06/27 15:48:57 | Unable to write to the > EventLog due to: The event log file is full. (0x5de) > ERROR | wrapper | 2005/06/27 15:48:57 | Internally setting > wrapper.syslog.loglevel=NONE to prevent further messages. > DEBUG | wrapper | 2005/06/27 15:48:57 | Using system timer. > DEBUG | wrapperp | 2005/06/27 15:48:57 | server listening on port 32000. > STATUS | wrapper | 2005/06/27 15:48:58 | Launching a JVM... > DEBUG | wrapper | 2005/06/27 15:48:58 | command: "C:\Program > Files\Java\jdk1.5.0\bin\java.exe" -Djava.library.path="../lib" > -classpath "../lib/wrapper.jar;C:/logCentral/" > -Dwrapper.key="QkmW5_uFP8Oh6kEU" -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 > org.unch.logcentral.core.CentralLoggerRapper 4321 > c:\\CentralLogger.properties c:\\ > > DEBUG | wrapper | 2005/06/27 15:48:58 | JVM started (PID=884) > INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerRapper , in the > main class of centralLoggerRapper > INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerWrapper 4321 > c:\\CentralLogger.properties c:\\ > INFO | jvm 1 | 2005/06/27 15:48:59 | WrapperManager class initialized > by thread: main Using classloader: sun.misc.Launcher$ExtClassLoader@a9c85c > > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: JVM #1 > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: Registering > shutdown hook > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: Using wrapper > INFO | jvm 1 | 2005/06/27 15:48:59 | Loaded native library: wrapper.dll > INFO | jvm 1 | 2005/06/27 15:48:59 | Calling native initialization > method. > INFO | jvm 1 | 2005/06/27 15:48:59 | Initializing WrapperManager > native library. > INFO | jvm 1 | 2005/06/27 15:48:59 | Java Executable: C:\Program > Files\Java\jdk1.5.0\bin\java.exe > INFO | jvm 1 | 2005/06/27 15:48:59 | Windows version: 5.1.2600 > INFO | jvm 1 | 2005/06/27 15:48:59 | Java Version : 1.5.0-b64 Java > HotSpot(TM) Client VM > INFO | jvm 1 | 2005/06/27 15:48:59 | Java VM Vendor : Sun Microsystems > Inc. > INFO | jvm 1 | 2005/06/27 15:48:59 | > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper (Version 3.1.2) > _http://wrapper.tanukisoftware.org_ > INFO | jvm 1 | 2005/06/27 15:48:59 | > INFO | jvm 1 | 2005/06/27 15:48:59 | > WrapperManager.start(org.unch.logcentral.core.CentralLoggerRapper@a90653, > args["4321", "c:\\CentralLogger.properties", "c:\\"]) called by > thread: main > > INFO | jvm 1 | 2005/06/27 15:48:59 | Open socket to wrapper... > INFO | jvm 1 | 2005/06/27 15:48:59 | Opened Socket > INFO | jvm 1 | 2005/06/27 15:48:59 | Send a packet KEY : QkmW5_uFP8Oh6kEU > INFO | jvm 1 | 2005/06/27 15:48:59 | > handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=1156]) > DEBUG | wrapperp | 2005/06/27 15:48:59 | accepted a socket from > 127.0.0.1 on port 1156 > DEBUG | wrapperp | 2005/06/27 15:48:59 | read a packet KEY : > QkmW5_uFP8Oh6kEU > DEBUG | wrapper | 2005/06/27 15:48:59 | Got key from JVM: > QkmW5_uFP8Oh6kEU > DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet LOW_LOG_LEVEL : 1 > DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet PING_TIMEOUT : 10 > DEBUG | wrapper | 2005/06/27 15:48:59 | Start Application. > DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet START : start > INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet LOW_LOG_LEVEL : 1 > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: LowLogLevel from > Wrapper is 1 > INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet PING_TIMEOUT : 10 > INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: PingTimeout from > Wrapper is 10000 > INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet START : start > INFO | jvm 1 | 2005/06/27 15:48:59 | calling listener.start() > INFO | jvm 1 | 2005/06/27 15:48:59 | in the start method of > CentralLoggerRapper > INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerRapper, in the > run method > INFO | jvm 1 | 2005/06/27 15:48:59 | CentralLogger, in the main method > INFO | jvm 1 | 2005/06/27 15:48:59 | after the logger statment > INFO | jvm 1 | 2005/06/27 15:48:59 | SocketServer is using logger > named: org.unch.webcis.medications > INFO | jvm 1 | 2005/06/27 15:48:59 | after SocketServer initilization > in the CentralLogger start method > INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerargv[0]: 4321 > argv[1]: c:\\CentralLogger.properties > INFO | jvm 1 | 2005/06/27 15:48:59 | 0 [Wrapper-Connection] INFO > org.apache.log4j.net.SocketServer - Listening on port 4321 > > INFO | jvm 1 | 2005/06/27 15:48:59 | 0 [Wrapper-Connection] INFO > org.apache.log4j.net.SocketServer - Waiting to accept a new client. > > ERROR | wrapper | 2005/06/27 15:49:28 | Startup failed: Timed out > waiting for signal from JVM. > STATUS | wrapper | 2005/06/27 15:49:28 | Dumping JVM state. > DEBUG | wrapper | 2005/06/27 15:49:28 | Sending BREAK event to process > group 884. > INFO | jvm 1 | 2005/06/27 15:49:28 | Full thread dump Java HotSpot(TM) > Client VM (1.5.0-b64 mixed mode, sharing): > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "DestroyJavaVM" prio=5 > tid=0x00037ee8 nid=0x140 waiting on condition [0x00000000..0x0007fae8] > > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Wrapper-Connection" prio=5 > tid=0x00acf828 nid=0x3f8 runnable [0x02ecf000..0x02ecfb68] > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.net.PlainSocketImpl.socketAccept(Native Method) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) > INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22aaac20> (a > java.net.SocksSocketImpl) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.net.ServerSocket.implAccept(ServerSocket.java:450) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.net.ServerSocket.accept(ServerSocket.java:421) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.apache.log4j.net.SocketServer.main(SocketServer.java:100) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.unch.logcentral.core.CentralLogger.run(CentralLogger.java:69) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.unch.logcentral.core.CentralLogger.start(CentralLogger.java:44) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.unch.logcentral.core.CentralLoggerRapper.run(CentralLoggerRapper.java:83) > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.unch.logcentral.core.CentralLoggerRapper.start(CentralLoggerRapper.java:38) > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:1785) > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:2384) > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:2696) > > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.Thread.run(Thread.java:595) > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Wrapper-Control-Event-Monitor" > daemon prio=5 tid=0x00a91298 nid=0x6b8 waiting on condition > [0x02e8f000..0x02e8fbe8] > > INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Thread.sleep(Native > Method) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > org.tanukisoftware.wrapper.WrapperManager$2.run(WrapperManager.java:701) > > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Low Memory Detector" daemon > prio=5 tid=0x00a6d980 nid=0x68c runnable [0x00000000..0x00000000] > > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "CompilerThread0" daemon prio=10 > tid=0x00a6c558 nid=0x690 waiting on condition [0x00000000..0x02bcf6c0] > > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Signal Dispatcher" daemon > prio=10 tid=0x00a6b848 nid=0x430 waiting on condition > [0x00000000..0x00000000] > > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Finalizer" daemon prio=9 > tid=0x00a68b18 nid=0x434 in Object.wait() [0x02b4f000..0x02b4fa68] > > INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Object.wait(Native > Method) > INFO | jvm 1 | 2005/06/27 15:49:28 | - waiting on <0x22f61100> (a > java.lang.ref.ReferenceQueue$Lock) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) > INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22f61100> (a > java.lang.ref.ReferenceQueue$Lock) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "Reference Handler" daemon > prio=10 tid=0x00a46770 nid=0x3d8 in Object.wait() [0x02b0f000..0x02b0fae8] > > INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Object.wait(Native > Method) > INFO | jvm 1 | 2005/06/27 15:49:28 | - waiting on <0x22f60ef0> (a > java.lang.ref.Reference$Lock) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.Object.wait(Object.java:474) > INFO | jvm 1 | 2005/06/27 15:49:28 | at > java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) > INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22f60ef0> (a > java.lang.ref.Reference$Lock) > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "VM Thread" prio=10 > tid=0x00036908 nid=0x3c8 runnable > INFO | jvm 1 | 2005/06/27 15:49:28 | > INFO | jvm 1 | 2005/06/27 15:49:28 | "VM Periodic Task Thread" prio=10 > tid=0x00a6eb90 nid=0x5f4 waiting on condition > > INFO | jvm 1 | 2005/06/27 15:49:28 | > ERROR | wrapper | 2005/06/27 15:49:32 | JVM did not exit on request, > terminated > DEBUG | wrapper | 2005/06/27 15:49:33 | JVM was only running for 35 > seconds leading to a failed restart count of 1. > DEBUG | wrapper | 2005/06/27 15:49:33 | Waiting 5 seconds before > launching another JVM. > STATUS | wrapper | 2005/06/27 15:49:37 | Launching a JVM... > DEBUG | wrapper | 2005/06/27 15:49:37 | command: "C:\Program > Files\Java\jdk1.5.0\bin\java.exe" -Djava.library.path="../lib" > -classpath "../lib/wrapper.jar;C:/logCentral/" > -Dwrapper.key="2yqjvTR9FkXjFAvq" -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=2 > org.unch.logcentral.core.CentralLoggerRapper 4321 > c:\\CentralLogger.properties c:\\ > > DEBUG | wrapper | 2005/06/27 15:49:37 | JVM started (PID=1000) > INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerRapper , in the > main class of centralLoggerRapper > INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerWrapper 4321 > c:\\CentralLogger.properties c:\\ > INFO | jvm 2 | 2005/06/27 15:49:37 | WrapperManager class initialized > by thread: main Using classloader: sun.misc.Launcher$ExtClassLoader@a9c85c > > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: JVM #2 > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: Registering > shutdown hook > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: Using wrapper > INFO | jvm 2 | 2005/06/27 15:49:37 | Loaded native library: wrapper.dll > INFO | jvm 2 | 2005/06/27 15:49:37 | Calling native initialization > method. > INFO | jvm 2 | 2005/06/27 15:49:37 | Initializing WrapperManager > native library. > INFO | jvm 2 | 2005/06/27 15:49:37 | Java Executable: C:\Program > Files\Java\jdk1.5.0\bin\java.exe > INFO | jvm 2 | 2005/06/27 15:49:37 | Windows version: 5.1.2600 > INFO | jvm 2 | 2005/06/27 15:49:37 | Java Version : 1.5.0-b64 Java > HotSpot(TM) Client VM > INFO | jvm 2 | 2005/06/27 15:49:37 | Java VM Vendor : Sun Microsystems > Inc. > INFO | jvm 2 | 2005/06/27 15:49:37 | > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper (Version 3.1.2) > _http://wrapper.tanukisoftware.org_ > INFO | jvm 2 | 2005/06/27 15:49:37 | > INFO | jvm 2 | 2005/06/27 15:49:37 | > WrapperManager.start(org.unch.logcentral.core.CentralLoggerRapper@a90653, > args["4321", "c:\\CentralLogger.properties", "c:\\"]) called by > thread: main > > INFO | jvm 2 | 2005/06/27 15:49:37 | Open socket to wrapper... > INFO | jvm 2 | 2005/06/27 15:49:37 | Opened Socket > INFO | jvm 2 | 2005/06/27 15:49:37 | Send a packet KEY : 2yqjvTR9FkXjFAvq > INFO | jvm 2 | 2005/06/27 15:49:37 | > handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=1157]) > DEBUG | wrapperp | 2005/06/27 15:49:37 | accepted a socket from > 127.0.0.1 on port 1157 > DEBUG | wrapperp | 2005/06/27 15:49:37 | read a packet KEY : > 2yqjvTR9FkXjFAvq > DEBUG | wrapper | 2005/06/27 15:49:37 | Got key from JVM: > 2yqjvTR9FkXjFAvq > DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet LOW_LOG_LEVEL : 1 > DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet PING_TIMEOUT : 10 > DEBUG | wrapper | 2005/06/27 15:49:37 | Start Application. > DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet START : start > INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet LOW_LOG_LEVEL : 1 > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: LowLogLevel from > Wrapper is 1 > INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet PING_TIMEOUT : 10 > INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: PingTimeout from > Wrapper is 10000 > INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet START : start > INFO | jvm 2 | 2005/06/27 15:49:37 | calling listener.start() > INFO | jvm 2 | 2005/06/27 15:49:37 | in the start method of > CentralLoggerRapper > INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerRapper, in the > run method > INFO | jvm 2 | 2005/06/27 15:49:37 | CentralLogger, in the main method > INFO | jvm 2 | 2005/06/27 15:49:37 | after the logger statment > INFO | jvm 2 | 2005/06/27 15:49:37 | SocketServer is using logger > named: org.unch.webcis.medications > INFO | jvm 2 | 2005/06/27 15:49:37 | after SocketServer initilization > in the CentralLogger start method > INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerargv[0]: 4321 > argv[1]: c:\\CentralLogger.properties > INFO | jvm 2 | 2005/06/27 15:49:37 | 0 [Wrapper-Connection] INFO > org.apache.log4j.net.SocketServer - Listening on port 4321 > > INFO | jvm 2 | 2005/06/27 15:49:37 | 0 [Wrapper-Connection] INFO > org.apache.log4j.net.SocketServer - Waiting to accept a new client. > > __________________________________________ > Faysal G. Al-Zabit > APPLICATIONS ANALYST PROGRAMMER II > Information Services Division > 321 Meadowmont Village Circle > Chapel Hill NC 27517 > E-Mail: al...@un... > Tel. : 919-843-4011 > Fax. : 919-966-2110 > ____________________________________ > |
|
From: Bashiro <ba...@en...> - 2005-06-28 16:41:15
|
Not actually does my software depend on another software. No ! What I am trying to say is If you create these batch files then it will be easier for the wrapper when you call any of the batch files. I only use the TridiaNVC only if I want to see the screen of the other computer. So it does not matter actually. bashiro > Bashiro, > > Correct me if I am wrong, but doesn't your solution depend upon the VNC > software you have installed? Without extra software, as far as I know > you cannot execute batch files from one remote machine on another. Our > setup is lacking any extra software and will not be getting any. Is > there still any hope of doing what was asked? > > Thanks, > Ross Klingensmith > > > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Bashiro > Sent: Friday, June 24, 2005 1:11 PM > To: wra...@li... > Subject: RE: [Wrapper-user] Remote Start/Stop > > > I think if you create a batch file or an .sh file and place the commands > in it: example let's say you have "manage.bat" that run the service > (that contains then wrapper's main commands). And you use the command > "manage.bat start" to start the service and "manage.bat stop" to stop > the service. Then by creating a new bat file example with the name > "start.bat" and in it place the commands "manage.bat start". Then by > calling the batch file "start.bat" from a remote machine, it will then > call the main bat file to start the process. I think this will be easier > than writing the whole command. Similarly another stop.bat and placing > the commands "manage.bat stop" will also stop it. > > That's how I did it actually. I use Tridia VNC as a remote and then call > these files. > > Hope this helps > > bashiro > >> Yes, I want to programmatically be able to start/stop the service on a > >> particular machine from a different remote machine. >> >> Thanks for your responses so far, >> Ross Klingensmith >> >> >> >> -----Original Message----- >> From: wra...@li... >> [mailto:wra...@li...] On Behalf Of Bashiro >> Sent: Friday, June 24, 2005 2:55 AM >> To: wra...@li... >> Subject: Re: [Wrapper-user] Remote Start/Stop >> >> >> >> I am not sure if I have understood you clearly even though Leif has >> given you an answer. Do you mean you want to be able to start/stop the > >> service on a particular machine from a different remote machine ? >> bashiro >> >>> Is it possible to use the JavaServiceWrapper to start/stop the >>> already >> >>> installed services? I know you can do this through the netcsv command > >>> that comes with the service pack, but was wondering if it is within >>> the capabilities of the wrapper. I would want to do this so that I >>> could have another java program on a different machine be able to >>> stop/start the services without using netcsv and the dos interface. >>> >>> Thanks in advance, >>> Ross Klingensmith >>> >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Jindal, A. <anu...@fm...> - 2005-06-28 14:17:57
|
I need to make a Java applet work as a Windows Service. Can I do that with Wrapper?? Thanks, Anubhav Jindal |
|
From: Alzabit, F. <Al...@un...> - 2005-06-27 19:53:35
|
Hi, I am using org.apache.log4j.net.SocketServer as a service to centralize logging from different servers; the problem is that the SocketServer starts and goes into a loop waiting for a connection; when I implement the WrapperListener it seems that it starts the application but it does not come back even when the application is started as a thread; so the wrapper ends restarting the JVM !!! Any idea how I can get the service to start and end ? The following is the debug message I am getting : STATUS | wrapper | 2005/06/27 15:48:57 | --> Wrapper Started as Console ERROR | wrapper | 2005/06/27 15:48:57 | Unable to write to the EventLog due to: The event log file is full. (0x5de) ERROR | wrapper | 2005/06/27 15:48:57 | Internally setting wrapper.syslog.loglevel=NONE to prevent further messages. DEBUG | wrapper | 2005/06/27 15:48:57 | Using system timer. DEBUG | wrapperp | 2005/06/27 15:48:57 | server listening on port 32000. STATUS | wrapper | 2005/06/27 15:48:58 | Launching a JVM... DEBUG | wrapper | 2005/06/27 15:48:58 | command: "C:\Program Files\Java\jdk1.5.0\bin\java.exe" -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;C:/logCentral/" -Dwrapper.key="QkmW5_uFP8Oh6kEU" -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 org.unch.logcentral.core.CentralLoggerRapper 4321 c:\\CentralLogger.properties c:\\ DEBUG | wrapper | 2005/06/27 15:48:58 | JVM started (PID=884) INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerRapper , in the main class of centralLoggerRapper INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerWrapper 4321 c:\\CentralLogger.properties c:\\ INFO | jvm 1 | 2005/06/27 15:48:59 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$ExtClassLoader@a9c85c INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2005/06/27 15:48:59 | Loaded native library: wrapper.dll INFO | jvm 1 | 2005/06/27 15:48:59 | Calling native initialization method. INFO | jvm 1 | 2005/06/27 15:48:59 | Initializing WrapperManager native library. INFO | jvm 1 | 2005/06/27 15:48:59 | Java Executable: C:\Program Files\Java\jdk1.5.0\bin\java.exe INFO | jvm 1 | 2005/06/27 15:48:59 | Windows version: 5.1.2600 INFO | jvm 1 | 2005/06/27 15:48:59 | Java Version : 1.5.0-b64 Java HotSpot(TM) Client VM INFO | jvm 1 | 2005/06/27 15:48:59 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2005/06/27 15:48:59 | INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org <http://wrapper.tanukisoftware.org> INFO | jvm 1 | 2005/06/27 15:48:59 | INFO | jvm 1 | 2005/06/27 15:48:59 | WrapperManager.start(org.unch.logcentral.core.CentralLoggerRapper@a90653, args["4321", "c:\\CentralLogger.properties", "c:\\"]) called by thread: main INFO | jvm 1 | 2005/06/27 15:48:59 | Open socket to wrapper... INFO | jvm 1 | 2005/06/27 15:48:59 | Opened Socket INFO | jvm 1 | 2005/06/27 15:48:59 | Send a packet KEY : QkmW5_uFP8Oh6kEU INFO | jvm 1 | 2005/06/27 15:48:59 | handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=1156]) DEBUG | wrapperp | 2005/06/27 15:48:59 | accepted a socket from 127.0.0.1 on port 1156 DEBUG | wrapperp | 2005/06/27 15:48:59 | read a packet KEY : QkmW5_uFP8Oh6kEU DEBUG | wrapper | 2005/06/27 15:48:59 | Got key from JVM: QkmW5_uFP8Oh6kEU DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet PING_TIMEOUT : 10 DEBUG | wrapper | 2005/06/27 15:48:59 | Start Application. DEBUG | wrapperp | 2005/06/27 15:48:59 | send a packet START : start INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet PING_TIMEOUT : 10 INFO | jvm 1 | 2005/06/27 15:48:59 | Wrapper Manager: PingTimeout from Wrapper is 10000 INFO | jvm 1 | 2005/06/27 15:48:59 | Received a packet START : start INFO | jvm 1 | 2005/06/27 15:48:59 | calling listener.start() INFO | jvm 1 | 2005/06/27 15:48:59 | in the start method of CentralLoggerRapper INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerRapper, in the run method INFO | jvm 1 | 2005/06/27 15:48:59 | CentralLogger, in the main method INFO | jvm 1 | 2005/06/27 15:48:59 | after the logger statment INFO | jvm 1 | 2005/06/27 15:48:59 | SocketServer is using logger named: org.unch.webcis.medications INFO | jvm 1 | 2005/06/27 15:48:59 | after SocketServer initilization in the CentralLogger start method INFO | jvm 1 | 2005/06/27 15:48:59 | fga, CentralLoggerargv[0]: 4321 argv[1]: c:\\CentralLogger.properties INFO | jvm 1 | 2005/06/27 15:48:59 | 0 [Wrapper-Connection] INFO org.apache.log4j.net.SocketServer - Listening on port 4321 INFO | jvm 1 | 2005/06/27 15:48:59 | 0 [Wrapper-Connection] INFO org.apache.log4j.net.SocketServer - Waiting to accept a new client. ERROR | wrapper | 2005/06/27 15:49:28 | Startup failed: Timed out waiting for signal from JVM. STATUS | wrapper | 2005/06/27 15:49:28 | Dumping JVM state. DEBUG | wrapper | 2005/06/27 15:49:28 | Sending BREAK event to process group 884. INFO | jvm 1 | 2005/06/27 15:49:28 | Full thread dump Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing): INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "DestroyJavaVM" prio=5 tid=0x00037ee8 nid=0x140 waiting on condition [0x00000000..0x0007fae8] INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Wrapper-Connection" prio=5 tid=0x00acf828 nid=0x3f8 runnable [0x02ecf000..0x02ecfb68] INFO | jvm 1 | 2005/06/27 15:49:28 | at java.net.PlainSocketImpl.socketAccept(Native Method) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22aaac20> (a java.net.SocksSocketImpl) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.net.ServerSocket.implAccept(ServerSocket.java:450) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.net.ServerSocket.accept(ServerSocket.java:421) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.apache.log4j.net.SocketServer.main(SocketServer.java:100) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.unch.logcentral.core.CentralLogger.run(CentralLogger.java:69) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.unch.logcentral.core.CentralLogger.start(CentralLogger.java:44) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.unch.logcentral.core.CentralLoggerRapper.run(CentralLoggerRapper.java:83 ) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.unch.logcentral.core.CentralLoggerRapper.start(CentralLoggerRapper.java: 38) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:178 5) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:2 384) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:2696) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Thread.run(Thread.java:595) INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Wrapper-Control-Event-Monitor" daemon prio=5 tid=0x00a91298 nid=0x6b8 waiting on condition [0x02e8f000..0x02e8fbe8] INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Thread.sleep(Native Method) INFO | jvm 1 | 2005/06/27 15:49:28 | at org.tanukisoftware.wrapper.WrapperManager$2.run(WrapperManager.java:701) INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Low Memory Detector" daemon prio=5 tid=0x00a6d980 nid=0x68c runnable [0x00000000..0x00000000] INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "CompilerThread0" daemon prio=10 tid=0x00a6c558 nid=0x690 waiting on condition [0x00000000..0x02bcf6c0] INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Signal Dispatcher" daemon prio=10 tid=0x00a6b848 nid=0x430 waiting on condition [0x00000000..0x00000000] INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Finalizer" daemon prio=9 tid=0x00a68b18 nid=0x434 in Object.wait() [0x02b4f000..0x02b4fa68] INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Object.wait(Native Method) INFO | jvm 1 | 2005/06/27 15:49:28 | - waiting on <0x22f61100> (a java.lang.ref.ReferenceQueue$Lock) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22f61100> (a java.lang.ref.ReferenceQueue$Lock) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "Reference Handler" daemon prio=10 tid=0x00a46770 nid=0x3d8 in Object.wait() [0x02b0f000..0x02b0fae8] INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Object.wait(Native Method) INFO | jvm 1 | 2005/06/27 15:49:28 | - waiting on <0x22f60ef0> (a java.lang.ref.Reference$Lock) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.Object.wait(Object.java:474) INFO | jvm 1 | 2005/06/27 15:49:28 | at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) INFO | jvm 1 | 2005/06/27 15:49:28 | - locked <0x22f60ef0> (a java.lang.ref.Reference$Lock) INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "VM Thread" prio=10 tid=0x00036908 nid=0x3c8 runnable INFO | jvm 1 | 2005/06/27 15:49:28 | INFO | jvm 1 | 2005/06/27 15:49:28 | "VM Periodic Task Thread" prio=10 tid=0x00a6eb90 nid=0x5f4 waiting on condition INFO | jvm 1 | 2005/06/27 15:49:28 | ERROR | wrapper | 2005/06/27 15:49:32 | JVM did not exit on request, terminated DEBUG | wrapper | 2005/06/27 15:49:33 | JVM was only running for 35 seconds leading to a failed restart count of 1. DEBUG | wrapper | 2005/06/27 15:49:33 | Waiting 5 seconds before launching another JVM. STATUS | wrapper | 2005/06/27 15:49:37 | Launching a JVM... DEBUG | wrapper | 2005/06/27 15:49:37 | command: "C:\Program Files\Java\jdk1.5.0\bin\java.exe" -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;C:/logCentral/" -Dwrapper.key="2yqjvTR9FkXjFAvq" -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=2 org.unch.logcentral.core.CentralLoggerRapper 4321 c:\\CentralLogger.properties c:\\ DEBUG | wrapper | 2005/06/27 15:49:37 | JVM started (PID=1000) INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerRapper , in the main class of centralLoggerRapper INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerWrapper 4321 c:\\CentralLogger.properties c:\\ INFO | jvm 2 | 2005/06/27 15:49:37 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$ExtClassLoader@a9c85c INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: JVM #2 INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: Registering shutdown hook INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: Using wrapper INFO | jvm 2 | 2005/06/27 15:49:37 | Loaded native library: wrapper.dll INFO | jvm 2 | 2005/06/27 15:49:37 | Calling native initialization method. INFO | jvm 2 | 2005/06/27 15:49:37 | Initializing WrapperManager native library. INFO | jvm 2 | 2005/06/27 15:49:37 | Java Executable: C:\Program Files\Java\jdk1.5.0\bin\java.exe INFO | jvm 2 | 2005/06/27 15:49:37 | Windows version: 5.1.2600 INFO | jvm 2 | 2005/06/27 15:49:37 | Java Version : 1.5.0-b64 Java HotSpot(TM) Client VM INFO | jvm 2 | 2005/06/27 15:49:37 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 2 | 2005/06/27 15:49:37 | INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org <http://wrapper.tanukisoftware.org> INFO | jvm 2 | 2005/06/27 15:49:37 | INFO | jvm 2 | 2005/06/27 15:49:37 | WrapperManager.start(org.unch.logcentral.core.CentralLoggerRapper@a90653, args["4321", "c:\\CentralLogger.properties", "c:\\"]) called by thread: main INFO | jvm 2 | 2005/06/27 15:49:37 | Open socket to wrapper... INFO | jvm 2 | 2005/06/27 15:49:37 | Opened Socket INFO | jvm 2 | 2005/06/27 15:49:37 | Send a packet KEY : 2yqjvTR9FkXjFAvq INFO | jvm 2 | 2005/06/27 15:49:37 | handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=1157]) DEBUG | wrapperp | 2005/06/27 15:49:37 | accepted a socket from 127.0.0.1 on port 1157 DEBUG | wrapperp | 2005/06/27 15:49:37 | read a packet KEY : 2yqjvTR9FkXjFAvq DEBUG | wrapper | 2005/06/27 15:49:37 | Got key from JVM: 2yqjvTR9FkXjFAvq DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet PING_TIMEOUT : 10 DEBUG | wrapper | 2005/06/27 15:49:37 | Start Application. DEBUG | wrapperp | 2005/06/27 15:49:37 | send a packet START : start INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet PING_TIMEOUT : 10 INFO | jvm 2 | 2005/06/27 15:49:37 | Wrapper Manager: PingTimeout from Wrapper is 10000 INFO | jvm 2 | 2005/06/27 15:49:37 | Received a packet START : start INFO | jvm 2 | 2005/06/27 15:49:37 | calling listener.start() INFO | jvm 2 | 2005/06/27 15:49:37 | in the start method of CentralLoggerRapper INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerRapper, in the run method INFO | jvm 2 | 2005/06/27 15:49:37 | CentralLogger, in the main method INFO | jvm 2 | 2005/06/27 15:49:37 | after the logger statment INFO | jvm 2 | 2005/06/27 15:49:37 | SocketServer is using logger named: org.unch.webcis.medications INFO | jvm 2 | 2005/06/27 15:49:37 | after SocketServer initilization in the CentralLogger start method INFO | jvm 2 | 2005/06/27 15:49:37 | fga, CentralLoggerargv[0]: 4321 argv[1]: c:\\CentralLogger.properties INFO | jvm 2 | 2005/06/27 15:49:37 | 0 [Wrapper-Connection] INFO org.apache.log4j.net.SocketServer - Listening on port 4321 INFO | jvm 2 | 2005/06/27 15:49:37 | 0 [Wrapper-Connection] INFO org.apache.log4j.net.SocketServer - Waiting to accept a new client. __________________________________________ Faysal G. Al-Zabit APPLICATIONS ANALYST PROGRAMMER II Information Services Division 321 Meadowmont Village Circle Chapel Hill NC 27517 E-Mail: al...@un... Tel. : 919-843-4011 Fax. : 919-966-2110 ____________________________________ |
|
From: Klingensmith, R. F <ros...@lm...> - 2005-06-27 12:55:11
|
Bashiro, Correct me if I am wrong, but doesn't your solution depend upon the VNC software you have installed? Without extra software, as far as I know you cannot execute batch files from one remote machine on another. Our setup is lacking any extra software and will not be getting any. Is there still any hope of doing what was asked? Thanks, Ross Klingensmith -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of Bashiro Sent: Friday, June 24, 2005 1:11 PM To: wra...@li... Subject: RE: [Wrapper-user] Remote Start/Stop I think if you create a batch file or an .sh file and place the commands in it: example let's say you have "manage.bat" that run the service (that contains then wrapper's main commands). And you use the command "manage.bat start" to start the service and "manage.bat stop" to stop the service. Then by creating a new bat file example with the name "start.bat" and in it place the commands "manage.bat start". Then by calling the batch file "start.bat" from a remote machine, it will then call the main bat file to start the process. I think this will be easier than writing the whole command. Similarly another stop.bat and placing the commands "manage.bat stop" will also stop it. That's how I did it actually. I use Tridia VNC as a remote and then call these files. Hope this helps bashiro > Yes, I want to programmatically be able to start/stop the service on a > particular machine from a different remote machine. > > Thanks for your responses so far, > Ross Klingensmith > > > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Bashiro > Sent: Friday, June 24, 2005 2:55 AM > To: wra...@li... > Subject: Re: [Wrapper-user] Remote Start/Stop > > > > I am not sure if I have understood you clearly even though Leif has > given you an answer. Do you mean you want to be able to start/stop the > service on a particular machine from a different remote machine ? > bashiro > >> Is it possible to use the JavaServiceWrapper to start/stop the >> already > >> installed services? I know you can do this through the netcsv command >> that comes with the service pack, but was wondering if it is within >> the capabilities of the wrapper. I would want to do this so that I >> could have another java program on a different machine be able to >> stop/start the services without using netcsv and the dos interface. >> >> Thanks in advance, >> Ross Klingensmith >> >> >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Yogesh P. <yog...@ho...> - 2005-06-27 10:52:07
|
<html><div style='background-color:'><P><FONT face=Arial size=2>I've got a class running under Simple Wrapper which gets executed at the start of my machine. When I'm calling my class from the wrapper that uses java reflection api it gives me following error:</FONT></P> <P><FONT face=Arial size=2>WrapperSimpleApp: Encountered an error running main: java.lang.NoSuchFieldError: </FONT></P> <DIV class=RTE>When I trying running it normally it works fine. If I take out the reflection bit and run my class it wrapper it works fine.</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Any solution to this problem???</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Thanks</DIV></div></html> |
|
From: Bashiro <ba...@en...> - 2005-06-24 17:11:13
|
I think if you create a batch file or an .sh file and place the commands in it: example let's say you have "manage.bat" that run the service (that contains then wrapper's main commands). And you use the command "manage.bat start" to start the service and "manage.bat stop" to stop the service. Then by creating a new bat file example with the name "start.bat" and in it place the commands "manage.bat start". Then by calling the batch file "start.bat" from a remote machine, it will then call the main bat file to start the process. I think this will be easier than writing the whole command. Similarly another stop.bat and placing the commands "manage.bat stop" will also stop it. That's how I did it actually. I use Tridia VNC as a remote and then call these files. Hope this helps bashiro > Yes, I want to programmatically be able to start/stop the service on a > particular machine from a different remote machine. > > Thanks for your responses so far, > Ross Klingensmith > > > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Bashiro > Sent: Friday, June 24, 2005 2:55 AM > To: wra...@li... > Subject: Re: [Wrapper-user] Remote Start/Stop > > > > I am not sure if I have understood you clearly even though Leif has > given you an answer. Do you mean you want to be able to start/stop the > service on a particular machine from a different remote machine ? > bashiro > >> Is it possible to use the JavaServiceWrapper to start/stop the already > >> installed services? I know you can do this through the netcsv command >> that comes with the service pack, but was wondering if it is within >> the capabilities of the wrapper. I would want to do this so that I >> could have another java program on a different machine be able to >> stop/start the services without using netcsv and the dos interface. >> >> Thanks in advance, >> Ross Klingensmith >> >> >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2005-06-24 14:14:46
|
Billie,
The stack trace from the first call is a bit strange. Seems rather
deep in the sun code
and I am not familiar enough with that API to say what would be causing it.
Your second question sounds like a path or file permissions
problem. If you are using
the scripts shipped with the Wrapper to start you application, then the
JVM's user
directory will be the location of the shell script. This means that all
paths are relative
to that directory. Is it possible that you relative paths are relative
to some other point?
Try doing some File.getAbsolutePath() debug calls in your code to
see exactly
where the files are being looked for.
Cheers,
Leif
Batbileg wrote:
>Hi all,
>
>I was reading through the documentation and archives of mailing list and could not find answer for my question. I have application ServerImpl which is in server.jar. I am trying to run this rmi server as linux daemon. RMi server uses custom socket RMISSLServerSocketFactory and RMISSLClientSocketFactory. Regitry creates regitry at port 1110 and binds the implemination of the object using UnicastRemotreObject.exportObject on port 5001.
>
>I have changed name of the sh.script.in to server. When I run ./server start or console from inside the server users folder its ok. No problems.
>
>1st question. When I do service server start then I receive following exception:
>
> INFO | jvm 1 | 2005/06/24 14:14:59 | java.rmi.server.ExportException: Listen failed on port: 5001; nested exception is:
>INFO | jvm 1 | 2005/06/24 14:14:59 | java.net.SocketException: Default SSL context init failed: null
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startInterfaces(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startWork(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.<init>(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.main(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.reflect.Method.invoke(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.Thread.run(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | Caused by: java.net.SocketException: Default SSL context init failed: null
>INFO | jvm 1 | 2005/06/24 14:14:59 | at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.utils.rmi.RMISSLServerSocketFactory.createServerSocket(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source)
>INFO | jvm 1 | 2005/06/24 14:14:59 | ... 18 more
>
>When I run just ./server script my applications starts normally.
>
>Any ideas on this issue.
>
>2nd question is I use LOAD FROM FILE statement from MySql and Log4j for logging and lot of other operations related to file system. However, when I run this scripts at runtime, my application does not start because, it can not find config files that are configured. I use relative path inside my application, because, I have no idea at which directory my application will be installed. Can you give me any ideas on how to solve this issue.
>
>Thanks a lot in advance and looking forward hearing from you and also participating in this great project. It seems to be a great staff.
>
>Regards,
>
>Billie
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|
|
From: Batbileg <red...@or...> - 2005-06-24 12:33:03
|
Hi all, I was reading through the documentation and archives of mailing list and could not find answer for my question. I have application ServerImpl which is in server.jar. I am trying to run this rmi server as linux daemon. RMi server uses custom socket RMISSLServerSocketFactory and RMISSLClientSocketFactory. Regitry creates regitry at port 1110 and binds the implemination of the object using UnicastRemotreObject.exportObject on port 5001. I have changed name of the sh.script.in to server. When I run ./server start or console from inside the server users folder its ok. No problems. 1st question. When I do service server start then I receive following exception: INFO | jvm 1 | 2005/06/24 14:14:59 | java.rmi.server.ExportException: Listen failed on port: 5001; nested exception is: INFO | jvm 1 | 2005/06/24 14:14:59 | java.net.SocketException: Default SSL context init failed: null INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.LiveRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startInterfaces(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startWork(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.<init>(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.main(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | Caused by: java.net.SocketException: Default SSL context init failed: null INFO | jvm 1 | 2005/06/24 14:14:59 | at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.utils.rmi.RMISSLServerSocketFactory.createServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | ... 18 more When I run just ./server script my applications starts normally. Any ideas on this issue. 2nd question is I use LOAD FROM FILE statement from MySql and Log4j for logging and lot of other operations related to file system. However, when I run this scripts at runtime, my application does not start because, it can not find config files that are configured. I use relative path inside my application, because, I have no idea at which directory my application will be installed. Can you give me any ideas on how to solve this issue. Thanks a lot in advance and looking forward hearing from you and also participating in this great project. It seems to be a great staff. Regards, Billie |
|
From: Klingensmith, R. F <ros...@lm...> - 2005-06-24 11:28:52
|
Yes, I want to programmatically be able to start/stop the service on a particular machine from a different remote machine. Thanks for your responses so far, Ross Klingensmith -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of Bashiro Sent: Friday, June 24, 2005 2:55 AM To: wra...@li... Subject: Re: [Wrapper-user] Remote Start/Stop I am not sure if I have understood you clearly even though Leif has given you an answer. Do you mean you want to be able to start/stop the service on a particular machine from a different remote machine ? bashiro > Is it possible to use the JavaServiceWrapper to start/stop the already > installed services? I know you can do this through the netcsv command > that comes with the service pack, but was wondering if it is within > the capabilities of the wrapper. I would want to do this so that I > could have another java program on a different machine be able to > stop/start the services without using netcsv and the dos interface. > > Thanks in advance, > Ross Klingensmith > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Bashiro <ba...@en...> - 2005-06-24 06:55:28
|
I am not sure if I have understood you clearly even though Leif has given you an answer. Do you mean you want to be able to start/stop the service on a particular machine from a different remote machine ? bashiro > Is it possible to use the JavaServiceWrapper to start/stop the already > installed services? I know you can do this through the netcsv command > that comes with the service pack, but was wondering if it is within the > capabilities of the wrapper. I would want to do this so that I could > have another java program on a different machine be able to stop/start > the services without using netcsv and the dos interface. > > Thanks in advance, > Ross Klingensmith > > > |
|
From: Leif M. <le...@ta...> - 2005-06-23 22:19:17
|
Ross,
Currently the only non-standard way to start a service is by
executing the Wrapper
with the -t (Start) or -p (Stop) command line options. This does what
net start/stop
does but works much more reliably when the service takes more than a few
seconds
to either start or stop.
You can make use of some of the other features to stop your service
remotely.
The wrapper will shutdown if its anchor file is deleted:
See http://wrapper.tanukisoftware.org/doc/english/prop-anchorfile.html
You can also set up the Action server. See WrapperActionServer in the
javadocs for details. It lets you connect and control the Wrapper via
telnet.
This is a security problem if allowed remotely of course.
http://wrapper.tanukisoftware.org/doc/english/javadocs.html
If you have any ideas for how to implement what you are asking, please
post them and I'll try to work them into a future release.
Cheers,
Leif
Klingensmith, Ross F wrote:
> Is it possible to use the JavaServiceWrapper to start/stop the already
> installed services? I know you can do this through the netcsv command
> that comes with the service pack, but was wondering if it is within
> the capabilities of the wrapper. I would want to do this so that I
> could have another java program on a different machine be able to
> stop/start the services without using netcsv and the dos interface.
>
> Thanks in advance,
> Ross Klingensmith
>
>
|
|
From: Klingensmith, R. F <ros...@lm...> - 2005-06-23 17:11:39
|
Is it possible to use the JavaServiceWrapper to start/stop the already installed services? I know you can do this through the netcsv command that comes with the service pack, but was wondering if it is within the capabilities of the wrapper. I would want to do this so that I could have another java program on a different machine be able to stop/start the services without using netcsv and the dos interface. Thanks in advance, Ross Klingensmith |
|
From: Leif M. <le...@ta...> - 2005-06-22 21:50:06
|
Santo,
I am not familiar with AIX personally. It is built by a user who
donates their time.
This problem has been seen on other platforms however when a 32-bit
version of
the Wrapper is run with a 64-bit JVM. The Wrapper binary works fine as
it is a
separate process. But the native library is not able to be loaded due
to linking
problems.
The other possible causes, a bad so file and file permissions, have
already been
checked by you.
You might want to try running with "-verbose:jni -Xcheck:jni" set
when launching
the JVM. That might (??) give you a little more information.
Cheers,
Leif
First Last wrote:
> Hi,
>
> I'm using the java service wrapper on several platforms (windows,
> solaris and aix).
> On the aix platform, I get the following error:
>
> STATUS | wrapper | 2005/06/14 11:37:29 | --> Wrapper Started as Daemon
> STATUS | wrapper | 2005/06/14 11:37:29 | Launching a JVM...
> INFO | jvm 1 | 2005/06/14 11:37:30 |
> INFO | jvm 1 | 2005/06/14 11:37:30 | WARNING - Unable to load the
> Wrapper's native library 'libwrapper.so'.
> INFO | jvm 1 | 2005/06/14 11:37:30 | The file is
> located on the path at the following location but
> INFO | jvm 1 | 2005/06/14 11:37:30 | could not be loaded:
> INFO | jvm 1 | 2005/06/14 11:37:30 |
> /TivoliNotFwk/dman/bin/aix/./libwrapper.so
> INFO | jvm 1 | 2005/06/14 11:37:30 | Please verify that
> the file is readable by the current user
> INFO | jvm 1 | 2005/06/14 11:37:30 | and that the file
> has not been corrupted in any way.
> INFO | jvm 1 | 2005/06/14 11:37:30 | System signals
> will not be handled correctly.
> INFO | jvm 1 | 2005/06/14 11:37:30 |
> INFO | jvm 1 | 2005/06/14 11:37:30 | Wrapper (Version 3.1.2)
> http://wrapper.tanukisoftware.org
>
> Despite the error, the application gets started, but we are not able
> to shut it down in a normal way (only with kill -9)
>
> I already tried to redownload the wrapper files, changing the file
> permissions, but nothing helps.
> Seems like the native library is corrupt in some way ?
>
> I'm using v3.1.2 (as far as I know that's the most recent version)
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
|
|
From: Leif M. <le...@ta...> - 2005-06-20 21:19:02
|
Unfortunately no, it not currently possible to do this. It has been a requested feature for quite some time, but I have not yet gotten it implemented. The wrapper log file currently is rolled based on file size then the names come out as wrapper.log wrapper.log.1 wrapper.log.2 etc. #1 is always the most recently rolled file, #2 the next, etc. This was based on the way UNIX systems handle their syslog files. Cheers, Leif Piglet Java wrote: >hello all, > >Im wondering if its possible for the log filename to be dynamic, let's say the current date >appended to the filename? > >example >wrapper_20050616.log >wrapper_20050617.log >wrapper_20050618.log > >thanks, >piglet > > |
|
From: Leif M. <le...@ta...> - 2005-06-20 21:15:45
|
Philip, I am not really clear on what you are asking? If you are using the WrapperStartStopApp then you define a start and stop main class that the Wrapper uses to start and stop the application. I will guess for now that this is what you are doing. The problem is that the Wrapper launches a single JVM and then runs the main methods of the start and stop classes at the appropriate times. So no, there is no way to set different classpaths for each. Something like that could be implemented if each of the classes did their own class loader management, but that would get into some fairly advanced Java development and would add quite a bit of complexity. If you could explain the problem you are having, I may have some ideas on how to work around them. Cheers, Leif Philip Swenson wrote: > Is there a way to have a different classpath for starting and stopping > the windows service? > thanks, > phil |
|
From: Piglet J. <pig...@ya...> - 2005-06-20 13:28:31
|
hello all, Im wondering if its possible for the log filename to be dynamic, let's say the current date appended to the filename? example wrapper_20050616.log wrapper_20050617.log wrapper_20050618.log thanks, piglet __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Philip S. <phi...@we...> - 2005-06-17 20:09:00
|
Is there a way to have a different classpath for starting and stopping the windows service? thanks, phil |
|
From: O.B. <sou...@da...> - 2005-06-17 00:37:56
|
Oh nevermind. I forgot to set the wrapper.ntservice.interactive flag in my conf file to true. O.B. wrote: > I have the following snip of code in my java program which displayed a > message box just fine when not running as an NT service. How do I go > about getting it to be displayed to the user when running as an NT service? > > JOptionPane.showMessageDialog(new JFrame(), > "This is a test", > "Data Import Message", > JOptionPane.ERROR_MESSAGE); > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |
|
From: O.B. <sou...@da...> - 2005-06-17 00:08:50
|
I have the following snip of code in my java program which displayed a
message box just fine when not running as an NT service. How do I go
about getting it to be displayed to the user when running as an NT service?
JOptionPane.showMessageDialog(new JFrame(),
"This is a test",
"Data Import Message",
JOptionPane.ERROR_MESSAGE);
|
|
From: <ca_...@gm...> - 2005-06-14 14:58:43
|
Maybe you could make it as an option ? With a description of the advantages/disadvantages of the solution. I personally don't need the wrapper running when the jvm is crashed, because if this would happen i have a serious problem i must solve. mfg Carsten Leif Mortenson schrieb: > Carsten, > It is technically possible to make the Wrapper launch the JVM > directly as a DLL. > The problem there is that if the JVM crashed, so would the Wrapper as > they would > be one and the same. The Wrapper would simply become another way to > launch > the JVM, there would be no monitoring or error recovery features. > As you mentioned, other solutions like that already exist out there. > > Cheers, > Leif > > Carsten Schäfer wrote: > >> Thanks for your answers. >> I think i will copy the java.exe. >> But it's not the best solution. >> It would be a large improvement if there is only one process per >> service (the name of the wrapper.exe). >> With Java Service Launcher(http://www.roeschter.com/) it is possible. >> >> mfg >> Carsten >> >> Leif Mortenson schrieb: >> >>> Carsten, >>> Another option is to add the following: >>> wrapper.pidfile=./wrapper.pid >>> wrapper.java.pidfile=./java.pid >>> >>> That will cause pid files to be created for each process. You >>> can then use those ids >>> to look up the processes in the task manager (Windows) or process list. >>> >>> Renaming the exes is also a trick I have used a few times. >>> >>> Cheers, >>> Leif >>> >>> EXT-Patel, Rajesh M wrote: >>> >>>> I just make a copy of the java.exe and rename the copy >>>> to the name of my service. Then you point JSW at the >>>> new java executeable. Now instead of java.exe you >>>> get the name of your process in the process list. >>>> >>>> Raj >>>> >>>> -----Original Message----- >>>> From: Carsten Schäfer [mailto:ca_...@gm...] Sent: Monday, >>>> June 13, 2005 5:24 PM >>>> To: wra...@li... >>>> Subject: [Wrapper-user] Is only one process per service possible ? >>>> >>>> >>>> For every service installed and running there are two proccesses in >>>> the process list: >>>> java.exe and wrapper.exe. >>>> I can give wrapper.exe an own name but the really interessting >>>> process in the list is the java.exe process. >>>> With more than one java-service installed it's not possible to see >>>> what java.exe belong to what service. >>>> Is it possible to have only one process per service ? >>>> Or what is the way to identify my services (with more than one java >>>> process running) ? >>>> >>>> mfg >>>> Carsten >>>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: NEC IT Guy Games. How far can you >> shotput >> a projector? How fast can you ride your desk chair down the office >> luge track? >> If you want to score the big prize, get to know the little guy. Play >> to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office > luge track? > If you want to score the big prize, get to know the little guy. Play > to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |