|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Using sudo causes JVM exitHi, I've used the wrapper successfully for ages, but have recently run into a problem on Linux 64 and OS X 64 (may not be specific to those platforms though). I need to launch sudo'd, but on Cent OS 5 the JVM was exiting instantly. Bizarrely, removing the sudo meant it booted correctly. I downloaded 3.3.5 but that didn't help. Finally, I used your testwrapper script and found it exhibits the same problem: [jchown@centos5 wrapper-linux-x86-64-3.3.5]$ sudo bin/testwrapper console Running Test Wrapper Sample Application... wrapper | --> Wrapper Started as Console wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. wrapper | http://wrapper.tanukisoftware.org wrapper | wrapper | Launching a JVM... wrapper | JVM process is gone. wrapper | Unable to start JVM: Permission denied (13) wrapper | wrapper | ------------------------------------------------------------------------ wrapper | Advice: wrapper | Usually when the Wrapper fails to start the JVM process, it is because wrapper | of a problem with the value of the configured hava command. Currently: wrapper | wrapper.java.command=java wrapper | Please make sure that the PATH or any other referenced environment wrapper | variables are correctly defined for the current environment. wrapper | ------------------------------------------------------------------------ wrapper | wrapper | <-- Wrapper Stopped 'sudo java -version' runs fine. 'bin/testwrapper console' runs fine. Anyone have an idea what's up? Jason Chown Sony Computer Entertainment Europe Limited http://eu.playstation.com ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@... This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 **********************************************************************
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exitJason, I will test this ou later tonight. In the mean time, could you please set the following property and then show me the resulting log for both the sudo and non-sudo cases? wrapper.java.command.loglevel=INFO Thanks, - Leif
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exit> In the mean time, could you please set the following property and then show me the resulting log for both the sudo and non-sudo cases? No problem. nosudo: wrapper | --> Wrapper Started as Console wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. wrapper | http://wrapper.tanukisoftware.org wrapper | wrapper | Command[0] : java wrapper | Command[1] : -Djava.library.path=../lib wrapper | Command[2] : -classpath wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar wrapper | Command[4] : -Dwrapper.key=TYtj9XOnixArsbhQ wrapper | Command[5] : -Dwrapper.port=32000 wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 wrapper | Command[8] : -Dwrapper.pid=27438 wrapper | Command[9] : -Dwrapper.version=3.3.5 wrapper | Command[10] : -Dwrapper.native_library=wrapper wrapper | Command[11] : -Dwrapper.cpu.timeout=10 wrapper | Command[12] : -Dwrapper.jvmid=1 wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main wrapper | Launching a JVM... jvm 1 | TestWrapper: Initializing... jvm 1 | WrapperManager: Initializing... jvm 1 | TestWrapper: start() jvm 1 | TestWrapper: ActionServer Enabled. jvm 1 | TestWrapper: Telnet localhost 9999 jvm 1 | TestWrapper: Commands: jvm 1 | TestWrapper: S: Shutdown jvm 1 | TestWrapper: H: Expected Halt jvm 1 | TestWrapper: R: Restart jvm 1 | TestWrapper: D: Thread Dump jvm 1 | TestWrapper: U: Unexpected Halt (Simulate crash) jvm 1 | TestWrapper: V: Access Violation (Actual crash) jvm 1 | TestWrapper: G: Make the JVM appear to be hung. sudo: wrapper | --> Wrapper Started as Console wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. wrapper | http://wrapper.tanukisoftware.org wrapper | wrapper | Command[0] : java wrapper | Command[1] : -Djava.library.path=../lib wrapper | Command[2] : -classpath wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar wrapper | Command[4] : -Dwrapper.key=092gHHqwSlwEKNm9 wrapper | Command[5] : -Dwrapper.port=32000 wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 wrapper | Command[8] : -Dwrapper.pid=27371 wrapper | Command[9] : -Dwrapper.version=3.3.5 wrapper | Command[10] : -Dwrapper.native_library=wrapper wrapper | Command[11] : -Dwrapper.cpu.timeout=10 wrapper | Command[12] : -Dwrapper.jvmid=1 wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main wrapper | Launching a JVM... wrapper | JVM process is gone.jvm 1 | ]0;Test Wrapper Sample Applicationwrapper | --> Wrapper Started as Console jvm 1 | wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 jvm 1 | wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. jvm 1 | wrapper | http://wrapper.tanukisoftware.org jvm 1 | wrapper | jvm 1 | wrapper | Command[0] : java jvm 1 | wrapper | Command[1] : -Djava.library.path=../lib jvm 1 | wrapper | Command[2] : -classpath jvm 1 | wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar jvm 1 | wrapper | Command[4] : -Dwrapper.key=092gHHqwSlwEKNm9 jvm 1 | wrapper | Command[5] : -Dwrapper.port=32000 jvm 1 | wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 jvm 1 | wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 jvm 1 | wrapper | Command[8] : -Dwrapper.pid=27371 jvm 1 | wrapper | Command[9] : -Dwrapper.version=3.3.5 jvm 1 | wrapper | Command[10] : -Dwrapper.native_library=wrapper jvm 1 | wrapper | Command[11] : -Dwrapper.cpu.timeout=10 jvm 1 | wrapper | Command[12] : -Dwrapper.jvmid=1 jvm 1 | wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main jvm 1 | wrapper | Launching a JVM... wrapper | Unable to start JVM: Permission denied (13) wrapper | wrapper | ------------------------------------------------------------------------ wrapper | Advice: wrapper | Usually when the Wrapper fails to start the JVM process, it is because wrapper | of a problem with the value of the configured hava command. Currently: wrapper | wrapper.java.command=java wrapper | Please make sure that the PATH or any other referenced environment wrapper | variables are correctly defined for the current environment. wrapper | ------------------------------------------------------------------------ wrapper | wrapper | <-- Wrapper Stopped ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@... This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 **********************************************************************
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exitHi Leif, The formatting of that second log was a bit odd, here's another: Running Test Wrapper Sample Application... wrapper | --> Wrapper Started as Console wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. wrapper | http://wrapper.tanukisoftware.org wrapper | wrapper | Command[0] : java wrapper | Command[1] : -Djava.library.path=../lib wrapper | Command[2] : -classpath wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar wrapper | Command[4] : -Dwrapper.key=pKet_XBurGD9AyMs wrapper | Command[5] : -Dwrapper.port=32000 wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 wrapper | Command[8] : -Dwrapper.pid=27776 wrapper | Command[9] : -Dwrapper.version=3.3.5 wrapper | Command[10] : -Dwrapper.native_library=wrapper wrapper | Command[11] : -Dwrapper.cpu.timeout=10 wrapper | Command[12] : -Dwrapper.jvmid=1 wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main wrapper | Launching a JVM... wrapper | JVM process is gone. wrapper | Unable to start JVM: Permission denied (13) wrapper | wrapper | ------------------------------------------------------------------------ wrapper | Advice: wrapper | Usually when the Wrapper fails to start the JVM process, it is because wrapper | of a problem with the value of the configured hava command. Currently: wrapper | wrapper.java.command=java wrapper | Please make sure that the PATH or any other referenced environment wrapper | variables are correctly defined for the current environment. wrapper | ------------------------------------------------------------------------ wrapper | wrapper | <-- Wrapper Stopped ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@... This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 **********************************************************************
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exitJason,
Ok. Most likely, this is an environment problem. The way you have the wrapper.java.command property set, the Wrapper will attempt to locate the java binary on the system PATH and execute it. When you sudo and become root, the defined PATH may not include the location of java. As a quick test, please try the following in your wrapper.conf file where the JAVA_HOME directory is set to the location on your system. --- set.JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun wrapper.java.command=%JAVA_HOME%/bin/java --- Please let me know how this works for you. Cheers, Leif On Fri, Aug 21, 2009 at 12:14 AM, <Jason_Chown@...> wrote: > >> In the mean time, could you please set the following property and then >> show me the resulting log for both the sudo and non-sudo cases? > > No problem. > > nosudo: > wrapper | --> Wrapper Started as Console > wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 > wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights > Reserved. > wrapper | http://wrapper.tanukisoftware.org > wrapper | > wrapper | Command[0] : java > wrapper | Command[1] : -Djava.library.path=../lib > wrapper | Command[2] : -classpath > wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar > wrapper | Command[4] : -Dwrapper.key=TYtj9XOnixArsbhQ > wrapper | Command[5] : -Dwrapper.port=32000 > wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 > wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 > wrapper | Command[8] : -Dwrapper.pid=27438 > wrapper | Command[9] : -Dwrapper.version=3.3.5 > wrapper | Command[10] : -Dwrapper.native_library=wrapper > wrapper | Command[11] : -Dwrapper.cpu.timeout=10 > wrapper | Command[12] : -Dwrapper.jvmid=1 > wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main > wrapper | Launching a JVM... > jvm 1 | TestWrapper: Initializing... > jvm 1 | WrapperManager: Initializing... > jvm 1 | TestWrapper: start() > jvm 1 | TestWrapper: ActionServer Enabled. > jvm 1 | TestWrapper: Telnet localhost 9999 > jvm 1 | TestWrapper: Commands: > jvm 1 | TestWrapper: S: Shutdown > jvm 1 | TestWrapper: H: Expected Halt > jvm 1 | TestWrapper: R: Restart > jvm 1 | TestWrapper: D: Thread Dump > jvm 1 | TestWrapper: U: Unexpected Halt (Simulate crash) > jvm 1 | TestWrapper: V: Access Violation (Actual crash) > jvm 1 | TestWrapper: G: Make the JVM appear to be hung. > > sudo: > wrapper | --> Wrapper Started as Console > wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 > wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights > Reserved. > wrapper | http://wrapper.tanukisoftware.org > wrapper | > wrapper | Command[0] : java > wrapper | Command[1] : -Djava.library.path=../lib > wrapper | Command[2] : -classpath > wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar > wrapper | Command[4] : -Dwrapper.key=092gHHqwSlwEKNm9 > wrapper | Command[5] : -Dwrapper.port=32000 > wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 > wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 > wrapper | Command[8] : -Dwrapper.pid=27371 > wrapper | Command[9] : -Dwrapper.version=3.3.5 > wrapper | Command[10] : -Dwrapper.native_library=wrapper > wrapper | Command[11] : -Dwrapper.cpu.timeout=10 > wrapper | Command[12] : -Dwrapper.jvmid=1 > wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main > wrapper | Launching a JVM... > wrapper | JVM process is gone.jvm 1 | ]0;Test Wrapper Sample > Applicationwrapper | --> Wrapper Started as Console > jvm 1 | wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5 > jvm 1 | wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All > Rights Reserved. > jvm 1 | wrapper | http://wrapper.tanukisoftware.org > jvm 1 | wrapper | > jvm 1 | wrapper | Command[0] : java > jvm 1 | wrapper | Command[1] : -Djava.library.path=../lib > jvm 1 | wrapper | Command[2] : -classpath > jvm 1 | wrapper | Command[3] : ../lib/wrappertest.jar:../lib/wrapper.jar > jvm 1 | wrapper | Command[4] : -Dwrapper.key=092gHHqwSlwEKNm9 > jvm 1 | wrapper | Command[5] : -Dwrapper.port=32000 > jvm 1 | wrapper | Command[6] : -Dwrapper.jvm.port.min=31000 > jvm 1 | wrapper | Command[7] : -Dwrapper.jvm.port.max=31999 > jvm 1 | wrapper | Command[8] : -Dwrapper.pid=27371 > jvm 1 | wrapper | Command[9] : -Dwrapper.version=3.3.5 > jvm 1 | wrapper | Command[10] : -Dwrapper.native_library=wrapper > jvm 1 | wrapper | Command[11] : -Dwrapper.cpu.timeout=10 > jvm 1 | wrapper | Command[12] : -Dwrapper.jvmid=1 > jvm 1 | wrapper | Command[13] : org.tanukisoftware.wrapper.test.Main > jvm 1 | wrapper | Launching a JVM... > wrapper | Unable to start JVM: Permission denied (13) > wrapper | > wrapper | > ------------------------------------------------------------------------ > wrapper | Advice: > wrapper | Usually when the Wrapper fails to start the JVM process, it is > because > wrapper | of a problem with the value of the configured hava command. > Currently: > wrapper | wrapper.java.command=java > wrapper | Please make sure that the PATH or any other referenced > environment > wrapper | variables are correctly defined for the current environment. > wrapper | > ------------------------------------------------------------------------ > wrapper | > wrapper | <-- Wrapper Stopped > > ********************************************************************** > > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify postmaster@... > > This footnote also confirms that this email message has been checked for all > known viruses. > > Sony Computer Entertainment Europe Limited > > Registered Office: 10 Great Marlborough Street, London W1F 7LP, United > Kingdom > > Registered in England: 3277793 > > ********************************************************************** ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exit> Most likely, this is an environment problem. The way you have > the wrapper.java.command property set, the Wrapper will attempt to > locate the java binary on the system PATH and execute it. When you > sudo and become root, the defined PATH may not include the location of > java. I just got some success from doing that. I've got to go home now, but will play around tomorrow. Thanks for the help! Jason Chown Sony Computer Entertainment Europe Limited http://eu.playstation.com ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@... This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 **********************************************************************
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
|
Re: Using sudo causes JVM exitYes, turned out to be a strangely-broken JRE. Thanks for the hints. Jason Chown Sony Computer Entertainment Europe Limited http://eu.playstation.com ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@... This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 **********************************************************************
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wrapper-user@... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
| Free embeddable forum powered by Nabble | Forum Help |