RE: Starting James

2002-02-21 Thread Forbes, Chris

Paul,

Your point is well taken.  Working within the model benefits everyone.
Also, the Avalon-Phoenix framework in general and James in particular can
hardly be accused of being un-configurable.  The software is remarkable not
only for its quality, but for its over-all flexibility and usefulness.

Chris

-Original Message-
From: Paul Hammant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 6:11 PM
To: James Developers List
Subject: Re: Starting James


Chris,

Avalon-Phoenix has an FtpServer too.  It can run in the same VM as 
JAMES.  There was talk some time back about morging of "user" orientated 
comps.  JAMES, as it happens, is a couple of releases behind the current 
Phoenix, but is catching up.

I think it is fatal as an excercise to coerce Phoenix to run something 
in theway you want.  JAMES_HOME as a concept does not exist for JAMES as 
a Phoenic app.  The James blocks can work out their "unpack" dir via 
BlockContext but not anything that exists at environment var level 
Phoenix has moved away from that.

You say the hard coded paths are a poblem in the way Phonix impls them. 
 Not so, Phoenix is the platform on which server apps should run.

I am lead to believe in summary that what you are trying to do is 
un-Phoenix.  Phoenix takes SAR files (multiple) and is always laucnhed 
by its supplied run.bat or run.sh.  Sorry dude.

I think you have answered Silvios questions well enough for me to ignore.

- Paul

