Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
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
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
|
3
|
4
(5) |
5
(9) |
6
(2) |
7
|
8
|
9
|
10
|
11
|
12
(2) |
13
(3) |
14
|
15
|
16
|
17
|
18
|
19
(2) |
20
|
21
|
22
(1) |
23
(6) |
24
(2) |
25
(1) |
26
(3) |
27
(8) |
28
|
29
(1) |
30
(6) |
31
(4) |
|
|
|
|
From: Anastasios Angelidis <voodoo@vi...> - 2006-01-31 22:00:08
|
Thanks it's just that the 3rd party app I'm trying to wrap is very verbose on the console... But it has it's own logs... I'm sure it loags it's own exceptions! Unless you saying I wont see crash duimps of the wrapper... Leif Mortenson wrote: > Anastasios, > Try this: > wrapper.logfile.loglevel=STATUS > > You will still see the output in the console, but it will not be > shown in the log file. > The problem with doing this is that you may lose other information > that you really do > want to see. For example crash dumps etc. > > A better solution may be to do something like this: > wrapper.logfile.maxsize=1m > wrapper.logfile.maxfiles=1 > > By doing this, the wrapper.log file will always be renamed to > wrapper.log.1 > when it exceeds 1Mb in size. The max files specifies the maximum > number of > rolled log files that will be kept around. By doing this, you will be > able to see > all recent log output, but will also be able to guarantee that the > wrapper's log > files will never use more than 2Mb of disk space. > > Cheers, > Leif > > Anastasios Angelidis wrote: > >> Is there a way to stop the wrapper from outputting console messages >> to the log? I'm using a 3rd party app which outputs alot to the >> console. So everything gets logged to the wrapper log which I dont >> want it to! Thanks > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wrapper-user@... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
From: Doug Tanner <doug.tanner@be...> - 2006-01-31 12:30:42
|
Leif, Yes, my log4j.xml is in the same folder as the wrapper.exe. I know the=20 -Dlog4j.configuration=3Dlog4j.xml is correct b/c if I try to run my program without the wrapper, it runs just fine. Here is the command I use to run my program: Java -Dlog4j.configuration=3Dlog4j.xml -Dlog4j.debug=3Dtrue=20 -Dconnection.properties=3Dtest.connection.properties = -classpath=3D[insert all jars that I have included in the wrapper.conf file] -Xmx256m bf.cbm.util.shecduler.SchedulerManager I actually have a .bat file that runs the command. Also, while trying to figure out this log4j problem, I have encountered a new error. Please see attachment for this new error. Thanks for the help, Doug Tanner -----Original Message----- From: wrapper-user-admin@... [mailto:wrapper-user-admin@...] On Behalf Of Leif Mortenson Sent: Monday, January 30, 2006 9:35 PM To: wrapper-user@... Subject: Re: [Wrapper-user] Log4j problem. Doug, I 'm not a bit log4j user myself. I had to read over the log to=20 even see what your problem is. I assume it is the following two lines? INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN No appenders could=20 be found for logger (bf.cbm.util.io.Loader). INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN Please initialize=20 the log4j system properly. This is most likely because of a log4j configuration problem. Ie=20 the configuration is invalid or more likely, the config file is not being found. Log4j=20 can locate its configuration on the classpath or in your case by specifying a specific=20 log file using a system property. I assume that the -Dlog4j.configuration=3Dlog4j.xml syntax is=20 correct. This will be looking for a file ./log4j.xml in the same directory as your=20 wrapper.exe. Is that where it is located? Remember that all relative paths are relative to the=20 location of the wrapper.exe. Cheers, Leif Doug Tanner wrote: > > I have read the different threads dealing with Log4j problems, but=20 > none of them seem to have posted the fix/conclusion to the problem. > > =20 > > Here is my wrapper.log file: > <snip log file> > > =20 > Can anyone tell me if they see a problem with this setup? I cannot=20 > seem to get the wrapper to use the log4j.xml file so that I can=20 > monitor the output of the java program that it is running. > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user *************************************************************************= *************** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is = intended only for the individual or entity to which it is addressed and = may contain information that is confidential and protected by law. = Unauthorized review, use, disclosure, or dissemination of this = communication or its contents in any way is prohibited and may be = unlawful. If you are not the intended recipient or a person responsible = for delivering this message to an intended recipient, please notify the = original sender immediately by e-mail or telephone, return the original = message to the original sender or to bfpostmaster@..., and = destroy all copies or derivations of the original message. Thank you. = (BFeComNote Rev. 08/01/2005) *************************************************************************= ************** |
From: Leif Mortenson <leif@ta...> - 2006-01-31 02:34:32
|
Doug, I 'm not a bit log4j user myself. I had to read over the log to even see what your problem is. I assume it is the following two lines? INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN No appenders could be found for logger (bf.cbm.util.io.Loader). INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN Please initialize the log4j system properly. This is most likely because of a log4j configuration problem. Ie the configuration is invalid or more likely, the config file is not being found. Log4j can locate its configuration on the classpath or in your case by specifying a specific log file using a system property. I assume that the -Dlog4j.configuration=log4j.xml syntax is correct. This will be looking for a file ./log4j.xml in the same directory as your wrapper.exe. Is that where it is located? Remember that all relative paths are relative to the location of the wrapper.exe. Cheers, Leif Doug Tanner wrote: > > I have read the different threads dealing with Log4j problems, but > none of them seem to have posted the fix/conclusion to the problem. > > > > Here is my wrapper.log file: > <snip log file> > > > Can anyone tell me if they see a problem with this setup? I cannot > seem to get the wrapper to use the log4j.xml file so that I can > monitor the output of the java program that it is running. > |
From: Leif Mortenson <leif@ta...> - 2006-01-31 02:23:35
|
David, Thanks for the log. I'm pretty sure this problem is now fixed. I added a note about this problem to the release notes as well. Glad you have found the wrapper useful. :-) Cheers, Leif David McCullars wrote: > Thanks for such a speedy reply! I added the debugging as requested > and attached the output of the error. But good news, I tried the > latest build as you suggested, and it has worked several times in a > row. I am assuming since it seems to be working you don't wish a log > file for it, but I'll be happy to send you one if you desire. > > So I guess I'll just use this latest version until 3.2.0 becomes > available. (Makes me feel a little better to know the problem wasn't > between the keyboard and chair.) Anyway, absolutely love this > application -- it kicks ass! > > David |
From: David McCullars <dmccullars@ch...> - 2006-01-30 16:50:24
|
Thanks for the feedback. However, we actually already had JBoss outputing to the console, so the wrapper was seeing the OOME -- it was shuting down just fine upon detection of the OOME, just not coming back up. The good news, though, is that Leif's latest changes mentioned below fixed the issue. So if anyone else is having this issue, you'll want to upgrade to 3.2.0. David Richard Emberson wrote: > If you are using JBoss and its logging to a file, then the wrapper > will not see > the OOME error log message. You MUST also log (at least at the error > level) > to the console for the wrapper to see the OOME error message. > We just discovered this truth. Restart on OOME used to work. Then someone > change the log4j.xml file (no longer logging to console). Then the JBoss > system stopped restarting on OOME. It took a while to figure out that > the left hand did not know why the right hand had set up the log4j in a > certain way. > good luck. > > RME > > > Leif Mortenson wrote: > >> David, >> Reviewing the code of 3.1.2 and the latest trunk, I think that I >> may have fixed this >> while implementing another change. Could you please add the >> following properties: >> wrapper.debug=true >> wrapper.state_output=true >> wrapper.loop_output=true >> >> This will kick out a lot of output, but it will tell me exactly >> what is happening. >> Once you have reproduced the problem, tar.gz the resulting >> wrapper.log file and >> then send it to me directly off list. >> >> I have also created a snapshot of the latest build undergoing >> testing for the next >> release. I would appreciate any feedback about whether or not it is >> fixed using this >> version. If not, then I would also like to see the same output as >> for the 3.1.2 >> version above. >> http://wrapper.tanukisoftware.org/tmp/3.2.0-c/wrapper-linux-x86-32-3.2.0-c.tar.gz >> >> (This version will NOT be supported once the 3.2.0 release is out.) >> >> Cheers, >> Leif >> >> >> David McCullars wrote: >> >>> I've got the wrapper working well on a CentOS 3.6 system to wrap >>> JBoss 4 >>> (with Sun's Java 1.5.0_05-b05). It starts and stops perfectly, but I >>> was really needing the restart filter to work on out of memory errors >>> (something we've had a problem with historically). I added the >>> trigger, >>> and it attempts to do a restart when I create an OOME, but the wrapper >>> crashes 9 times out of 10 when it checks to see if the JVM halted: >>> >>> Shutdown complete >>> Halting VM >>> Critical error: wait for JVM process failed (No child processes) >>> >>> I've tried all sorts of wrapper.conf settings to see if something >>> works, >>> but it's only restarted twice, and it never did it more than once in a >>> row. Here's the latest config file for what it's worth. I'm really >>> hoping I'm just doing something stupid because JSW kicks ass! >>> >>> set.JAVA_HOME=/usr/local/java >>> set.JBOSS_HOME=/usr/local/jboss >>> wrapper.java.command=%JAVA_HOME%/bin/java >>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp >>> wrapper.java.classpath.1=../lib/wrapper.jar >>> wrapper.java.classpath.2=%JBOSS_HOME%/bin/run.jar >>> wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar >>> wrapper.java.library.path.1=../lib >>> wrapper.java.additional.1=-Dprogram.name=run.sh >>> wrapper.java.additional.2=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl >>> >>> wrapper.java.additional.3=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed >>> >>> wrapper.java.additional.4=-verbosegc >>> wrapper.java.initmemory=1024 >>> wrapper.java.maxmemory=1024 >>> wrapper.app.parameter.1=org.jboss.Main >>> wrapper.console.format=M >>> wrapper.console.loglevel=INFO >>> wrapper.logfile=../jboss.log >>> wrapper.logfile.format=LTM >>> wrapper.logfile.loglevel=INFO >>> wrapper.logfile.maxsize=10m >>> wrapper.logfile.maxfiles=4 >>> wrapper.syslog.loglevel=NONE >>> wrapper.filter.trigger.1=java.lang.OutOfMemoryError >>> wrapper.filter.action.1=RESTART >>> wrapper.restart.delay=30 >>> >>> If anyone can throw some light my way, I'd be most indebted! >>> >>> David >> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Wrapper-user mailing list >> Wrapper-user@... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > |
From: Richard Emberson <remberson@ed...> - 2006-01-30 15:06:58
|
If you are using JBoss and its logging to a file, then the wrapper will not see the OOME error log message. You MUST also log (at least at the error level) to the console for the wrapper to see the OOME error message. We just discovered this truth. Restart on OOME used to work. Then someone change the log4j.xml file (no longer logging to console). Then the JBoss system stopped restarting on OOME. It took a while to figure out that the left hand did not know why the right hand had set up the log4j in a certain way. good luck. RME Leif Mortenson wrote: > David, > Reviewing the code of 3.1.2 and the latest trunk, I think that I > may have fixed this > while implementing another change. Could you please add the following > properties: > wrapper.debug=true > wrapper.state_output=true > wrapper.loop_output=true > > This will kick out a lot of output, but it will tell me exactly > what is happening. > Once you have reproduced the problem, tar.gz the resulting wrapper.log > file and > then send it to me directly off list. > > I have also created a snapshot of the latest build undergoing > testing for the next > release. I would appreciate any feedback about whether or not it is > fixed using this > version. If not, then I would also like to see the same output as for > the 3.1.2 > version above. > http://wrapper.tanukisoftware.org/tmp/3.2.0-c/wrapper-linux-x86-32-3.2.0-c.tar.gz > > (This version will NOT be supported once the 3.2.0 release is out.) > > Cheers, > Leif > > > David McCullars wrote: > >> I've got the wrapper working well on a CentOS 3.6 system to wrap JBoss 4 >> (with Sun's Java 1.5.0_05-b05). It starts and stops perfectly, but I >> was really needing the restart filter to work on out of memory errors >> (something we've had a problem with historically). I added the trigger, >> and it attempts to do a restart when I create an OOME, but the wrapper >> crashes 9 times out of 10 when it checks to see if the JVM halted: >> >> Shutdown complete >> Halting VM >> Critical error: wait for JVM process failed (No child processes) >> >> I've tried all sorts of wrapper.conf settings to see if something works, >> but it's only restarted twice, and it never did it more than once in a >> row. Here's the latest config file for what it's worth. I'm really >> hoping I'm just doing something stupid because JSW kicks ass! >> >> set.JAVA_HOME=/usr/local/java >> set.JBOSS_HOME=/usr/local/jboss >> wrapper.java.command=%JAVA_HOME%/bin/java >> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp >> wrapper.java.classpath.1=../lib/wrapper.jar >> wrapper.java.classpath.2=%JBOSS_HOME%/bin/run.jar >> wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar >> wrapper.java.library.path.1=../lib >> wrapper.java.additional.1=-Dprogram.name=run.sh >> wrapper.java.additional.2=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl >> >> wrapper.java.additional.3=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed >> wrapper.java.additional.4=-verbosegc >> wrapper.java.initmemory=1024 >> wrapper.java.maxmemory=1024 >> wrapper.app.parameter.1=org.jboss.Main >> wrapper.console.format=M >> wrapper.console.loglevel=INFO >> wrapper.logfile=../jboss.log >> wrapper.logfile.format=LTM >> wrapper.logfile.loglevel=INFO >> wrapper.logfile.maxsize=10m >> wrapper.logfile.maxfiles=4 >> wrapper.syslog.loglevel=NONE >> wrapper.filter.trigger.1=java.lang.OutOfMemoryError >> wrapper.filter.action.1=RESTART >> wrapper.restart.delay=30 >> >> If anyone can throw some light my way, I'd be most indebted! >> >> David > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wrapper-user@... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > -- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. |
From: Doug Tanner <doug.tanner@be...> - 2006-01-30 13:51:24
|
I have read the different threads dealing with Log4j problems, but none of them seem to have posted the fix/conclusion to the problem. =20 Here is my wrapper.log file: =20 STATUS | wrapper | 2006/01/30 08:42:25 | --> Wrapper Started as Service DEBUG | wrapper | 2006/01/30 08:42:25 | Using system timer. DEBUG | wrapperp | 2006/01/30 08:42:25 | server listening on port 32000. STATUS | wrapper | 2006/01/30 08:42:25 | Launching a JVM... DEBUG | wrapper | 2006/01/30 08:42:25 | command: "C:\oracle\ora92\jre\1.4.2\bin\java.exe" = -Dlog4j.configuration=3Dlog4j.xml -Dconnection.properties=3Drelatl.connection.properties -Xms256m -Xmx256m -Djava.library.path=3D"../lib;C:/bea81/jdk142_08/bin;C:/oracle/ora92/bin"= -classpath "../lib/bsh-1.3b2.jar;../lib/coremessaging-client.jar;../lib/coremessagi ng.jar;../lib/junit-3_8_1.jar;../lib/wrapper.jar;../lib/wrappertest.jar; ../lib/xalan.jar;../lib/xerces.jar;../lib/bf/cbm-client.jar;../lib/bf/cb m-support.jar;../lib/jakarta/commons-beanutils-1.7.0.jar;../lib/jakarta/ commons-codec-1.3.jar;../lib/jakarta/commons-collections-3.1.jar;../lib/ jakarta/commons-dbutils-1.0.jar;../lib/jakarta/commons-digester-1.5.jar; ../lib/jakarta/commons-io-1.0.jar;../lib/jakarta/commons-lang-2.0.jar;.. /lib/jakarta/commons-logging-1.0.4.jar;../lib/jakarta/jakarta-oro-2.0.8. jar;../lib/jakarta/log4j-1_2_8.jar;../lib/security/BfRdbmsAuthenticator. jar;../lib/security/SecurityActionInterface.jar;../lib/security/Security Adapters.jar;../lib/security/SecurityCommon.jar;../lib/quartz/commons-db cp-1.1.jar;../lib/quartz/commons-pool-1.1.jar;../lib/quartz/jdbc2_0-stde xt.jar;../lib/quartz/quartz.jar" -Dwrapper.key=3D"YGAyFo_tJZF4dQUs" -Dwrapper.port=3D32000 -Dwrapper.debug=3D"TRUE" -Dwrapper.use_system_time=3D"TRUE" -Dwrapper.version=3D"3.1.2" -Dwrapper.native_library=3D"wrapper" -Dwrapper.service=3D"TRUE" -Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1 org.tanukisoftware.wrapper.WrapperSimpleApp bf.cbm.util.scheduler.SchedulerManager addSampleJob DEBUG | wrapper | 2006/01/30 08:42:25 | JVM started (PID=3D1200) INFO | jvm 1 | 2006/01/30 08:42:25 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@... INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2006/01/30 08:42:25 | Loaded native library: wrapper.dll INFO | jvm 1 | 2006/01/30 08:42:25 | Calling native initialization method. INFO | jvm 1 | 2006/01/30 08:42:25 | Initializing WrapperManager native library. INFO | jvm 1 | 2006/01/30 08:42:25 | Java Executable: C:\oracle\ora92\jre\1.4.2\bin\java.exe INFO | jvm 1 | 2006/01/30 08:42:25 | Windows version: 5.1.2600 INFO | jvm 1 | 2006/01/30 08:42:25 | Java Version : 1.4.2_03-b02 Java HotSpot(TM) Client VM INFO | jvm 1 | 2006/01/30 08:42:25 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2006/01/30 08:42:25 |=20 INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2006/01/30 08:42:25 |=20 INFO | jvm 1 | 2006/01/30 08:42:25 | WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@... , args["addSampleJob"]) called by thread: main INFO | jvm 1 | 2006/01/30 08:42:25 | Open socket to wrapper... INFO | jvm 1 | 2006/01/30 08:42:25 | Opened Socket INFO | jvm 1 | 2006/01/30 08:42:25 | Send a packet KEY : YGAyFo_tJZF4dQUs INFO | jvm 1 | 2006/01/30 08:42:25 | handleSocket(Socket[addr=3D/127.0.0.1,port=3D32000,localport=3D4427]) DEBUG | wrapperp | 2006/01/30 08:42:25 | accepted a socket from 127.0.0.1 on port 4427 DEBUG | wrapperp | 2006/01/30 08:42:25 | read a packet KEY : YGAyFo_tJZF4dQUs DEBUG | wrapper | 2006/01/30 08:42:25 | Got key from JVM: YGAyFo_tJZF4dQUs DEBUG | wrapperp | 2006/01/30 08:42:25 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2006/01/30 08:42:25 | send a packet PING_TIMEOUT : 30 DEBUG | wrapper | 2006/01/30 08:42:25 | Start Application. DEBUG | wrapperp | 2006/01/30 08:42:25 | send a packet START : start INFO | jvm 1 | 2006/01/30 08:42:25 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2006/01/30 08:42:25 | Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2006/01/30 08:42:25 | Wrapper Manager: PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2006/01/30 08:42:25 | Received a packet START : start INFO | jvm 1 | 2006/01/30 08:42:25 | calling listener.start() INFO | jvm 1 | 2006/01/30 08:42:25 | WrapperSimpleApp: start(args) INFO | jvm 1 | 2006/01/30 08:42:25 | WrapperSimpleApp: invoking main method INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN No appenders could be found for logger (bf.cbm.util.io.Loader). INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN Please initialize the log4j system properly. INFO | jvm 1 | 2006/01/30 08:42:27 | WrapperSimpleApp: main method completed INFO | jvm 1 | 2006/01/30 08:42:27 | WrapperSimpleApp: start(args) end. Main Completed=3Dtrue, exitCode=3Dnull INFO | jvm 1 | 2006/01/30 08:42:27 | returned from listener.start() INFO | jvm 1 | 2006/01/30 08:42:27 | Send a packet STARTED :=20 DEBUG | wrapperp | 2006/01/30 08:42:27 | read a packet STARTED :=20 DEBUG | wrapper | 2006/01/30 08:42:27 | JVM signalled that it was started. DEBUG | wrapperp | 2006/01/30 08:42:29 | send a packet PING : ping INFO | jvm 1 | 2006/01/30 08:42:29 | Received a packet PING : ping INFO | jvm 1 | 2006/01/30 08:42:29 | Send a packet PING : ok DEBUG | wrapperp | 2006/01/30 08:42:29 | read a packet PING : ok DEBUG | wrapper | 2006/01/30 08:42:29 | Got ping response from JVM DEBUG | wrapper | 2006/01/30 08:42:29 | ServiceControlHandler(1) DEBUG | wrapper | 2006/01/30 08:42:29 | SERVICE_CONTROL_STOP DEBUG | wrapper | 2006/01/30 08:42:29 | wrapperStopProcess(0) called. DEBUG | wrapper | 2006/01/30 08:42:29 | Sending stop signal to JVM DEBUG | wrapperp | 2006/01/30 08:42:29 | send a packet STOP : NULL INFO | jvm 1 | 2006/01/30 08:42:29 | Received a packet STOP :=20 INFO | jvm 1 | 2006/01/30 08:42:29 | Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2006/01/30 08:42:29 | calling listener.stop() INFO | jvm 1 | 2006/01/30 08:42:29 | WrapperSimpleApp: stop(0) INFO | jvm 1 | 2006/01/30 08:42:29 | returned from listener.stop() INFO | jvm 1 | 2006/01/30 08:42:29 | Send a packet STOPPED : 0 DEBUG | wrapperp | 2006/01/30 08:42:29 | read a packet STOPPED : 0 DEBUG | wrapper | 2006/01/30 08:42:29 | JVM signalled that it was stopped. INFO | jvm 1 | 2006/01/30 08:42:30 | Closing socket. DEBUG | wrapperp | 2006/01/30 08:42:30 | socket read no code (closed?). INFO | jvm 1 | 2006/01/30 08:42:30 | calling System.exit(0) DEBUG | wrapper | 2006/01/30 08:42:30 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. DEBUG | wrapper | 2006/01/30 08:42:30 | JVM exited normally. STATUS | wrapper | 2006/01/30 08:42:30 | <-- Wrapper Stopped =20 And here is my wrapper.conf file: =20 #******************************************************************** # TestWrapper Properties # # NOTE - Please use src/conf/wrapper.conf.in as a template for your # own application rather than the values used for the # TestWrapper sample. #******************************************************************** # Java Application wrapper.java.command=3Djava =20 # 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=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp =20 # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=3D../lib/*.jar wrapper.java.classpath.2=3D../lib/bf/*.jar wrapper.java.classpath.3=3D../lib/jakarta/*.jar wrapper.java.classpath.4=3D../lib/security/*.jar wrapper.java.classpath.5=3D../lib/quartz/*.jar =20 # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=3D../lib wrapper.java.library.path.2=3DC:/bea81/jdk142_08/bin wrapper.java.library.path.3=3DC:/oracle/ora92/bin =20 # Java Additional Parameters wrapper.java.additional.1=3D-Dlog4j.configuration=3Dlog4j.xml wrapper.java.additional.2=3D-Dconnection.properties=3Drelatl.connection.p= rop erties =20 =20 # Initial Java Heap Size (in MB) wrapper.java.initmemory=3D256 =20 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=3D256 =20 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=3Dbf.cbm.util.scheduler.SchedulerManager wrapper.app.parameter.2=3DaddSampleJob =20 =20 =20 #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=3DPM =20 # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=3Ddebug =20 # Log file to use for wrapper output logging. wrapper.logfile=3D../logs/wrapper.log =20 # Format of output for the log file. (See docs for formats) wrapper.logfile.format=3DLPTM =20 # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=3Ddebug =20 # 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 =3D 10 megabytes. wrapper.logfile.maxsize=3D0 =20 # 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=3D0 =20 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=3DNONE =20 wrapper.debug=3Dtrue =20 #******************************************************************** # Wrapper Windows Properties #******************************************************************** # Title to use when running as a console wrapper.console.title=3DQuartz Job Scheduler =20 #******************************************************************** # 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. =20 # Name of the service wrapper.ntservice.name=3DSchedulerManager =20 # Display name of the service wrapper.ntservice.displayname=3DSchedulerManager =20 # Description of the service wrapper.ntservice.description=3DSchedulerManager Test =20 # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1=3D =20 # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=3DAUTO_START =20 # Allow the service to interact with the desktop. wrapper.ntservice.interactive=3Dfalse =20 Can anyone tell me if they see a problem with this setup? I cannot seem to get the wrapper to use the log4j.xml file so that I can monitor the output of the java program that it is running. =20 Thanks, =20 Doug Tanner =20 *************************************************************************= *************** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is = intended only for the individual or entity to which it is addressed and = may contain information that is confidential and protected by law. = Unauthorized review, use, disclosure, or dissemination of this = communication or its contents in any way is prohibited and may be = unlawful. If you are not the intended recipient or a person responsible = for delivering this message to an intended recipient, please notify the = original sender immediately by e-mail or telephone, return the original = message to the original sender or to bfpostmaster@..., and = destroy all copies or derivations of the original message. Thank you. = (BFeComNote Rev. 08/01/2005) *************************************************************************= ************** |
From: Leif Mortenson <leif@ta...> - 2006-01-30 02:16:12
|
David, Reviewing the code of 3.1.2 and the latest trunk, I think that I may have fixed this while implementing another change. Could you please add the following properties: wrapper.debug=true wrapper.state_output=true wrapper.loop_output=true This will kick out a lot of output, but it will tell me exactly what is happening. Once you have reproduced the problem, tar.gz the resulting wrapper.log file and then send it to me directly off list. I have also created a snapshot of the latest build undergoing testing for the next release. I would appreciate any feedback about whether or not it is fixed using this version. If not, then I would also like to see the same output as for the 3.1.2 version above. http://wrapper.tanukisoftware.org/tmp/3.2.0-c/wrapper-linux-x86-32-3.2.0-c.tar.gz (This version will NOT be supported once the 3.2.0 release is out.) Cheers, Leif David McCullars wrote: > I've got the wrapper working well on a CentOS 3.6 system to wrap JBoss 4 > (with Sun's Java 1.5.0_05-b05). It starts and stops perfectly, but I > was really needing the restart filter to work on out of memory errors > (something we've had a problem with historically). I added the trigger, > and it attempts to do a restart when I create an OOME, but the wrapper > crashes 9 times out of 10 when it checks to see if the JVM halted: > > Shutdown complete > Halting VM > Critical error: wait for JVM process failed (No child processes) > > I've tried all sorts of wrapper.conf settings to see if something works, > but it's only restarted twice, and it never did it more than once in a > row. Here's the latest config file for what it's worth. I'm really > hoping I'm just doing something stupid because JSW kicks ass! > > set.JAVA_HOME=/usr/local/java > set.JBOSS_HOME=/usr/local/jboss > wrapper.java.command=%JAVA_HOME%/bin/java > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=%JBOSS_HOME%/bin/run.jar > wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar > wrapper.java.library.path.1=../lib > wrapper.java.additional.1=-Dprogram.name=run.sh > wrapper.java.additional.2=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl > > wrapper.java.additional.3=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed > wrapper.java.additional.4=-verbosegc > wrapper.java.initmemory=1024 > wrapper.java.maxmemory=1024 > wrapper.app.parameter.1=org.jboss.Main > wrapper.console.format=M > wrapper.console.loglevel=INFO > wrapper.logfile=../jboss.log > wrapper.logfile.format=LTM > wrapper.logfile.loglevel=INFO > wrapper.logfile.maxsize=10m > wrapper.logfile.maxfiles=4 > wrapper.syslog.loglevel=NONE > wrapper.filter.trigger.1=java.lang.OutOfMemoryError > wrapper.filter.action.1=RESTART > wrapper.restart.delay=30 > > If anyone can throw some light my way, I'd be most indebted! > > David |
From: Leif Mortenson <leif@ta...> - 2006-01-30 02:13:42
|
John, Sorry. I had meant to post the source of the getMainMethod method. http://cvs.sourceforge.net/viewcvs.py/wrapper/wrapper/src/java/org/tanukisoftware/wrapper/WrapperStartStopApp.java?rev=1.7&only_with_tag=RELEASE_3_1_2&view=auto Cheers, Leif Leif Mortenson wrote: > John, > > Volkar, John wrote: >>> Just a thought here - what does your directory structure look like >>> and where are you running it from? >>> >> Good thought, thanks, but... >> > The Wrapper is good about forcing the current directory to be the > location of the > Wrapper.exe. That will not be the case when you run the batch file I > had you > create so you will want to run that from within the correct directory. >>> However, this wouldn't account for your Win2000 - WinXP difference, >>> but...it might be worth looking into. >>> >> Yeah, it's the same exact directory layout on the boxes. >> I'm a bit hampered in testing/playing on this the only Win2000 box I >> have available to me is only accessible to me via remote access, when >> the QA team isn't working on it. >> >> What's driving me nuts is that the invocation line works when all the >> -Dwrapper stuff is stripped and I invoke my main class directly, but >> thru the wrapper it doesn't... >> >> I'm wondering if my use of a static inner class for Start and Stop isn't >> the problem somehow... >> > That is the only thing that I can think of as well... The > WrapperStartStopApp class > has code in the getMainMethod method which is attempting to load your > com.mckessonaps.fp2k.FP2KServiceWrapper$Start class manually. That is > failing for some reason. > > A couple more things for you to try: > 1) Add the -verbose:class parameter to the batch file and see whether > or not the > class is being loaded. > > 2) Change the main class from > com.mckessonaps.fp2k.FP2KServiceWrapper$Start > to com.mckessonaps.fp2k.FP2KServiceWrapper and see what happens. You > will > still get an error that the main method can't be found, but that is > after the class has > been successfully loaded. Do this with the -verbose:class parameter > set as well. > > I can't think what could be causing this that would be OS specific, > given that it > also happens with the batch file... If it were a file permission > problem then it > would also happen when the wrapper parameters were removed. > > Have you installed any non-default security policy files in that JVM? > There is > nothing specified from the command line, but it is possible to edit > the security > files of the JVM itself. > > I'll post again if I think of anything else. > Leif |
From: Leif Mortenson <leif@ta...> - 2006-01-30 02:03:27
|
John, Volkar, John wrote: >> Just a thought here - what does your directory structure look >> like and where are you running it from? >> > Good thought, thanks, but... > The Wrapper is good about forcing the current directory to be the location of the Wrapper.exe. That will not be the case when you run the batch file I had you create so you will want to run that from within the correct directory. >> However, this wouldn't account for your Win2000 - >> WinXP difference, but...it might be worth looking into. >> > Yeah, it's the same exact directory layout on the boxes. > > I'm a bit hampered in testing/playing on this the only Win2000 box I > have available to me is only accessible to me via remote access, when > the QA team isn't working on it. > > What's driving me nuts is that the invocation line works when all the > -Dwrapper stuff is stripped and I invoke my main class directly, but > thru the wrapper it doesn't... > > I'm wondering if my use of a static inner class for Start and Stop isn't > the problem somehow... > That is the only thing that I can think of as well... The WrapperStartStopApp class has code in the getMainMethod method which is attempting to load your com.mckessonaps.fp2k.FP2KServiceWrapper$Start class manually. That is failing for some reason. A couple more things for you to try: 1) Add the -verbose:class parameter to the batch file and see whether or not the class is being loaded. 2) Change the main class from com.mckessonaps.fp2k.FP2KServiceWrapper$Start to com.mckessonaps.fp2k.FP2KServiceWrapper and see what happens. You will still get an error that the main method can't be found, but that is after the class has been successfully loaded. Do this with the -verbose:class parameter set as well. I can't think what could be causing this that would be OS specific, given that it also happens with the batch file... If it were a file permission problem then it would also happen when the wrapper parameters were removed. Have you installed any non-default security policy files in that JVM? There is nothing specified from the command line, but it is possible to edit the security files of the JVM itself. I'll post again if I think of anything else. Leif |
From: David McCullars <dmccullars@ch...> - 2006-01-29 07:28:48
|
I've got the wrapper working well on a CentOS 3.6 system to wrap JBoss 4 (with Sun's Java 1.5.0_05-b05). It starts and stops perfectly, but I was really needing the restart filter to work on out of memory errors (something we've had a problem with historically). I added the trigger, and it attempts to do a restart when I create an OOME, but the wrapper crashes 9 times out of 10 when it checks to see if the JVM halted: Shutdown complete Halting VM Critical error: wait for JVM process failed (No child processes) I've tried all sorts of wrapper.conf settings to see if something works, but it's only restarted twice, and it never did it more than once in a row. Here's the latest config file for what it's worth. I'm really hoping I'm just doing something stupid because JSW kicks ass! set.JAVA_HOME=/usr/local/java set.JBOSS_HOME=/usr/local/jboss wrapper.java.command=%JAVA_HOME%/bin/java wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp wrapper.java.classpath.1=../lib/wrapper.jar wrapper.java.classpath.2=%JBOSS_HOME%/bin/run.jar wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar wrapper.java.library.path.1=../lib wrapper.java.additional.1=-Dprogram.name=run.sh wrapper.java.additional.2=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl wrapper.java.additional.3=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed wrapper.java.additional.4=-verbosegc wrapper.java.initmemory=1024 wrapper.java.maxmemory=1024 wrapper.app.parameter.1=org.jboss.Main wrapper.console.format=M wrapper.console.loglevel=INFO wrapper.logfile=../jboss.log wrapper.logfile.format=LTM wrapper.logfile.loglevel=INFO wrapper.logfile.maxsize=10m wrapper.logfile.maxfiles=4 wrapper.syslog.loglevel=NONE wrapper.filter.trigger.1=java.lang.OutOfMemoryError wrapper.filter.action.1=RESTART wrapper.restart.delay=30 If anyone can throw some light my way, I'd be most indebted! David |
From: Volkar, John <John.Volkar@McKesson.com> - 2006-01-27 18:37:11
|
PiBKdXN0IGEgdGhvdWdodCBoZXJlIC0gd2hhdCBkb2VzIHlvdXIgZGlyZWN0b3J5IHN0cnVjdHVy ZSBsb29rIA0KPiBsaWtlIGFuZCB3aGVyZSBhcmUgeW91IHJ1bm5pbmcgaXQgZnJvbT8NCkdvb2Qg dGhvdWdodCwgdGhhbmtzLCBidXQuLi4NCg0KPiBIb3dldmVyLCB0aGlzIHdvdWxkbid0IGFjY291 bnQgZm9yIHlvdXIgV2luMjAwMCAtIA0KPiBXaW5YUCBkaWZmZXJlbmNlLCBidXQuLi5pdCBtaWdo dCBiZSB3b3J0aCBsb29raW5nIGludG8uDQpZZWFoLCBpdCdzIHRoZSBzYW1lIGV4YWN0IGRpcmVj dG9yeSBsYXlvdXQgb24gdGhlIGJveGVzLiAgDQoNCkknbSBhIGJpdCBoYW1wZXJlZCBpbiB0ZXN0 aW5nL3BsYXlpbmcgb24gdGhpcyB0aGUgb25seSBXaW4yMDAwIGJveCBJDQpoYXZlIGF2YWlsYWJs ZSB0byBtZSBpcyBvbmx5ICBhY2Nlc3NpYmxlIHRvIG1lIHZpYSByZW1vdGUgYWNjZXNzLCB3aGVu DQp0aGUgUUEgdGVhbSBpc24ndCB3b3JraW5nIG9uIGl0Lg0KDQpXaGF0J3MgZHJpdmluZyBtZSBu dXRzIGlzIHRoYXQgdGhlIGludm9jYXRpb24gbGluZSB3b3JrcyB3aGVuIGFsbCB0aGUNCi1Ed3Jh cHBlciBzdHVmZiBpcyBzdHJpcHBlZCBhbmQgSSBpbnZva2UgbXkgbWFpbiBjbGFzcyBkaXJlY3Rs eSwgYnV0DQp0aHJ1IHRoZSB3cmFwcGVyIGl0IGRvZXNuJ3QuLi4NCg0KSSdtIHdvbmRlcmluZyBp ZiBteSB1c2Ugb2YgYSBzdGF0aWMgaW5uZXIgY2xhc3MgZm9yIFN0YXJ0IGFuZCBTdG9wIGlzbid0 DQp0aGUgcHJvYmxlbSBzb21laG93Li4uDQoNClJlZ2FyZHMsDQpKb2huIFZvbGthciANCiAgDQpD b25maWRlbnRpYWxpdHkgTm90aWNlOiBUaGlzIGUtbWFpbCBtZXNzYWdlLCBpbmNsdWRpbmcgYW55 IGF0dGFjaG1lbnRzLCBpcyBmb3IgdGhlIHNvbGUgdXNlIG9mIHRoZSBpbnRlbmRlZCByZWNpcGll bnQocykgYW5kIG1heSBjb250YWluIGNvbmZpZGVudGlhbCBhbmQgcHJpdmlsZWdlZCBpbmZvcm1h dGlvbi4gQW55IHVuYXV0aG9yaXplZCByZXZpZXcsIHVzZSwgZGlzY2xvc3VyZSBvciBkaXN0cmli dXRpb24gaXMgcHJvaGliaXRlZC4gSWYgeW91IGFyZSBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVu dCwgcGxlYXNlIGNvbnRhY3QgdGhlIHNlbmRlciBieSByZXBseSBlLW1haWwgYW5kIGRlc3Ryb3kg YWxsIGNvcGllcyBvZiB0aGUgb3JpZ2luYWwgbWVzc2FnZS4gDQogDQo= |
From: Buntingster <buntingster@gm...> - 2006-01-27 17:59:41
|
Just a thought here - what does your directory structure look like and where are you running it from? From what I recall in the wrapper documentation, the java executable is launched from the directory that wrapper.exe exists in - meaning all of your classpath files have to be relative to your bin directory. This has been a source of confusion with me before - saw similiar results as you are seeing. However, this wouldn't account for your Win2000 - WinXP difference, but...it might be worth looking into. -Jared Volkar, John wrote: >>It is not a command line length problem. >> >> >Good; it didn't feel like it was and I'd be annoyed at windows if that >were the case. > > > >>What Java version are you running on each of your systems? >>Run on each system. Verify that is what is being run by the >>Wrapper on your XP system: >>C:\WINNT\system32\java.exe -version >> >> >I'll just pull from the wrapper service logs... > >On the Win 2000 box (where it fails): >---- >INFO | jvm 1 | 2006/01/27 06:11:23 | Java Executable: >C:\WINNT\system32\java.exe >INFO | jvm 1 | 2006/01/27 06:11:23 | Windows version: 5.0.2195 >INFO | jvm 1 | 2006/01/27 06:11:23 | Java Version : 1.5.0_06-b05 >Java HotSpot(TM) Client VM >INFO | jvm 1 | 2006/01/27 06:11:23 | Java VM Vendor : Sun >Microsystems Inc. >---- > >On my WinXP (where it all works): >---- >INFO | jvm 1 | 2006/01/25 18:41:48 | Java Executable: >C:\WINDOWS\system32\java.exe >INFO | jvm 1 | 2006/01/25 18:41:48 | Windows version: 5.1.2600 >INFO | jvm 1 | 2006/01/25 18:41:48 | Java Version : 1.5.0_06-b05 >Java HotSpot(TM) Client VM >INFO | jvm 1 | 2006/01/25 18:41:48 | Java VM Vendor : Sun >Microsystems Inc. >---- > > > >>Are they the same? >> >> >Looks like they are the exact same java version to me. > > > >>I have never tried running with a main class in inner >>classes. There may be some problems with the way the >>WrapperStartStopApp class is locating the main methods. >> >> >I cannot for the life of me imagine why that would be a problem; the JVM >is the same. If I had to I suppose I could pull the inners out and try >again; but I like keeping them tucked in, they are all of like 5 lines >of code each. > > > >>Can't think of why the platform would make a difference, but >>there may be some differences if the Java version is >>different. Once I have more info, I can try to reproduce it here. >> >> > >Lief, thanks for your help, I'm kind of at a loss to explain this >myself. If I get a free moment I'll pull those inners clases out and >see what happens. > >Regards, >John Volkar > >Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > >N¬HY޵隊X¬²š'²ŠÞu¼’¦[§‰ÜŒ¨º >Þ¦Øk¢è!–ˆŠW¬~Šé®†åzk¶ŠC£ å¡§m…éÞÀ@^ÇšÈ^ž§zØZ¶f¤zËj·!Šx2¢êå¢â•ë±æ¬É«,º·âža{›å,àHòÔ4¨m¶Ÿÿ±éZ²ëjY‚wþÇ¥rg–y$‰ÐÓ~7Ù¸mãÎjÐÛ^¸ÙjÚ¦—«ºÇ«™¨¥Šx%ŠËVªiz»¬z¹b²Û,¢êÜyú+éÞ¶m¦Ïÿ–+-²Ê.ÇŸ¢¸ë–+-³ùb²Ø§~ðªiz»¬er== > |
From: Volkar, John <John.Volkar@McKesson.com> - 2006-01-27 14:30:29
|
PiBJdCBpcyBub3QgYSBjb21tYW5kIGxpbmUgbGVuZ3RoIHByb2JsZW0uIA0KR29vZDsgaXQgZGlk bid0IGZlZWwgbGlrZSBpdCB3YXMgYW5kIEknZCBiZSBhbm5veWVkIGF0IHdpbmRvd3MgaWYgdGhh dA0Kd2VyZSB0aGUgY2FzZS4NCg0KPiBXaGF0IEphdmEgdmVyc2lvbiBhcmUgeW91IHJ1bm5pbmcg b24gZWFjaCBvZiB5b3VyIHN5c3RlbXM/IA0KPiBSdW4gb24gZWFjaCBzeXN0ZW0uIFZlcmlmeSB0 aGF0IGlzIHdoYXQgaXMgYmVpbmcgcnVuIGJ5IHRoZSANCj4gV3JhcHBlciBvbiB5b3VyIFhQIHN5 c3RlbToNCj4gQzpcV0lOTlRcc3lzdGVtMzJcamF2YS5leGUgLXZlcnNpb24NCkknbGwganVzdCBw dWxsIGZyb20gdGhlIHdyYXBwZXIgc2VydmljZSBsb2dzLi4uDQoNCk9uIHRoZSBXaW4gMjAwMCBi b3ggKHdoZXJlIGl0IGZhaWxzKToNCi0tLS0NCklORk8gICB8IGp2bSAxICAgIHwgMjAwNi8wMS8y NyAwNjoxMToyMyB8IEphdmEgRXhlY3V0YWJsZToNCkM6XFdJTk5UXHN5c3RlbTM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YXR0YWNobWVudHMs IGlzIGZvciB0aGUgc29sZSB1c2Ugb2YgdGhlIGludGVuZGVkIHJlY2lwaWVudChzKSBhbmQgbWF5 IGNvbnRhaW4gY29uZmlkZW50aWFsIGFuZCBwcml2aWxlZ2VkIGluZm9ybWF0aW9uLiBBbnkgdW5h dXRob3JpemVkIHJldmlldywgdXNlLCBkaXNjbG9zdXJlIG9yIGRpc3RyaWJ1dGlvbiBpcyBwcm9o aWJpdGVkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2UgY29u dGFjdCB0aGUgc2VuZGVyIGJ5IHJlcGx5IGUtbWFpbCBhbmQgZGVzdHJveSBhbGwgY29waWVzIG9m IHRoZSBvcmlnaW5hbCBtZXNzYWdlLiANCiANCg== |
From: Leif Mortenson <leif@ta...> - 2006-01-27 14:09:41
|
John, It is not a command line length problem. The message you are getting is correctly showing you the full name of the file that could not be loaded. If the command line were being truncated somehow, you wouldn't see that. What Java version are you running on each of your systems? Are they the same? Run on each system. Verify that is what is being run by the Wrapper on your XP system: C:\WINNT\system32\java.exe -version I have never tried running with a main class in inner classes. There may be some problems with the way the WrapperStartStopApp class is locating the main methods. Can't think of why the platform would make a difference, but there may be some differences if the Java version is different. Once I have more info, I can try to reproduce it here. Cheers, Leif Volkar, John wrote: >> Open your debug wrapper.log in an editor and copy the >> full command used to launch the Wrapper into a new batch file. >> > Done. > > >> Questions. >> 1) Does the above batch file fail in the same way as the Wrapper? >> > Yes, class not found. Here's the full line from the batch file; > remember everything works just fine on WinXP; so this *has* to be Win > 2000 related. > > ---- > "C:\WINNT\system32\java.exe" -Dlog4j.configuration=FP2K.properties > -Xms64m -Xmx128m -Djava.library.path="./" -classpath > "FlexP2KInterface-1.4.2-src.jar;./lib/commons-codec-1.3.jar;./lib/common > s-httpclient-2.0.2.jar;./lib/commons-logging-1.0.2.jar;./lib/log4j-1.2.1 > 3.jar;./lib/xmlrpc-2.0.jar;./lib/jtds-1.2.jar;./lib/wrapper.jar" > -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.tanukisoftware.wrapper.WrapperStartStopApp > com.mckessonaps.fp2k.FP2KServiceWrapper$Start 0 > com.mckessonaps.fp2k.FP2KServiceWrapper$Stop true 0 > ---- > > > >> 2) What is being used for your java command? Is it locating >> java on the PATH or have you specified an absolute JVM to use? >> > It's locating it on the path, I'm not specifying a jvm. As you can see > above it's using one from WINNT\system32 which I think the standard JRE > install dumps there. > > > >> 3) What is the class that is failing to load? What jar is it >> found in? and Does that jar file appear in the command in the batch >> > file? > It's my main start class passed to the WrapperStartStopApp, and it's > found in the very first jar specified in the classpath... (I use a pair > of static inner classes named Start and Stop as you can see in the > invokation above... > > As an additional datapoint the following runs just fine and starts my > app; the only thig different is that I trimmed out all of the -Dwrapper > stuff and directly invoke my main Start class... > > ---- > "C:\WINNT\system32\java.exe" -Dlog4j.configuration=FP2K.properties > -Xms64m -Xmx128m -Djava.library.path="./" -classpath > "FlexP2KInterface-1.4.2-src.jar;./lib/commons-codec-1.3.jar;./lib/common > s-httpclient-2.0.2.jar;./lib/commons-logging-1.0.2.jar;./lib/log4j-1.2.1 > 3.jar;./lib/xmlrpc-2.0.jar;./lib/jtds-1.2.jar;./lib/wrapper.jar" > com.mckessonaps.fp2k.FP2KServiceWrapper$Start > ---- > > Maybe it *is* something to do with the maximum length of the command > line... ? Help appreciated, thanks! > > Regards, > John Volkar > > > PS: Just for completeness the following is the log file generated by the > wrapper from which I copied the invokation, there's not much to see; > just that it's a class not found... > ---- > STATUS | wrapper | 2006/01/27 06:11:23 | --> Wrapper Started as Console > DEBUG | wrapper | 2006/01/27 06:11:23 | Using system timer. > DEBUG | wrapperp | 2006/01/27 06:11:23 | server listening on port > 32000. > STATUS | wrapper | 2006/01/27 06:11:23 | Launching a JVM... > DEBUG | wrapper | 2006/01/27 06:11:23 | command: > "C:\WINNT\system32\java.exe" -Dlog4j.configuration=FP2K.properties > -Xms64m -Xmx128m -Djava.library.path="./" -classpath > "FlexP2KInterface-1.4.2-src.jar;./lib/commons-codec-1.3.jar;./lib/common > s-httpclient-2.0.2.jar;./lib/commons-logging-1.0.2.jar;./lib/log4j-1.2.1 > 3.jar;./lib/xmlrpc-2.0.jar;./lib/jtds-1.2.jar;./lib/wrapper.jar" > -Dwrapper.key="e18uqhBFNXSzDRKh" -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.tanukisoftware.wrapper.WrapperStartStopApp > com.mckessonaps.fp2k.FP2KServiceWrapper$Start 0 > com.mckessonaps.fp2k.FP2KServiceWrapper$Stop true 0 > DEBUG | wrapper | 2006/01/27 06:11:23 | JVM started (PID=2276) > INFO | jvm 1 | 2006/01/27 06:11:23 | WrapperStartStopApp: Unable to > locate the class com.mckessonaps.fp2k.FP2KServiceWrapper$Start: > java.lang.ClassNotFoundException: > com.mckessonaps.fp2k.FP2KServiceWrapper$Start > INFO | jvm 1 | 2006/01/27 06:11:23 | > INFO | jvm 1 | 2006/01/27 06:11:23 | WrapperStartStopApp Usage: > INFO | jvm 1 | 2006/01/27 06:11:23 | java > org.tanukisoftware.wrapper.WrapperStartStopApp {start_class} > {start_arg_count} [start_arguments] {stop_class} {stop_wait} > {stop_arg_count} [stop_arguments] > INFO | jvm 1 | 2006/01/27 06:11:23 | > INFO | jvm 1 | 2006/01/27 06:11:23 | Where: > INFO | jvm 1 | 2006/01/27 06:11:23 | start_class: The fully > qualified class name to run to start the > INFO | jvm 1 | 2006/01/27 06:11:23 | > application. > INFO | jvm 1 | 2006/01/27 06:11:23 | start_arg_count: The number > of arguments to be passed to the start class's > INFO | jvm 1 | 2006/01/27 06:11:23 | main > method. > INFO | jvm 1 | 2006/01/27 06:11:23 | stop_class: The fully > qualified class name to run to stop the > INFO | jvm 1 | 2006/01/27 06:11:23 | > application. > INFO | jvm 1 | 2006/01/27 06:11:23 | stop_wait: When > stopping, should the Wrapper wait for all threads to > INFO | jvm 1 | 2006/01/27 06:11:23 | complete > before exiting (true/false). > INFO | jvm 1 | 2006/01/27 06:11:23 | stop_arg_count: The number > of arguments to be passed to the stop class's > INFO | jvm 1 | 2006/01/27 06:11:23 | main > method. > INFO | jvm 1 | 2006/01/27 06:11:23 | app_parameters: The > parameters that would normally be passed to the > INFO | jvm 1 | 2006/01/27 06:11:23 | > application. > INFO | jvm 1 | 2006/01/27 06:11:23 | WrapperManager class > initialized by thread: main Using classloader: > sun.misc.Launcher$ExtClassLoader@... > INFO | jvm 1 | 2006/01/27 06:11:23 | Wrapper Manager: JVM #1 > INFO | jvm 1 | 2006/01/27 06:11:23 | Wrapper Manager: Registering > shutdown hook > INFO | jvm 1 | 2006/01/27 06:11:23 | Wrapper Manager: Using wrapper > INFO | jvm 1 | 2006/01/27 06:11:23 | Loaded native library: > wrapper.dll > INFO | jvm 1 | 2006/01/27 06:11:23 | Calling native initialization > method. > INFO | jvm 1 | 2006/01/27 06:11:23 | Initializing WrapperManager > native library. > INFO | jvm 1 | 2006/01/27 06:11:23 | Java Executable: > C:\WINNT\system32\java.exe > INFO | jvm 1 | 2006/01/27 06:11:23 | Windows version: 5.0.2195 > INFO | jvm 1 | 2006/01/27 06:11:23 | Java Version : 1.5.0_06-b05 > Java HotSpot(TM) Client VM > INFO | jvm 1 | 2006/01/27 06:11:23 | Java VM Vendor : Sun > Microsystems Inc. > INFO | jvm 1 | 2006/01/27 06:11:23 | > INFO | jvm 1 | 2006/01/27 06:11:23 | WrapperManager.stop(1) called > by thread: main > INFO | jvm 1 | 2006/01/27 06:11:23 | Open socket to wrapper... > INFO | jvm 1 | 2006/01/27 06:11:23 | Opened Socket > INFO | jvm 1 | 2006/01/27 06:11:23 | Send a packet KEY : > e18uqhBFNXSzDRKh > INFO | jvm 1 | 2006/01/27 06:11:23 | > handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=1332]) > DEBUG | wrapperp | 2006/01/27 06:11:23 | accepted a socket from > 127.0.0.1 on port 1332 > DEBUG | wrapperp | 2006/01/27 06:11:23 | read a packet KEY : > e18uqhBFNXSzDRKh > DEBUG | wrapper | 2006/01/27 06:11:23 | Got key from JVM: > e18uqhBFNXSzDRKh > DEBUG | wrapperp | 2006/01/27 06:11:23 | send a packet LOW_LOG_LEVEL : > 1 > DEBUG | wrapperp | 2006/01/27 06:11:23 | send a packet PING_TIMEOUT : > 30 > DEBUG | wrapper | 2006/01/27 06:11:23 | Start Application. > DEBUG | wrapperp | 2006/01/27 06:11:23 | send a packet START : start > INFO | jvm 1 | 2006/01/27 06:11:24 | Received a packet > LOW_LOG_LEVEL : 1 > INFO | jvm 1 | 2006/01/27 06:11:24 | Wrapper Manager: LowLogLevel > from Wrapper is 1 > INFO | jvm 1 | 2006/01/27 06:11:24 | Received a packet PING_TIMEOUT > : 30 > INFO | jvm 1 | 2006/01/27 06:11:24 | Wrapper Manager: PingTimeout > from Wrapper is 30000 > INFO | jvm 1 | 2006/01/27 06:11:24 | Received a packet START : > start > INFO | jvm 1 | 2006/01/27 06:11:24 | calling listener.start() > INFO | jvm 1 | 2006/01/27 06:11:24 | returned from listener.start() > INFO | jvm 1 | 2006/01/27 06:11:24 | Send a packet STARTED : > INFO | jvm 1 | 2006/01/27 06:11:24 | All non-daemon threads have > stopped. Exiting. > INFO | jvm 1 | 2006/01/27 06:11:24 | WrapperManager.stop(0) called > by thread: Wrapper-Connection > INFO | jvm 1 | 2006/01/27 06:11:24 | Thread, Wrapper-Connection, > handling the shutdown process. > INFO | jvm 1 | 2006/01/27 06:11:24 | calling listener.stop() > INFO | jvm 1 | 2006/01/27 06:11:24 | returned from listener.stop() > INFO | jvm 1 | 2006/01/27 06:11:24 | Send a packet STOPPED : 0 > DEBUG | wrapperp | 2006/01/27 06:11:24 | read a packet STARTED : > DEBUG | wrapper | 2006/01/27 06:11:24 | JVM signalled that it was > started. > DEBUG | wrapperp | 2006/01/27 06:11:24 | read a packet STOPPED : 0 > DEBUG | wrapper | 2006/01/27 06:11:24 | JVM signalled that it was > stopped. > INFO | jvm 1 | 2006/01/27 06:11:24 | Closing socket. > DEBUG | wrapperp | 2006/01/27 06:11:24 | socket read no code (closed?). > INFO | jvm 1 | 2006/01/27 06:11:24 | calling System.exit(0) > INFO | jvm 1 | 2006/01/27 06:11:24 | Send a packet STOP : 1 > DEBUG | wrapper | 2006/01/27 06:11:24 | JVM process exited with a code > of 0, leaving the wrapper exit code set to 0. > DEBUG | wrapper | 2006/01/27 06:11:24 | JVM exited normally. > STATUS | wrapper | 2006/01/27 06:11:25 | <-- Wrapper Stopped > ---- > > Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > > N¬HY޵隊X¬²š'²ŠÞu¼’¦[§‰ÜŒ¨º > Þ¦Øk¢è!–ˆŠW¬~Šé®†åzk¶ŠC£ å¡§m…éÞÀ@^ÇšÈ^ž§zØZ¶f¤zËj·!Šx2¢êå¢â•ë±æ¬É«,º·âža{›å,àHòÔ4¨m¶Ÿÿ±éZ²ëjY‚wþÇ¥rg–y$‰ÐÓ~7Ù¸mãÎjÐÛ^¸ÙjÚ¦—«ºÇ«™¨¥Šx%ŠËVªiz»¬z¹b²Û,¢êÜyú+éÞ¶m¦Ïÿ–+-²Ê.ÇŸ¢¸ë–+-³ùb²Ø§~ðªiz»¬er== |
From: Jim McLean <Jim.McLean@fa...> - 2006-01-27 13:27:04
|
<html><body> <p>Thanks, I'll try that out=2E<br> <br> Jim McLean<br> <br> <img src=3D"cid:00__=3D0ABBFB90DFDAD5498f9e8a93df938@...=2Ecom" widt= h=3D"16" height=3D"16" alt=3D"Inactive hide details for Leif Mortenson = <leif@...=2Ecom>">Leif Mortenson <leif@...= re=2Ecom><br> <br> <br> <table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">= <tr valign=3D"top"><td style=3D"background-image:url(cid:10__=3D0ABBFB9= 0DFDAD5498f9e8a93df938@...=2Ecom); background-repeat: no-repeat; " w= idth=3D"40%"> <ul> <ul> <ul> <ul><b><font size=3D"2">Leif Mortenson <leif@...=2Ecom>= ;</font></b><font size=3D"2"> </font><br> <font size=3D"2">Sent by: wrapper-user-admin@...=2Esourceforge=2Enet<= /font> <p><font size=3D"2">26/01/2006 08:37 PM</font> <table border=3D"1"> <tr valign=3D"top"><td width=3D"168" bgcolor=3D"#FFFFFF"><div align=3D"= center"><font size=3D"2">Please respond to<br> wrapper-user@...=2Esourceforge=2Enet</font></div></td></tr> </table> </ul> </ul> </ul> </ul> </td><td width=3D"60%"> <table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">= <tr valign=3D"top"><td width=3D"1%"><img src=3D"cid:20__=3D0ABBFB90DFDA= D5498f9e8a93df938@...=2Ecom" border=3D"0" height=3D"1" width=3D"58" = alt=3D""><br> <div align=3D"right"><font size=3D"2">To</font></div></td><td width=3D"= 100%"><img src=3D"cid:20__=3D0ABBFB90DFDAD5498f9e8a93df938@...=2Ecom= " border=3D"0" height=3D"1" width=3D"1" alt=3D""><br> <font size=3D"2">wrapper-user@...=2Esourceforge=2Enet</font></td></tr= > <tr valign=3D"top"><td width=3D"1%"><img src=3D"cid:20__=3D0ABBFB90DFDA= D5498f9e8a93df938@...=2Ecom" border=3D"0" height=3D"1" width=3D"58" = alt=3D""><br> <div align=3D"right"><font size=3D"2">cc</font></div></td><td width=3D"= 100%"><img src=3D"cid:20__=3D0ABBFB90DFDAD5498f9e8a93df938@...=2Ecom= " border=3D"0" height=3D"1" width=3D"1" alt=3D""><br> </td></tr> <tr valign=3D"top"><td width=3D"1%"><img src=3D"cid:20__=3D0ABBFB90DFDA= D5498f9e8a93df938@...=2Ecom" border=3D"0" height=3D"1" width=3D"58" = alt=3D""><br> <div align=3D"right"><font size=3D"2">Subject</font></div></td><td widt= h=3D"100%"><img src=3D"cid:20__=3D0ABBFB90DFDAD5498f9e8a93df938@...=2E= com" border=3D"0" height=3D"1" width=3D"1" alt=3D""><br> <font size=3D"2">Re: [Wrapper-user] Passing command line parms with Wra= pperStartStopApp</font></td></tr> </table> <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"> <tr valign=3D"top"><td width=3D"58"><img src=3D"cid:20__=3D0ABBFB90DFDA= D5498f9e8a93df938@...=2Ecom" border=3D"0" height=3D"1" width=3D"1" a= lt=3D""></td><td width=3D"336"><img src=3D"cid:20__=3D0ABBFB90DFDAD5498= f9e8a93df938@...=2Ecom" border=3D"0" height=3D"1" width=3D"1" alt=3D= ""></td></tr> </table> </td></tr> </table> <br> <tt>Jim,<br> Are you running on Windows or a UNIX platform? In e= ither case, you <br> need to<br> modify the script used to launch the Wrapper so the additional <br> parameters passed to<br> the script will be passed on to the Wrapper when it is launched=2E<br> <br> First modify your wrapper=2Econf as follows:<br> wrapper=2Eapp=2Eparameter=2E1=3Dcom=2Efarrow=2Eimaging=2EScannedImageCo= pier<br> wrapper=2Eapp=2Eparameter=2E2=3D1<br> wrapper=2Eapp=2Eparameter=2E3=3Dstart<br> wrapper=2Eapp=2Eparameter=2E4=3Dcom=2Efarrow=2Eservice=2EShutdownServic= e<br> wrapper=2Eapp=2Eparameter=2E5=3Dtrue<br> wrapper=2Eapp=2Eparameter=2E6=3D2<br> wrapper=2Eapp=2Eparameter=2E7=3Dstop<br> wrapper=2Eapp=2Eparameter=2E8=3DPARAM1_PLACEHOLDER<br> <br> Then modify your App=2Ebat=2Ein script as follows: (Windo= ws)<br> "%_WRAPPER_EXE%" -c %_WRAPPER_CONF% wrapper=2Eapp=2Eparameter= =2E8=3D%1<br> <br> This will take the first parameter to the batch file and = use it as <br> the 8th parameter<br> when launching the JVM=2E It is not possible to specify such a p= arameter <br> when stopping<br> the service=2E You have to know what it will be when the service = is <br> started in the first<br> place=2E This will work when installing the service as well=2E &= quot;-c" would <br> be "-i"<br> Note the 8th parameter in the conf file is not required, but it makes i= t <br> more obvious<br> what is happening if a 9th parameter is also added=2E<br> <br> Cheers,<br> Leif<br> <br> Jim McLean wrote:<br> ><br> > Hi List,<br> ><br> > I'm trying to pass command line params to the program that is goin= g to <br> > perform the stop=2E How can this be done?<br> ><br> ><br> > Here's what my config file looks like:<br> ><br> > wrapper=2Ejava=2Ecommand=3D%JAVA_HOME%/bin/java<br> ><br> > wrapper=2Ejava=2Eclasspath=2E1=3D=2E=2E/lib/wrapper=2Ejar<br> > wrapper=2Ejava=2Eclasspath=2E2=3D=2E=2E/lib/ScannedImageCopier=2Ej= ar<br> > wrapper=2Ejava=2Eclasspath=2E3=3D=2E=2E/lib/jt400=2Ejar<br> > wrapper=2Ejava=2Eclasspath=2E4=3D=2E=2E/lib/log4j-1=2E2=2E9=2Ejar<= br> > wrapper=2Ejava=2Eclasspath=2E5=3D=2E=2E/lib/mail=2Ejar<br> > wrapper=2Ejava=2Eclasspath=2E6=3D=2E=2E/lib/activation=2Ejar<br> ><br> > wrapper=2Ejava=2Elibrary=2Epath=2E1=3D=2E=2E/lib<br> ><br> > wrapper=2Elogfile=3D=2E=2E/logs/wrapper=2Elog<br> > wrapper=2Elogfile=2Emaxfiles=3D5<br> > wrapper=2Elogfile=2Emaxsize=3D1m<br> ><br> > wrapper=2Ejava=2Emainclass=3Dorg=2Etanukisoftware=2Ewrapper=2EWrap= perStartStopApp<br> ><br> > wrapper=2Eapp=2Eparameter=2E1=3Dcom=2Efarrow=2Eimaging=2EScannedIm= ageCopier<br> > wrapper=2Eapp=2Eparameter=2E2=3D1<br> > wrapper=2Eapp=2Eparameter=2E3=3Dstart<br> > wrapper=2Eapp=2Eparameter=2E4=3Dcom=2Efarrow=2Eservice=2EShutdownS= ervice<br> > wrapper=2Eapp=2Eparameter=2E5=3Dtrue<br> > wrapper=2Eapp=2Eparameter=2E6=3D1<br> > wrapper=2Eapp=2Eparameter=2E7=3Dstop<br> ><br> > Much Thanks,<br> > Jim<br> ><br> <br> <br> <br> -------------------------------------------------------<br> This SF=2Enet email is sponsored by: Splunk Inc=2E Do you grep through = log files<br> for problems? Stop! Download the new AJAX search engine tha= t makes<br> searching your log files as easy as surfing the web=2E DOWN= LOAD SPLUNK!<br> </tt><tt><a href=3D"http://sel=2Eas-us=2Efalkag=2Enet/sel?cmd=3Dlnk&kid= =3D103432&bid=3D230486&dat=3D121642">http://sel=2Eas-us=2Efalkag=2Enet/= sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642</a></t= t><tt><br> _______________________________________________<br> Wrapper-user mailing list<br> Wrapper-user@...=2Esourceforge=2Enet<br> </tt><tt><a href=3D"https://lists=2Esourceforge=2Enet/lists/listinfo/wr= apper-user">https://lists=2Esourceforge=2Enet/lists/listinfo/wrapper-us= er</a></tt><tt><br> </tt><br> </body></html>= |
From: Volkar, John <John.Volkar@McKesson.com> - 2006-01-27 12:42:15
|
PiAgICAgT3BlbiB5b3VyIGRlYnVnIHdyYXBwZXIubG9nIGluIGFuIGVkaXRvciBhbmQgY29weSB0 aGUgDQo+IGZ1bGwgY29tbWFuZCB1c2VkIHRvIGxhdW5jaCB0aGUgV3JhcHBlciBpbnRvIGEgbmV3 IGJhdGNoIGZpbGUuICAgDQpEb25lLg0KDQo+IFF1ZXN0aW9ucy4NCj4gMSkgRG9lcyB0aGUgYWJv dmUgYmF0Y2ggZmlsZSBmYWlsIGluIHRoZSBzYW1lIHdheSBhcyB0aGUgV3JhcHBlcj8NClllcywg Y2xhc3Mgbm90IGZvdW5kLiAgSGVyZSdzIHRoZSBmdWxsIGxpbmUgZnJvbSB0aGUgYmF0Y2ggZmls ZTsNCnJlbWVtYmVyIGV2ZXJ5dGhpbmcgd29ya3MganVzdCBmaW5lIG9uIFdpblhQOyBzbyB0aGlz ICpoYXMqIHRvIGJlIFdpbg0KMj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TkZPICAgfCBqdm0gMSAgICB8IDIwMDYvMDEvMjcgMDY6MTE6MjQgfCBTZW5kIGEgcGFj a2V0IFNUT1AgOiAxDQpERUJVRyAgfCB3cmFwcGVyICB8IDIwMDYvMDEvMjcgMDY6MTE6MjQgfCBK Vk0gcHJvY2VzcyBleGl0ZWQgd2l0aCBhIGNvZGUNCm9mIDAsIGxlYXZpbmcgdGhlIHdyYXBwZXIg ZXhpdCBjb2RlIHNldCB0byAwLg0KREVCVUcgIHwgd3JhcHBlciAgfCAyMDA2LzAxLzI3IDA2OjEx OjI0IHwgSlZNIGV4aXRlZCBub3JtYWxseS4NClNUQVRVUyB8IHdyYXBwZXIgIHwgMjAwNi8wMS8y NyAwNjoxMToyNSB8IDwtLSBXcmFwcGVyIFN0b3BwZWQNCi0tLS0gDQogIA0KQ29uZmlkZW50aWFs aXR5IE5vdGljZTogVGhpcyBlLW1haWwgbWVzc2FnZSwgaW5jbHVkaW5nIGFueSBhdHRhY2htZW50 cywgaXMgZm9yIHRoZSBzb2xlIHVzZSBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50KHMpIGFuZCBt YXkgY29udGFpbiBjb25maWRlbnRpYWwgYW5kIHByaXZpbGVnZWQgaW5mb3JtYXRpb24uIEFueSB1 bmF1dGhvcml6ZWQgcmV2aWV3LCB1c2UsIGRpc2Nsb3N1cmUgb3IgZGlzdHJpYnV0aW9uIGlzIHBy b2hpYml0ZWQuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZCByZWNpcGllbnQsIHBsZWFzZSBj b250YWN0IHRoZSBzZW5kZXIgYnkgcmVwbHkgZS1tYWlsIGFuZCBkZXN0cm95IGFsbCBjb3BpZXMg b2YgdGhlIG9yaWdpbmFsIG1lc3NhZ2UuIA0KIA0K |
From: Leif Mortenson <leif@ta...> - 2006-01-27 01:37:34
|
Jim, Are you running on Windows or a UNIX platform? In either case, you need to modify the script used to launch the Wrapper so the additional parameters passed to the script will be passed on to the Wrapper when it is launched. First modify your wrapper.conf as follows: wrapper.app.parameter.1=com.farrow.imaging.ScannedImageCopier wrapper.app.parameter.2=1 wrapper.app.parameter.3=start wrapper.app.parameter.4=com.farrow.service.ShutdownService wrapper.app.parameter.5=true wrapper.app.parameter.6=2 wrapper.app.parameter.7=stop wrapper.app.parameter.8=PARAM1_PLACEHOLDER Then modify your App.bat.in script as follows: (Windows) "%_WRAPPER_EXE%" -c %_WRAPPER_CONF% wrapper.app.parameter.8=%1 This will take the first parameter to the batch file and use it as the 8th parameter when launching the JVM. It is not possible to specify such a parameter when stopping the service. You have to know what it will be when the service is started in the first place. This will work when installing the service as well. "-c" would be "-i" Note the 8th parameter in the conf file is not required, but it makes it more obvious what is happening if a 9th parameter is also added. Cheers, Leif Jim McLean wrote: > > Hi List, > > I'm trying to pass command line params to the program that is going to > perform the stop. How can this be done? > > > Here's what my config file looks like: > > wrapper.java.command=%JAVA_HOME%/bin/java > > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=../lib/ScannedImageCopier.jar > wrapper.java.classpath.3=../lib/jt400.jar > wrapper.java.classpath.4=../lib/log4j-1.2.9.jar > wrapper.java.classpath.5=../lib/mail.jar > wrapper.java.classpath.6=../lib/activation.jar > > wrapper.java.library.path.1=../lib > > wrapper.logfile=../logs/wrapper.log > wrapper.logfile.maxfiles=5 > wrapper.logfile.maxsize=1m > > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp > > wrapper.app.parameter.1=com.farrow.imaging.ScannedImageCopier > wrapper.app.parameter.2=1 > wrapper.app.parameter.3=start > wrapper.app.parameter.4=com.farrow.service.ShutdownService > wrapper.app.parameter.5=true > wrapper.app.parameter.6=1 > wrapper.app.parameter.7=stop > > Much Thanks, > Jim > |
From: Leif Mortenson <leif@ta...> - 2006-01-27 01:30:11
|
John, Open your debug wrapper.log in an editor and copy the full command used to launch the Wrapper into a new batch file. Remove the -Dwrapper.key property, but leave the rest of it unmodified. You should now be able to run the exact same command that the Wrapper is using to launch the JVM. Something must be different in there somewhere but this will make it easy to track the problem down while taking the Wrapper out of the equation. Questions. 1) Does the above batch file fail in the same way as the Wrapper? 2) What is being used for your java command? Is it locating java on the PATH or have you specified an absolute JVM to use? 3) What is the class that is failing to load? What jar is it found in? and Does that jar file appear in the command in the batch file? Cheers Leif Volkar, John wrote: > I've been successfully using the java service wrapper for a while now; > but have just ran into a very odd situation. > > I have a set of files (jars, dlls, etc), directories and a .properties > file that works just fine on a Win XP box, but when the entire setup is > put on a Windows 2000 machine, the service fails to start indicating a > class not found error. > > I think to myself; well the classpath must not be right, must have got > something moved around wrong... After investigation no, everything looks > fine... > > So I try running 'java -cp yada;yada;yada' from the command line and > specify the classpath as normal and the app runs just fine... > > So I do a 'wrapper -c My.props wrapper.debug=true' and look at the full > command line the wrapper is using and it looks... > ...Just fine. So now I'm really confused... > > I've tried searching this mailinglist to no real avail; is there any > known issue with Win2K and wrapper? Where can I even being to go from > here? Thoughts or suggestions welcomed. > > Why would something run from the commandline, but fail under the wrapper > (in console mode) with a class not found when they both have exactly the > same classpath? > > Regards, > John Volkar |
From: Volkar, John <John.Volkar@McKesson.com> - 2006-01-26 16:07:45
|
PiBtYXliZSB5b3UgcmFuIGludG8gYSBwcm9ibGVtIHdpdGggdGhlIG1heGltdW0gY29tbWFuZCBs aW5lIGxlbmd0aD8NCklzIGl0IGRpZmZlcmVudCBiZXR3ZWVuIFdpblhQIGFuZCBXaW4yMDAwID8/ PyAgSSBjYW5ub3QgaW1hZ2luZSB0aGlzDQpiZWluZyB0aGUgcHJvYmxlbTsgdGhlIHJlc3VsdGlu ZyBjb21tYW5kIGxpbmUgaXNuJ3QgYWxsICp0aGF0KiBsb25nLg0KDQpJIHJlbWVtYmVyIHNvbWV0 aGluZyBhYm91dCB0aGUgbWF4aW11bSBsZW5ndGggb2YgZW52aXJvbm1lbnQgdmFyaWFibGVzLA0K YnV0IHRoZXJlIGFyZSBubyBlbnZpcm9uLXZhcmlhYmxlcyBpbnZvbHZlZCBpbiB0aGlzIGNhc2U7 IGFuZCB0aGF0IGxpbWl0DQp3YXMgMjA0OCBhbmQgSSdtIHdheSBzaG9ydGVyIHRoYW4gdGhhdC4N Cg0KVGhhbmtzIGZvciB0aGUgdGhvdWdodCwgSSBkb24ndCB0aGluayB0aGlzIGlzIHBhcnQgb2Yg bXkgcHJvYmxlbTsgYnV0DQptYXliZSBJJ20gbWlzdW5kZXJzdGFuZGluZyB3aGF0IHlvdSBtZWFu dD8NCg0KUmVnYXJkcywNCkpvaG4gVm9sa2FyIA0KICANCkNvbmZpZGVudGlhbGl0eSBOb3RpY2U6 IFRoaXMgZS1tYWlsIG1lc3NhZ2UsIGluY2x1ZGluZyBhbnkgYXR0YWNobWVudHMsIGlzIGZvciB0 aGUgc29sZSB1c2Ugb2YgdGhlIGludGVuZGVkIHJlY2lwaWVudChzKSBhbmQgbWF5IGNvbnRhaW4g Y29uZmlkZW50aWFsIGFuZCBwcml2aWxlZ2VkIGluZm9ybWF0aW9uLiBBbnkgdW5hdXRob3JpemVk IHJldmlldywgdXNlLCBkaXNjbG9zdXJlIG9yIGRpc3RyaWJ1dGlvbiBpcyBwcm9oaWJpdGVkLiBJ ZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2UgY29udGFjdCB0aGUg c2VuZGVyIGJ5IHJlcGx5IGUtbWFpbCBhbmQgZGVzdHJveSBhbGwgY29waWVzIG9mIHRoZSBvcmln aW5hbCBtZXNzYWdlLiANCiANCg== |
From: Martin Keller <martin.keller@un...> - 2006-01-26 15:53:53
|
Hi Volkar, maybe you ran into a problem with the maximum command line length? Regards, Martin Volkar, John wrote: >I've been successfully using the java service wrapper for a while now; >but have just ran into a very odd situation. > >I have a set of files (jars, dlls, etc), directories and a .properties >file that works just fine on a Win XP box, but when the entire setup is >put on a Windows 2000 machine, the service fails to start indicating a >class not found error. > >I think to myself; well the classpath must not be right, must have got >something moved around wrong... After investigation no, everything looks >fine... > >So I try running 'java -cp yada;yada;yada' from the command line and >specify the classpath as normal and the app runs just fine... > >So I do a 'wrapper -c My.props wrapper.debug=true' and look at the full >command line the wrapper is using and it looks... >...Just fine. So now I'm really confused... > >I've tried searching this mailinglist to no real avail; is there any >known issue with Win2K and wrapper? Where can I even being to go from >here? Thoughts or suggestions welcomed. > >Why would something run from the commandline, but fail under the wrapper >(in console mode) with a class not found when they both have exactly the >same classpath? > >Regards, >John Volkar > >Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > >N¬HY޵隊X¬²š'²ŠÞu¼’¦[§‰ÜŒ¨º >Þ¦Øk¢è!–ˆŠW¬~Šé®†åzk¶ŠC£ å¡§m…éÞÀ@^ÇšÈ^ž§zØZ¶f¤zËj·!Šx2¢êå¢â•ë±æ¬É«,º·âža{›å,àHòÔ4¨m¶Ÿÿ±éZ²ëjY‚wþÇ¥rg–y$‰ÐÓ~7Ù¸mãÎjÐÛ^¸ÙjÚ¦—«ºÇ«™¨¥Šx%ŠËVªiz»¬z¹b²Û,¢êÜyú+éÞ¶m¦Ïÿ–+-²Ê.ÇŸ¢¸ë–+-³ùb²Ø§~ðªiz»¬er== > |
From: Volkar, John <John.Volkar@McKesson.com> - 2006-01-26 15:17:26
|
SSd2ZSBiZWVuIHN1Y2Nlc3NmdWxseSB1c2luZyB0aGUgamF2YSBzZXJ2aWNlIHdyYXBwZXIgZm9y IGEgd2hpbGUgbm93Ow0KYnV0IGhhdmUganVzdCByYW4gaW50byBhIHZlcnkgb2RkIHNpdHVhdGlv bi4NCg0KSSBoYXZlIGEgc2V0IG9mIGZpbGVzIChqYXJzLCBkbGxzLCBldGMpLCBkaXJlY3Rvcmll cyBhbmQgYSAucHJvcGVydGllcw0KZmlsZSB0aGF0IHdvcmtzIGp1c3QgZmluZSBvbiBhIFdpbiBY UCBib3gsIGJ1dCB3aG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gcnVuIGZyb20gdGhlIGNvbW1hbmRsaW5lLCBidXQgZmFpbCB1bmRlciB0aGUgd3Jh cHBlcg0KKGluIGNvbnNvbGUgbW9kZSkgd2l0aCBhIGNsYXNzIG5vdCBmb3VuZCB3aGVuIHRoZXkg Ym90aCBoYXZlIGV4YWN0bHkgdGhlDQpzYW1lIGNsYXNzcGF0aD8NCg0KUmVnYXJkcywNCkpvaG4g Vm9sa2FyIA0KICANCkNvbmZpZGVudGlhbGl0eSBOb3RpY2U6IFRoaXMgZS1tYWlsIG1lc3NhZ2Us IGluY2x1ZGluZyBhbnkgYXR0YWNobWVudHMsIGlzIGZvciB0aGUgc29sZSB1c2Ugb2YgdGhlIGlu dGVuZGVkIHJlY2lwaWVudChzKSBhbmQgbWF5IGNvbnRhaW4gY29uZmlkZW50aWFsIGFuZCBwcml2 aWxlZ2VkIGluZm9ybWF0aW9uLiBBbnkgdW5hdXRob3JpemVkIHJldmlldywgdXNlLCBkaXNjbG9z dXJlIG9yIGRpc3RyaWJ1dGlvbiBpcyBwcm9oaWJpdGVkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50 ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2UgY29udGFjdCB0aGUgc2VuZGVyIGJ5IHJlcGx5IGUtbWFp bCBhbmQgZGVzdHJveSBhbGwgY29waWVzIG9mIHRoZSBvcmlnaW5hbCBtZXNzYWdlLiANCiANCg== |
From: Leif Mortenson <leif@ta...> - 2006-01-25 02:11:57
|
Anastasios, Try this: wrapper.logfile.loglevel=STATUS You will still see the output in the console, but it will not be shown in the log file. The problem with doing this is that you may lose other information that you really do want to see. For example crash dumps etc. A better solution may be to do something like this: wrapper.logfile.maxsize=1m wrapper.logfile.maxfiles=1 By doing this, the wrapper.log file will always be renamed to wrapper.log.1 when it exceeds 1Mb in size. The max files specifies the maximum number of rolled log files that will be kept around. By doing this, you will be able to see all recent log output, but will also be able to guarantee that the wrapper's log files will never use more than 2Mb of disk space. Cheers, Leif Anastasios Angelidis wrote: > Is there a way to stop the wrapper from outputting console messages to > the log? I'm using a 3rd party app which outputs alot to the console. > So everything gets logged to the wrapper log which I dont want it to! > Thanks |
From: Anastasios Angelidis <voodoo@vi...> - 2006-01-24 20:40:07
|
Is there a way to stop the wrapper from outputting console messages to the log? I'm using a 3rd party app which outputs alot to the console. So everything gets logged to the wrapper log which I dont want it to! Thanks |
From: Qian Wang <jane6210@ya...> - 2006-01-24 20:32:11
|
Leif, thank you very much. that solves my problem. --- Leif Mortenson <leif@...> wrote: > Qian, > How are you catching the error. The Wrapper > works by processing the JVM > console output. There is no way to trigger off of > an exception unless > there is some > output to the console. Make sure the text > "java.lang.OutOfMemoryError" is > showing up in the console and wrapper.log > > Cheers, > Leif > > Qian Wang wrote: > > Hi, > > I tried to use the config: > > > wrapper.filter.trigger.1=java.lang.OutOfMemoryError > > wrapper.filter.action.1=RESTART so that when some > > error occurs, my application can restart by > itself. > > > > however, it doesn't seem to work. in my code i > wrote > > something like throw OutOfMemoryError; but looks > like > > my application is still running. > > > > Is there something that i am missing here? any > hint is > > greatly appreicated. > > > > Thanks > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > > for problems? Stop! Download the new AJAX search > engine that makes > > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Wrapper-user mailing list > > Wrapper-user@... > > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wrapper-user@... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |