problem when sending mail to mailing list

2002-02-20 Thread Davide Frigerio

Hi, I am new with James. I installed and tested the SMTP and the POP3
function, everything's well.
After this step I install a mailing list, I try to subscribe some users with
no problem but when a user send mail to the mailing list the following
exception accored:


Exception in processer 
java.lang.NullPointerException
at
org.apache.james.transport.mailets.AvalonListserv.getMembers(AvalonListserv.
java:73)
at
org.apache.james.transport.mailets.GenericListserv.service(GenericListserv.j
ava:64)
...

Any suggest?

Thanks.

Davide Frigerio


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




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:   
>For additional commands, e-mail: 
>
>
>




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




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:   
> 
> >For additional commands, e-mail: 
> 
> >
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 



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


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:   
>>>
>>
>>
>>>For additional commands, e-mail: 
>>>
>>
>>
>>>
>>>
>>
>>
>>
>>--
>>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: 




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:
> >>>
> >>
> >>
> >>>For additional commands, e-mail:
> >>>
> >>
> >>
> >>>
> >>>
> >>
> >>
> >>
> >>--
> >>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: 



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




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:   
>>>
>>
>>
>>>For additional commands, e-mail: 
>>>
>>
>>
>>>
>>>
>>
>>
>>
>>--
>>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: 

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




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.
> 
> 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:
> >>>
> >>
> >>
> >>>For additional commands, e-mail:
> >>>
> >>
> >>
> >>>
> >>

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/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 ca

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, 
>
>>>"../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:   

>>>
>>>
For additional commands, e-mail: 

>>>
>>>

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

DO NOT REPLY [Bug 6602] New: - timeout of remote manager lists exception; should be quiet

2002-02-20 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6602

timeout of remote manager lists exception; should be quiet

   Summary: timeout of remote manager lists exception; should be
quiet
   Product: James
   Version: 2.0a2
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Minor
  Priority: Other
 Component: James Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


at moment of timeout expiration, remote manager throws exception.  it should just 
close socket quietly.

Exception: JVM_recv in socket input stream read (code=10004)
java.net.SocketException: JVM_recv in socket input stream read (code=10004)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:67)

p.s. need bugzilla component for remote manager

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




DO NOT REPLY [Bug 6602] - timeout of remote manager lists exception; should be quiet

2002-02-20 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6602

timeout of remote manager lists exception; should be quiet

[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|2.0a2   |unspecified



--- Additional Comments From [EMAIL PROTECTED]  2002-02-21 01:17 
---
hmm, I should have listed entire trace, and noted that I'm running from CVS checkout 
20 Feb 2002.

Exception: JVM_recv in socket input stream read (code=10004)
java.net.SocketException: JVM_recv in socket input stream read (code=10004)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:67)
at java.io.InputStreamReader.fill(InputStreamReader.java:173)
at java.io.InputStreamReader.read(InputStreamReader.java:249)
at java.io.BufferedReader.fill(BufferedReader.java:139)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at org.apache.james.remotemanager.RemoteManagerHandler.handleConnection(
RemoteManagerHandler.java:144)
at org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(
Connection.java:167)
at org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
at org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:86)

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