>Paul, Thanks for the reply.
>
>Unfortunately, starting my application as a Phoenix block is not feasible.
>I start a number of other services (an FTP server, for instance), some of
>which are out of my control and have their own special start-up
constraints.
>
>
>The hard coded paths that org.apache.avalon.loader.Main uses (directly or
>indirectly) represent a potential problem in any application or framework.
>For distribution purposes alone, there should be a way of specifying paths
>for the lib and blocks directories; environment, config file, whatever. For
>instance, is there a JAMES_HOME variable I can set?
>
>Silvio, org.apache.avalon.loader.Main is in the file, Loader.jar, which is
>located in the James/bin directory.  This applies for 1.2.1 but may be true
>for 2.02a as well. The source code is another subject.  I can't find it.
If
>it is available for general consumption, and anyone knows where it is,
>please let me know.
>
>Chris
>
>-Original Message-
>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 20, 2002 9:05 AM
>To: James Developers List
>Subject: Re: Starting James
>
>
>Silvio,
>
>The context of your question is not well defined. Put it another way, I 
>do not know really what you are asking.
>
>- Paul
>
>>Hi Chris and Paul,
>>
>>is this only working with 1.2.1, because I tried to find the
>>org.apache.avalon.loader.Main class but I didn't succeeded.
>>I'm trying to start james 2.02a, but I have the problem I described above.
>>
>>Can you help me?
>>Thanks a lot,
>>
>>Silvio
>>
>>>-Original Message-
>>>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>>>Sent: 20 February 2002 08:18
>>>To: James Developers List
>>>Subject: Re: FW: Starting James in same jvm
>>>
>>>
>>>Chris,
>>>
>>>Make you application a Phoenix block.   on the interfaces 
>>>offered by James for true interaction.
>>>
>>>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
>>>
>>>- Paul
>>>
>>>>>-Original Message-
>>>>>From:  Forbes, Chris  
>>>>>Sent:  Tuesday, February 19, 2002 9:02 PM
>>>>>To:'[EMAIL PROTECTED]'
>>>>>Subject:   Starting James in same jvm
>>>>>
>>>>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>>>>
>>>>>I wish to start James from my own Java application and to this end have
>>>>>written a small test java class, StartJames, that instanciates 
>>>>>
>>>an instance
>>>
>>>>>of org.apache.avalon.loader.Main and then calls the main routine with
an
>>>>>args vector that has: {"-c", "config path", "-p",
>>>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>>>>
>>>>>Of course, the arguments in args are valid paths.  When I run this test
>>>>>program, I get the following output:
>>>>>parser: org.apache.xerces.parsers.SAXParser
>>>>>configur

Re: Starting James

2002-02-20 Thread Paul Hammant

Chris,

Avalon-Phoenix has an FtpServer too.  It can run in the same VM as 
JAMES.  There was talk some time back about morging of "user" orientated 
comps.  JAMES, as it happens, is a couple of releases behind the current 
Phoenix, but is catching up.

I think it is fatal as an excercise to coerce Phoenix to run something 
in theway you want.  JAMES_HOME as a concept does not exist for JAMES as 
a Phoenic app.  The James blocks can work out their "unpack" dir via 
BlockContext but not anything that exists at environment var level 
Phoenix has moved away from that.

You say the hard coded paths are a poblem in the way Phonix impls them. 
 Not so, Phoenix is the platform on which server apps should run.

I am lead to believe in summary that what you are trying to do is 
un-Phoenix.  Phoenix takes SAR files (multiple) and is always laucnhed 
by its supplied run.bat or run.sh.  Sorry dude.

I think you have answered Silvios questions well enough for me to ignore.

- Paul

>Paul, Thanks for the reply.
>
>Unfortunately, starting my application as a Phoenix block is not feasible.
>I start a number of other services (an FTP server, for instance), some of
>which are out of my control and have their own special start-up constraints.
>
>
>The hard coded paths that org.apache.avalon.loader.Main uses (directly or
>indirectly) represent a potential problem in any application or framework.
>For distribution purposes alone, there should be a way of specifying paths
>for the lib and blocks directories; environment, config file, whatever. For
>instance, is there a JAMES_HOME variable I can set?
>
>Silvio, org.apache.avalon.loader.Main is in the file, Loader.jar, which is
>located in the James/bin directory.  This applies for 1.2.1 but may be true
>for 2.02a as well. The source code is another subject.  I can't find it.  If
>it is available for general consumption, and anyone knows where it is,
>please let me know.
>
>Chris
>
>-Original Message-
>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 20, 2002 9:05 AM
>To: James Developers List
>Subject: Re: Starting James
>
>
>Silvio,
>
>The context of your question is not well defined. Put it another way, I 
>do not know really what you are asking.
>
>- Paul
>
>>Hi Chris and Paul,
>>
>>is this only working with 1.2.1, because I tried to find the
>>org.apache.avalon.loader.Main class but I didn't succeeded.
>>I'm trying to start james 2.02a, but I have the problem I described above.
>>
>>Can you help me?
>>Thanks a lot,
>>
>>Silvio
>>
>>>-Original Message-
>>>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>>>Sent: 20 February 2002 08:18
>>>To: James Developers List
>>>Subject: Re: FW: Starting James in same jvm
>>>
>>>
>>>Chris,
>>>
>>>Make you application a Phoenix block.   on the interfaces 
>>>offered by James for true interaction.
>>>
>>>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
>>>
>>>- Paul
>>>
>>>>>-Original Message-
>>>>>From:  Forbes, Chris  
>>>>>Sent:  Tuesday, February 19, 2002 9:02 PM
>>>>>To:'[EMAIL PROTECTED]'
>>>>>Subject:   Starting James in same jvm
>>>>>
>>>>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>>>>
>>>>>I wish to start James from my own Java application and to this end have
>>>>>written a small test java class, StartJames, that instanciates 
>>>>>
>>>an instance
>>>
>>>>>of org.apache.avalon.loader.Main and then calls the main routine with an
>>>>>args vector that has: {"-c", "config path", "-p",
>>>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>>>>
>>>>>Of course, the arguments in args are valid paths.  When I run this test
>>>>>program, I get the following output:
>>>>>parser: org.apache.xerces.parsers.SAXParser
>>>>>configurationPath : d:/Program Files/MailServer/James/conf/
>>>>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
>>>>>libPath   : ../lib/
>>>>>blockPath : ./blocks/
>>>>>
>>>>>The first three items are fine, just as I specified in the args vector.
>>>>>
>>>>>My problem is that the last two items seem to be hard coded, 
>>>>&g

RE: Starting James

2002-02-20 Thread Forbes, Chris

Note: I should not have written, /bin in the earlier e-mail, but rather,
/lib as in:
java -Djava.ext.dirs=c:/mypath/dst/lib
org.apache.avalon.phoenix.launcher.Main

Chris

-Original Message-
From: Forbes, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 4:31 PM
To: 'James Developers List'
Subject: RE: Starting James


Silvio,

I have installed James, version 2.02a, and have managed to start it from my
Java test program, StartJames.  The Main you were looking for is in in the
jar file, dst/bin/phoenix-loader.jar and its fully qualified name is:
org.apache.avalon.phoenix.launcher.Main. 

By looking at the run.bat file in the same directory, you can glean that you
need to set the path to the lib directory by the -D option to the JVM:
example:
java -Djava.ext.dirs=c:/mypath/dst/bin
org.apache.avalon.phoenix.launcher.Main

Note: 'dst' stands for distribution directory. It is where-ever you
installed James. Also, before you issue the above command, you need to have
the path to the JVM and to the phoenix-loader.jar and the phoenix-engine.jar
in your CLASSPATH.  These last two jar files are in the 'bin' directory I
mentioned above.  

Try the above command with the -h option:
java -Djava.ext.dirs=c:\mypath\dst\lib
org.apache.avalon.phoenix.launcher.Main -h
By doing so, you will see the various options you have.  

If you are doing this from within a java class (as is my case), you need to
start that class with the same -D'def' as above. For example:
java -Djava.ext.dirs=c:\mypath\dst\lib StartJames
Inside that class, StartJames in this case, you need to instantiate an
instance of org.apache.avalon.phoenix.launcher.Main and you need to call
it's 'main' function as in: String [] args = {"-a", "c:/mypath/dst/apps"};
myMain.main(args);
where 'myMain' is the instance name of the ..Main class.

Hope this helps,

Chris

-Original Message-
From: Silvio Katzan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:42 AM
To: James Developers List
Subject: RE: Starting James


Hi Paul,

first thanks for your answer.
The question is, in which jar- file do I find the
org.apache.avalon.loader.Main class.
I had a look on every jar from the avalon- project and I was not able to
find it.
The plan at the end is to start james with my application.

Hope this is clearer now.

Silvio

> -Original Message-
> From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 15:05
> To: James Developers List
> Subject: Re: Starting James
>
>
> Silvio,
>
> The context of your question is not well defined. Put it another way, I
> do not know really what you are asking.
>
> - Paul
>
> >Hi Chris and Paul,
> >
> >is this only working with 1.2.1, because I tried to find the
> >org.apache.avalon.loader.Main class but I didn't succeeded.
> >I'm trying to start james 2.02a, but I have the problem I
> described above.
> >
> >Can you help me?
> >Thanks a lot,
> >
> >Silvio
> >
> >>-Original Message-
> >>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> >>Sent: 20 February 2002 08:18
> >>To: James Developers List
> >>Subject: Re: FW: Starting James in same jvm
> >>
> >>
> >>Chris,
> >>
> >>Make you application a Phoenix block.   on the interfaces
> >>offered by James for true interaction.
> >>
> >>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
> >>
> >>- Paul
> >>
> >>>>-Original Message-
> >>>>From: Forbes, Chris
> >>>>Sent: Tuesday, February 19, 2002 9:02 PM
> >>>>To:   '[EMAIL PROTECTED]'
> >>>>Subject:  Starting James in same jvm
> >>>>
> >>>>I am trying out James, version 1.2.1, on NT4.0, patch 6.
> >>>>
> >>>>I wish to start James from my own Java application and to
> this end have
> >>>>written a small test java class, StartJames, that instanciates
> >>>>
> >>an instance
> >>
> >>>>of org.apache.avalon.loader.Main and then calls the main
> routine with an
> >>>>args vector that has: {"-c", "config path", "-p",
> >>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> >>>>
> >>>>Of course, the arguments in args are valid paths.  When I run
> this test
> >>>>program, I get the following output:
> >>>>parser: org.apache.xerces.parsers.SAXParser
> >>>>configurationPath : d:/Program Files/Ma

RE: Starting James

2002-02-20 Thread Forbes, Chris

Silvio,

I have installed James, version 2.02a, and have managed to start it from my
Java test program, StartJames.  The Main you were looking for is in in the
jar file, dst/bin/phoenix-loader.jar and its fully qualified name is:
org.apache.avalon.phoenix.launcher.Main. 

By looking at the run.bat file in the same directory, you can glean that you
need to set the path to the lib directory by the -D option to the JVM:
example:
java -Djava.ext.dirs=c:/mypath/dst/bin
org.apache.avalon.phoenix.launcher.Main

Note: 'dst' stands for distribution directory. It is where-ever you
installed James. Also, before you issue the above command, you need to have
the path to the JVM and to the phoenix-loader.jar and the phoenix-engine.jar
in your CLASSPATH.  These last two jar files are in the 'bin' directory I
mentioned above.  

Try the above command with the -h option:
java -Djava.ext.dirs=c:\mypath\dst\lib
org.apache.avalon.phoenix.launcher.Main -h
By doing so, you will see the various options you have.  

If you are doing this from within a java class (as is my case), you need to
start that class with the same -D'def' as above. For example:
java -Djava.ext.dirs=c:\mypath\dst\lib StartJames
Inside that class, StartJames in this case, you need to instantiate an
instance of org.apache.avalon.phoenix.launcher.Main and you need to call
it's 'main' function as in: String [] args = {"-a", "c:/mypath/dst/apps"};
myMain.main(args);
where 'myMain' is the instance name of the ..Main class.

Hope this helps,

Chris

-Original Message-
From: Silvio Katzan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:42 AM
To: James Developers List
Subject: RE: Starting James


Hi Paul,

first thanks for your answer.
The question is, in which jar- file do I find the
org.apache.avalon.loader.Main class.
I had a look on every jar from the avalon- project and I was not able to
find it.
The plan at the end is to start james with my application.

Hope this is clearer now.

Silvio

> -Original Message-
> From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 15:05
> To: James Developers List
> Subject: Re: Starting James
>
>
> Silvio,
>
> The context of your question is not well defined. Put it another way, I
> do not know really what you are asking.
>
> - Paul
>
> >Hi Chris and Paul,
> >
> >is this only working with 1.2.1, because I tried to find the
> >org.apache.avalon.loader.Main class but I didn't succeeded.
> >I'm trying to start james 2.02a, but I have the problem I
> described above.
> >
> >Can you help me?
> >Thanks a lot,
> >
> >Silvio
> >
> >>-Original Message-
> >>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> >>Sent: 20 February 2002 08:18
> >>To: James Developers List
> >>Subject: Re: FW: Starting James in same jvm
> >>
> >>
> >>Chris,
> >>
> >>Make you application a Phoenix block.   on the interfaces
> >>offered by James for true interaction.
> >>
> >>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
> >>
> >>- Paul
> >>
> >>>>-Original Message-
> >>>>From: Forbes, Chris
> >>>>Sent: Tuesday, February 19, 2002 9:02 PM
> >>>>To:   '[EMAIL PROTECTED]'
> >>>>Subject:  Starting James in same jvm
> >>>>
> >>>>I am trying out James, version 1.2.1, on NT4.0, patch 6.
> >>>>
> >>>>I wish to start James from my own Java application and to
> this end have
> >>>>written a small test java class, StartJames, that instanciates
> >>>>
> >>an instance
> >>
> >>>>of org.apache.avalon.loader.Main and then calls the main
> routine with an
> >>>>args vector that has: {"-c", "config path", "-p",
> >>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> >>>>
> >>>>Of course, the arguments in args are valid paths.  When I run
> this test
> >>>>program, I get the following output:
> >>>>parser: org.apache.xerces.parsers.SAXParser
> >>>>configurationPath : d:/Program Files/MailServer/James/conf/
> >>>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
> >>>>libPath   : ../lib/
> >>>>blockPath : ./blocks/
> >>>>
> >>>>The first three items are fine, just as I specified in the
> args vector.
> >&

RE: Starting James

2002-02-20 Thread Forbes, Chris

Paul, Thanks for the reply.

Unfortunately, starting my application as a Phoenix block is not feasible.
I start a number of other services (an FTP server, for instance), some of
which are out of my control and have their own special start-up constraints.


The hard coded paths that org.apache.avalon.loader.Main uses (directly or
indirectly) represent a potential problem in any application or framework.
For distribution purposes alone, there should be a way of specifying paths
for the lib and blocks directories; environment, config file, whatever. For
instance, is there a JAMES_HOME variable I can set?

Silvio, org.apache.avalon.loader.Main is in the file, Loader.jar, which is
located in the James/bin directory.  This applies for 1.2.1 but may be true
for 2.02a as well. The source code is another subject.  I can't find it.  If
it is available for general consumption, and anyone knows where it is,
please let me know.

Chris

-Original Message-
From: Paul Hammant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:05 AM
To: James Developers List
Subject: Re: Starting James


Silvio,

The context of your question is not well defined. Put it another way, I 
do not know really what you are asking.

- Paul

>Hi Chris and Paul,
>
>is this only working with 1.2.1, because I tried to find the
>org.apache.avalon.loader.Main class but I didn't succeeded.
>I'm trying to start james 2.02a, but I have the problem I described above.
>
>Can you help me?
>Thanks a lot,
>
>Silvio
>
>>-Original Message-
>>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>>Sent: 20 February 2002 08:18
>>To: James Developers List
>>Subject: Re: FW: Starting James in same jvm
>>
>>
>>Chris,
>>
>>Make you application a Phoenix block.   on the interfaces 
>>offered by James for true interaction.
>>
>>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
>>
>>- Paul
>>
>>>>-Original Message-
>>>>From:   Forbes, Chris  
>>>>Sent:   Tuesday, February 19, 2002 9:02 PM
>>>>To: '[EMAIL PROTECTED]'
>>>>Subject:Starting James in same jvm
>>>>
>>>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>>>
>>>>I wish to start James from my own Java application and to this end have
>>>>written a small test java class, StartJames, that instanciates 
>>>>
>>an instance
>>
>>>>of org.apache.avalon.loader.Main and then calls the main routine with an
>>>>args vector that has: {"-c", "config path", "-p",
>>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>>>
>>>>Of course, the arguments in args are valid paths.  When I run this test
>>>>program, I get the following output:
>>>>parser: org.apache.xerces.parsers.SAXParser
>>>>configurationPath : d:/Program Files/MailServer/James/conf/
>>>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
>>>>libPath   : ../lib/
>>>>blockPath : ./blocks/
>>>>
>>>>The first three items are fine, just as I specified in the args vector.
>>>>
>>>>My problem is that the last two items seem to be hard coded, 
>>>>
>>"../lib" and
>>
>>>>"./blocks".  If I actually put those directories relative to the place
>>>>where I run my test program, then it works fine.  But that is not very
>>>>configurable and won't work for the purpose I have in mind.
>>>>
>>>>My question is: Is there a way to make 
>>>>
>>org.apache.avalon.loader.Main aware
>>
>>>>of libPath and blockPath? For instance, via a call to
>>>>System.setProperty("libPath","path").
>>>>
>>>>If not, is there another way to start James programatically?
>>>>
>>>>Thanks,
>>>>
>>>>Chris Forbes
>>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>For additional commands, e-mail: 
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Starting James

2002-02-20 Thread Silvio Katzan

Hi Paul,

first thanks for your answer.
The question is, in which jar- file do I find the
org.apache.avalon.loader.Main class.
I had a look on every jar from the avalon- project and I was not able to
find it.
The plan at the end is to start james with my application.

Hope this is clearer now.

Silvio

> -Original Message-
> From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 15:05
> To: James Developers List
> Subject: Re: Starting James
>
>
> Silvio,
>
> The context of your question is not well defined. Put it another way, I
> do not know really what you are asking.
>
> - Paul
>
> >Hi Chris and Paul,
> >
> >is this only working with 1.2.1, because I tried to find the
> >org.apache.avalon.loader.Main class but I didn't succeeded.
> >I'm trying to start james 2.02a, but I have the problem I
> described above.
> >
> >Can you help me?
> >Thanks a lot,
> >
> >Silvio
> >
> >>-Original Message-
> >>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> >>Sent: 20 February 2002 08:18
> >>To: James Developers List
> >>Subject: Re: FW: Starting James in same jvm
> >>
> >>
> >>Chris,
> >>
> >>Make you application a Phoenix block.   on the interfaces
> >>offered by James for true interaction.
> >>
> >>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
> >>
> >>- Paul
> >>
> >>>>-Original Message-
> >>>>From: Forbes, Chris
> >>>>Sent: Tuesday, February 19, 2002 9:02 PM
> >>>>To:   '[EMAIL PROTECTED]'
> >>>>Subject:  Starting James in same jvm
> >>>>
> >>>>I am trying out James, version 1.2.1, on NT4.0, patch 6.
> >>>>
> >>>>I wish to start James from my own Java application and to
> this end have
> >>>>written a small test java class, StartJames, that instanciates
> >>>>
> >>an instance
> >>
> >>>>of org.apache.avalon.loader.Main and then calls the main
> routine with an
> >>>>args vector that has: {"-c", "config path", "-p",
> >>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> >>>>
> >>>>Of course, the arguments in args are valid paths.  When I run
> this test
> >>>>program, I get the following output:
> >>>>parser: org.apache.xerces.parsers.SAXParser
> >>>>configurationPath : d:/Program Files/MailServer/James/conf/
> >>>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
> >>>>libPath   : ../lib/
> >>>>blockPath : ./blocks/
> >>>>
> >>>>The first three items are fine, just as I specified in the
> args vector.
> >>>>
> >>>>My problem is that the last two items seem to be hard coded,
> >>>>
> >>"../lib" and
> >>
> >>>>"./blocks".  If I actually put those directories relative to the place
> >>>>where I run my test program, then it works fine.  But that is not very
> >>>>configurable and won't work for the purpose I have in mind.
> >>>>
> >>>>My question is: Is there a way to make
> >>>>
> >>org.apache.avalon.loader.Main aware
> >>
> >>>>of libPath and blockPath? For instance, via a call to
> >>>>System.setProperty("libPath","path").
> >>>>
> >>>>If not, is there another way to start James programatically?
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Chris Forbes
> >>>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>>For additional commands, e-mail:
> >>>
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>>
> >>>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail:
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Starting James

2002-02-20 Thread Paul Hammant

Silvio,

The context of your question is not well defined. Put it another way, I 
do not know really what you are asking.

- Paul

>Hi Chris and Paul,
>
>is this only working with 1.2.1, because I tried to find the
>org.apache.avalon.loader.Main class but I didn't succeeded.
>I'm trying to start james 2.02a, but I have the problem I described above.
>
>Can you help me?
>Thanks a lot,
>
>Silvio
>
>>-Original Message-
>>From: Paul Hammant [mailto:[EMAIL PROTECTED]]
>>Sent: 20 February 2002 08:18
>>To: James Developers List
>>Subject: Re: FW: Starting James in same jvm
>>
>>
>>Chris,
>>
>>Make you application a Phoenix block.   on the interfaces 
>>offered by James for true interaction.
>>
>>Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
>>
>>- Paul
>>
>>>>-----Original Message-
>>>>From:   Forbes, Chris  
>>>>Sent:   Tuesday, February 19, 2002 9:02 PM
>>>>To: '[EMAIL PROTECTED]'
>>>>Subject:Starting James in same jvm
>>>>
>>>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>>>
>>>>I wish to start James from my own Java application and to this end have
>>>>written a small test java class, StartJames, that instanciates 
>>>>
>>an instance
>>
>>>>of org.apache.avalon.loader.Main and then calls the main routine with an
>>>>args vector that has: {"-c", "config path", "-p",
>>>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>>>
>>>>Of course, the arguments in args are valid paths.  When I run this test
>>>>program, I get the following output:
>>>>parser: org.apache.xerces.parsers.SAXParser
>>>>configurationPath : d:/Program Files/MailServer/James/conf/
>>>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
>>>>libPath   : ../lib/
>>>>blockPath : ./blocks/
>>>>
>>>>The first three items are fine, just as I specified in the args vector.
>>>>
>>>>My problem is that the last two items seem to be hard coded, 
>>>>
>>"../lib" and
>>
>>>>"./blocks".  If I actually put those directories relative to the place
>>>>where I run my test program, then it works fine.  But that is not very
>>>>configurable and won't work for the purpose I have in mind.
>>>>
>>>>My question is: Is there a way to make 
>>>>
>>org.apache.avalon.loader.Main aware
>>
>>>>of libPath and blockPath? For instance, via a call to
>>>>System.setProperty("libPath","path").
>>>>
>>>>If not, is there another way to start James programatically?
>>>>
>>>>Thanks,
>>>>
>>>>Chris Forbes
>>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>For additional commands, e-mail: 
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Starting James

2002-02-20 Thread Silvio Katzan

Hi Chris and Paul,

is this only working with 1.2.1, because I tried to find the
org.apache.avalon.loader.Main class but I didn't succeeded.
I'm trying to start james 2.02a, but I have the problem I described above.

Can you help me?
Thanks a lot,

Silvio

> -Original Message-
> From: Paul Hammant [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 08:18
> To: James Developers List
> Subject: Re: FW: Starting James in same jvm
> 
> 
> Chris,
> 
> Make you application a Phoenix block.   on the interfaces 
> offered by James for true interaction.
> 
> Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.
> 
> - Paul
> 
> >
> >> -Original Message-
> >>From:   Forbes, Chris  
> >>Sent:       Tuesday, February 19, 2002 9:02 PM
> >>To: '[EMAIL PROTECTED]'
> >>Subject:Starting James in same jvm
> >>
> >>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
> >>
> >>I wish to start James from my own Java application and to this end have
> >>written a small test java class, StartJames, that instanciates 
> an instance
> >>of org.apache.avalon.loader.Main and then calls the main routine with an
> >>args vector that has: {"-c", "config path", "-p",
> >>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> >>
> >>Of course, the arguments in args are valid paths.  When I run this test
> >>program, I get the following output:
> >>parser: org.apache.xerces.parsers.SAXParser
> >>configurationPath : d:/Program Files/MailServer/James/conf/
> >>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
> >>libPath   : ../lib/
> >>blockPath : ./blocks/
> >>
> >>The first three items are fine, just as I specified in the args vector.
> >>
> >>My problem is that the last two items seem to be hard coded, 
> "../lib" and
> >>"./blocks".  If I actually put those directories relative to the place
> >>where I run my test program, then it works fine.  But that is not very
> >>configurable and won't work for the purpose I have in mind.
> >>
> >>My question is: Is there a way to make 
> org.apache.avalon.loader.Main aware
> >>of libPath and blockPath? For instance, via a call to
> >>System.setProperty("libPath","path").
> >>
> >>If not, is there another way to start James programatically?
> >>
> >>Thanks,
> >>
> >>Chris Forbes
> >>
> >
> >--
> >To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 



<>
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Re: FW: Starting James in same jvm

2002-02-20 Thread Paul Hammant

Chris,

Make you application a Phoenix block.   on the interfaces 
offered by James for true interaction.

Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.

- Paul

>
>> -Original Message-
>>From: Forbes, Chris  
>>Sent: Tuesday, February 19, 2002 9:02 PM
>>To:   '[EMAIL PROTECTED]'
>>Subject:  Starting James in same jvm
>>
>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>
>>I wish to start James from my own Java application and to this end have
>>written a small test java class, StartJames, that instanciates an instance
>>of org.apache.avalon.loader.Main and then calls the main routine with an
>>args vector that has: {"-c", "config path", "-p",
>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>
>>Of course, the arguments in args are valid paths.  When I run this test
>>program, I get the following output:
>>parser: org.apache.xerces.parsers.SAXParser
>>configurationPath : d:/Program Files/MailServer/James/conf/
>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
>>libPath   : ../lib/
>>blockPath : ./blocks/
>>
>>The first three items are fine, just as I specified in the args vector.
>>
>>My problem is that the last two items seem to be hard coded, "../lib" and
>>"./blocks".  If I actually put those directories relative to the place
>>where I run my test program, then it works fine.  But that is not very
>>configurable and won't work for the purpose I have in mind.
>>
>>My question is: Is there a way to make org.apache.avalon.loader.Main aware
>>of libPath and blockPath? For instance, via a call to
>>System.setProperty("libPath","path").
>>
>>If not, is there another way to start James programatically?
>>
>>Thanks,
>>
>>Chris Forbes
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




FW: Starting James in same jvm

2002-02-19 Thread Forbes, Chris



>  -Original Message-
> From: Forbes, Chris  
> Sent: Tuesday, February 19, 2002 9:02 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  Starting James in same jvm
> 
> I am trying out James, version 1.2.1, on NT4.0, patch 6. 
> 
> I wish to start James from my own Java application and to this end have
> written a small test java class, StartJames, that instanciates an instance
> of org.apache.avalon.loader.Main and then calls the main routine with an
> args vector that has: {"-c", "config path", "-p",
> "org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> 
> Of course, the arguments in args are valid paths.  When I run this test
> program, I get the following output:
> parser: org.apache.xerces.parsers.SAXParser
> configurationPath : d:/Program Files/MailServer/James/conf/
> logFile   : d:/Program Files/MailServer/James/logs/avalon.log
> libPath   : ../lib/
> blockPath : ./blocks/
> 
> The first three items are fine, just as I specified in the args vector.
> 
> My problem is that the last two items seem to be hard coded, "../lib" and
> "./blocks".  If I actually put those directories relative to the place
> where I run my test program, then it works fine.  But that is not very
> configurable and won't work for the purpose I have in mind.
> 
> My question is: Is there a way to make org.apache.avalon.loader.Main aware
> of libPath and blockPath? For instance, via a call to
> System.setProperty("libPath","path").
> 
> If not, is there another way to start James programatically?
> 
> Thanks,
> 
> Chris Forbes
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Starting James without -jar

2002-01-11 Thread Jeff Dillon

> However, the latest versions of Phoenix (the app server
> on which James runs) have the facility to run as an NT service, using the
> Java Wrapper project (http://wrapper.sourceforge.net).

Cool. That looks like a better solution than what I was trying to do.

> You'll need to give us a little more time to get this working, but if you
> can wait (or help :), it might save you a bit of grief.

I'll work on getting James to run as an NT service with the java wrapper
program instead. Thanks.

Jeff

Jeff Dillon
http://www.jeffdillon.com



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Starting James without -jar

2002-01-11 Thread Darrell DeBoer

Hi Jeff

> I'm trying to write a utility to run James as a Windows 2k service and I
> need to figure out how to run james without the -jar option.

I don't know how to help with your specific query (I can run James
without -jar, but only by having Intellij specify the *entire* classpath on
the command-line). However, the latest versions of Phoenix (the app server
on which James runs) have the facility to run as an NT service, using the
Java Wrapper project (http://wrapper.sourceforge.net).

You'll need to give us a little more time to get this working, but if you
can wait (or help :), it might save you a bit of grief.

ciao
Daz


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Starting James without -jar

2002-01-11 Thread Jeff Dillon

Hello-

I'm trying to write a utility to run James as a Windows 2k service and I
need to figure out how to run james without the -jar option.

I looked at Tomcat and it does it with...

%_RUNJAVA%
%CATALINA_OPTS% -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA
_HOME%" org.apache.catalina.startup.Bootstrap %1 %2 %3 %4 %5 %6 %7 %8 %9

I am trying to do a similar thing with James like...

set PHOENIX_HOME=%~dp0  // sets to current directory
java -Djava.ext.dirs=%PHOENIX_HOME%\lib -Djava.class.path=%PHOENIX_HOME%\pho
enix-loader.jar org.apache.avalon.phoenix.launcher.Main

I keep getting class not found errors even though the classes that it
complains about exist in the jars found in the lib directory. Perhaps I
don't understand the java.ext.dirs setting, I'm not sure.

Thanks

Jeff Dillon
http://www.jeffdillon.com


- Original Message -
From: "Danny Angus" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 1:52 PM
Subject: RE: Version numbers...


> I'm kinda forging ahead on that basis, but silence from *everyone* is just
a
> little off-putting ;-)
>
> > -Original Message-
> > From: Harmeet [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 11, 2002 7:13 PM
> > To: James Developers List
> > Subject: Re: Version numbers...
> >
> >
> > From: "Danny Angus" <[EMAIL PROTECTED]>
> > > Should we vote on this?
> >
> > Silence to me is implicit 'I am ok with it'. at least a 0 or +1.
> > For me it is +1.
> >
> > Harmeet
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: