|
From: Leif M. <le...@ta...> - 2006-08-05 01:03:18
|
Chris,
Your java command is simply "java". This means that it will try to
locate it on the PATH.
When running the way you are, that environment variable most likely does
not contain the
java bin directory.
Try setting an absolute path your your java binary. If that works,
then back out to using
%JAVA_HOME/bin/java And make sure that JAVA_HOME is set.
You should be getting a better error message in this case. I will
look into why you are
not.
Cheers,
Leif
Chris Medinger wrote:
> Using latest ubuntu, and sun java (also tried
> blackhawk), program runs when not in wrapper. I've
> been able to run it before on FC4 in wrapper, but for
> some reason I'm getting an error now after switching
> over. I think it has something to do with privileges,
> but even when I open up all areas (777) by everyone
> (or run by root) it doesn't go away. All related
> software is current. I've tried with specify user
> commented out, or under its own user id. Here's the
> debug log:
>
> ---
>
> DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning
> intermediate process...
> DEBUG | wrapper | 2006/08/04 11:38:43 | Spawning
> daemon process...
> STATUS | wrapper | 2006/08/04 11:38:43 | --> Wrapper
> Started as Daemon
> DEBUG | wrapper | 2006/08/04 11:38:43 | Using tick
> timer.
> DEBUG | wrapperp | 2006/08/04 11:38:43 | server
> listening on port 32000.
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[0] :
> java
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[1] :
> -jar
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[2] :
> -Djava.library.path=/usr/share/jgnash/lib
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[3] :
> -classpath
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[4] :
> /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[5] :
> -Dwrapper.key=guHBaIGT1bqxejQQ
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[6] :
> -Dwrapper.port=32000
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[7] :
> -Dwrapper.jvm.port.min=31000
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[8] :
> -Dwrapper.jvm.port.max=31999
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[9] :
> -Dwrapper.debug=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[10]
> : -Dwrapper.pid=4563
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[11]
> : -Dwrapper.version=3.2.1
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[12]
> : -Dwrapper.native_library=wrapper
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[13]
> : -Dwrapper.service=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[14]
> : -Dwrapper.cpu.timeout=10
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[15]
> : -Dwrapper.jvmid=1
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[16]
> : org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[17]
> : jgnash.Main
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[18]
> : -server
> DEBUG | wrapper | 2006/08/04 11:38:43 | Command[19]
> : /srv/jgnash/personal.jgnash.xml
> STATUS | wrapper | 2006/08/04 11:38:43 | Launching a
> JVM...
> DEBUG | wrapper | 2006/08/04 11:38:43 | Signal
> trapped. Details:
> DEBUG | wrapper | 2006/08/04 11:38:43 | signal
> number=17 (SIGCHLD), source="unknown"
> DEBUG | wrapper | 2006/08/04 11:38:43 | Received
> SIGCHLD, calling wait().
> DEBUG | wrapper | 2006/08/04 11:38:43 | wait()
> returned, child process should be gone.
> INFO | jvm 1 | 2006/08/04 11:38:43 | Unable to
> access jarfile
> org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:43 | JVM process
> is gone.
> ERROR | wrapper | 2006/08/04 11:38:43 | JVM exited
> while loading the application.
> DEBUG | wrapper | 2006/08/04 11:38:44 | JVM was only
> running for 0 seconds leading to a failed restart
> count of 1.
> DEBUG | wrapper | 2006/08/04 11:38:44 | Waiting 5
> seconds before launching another JVM.
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[0] :
> java
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[1] :
> -jar
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[2] :
> -Djava.library.path=/usr/share/jgnash/lib
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[3] :
> -classpath
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[4] :
> /usr/share/jgnash/lib/wrapper.jar:/usr/share/jgnash/bin/jgnash.jar
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[5] :
> -Dwrapper.key=YRn8y30Afr7tKYjS
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[6] :
> -Dwrapper.port=32000
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[7] :
> -Dwrapper.jvm.port.min=31000
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[8] :
> -Dwrapper.jvm.port.max=31999
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[9] :
> -Dwrapper.debug=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[10]
> : -Dwrapper.pid=4563
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[11]
> : -Dwrapper.version=3.2.1
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[12]
> : -Dwrapper.native_library=wrapper
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[13]
> : -Dwrapper.service=TRUE
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[14]
> : -Dwrapper.cpu.timeout=10
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[15]
> : -Dwrapper.jvmid=2
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[16]
> : org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[17]
> : jgnash.Main
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[18]
> : -server
> DEBUG | wrapper | 2006/08/04 11:38:48 | Command[19]
> : /srv/jgnash/personal.jgnash.xml
> STATUS | wrapper | 2006/08/04 11:38:48 | Launching a
> JVM...
> DEBUG | wrapper | 2006/08/04 11:38:48 | JVM process
> is gone.
> ERROR | wrapper | 2006/08/04 11:38:48 | Unable to
> start a JVM
> DEBUG | wrapper | 2006/08/04 11:38:48 | Signal
> trapped. Details:
> DEBUG | wrapper | 2006/08/04 11:38:48 | signal
> number=17 (SIGCHLD), source="unknown"
> DEBUG | wrapper | 2006/08/04 11:38:48 | Received
> SIGCHLD, calling wait().
> DEBUG | wrapper | 2006/08/04 11:38:48 | wait()
> returned, child process should be gone.
> INFO | jvm 2 | 2006/08/04 11:38:48 | Unable to
> access jarfile
> org.tanukisoftware.wrapper.WrapperSimpleApp
> STATUS | wrapper | 2006/08/04 11:38:48 | <-- Wrapper
> Stopped
> ---
>
> and here's my wrapper.conf (note: it doesn't change
> anything if I write the full path to java):
>
> ---
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
> wrapper.java.command=java
>
> # Java Main class. This class must implement the
> WrapperListener interface
> # or guarantee that the WrapperManager class is
> initialized. Helper
> # classes are provided to do this for you. See the
> Integration section
> # of the documentation for details.
> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
>
> # Java Classpath (include wrapper.jar) Add class path
> elements as
> # needed starting from 1
> wrapper.java.classpath.1=/usr/share/jgnash/lib/wrapper.jar
> wrapper.java.classpath.2=/usr/share/jgnash/bin/jgnash.jar
>
> # Java Library Path (location of Wrapper.DLL or
> libwrapper.so)
> wrapper.java.library.path.1=/usr/share/jgnash/lib
>
> # Java Additional Parameters
> wrapper.java.additional.1=-jar
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
>
> # Application parameters. Add parameters as needed
> starting from 1
> wrapper.app.parameter.1=jgnash.Main
> wrapper.app.parameter.2=-server
> wrapper.app.parameter.3=/srv/jgnash/personal.jgnash.xml
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console. (See docs for
> formats)
> wrapper.console.format=PM
>
> # Log Level for console output. (See docs for log
> levels)
> wrapper.console.loglevel=DEBUG
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=../logs/wrapper.log
>
> # Format of output for the log file. (See docs for
> formats)
> wrapper.logfile.format=LPTM
>
> # Log Level for log file output. (See docs for log
> levels)
> wrapper.logfile.loglevel=DEBUG
>
> # Maximum size that the log file will be allowed to
> grow to before
> # the log is rolled. Size is specified in bytes. The
> default value
> # of 0, disables log rolling. May abbreviate with
> the 'k' (kb) or
> # 'm' (mb) suffix. For example: 10m = 10 megabytes.
> wrapper.logfile.maxsize=0
>
> # Maximum number of rolled log files which will be
> allowed before old
> # files are deleted. The default value of 0 implies
> no limit.
> wrapper.logfile.maxfiles=0
>
> # Log Level for sys/event log output. (See docs for
> log levels)
> wrapper.syslog.loglevel=NONE
>
> #********************************************************************
> # Wrapper Windows Properties
> #********************************************************************
> # Title to use when running as a console
> wra...@ap...@
>
> #********************************************************************
> # Wrapper Windows NT/2000/XP Service Properties
> #********************************************************************
> # WARNING - Do not modify any of these properties when
> an application
> # using this configuration file has been installed as
> a service.
> # Please uninstall the service before modifying this
> section. The
> # service can then be reinstalled.
>
> # Name of the service
> wra...@ap...@
>
> # Display name of the service
> wra...@ap...@
>
> # Description of the service
> wra...@ap...@
>
> # Service dependencies. Add dependencies as needed
> starting from 1
> wrapper.ntservice.dependency.1=
>
> # Mode in which the service is installed. AUTO_START
> or DEMAND_START
> wrapper.ntservice.starttype=AUTO_START
>
> # Allow the service to interact with the desktop.
> wrapper.ntservice.interactive=false
>
|