I feel like a troublemaker. Like I say, logs/phoenix.log does not get touched when I try to pass options, because it doesn't get far enough.
And I'm not doing anything extraordinary, I assure you. There's no code-snippet to send! Here's what I do: 1) change directory to the PHOENIX_HOME directory 2) export JAVA_HOME to an appropriate JVM (1.4.2 in this case) 3) ./run.sh -l /var/logs/james_dev/phoenix.log I don't have any other PHOENIX-related variables set. I let the run.sh script (and the subsequent execution to phoenix.sh) do the work. And you have the results. Aaron > -----Original Message----- > From: Steve Short [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 11:40 AM > To: James Users List > Subject: RE: phoenix log > > The phoenix log file from its default location 'logs/phoenix.log'. > > Its still not clear why you are trying to invoke Phoenix > programmatically. > > Maybe you could paste your code snippet. > > Steve > > > -----Original Message----- > > From: Walker, Aaron L [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 21, 2006 4:49 AM > > To: 'James Users List' > > Subject: RE: phoenix log > > > > Which log? I don't see any logs getting updated when I get > > this error - it isn't getting far enough. > > > > I'm not passing in other options (knowingly). I'm not > > running in an appserver. You might as well say that I'm > > running from the command line. > > > > For clarity's sake, I just tried running it from the command > > line. When I don't pass any options, i.e. when I run: > > > > run.sh > > > > It "works" (I have some other trouble *beyond* the > > "option-passing point", but that is just because I am running > > it from the command line, under my ID, so I don't have all of > > the authority to do what I need). So, I know that if I have > > things set up appropriately, this would start fine. > > > > When I run: > > > > run.sh -l /var/logs/james_dev/phoenix.log > > > > I get (I echo back the command for you, if that helps): > > > > Using PHOENIX_HOME: /Z16PT1/opt/apps/james/james-2.3.0a1 > > Using PHOENIX_TMPDIR: /Z16PT1/opt/apps/james/james-2.3.0a1/temp > > Using JAVA_HOME: /var/links/devjava > > Running Phoenix: > > /var/links/devjava/bin/java > > -Djava.ext.dirs=/Z16PT1/opt/apps/james/james-2.3.0a1/lib:/Z16P > > T1/opt/apps/ja > > mes/james-2.3.0a1/tools/lib > > -Djava.security.manager > > -Djava.ext.dirs=/Z16PT1/opt/apps/james/james-2.3.0a1/lib:/Z16P > > T1/opt/apps/ja > > mes/james-2.3.0a1/tools/lib > > -Djava.security.manager > > -Djava.security.policy=jar:file:/Z16PT1/opt/apps/james/james-2 > > .3.0a1/bin/pho > > enix-loader.jar!/META-INF/java.policy > > -Dphoenix.home=/Z16PT1/opt/apps/james/james-2.3.0a1 > > -Djava.io.tmpdir=/Z16PT1/opt/apps/james/james-2.3.0a1/temp > > -jar > > /Z16PT1/opt/apps/james/james-2.3.0a1/bin/phoenix-loader.jar > > -l /var/logs/james_dev/phoenix.log > > > > [The command was all in one line - I just broke it up for > > pasting purposes) > > > > There was an uncaught exception: > > --------------------------------------------------------- > > --- Message --- > > org.apache.avalon.excalibur.cli.CLOption: method > > getDescriptor()Lorg/apache/avalon/excalibur/cli/CLOptionDescri > ptor; not found > > > > --- Stack Trace --- > > java.lang.NoSuchMethodError: org.apache.avalon.excalibur.cli.CLOption: > > method > > getDescriptor()Lorg/apache/avalon/excalibur/cli/CLOptionDescriptor; > > not found > > > > .at > > org.apache.avalon.phoenix.frontends.CLISetup.parseCommandLineOptions > > (CLISetup.java:202) > > .at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:122) > > .at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) .at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:85) > > .at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:58) > > .at sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl.java:60) > > .at java.lang.reflect.Method.invoke(Method.java:391) > > .at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128) > > .at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83) > > > > > > --------------------------------------------------------- > > The log file may contain further details of error. > > Please check the configuration files and restart Phoenix. > > If the problem persists, contact the Avalon project. See > > http://jakarta.apache.org/avalon for more information. > > > > > -----Original Message----- > > > From: Steve Short [SMTP:[EMAIL PROTECTED] > > > Sent: Monday, March 20, 2006 1:23 PM > > > To: James Users List > > > Subject: RE: phoenix log > > > > > > Please send in the log file and also give more details on > > what options > > > you _are_ passing in. > > > > > > What environment are you trying to run Phoenix in? App > > server? Custom? > > > > > > Steve > > > > > > > -----Original Message----- > > > > From: Walker, Aaron L [mailto:[EMAIL PROTECTED] > > > > Sent: Monday, March 20, 2006 10:49 AM > > > > To: 'James Users List' > > > > Subject: RE: phoenix log > > > > > > > > Strangely enough, I get the following when I try to pass > > the args (I > > > > hadn't tried in a while): > > > > > > > > There was an uncaught exception: > > > > > > > > --------------------------------------------------------- > > > > > > > > --- Message --- > > > > > > > > org.apache.avalon.excalibur.cli.CLOption: method > > > > getDescriptor()Lorg/apache/avalon/excalibur/cli/CLOptionDescri > > > > ptor; not > > > > found > > > > --- Stack Trace --- > > > > > > > > java.lang.NoSuchMethodError: > > > > org.apache.avalon.excalibur.cli.CLOption: > > > > method getDescriptor()Lorg/apache/avalon/excalibur/cli/CLOpti > > > > onDescriptor; not found > > > > > > > > at > > > > org.apache.avalon.phoenix.frontends.CLISetup.parseCommandLineO > > > > ptions(CLISetu > > > > p.java:202) > > > > at > > > > org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:122) > > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > > > > > > > > at > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > > > > orImpl.java:85 > > > > ) > > > > at > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > > > > orImpl.java:58 > > > > ) > > > > at > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > > > > odAccessorImpl > > > > .java:60) > > > > at java.lang.reflect.Method.invoke(Method.java:391) > > > > > > > > at > > > > org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128) > > > > > > > > at > org.apache.avalon.phoenix.launcher.Main.main(Main.java:83) > > > > > > > > 0--------------------------------------------------------- > > > > > > > > The log file may contain further details of error. > > > > > > > > Please check the configuration files and restart Phoenix. > > > > > > > > If the problem persists, contact the Avalon project. See > > > > > > > > http://jakarta.apache.org/avalon for more information. > > > > > > > > > > > > > -----Original Message----- > > > > > From: Steve Short [SMTP:[EMAIL PROTECTED] > > > > > Sent: Monday, March 20, 2006 12:38 PM > > > > > To: James Users List > > > > > Subject: RE: phoenix log > > > > > > > > > > Did you try something like: > > > > > > > > > > args[ idx++ ] = "-l"; > > > > > args[ idx++ ] = m_logFilename; > > > > > > > > > > In the args arraty you pass to Main? (size array and set > > > > suitable idx > > > > > values yourself). > > > > > > > > > > Steve > > > > > > > > > > > -----Original Message----- > > > > > > From: Walker, Aaron L [mailto:[EMAIL PROTECTED] > > > > > > Sent: Monday, March 20, 2006 6:14 AM > > > > > > To: 'James Users List' > > > > > > Subject: phoenix log > > > > > > > > > > > > I'm running 2.3.0a1 on zOS, and I'm trying to get the > > > > phoenix log to > > > > > > go to a non-default location. I searched and saw that > > > > passing "-l > > > > > > <new_log_location>" should do the trick, but that isn't > > > > working for > > > > > > me. > > > > > > Also, I must point out, because of the way I am running > > > > things, I'm > > > > > > not running the executable jar nor the scripts - I execute > > > > > > org.apache.avalon.phoenix.launcher.Main. How do I specify > > > > > > an alternate log > > > > > > location running in this fashion? Everything works > > swimmingly > > > > > > otherwise. > > > > > > > > > > > > Thanks, > > > > > > Aaron > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > - To unsubscribe, e-mail: > > > > > > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > -------------------------------------------------------------------- > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]