You are viewing a plain text version of this content. The canonical link for it is here.
Posted to phoenix-dev@avalon.apache.org by Andrei Ivanov <my...@surfeu.fi> on 2002/05/21 15:56:38 UTC

End user installing of phoenix based application question...

Hi list!
I have an issue about installing my application which runs on the top of
phoenix.

Installer, I am using, can NOT zip or unzip files. During installation
process user has to make several choices which have to go into configuration
file (SAR-INF/config.xml). When installation finishes, installer will have
to start phoenix. It seems so that phoenix can not start when there is no
sar file inside apps. This causes problem when config.xml which is in sar
and config.xml generated by installer will differ. This bothers me because
from my point of view it is better to have same configs in sar and inside
SAR-INF. Is there any way to make phoenix update config.xml inside sar? Any
other workaround for my problem? What else can be recommended?

Best regards,
Andrei


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Using avalon components in Phoenix

Posted by Peter Donald <pe...@apache.org>.
On Wed, 22 May 2002 01:45, Andrei Ivanov wrote:
> 1. jars will go into SAR-INF/lib
> 2. configurations (*.xconf; *.xml; *.dtd) will be placed under into
> SAR-INF/classes or under SAR-INF if first variant will not work.
>
> My primary concern is about correct location for latter. Will those configs
> be found? Will they interfere with phoenix bootstrapping mechanism? Are
> there other ways to integrate avalon applications into phoenix (directory
> structure for sar file)?

It really depends on what you want to do. Personally what I do is create a 
conf/ dir in my .sar file and then any config files (besides those used by 
phoenix) rest in there. 

Everything outside the SAR-INF directory will be extracted into your 
applications home directory (accessible via the BlockContext). So you just 
load the config files from the files relative to app directory.

If you want to use jars in writing Blocks then I would put them in SAR-INF/lib 
but if you want to manually load them (for whatever reason) or create any 
ClassLoaders etc then I would consider moving them into a dir like "lib/" or 
something.

-- 
Cheers,

Peter Donald


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Using avalon components in Phoenix

Posted by Andrei Ivanov <my...@surfeu.fi>.
Hi list
I have avalon application which consist of

1. several jars
2. a number of configuration files (*.xconf; *.xml; *.dtd) which avalon
classes load (via class loader) and use.
3 OR one war file instead of 1 and 3 (which includes both 1 and 3)

Now I need to initialize this avalon application and access it's services
from my phoenix block.

I would like to ask about better way to include this application into sar
file. So far I see the following structure:

1. jars will go into SAR-INF/lib
2. configurations (*.xconf; *.xml; *.dtd) will be placed under into
SAR-INF/classes or under SAR-INF if first variant will not work.

My primary concern is about correct location for latter. Will those configs
be found? Will they interfere with phoenix bootstrapping mechanism? Are
there other ways to integrate avalon applications into phoenix (directory
structure for sar file)?

Andrei



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: End user installing of phoenix based application question...

Posted by Peter Royal <pr...@apache.org>.
On Tuesday 21 May 2002 09:56 am, Andrei Ivanov wrote:
> same configs in sar and inside SAR-INF. Is there any way to make phoenix
> update config.xml inside sar? Any other workaround for my problem? What
> else can be recommended?

Not yet, but a solution is in progress and will be forthcoming in a few weeks.

When done, you will be able to have configuration information stored 
(peristently) outside of the SAR as well as a GUI to reconfigure.
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>