avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <Paul_Hamm...@yahoo.com>
Subject Re: Stable branch
Date Wed, 11 Sep 2002 22:02:11 GMT
Peter, Johan, Nicola,

>We already have it implemented. Yo enable just download wrapper from 
>wrapper.sourceforge.net and then set up the correct properties (as defined in 
>ant.properties.sample). This should result in Phoenix being built with 
>wrapper support.
>
Yup.

>Then you just need to make sure that there is a vanilla distribution (ie 
>doesn't include the win32 exe/dll files) and a distribution with the dll/exes 
>included.
>
Planning the multiple distros is one thing, but understanding how to 
launch and manipulate the wrapped phoenix is another.

This is what you get when there is a SAR in the apps dir.....

  C:\ApacheUPD\jakarta-avalon-phoenix-402\dist\bin>wrapper -c 
..\conf\wrapper.conf
  wrapper  | --> Wrapper Started as Console
  wrapper  | Launching a JVM...
  jvm 1    | Wrapper (Version 2.2.7)
  jvm 1    |
  jvm 1    |
  jvm 1    | Phoenix 4.0beta2
  jvm 1    |
  jvm 1    | HelloWorld server running with a greeting of 'Hello 
World'.  Point your bro...

This is what you get when there is nothing in apps/ ....

  C:\ApacheUPD\jakarta-avalon-phoenix-402\dist\bin>wrapper -c 
..\conf\wrapper.conf
  wrapper  | --> Wrapper Started as Console
  wrapper  | Launching a JVM...
  jvm 1    | Wrapper (Version 2.2.7)
  jvm 1    |
  jvm 1    |
  jvm 1    | Phoenix 4.0beta2
  jvm 1    |
  jvm 1    | Shutting down Phoenix.
  jvm 1    | java.lang.Exception: Stack trace
  jvm 1    |      at java.lang.Thread.dumpStack(Thread.java:993)
  jvm 1    |      at 
org.apache.avalon.phoenix.launcher.DaemonLauncher.update(DaemonLauncher.java:130)
  jvm 1    |      at 
java.util.Observable.notifyObservers(Observable.java:142)
  jvm 1    |      at 
org.apache.avalon.phoenix.frontends.CLIMain.shutdown(CLIMain.java:300)
  jvm 1    |      at 
org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:170)
  jvm 1    |      at java.lang.Thread.run(Thread.java:484)
  wrapper  | <-- Wrapper Stopped

Also, trying to cause the shutdown of the working wrapper with ' wrapper 
-c ..\conf\wrapper.conf wrapper.java.command=shutdown' proves less that 
fruitfull as the wrapper claims :

  C:\ApacheUPD\jakarta-avalon-phoenix-402\dist\bin>
  C:\ApacheUPD\jakarta-avalon-phoenix-402\dist\bin>wrapper -c ..\con
  wrapper  | --> Wrapper Started as Console
  wrapperp | port 15012 already in use, using port 15013 instead.
  wrapper  | Launching a JVM...
  wrapper  | can not execute ""shutdown" -Djava.ext.dirs=../lib -Dph
  META-INF/java.policy -Djava.security.manager -Xms16m -Xmx64m -Djav
  wrapper.key="iUV6mSMAxfVobB87" -Dwrapper.port=15013 -Dwrapper.jvmi
  wrapper  | Critical error: wait for JVM process failed

I think we have some polishing to do.
The as yet unpublished update to 
http://jakarta.apache.org/avalon/phoenix/guide-administrator.html page 
indicates this is easier than it should be.

- Paul




--
To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


Mime
View raw message