You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Peter Donald <do...@apache.org> on 2001/09/05 14:20:21 UTC

Update Avalon/Phoenix

Hi,

I just thought I may ping this group to update Avalon/Phoenix when you get 
the chance. The reason is the latest Phoenix will gracefully shutdown when 
the JVM exits. As a side-effect you also need jdk1.3 though.

-- 
Cheers,

Pete

--------------------------------
My opinions may have changed, 
but not the fact that I am right
--------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
> doh. well it works for me ;) (Linux IBM and Suns JDKs).
> 
> It could be platform differences in Socket behaviour ... however not
> sure. On 
> Linux interupting the thread results in accept() throwing an
> IOException. Not 
> sure how cross-platform this is.
> 
> Try adding m_serverSocket.setSoTimeout( 500 ); (or some other number) at
> top 
> of loop before accept call in Connection. If that works then we know it
> is 
> probably inconsistencies between unix/windows.
Good tip. now it's working! :-)
Thanks

Buchi

Here the patch!

-----------------------------------------------------------------
--- Connection.java.orig	Thu Sep  6 12:21:44 2001
+++ Connection.java	Thu Sep  6 16:35:02 2001
@@ -8,8 +8,10 @@
 package org.apache.avalon.cornerstone.blocks.connection;
 
 import java.io.IOException;
+import java.io.InterruptedIOException;
 import java.net.ServerSocket;
 import java.net.Socket;
+import java.net.SocketException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Vector;
@@ -78,6 +80,12 @@
 
     public void run()
     {
+        try 
+        {
+            m_serverSocket.setSoTimeout(500);
+        } catch (SocketException se) {
+            getLogger().warn("Couldn't set serverSocket SOTIMEOUT!");
+        }
         m_thread = Thread.currentThread();
 
         while( null != m_thread && !Thread.interrupted() )
@@ -90,6 +98,10 @@
                     new ConnectionRunner( socket, m_runners, handler );
                 setupLogger( runner );
                 m_threadPool.execute( runner );
+            }
+            catch (final InterruptedIOException iie) 
+            {
+               // ignore this execptions...
             }
             catch( final IOException ioe )
             {

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Peter Donald <do...@apache.org>.
On Thu, 6 Sep 2001 23:42, Gabriel Bucher wrote:
> Quoting Peter Donald <do...@apache.org>:
> > On Thu, 6 Sep 2001 22:15, Gabriel Bucher wrote:
> > > Thanks Peter but it doesn't matter if you use the wait inside the
> > > synchronized block or not! I tried both! No chance! Any other ideas...
> >
> > If I
> >
> > > use wait(1000), the process will finish.
> > > I'm using at the moment winnt4 and jdk 1.3.1
> >
> > hmmm - may be something james specific then ... possibly there is a
> > block
> > that is starting a connection but not releasing it. Not sure will have a
> > look.
>
> I think it is not james specific. I tried it out with the avalon-demo.sar
> and had the same effects!
>
> What I have done, I started avalon with the avalon-demo application. No
> action from me after startup and tried to shutdown avalon!

doh. well it works for me ;) (Linux IBM and Suns JDKs).

It could be platform differences in Socket behaviour ... however not sure. On 
Linux interupting the thread results in accept() throwing an IOException. Not 
sure how cross-platform this is.

Try adding m_serverSocket.setSoTimeout( 500 ); (or some other number) at top 
of loop before accept call in Connection. If that works then we know it is 
probably inconsistencies between unix/windows.

-- 
Cheers,

Pete

---------------------------------------------------
For every complex problem there is a solution that 
is simple, neat and wrong
---------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Quoting Peter Donald <do...@apache.org>:

> On Thu, 6 Sep 2001 22:15, Gabriel Bucher wrote:
> > Thanks Peter but it doesn't matter if you use the wait inside the
> > synchronized block or not! I tried both! No chance! Any other ideas...
> If I
> > use wait(1000), the process will finish.
> > I'm using at the moment winnt4 and jdk 1.3.1
> 
> hmmm - may be something james specific then ... possibly there is a
> block 
> that is starting a connection but not releasing it. Not sure will have a
> look.
I think it is not james specific. I tried it out with the avalon-demo.sar and 
had the same effects!

What I have done, I started avalon with the avalon-demo application. No action 
from me after startup and tried to shutdown avalon!

Infos from the log files.

phoenix.log:
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Destruction successful.
Thu Sep 06 15:39:20 CEST 2001 [INFO   ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Ran Shutdown Phase for sockets.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing reverse dependencies for connections.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing helloworldserver as connections depends on it to act in role {1}.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing demoblock as connections depends on it to act in role {1}.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing httpproxyserver-Auditing as connections depends on it to act in role 
{1}.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing xcommander-server as connections depends on it to act in role {1}.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.dag>> (): 
Traversing httpproxyserver-Filtering as connections depends on it to act in role 
{1}.
Thu Sep 06 15:39:20 CEST 2001 [INFO   ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Processing Block: connections.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Processing with classloader 
org.apache.avalon.phoenix.components.frame.PolicyClassLoader@7eca64.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Pre-Disposable Stage.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<Phoenix.avalon-demo.ShutdownPhase>> 
(): Object is: 
org.apache.avalon.cornerstone.blocks.connection.DefaultConnectionManager@59fd51


avalon-demo.log:
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): 
DefaultConnectionManager::dispose() called.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): Total connections to 
depose: 5
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): Remove connection 
[HelloWorldListener]
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): dispose 
connection...
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): 
Connection::dispose() called.
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): after 
synchronized... Thread[default Worker #0,5,default]
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): before interrupting 
thread...
Thu Sep 06 15:39:20 CEST 2001 [DEBUG  ] <<connections>> (): before next 
synchronized...

I added some more debug log statment in the connection class to get this output!

Buchi

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Peter Donald <do...@apache.org>.
On Thu, 6 Sep 2001 22:15, Gabriel Bucher wrote:
> Thanks Peter but it doesn't matter if you use the wait inside the
> synchronized block or not! I tried both! No chance! Any other ideas... If I
> use wait(1000), the process will finish.
> I'm using at the moment winnt4 and jdk 1.3.1

hmmm - may be something james specific then ... possibly there is a block 
that is starting a connection but not releasing it. Not sure will have a look.

-- 
Cheers,

Pete

----------------------------------------
Whatever you do will be insignificant, 
but it is very important that you do it. 
                              --Gandhi
----------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Thanks Peter but it doesn't matter if you use the wait inside the synchronized 
block or not! I tried both! No chance! Any other ideas... If I use wait(1000), 
the process will finish.
I'm using at the moment winnt4 and jdk 1.3.1 

Buchi


Quoting Peter Donald <do...@apache.org>:

> On Thu, 6 Sep 2001 05:19, Gabriel Bucher wrote:
> > Hi together...
> >
> > I tried to upgrade james with the new phoenix/avalon package. I
> > downloaded the nightly build 20010905 from phoenix and cornerstone!
> >
> > I found out, that if I shutdown james I saw, that james hangs inside
> in
> > a dispose block! First I couldnt understand whats going on!
> > After that, I tried to shutdown the avalon-demo.sar and found out,
> that
> > it is not possible to shutdown the DefaultConnectionManager
> > successfully! I played around and saw, that the thread is hanging in
> the
> >   class Connection, method dispose() at the second synchronized
> block
> > (wait)!
> > I don't know who to solve but I hope you got enough information to do
> it
> 
> The cornerstone of 2001/09/01 should have fixed this ... try replacing
> 
> 
> synchronized( this ) { wait( /*1000*/ ); }
> 
> with 
> 
> wait( /*1000*/ );
> 
> However the first form should work. Not sure.
> 
> -- 
> Cheers,
> 
> Pete
> 
> --------------------------------------------
> Sorry, I forgot to take my medication today.
> --------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Peter Donald <do...@apache.org>.
On Thu, 6 Sep 2001 05:19, Gabriel Bucher wrote:
> Hi together...
>
> I tried to upgrade james with the new phoenix/avalon package. I
> downloaded the nightly build 20010905 from phoenix and cornerstone!
>
> I found out, that if I shutdown james I saw, that james hangs inside in
> a dispose block! First I couldnt understand whats going on!
> After that, I tried to shutdown the avalon-demo.sar and found out, that
> it is not possible to shutdown the DefaultConnectionManager
> successfully! I played around and saw, that the thread is hanging in the
>   class Connection, method dispose() at the second synchronized block
> (wait)!
> I don't know who to solve but I hope you got enough information to do it

The cornerstone of 2001/09/01 should have fixed this ... try replacing 

synchronized( this ) { wait( /*1000*/ ); }

with 

wait( /*1000*/ );

However the first form should work. Not sure.

-- 
Cheers,

Pete

--------------------------------------------
Sorry, I forgot to take my medication today.
--------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Peter Donald <do...@apache.org>.
On Mon, 10 Sep 2001 19:02, Oki DZ wrote:
> On Thu, 6 Sep 2001, Gabriel Bucher wrote:
> > I think there are alot of dependencies in avalon:
> > there are 5 parts.
> > - avalon-framework (4.0 final release)
> > - avalon-logkit (1.0 beta 4)
> > - avalon-excalibur (4.0 beta 4)
> > - avalon-phoenix (nightly build)
> > - avalon-cornerstone (nightly build)
>
> Which version of nightly build of Phoenix & Cornerstone did you use?
> I used 2001-09-09, and I got the following:
> Phoenix 3.1a1-dev

Seems a few people have had a problem with nightly downlaods. I will check it 
out to see whats up...

-- 
Cheers,

Pete

*---------------------------------------------------------*
| Programming today is a race between software engineers  |
| striving to build bigger and better idiot-proof         |
| programs,and the universe trying to produce bigger and  |
| better idiots. So far, the universe is winning.         |
|                       - Richard Cook                    |
*---------------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Mon, 10 Sep 2001, Gabriel Bucher wrote:

> 
> > 
> > Which version of nightly build of Phoenix & Cornerstone did you use?
> At the moment, I'm useing 2001-09-07... but it should also work with 
> 2001-09-09! I think, there is a problem with the logkit.jar!

Hi, 

It is running now, great.
Please disregard my posting about the "DEBUG" target; it was simply the
line in james-server.xml has a new line.

Thanks a lot.
Oki





---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Harmeet <ha...@kodemuse.com>.
I think I have the right combination now. I expect to test more and upgrade
tonight.

Harmeet


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Mon, 10 Sep 2001, Gabriel Bucher wrote:
> At the moment, I'm useing 2001-09-07... but it should also work with 
> 2001-09-09! I think, there is a problem with the logkit.jar!
> 
> Following my list of files I'm using:
> avalon-excalibur-20010902.jar     phoenix nightly build (2001-09-07)
> avalon-framework-4.0.jar          phoenix nightly build (2001-09-07)
> avalon-jmx-20010907.jar           phoenix nightly build (2001-09-07)
> avalon-scratchpad-20010902.jar    phoenix nightly build (2001-09-07)
> cornerstone-0.7-20010907.bar      cornerstone nightly build (2001-09-07)
> logkit.jar                        phoenix nightly build (2001-09-07)
> phoenix-client-20010907.jar       phoenix nightly build (2001-09-07)
> phoenix-engine-20010907.jar       phoenix nightly build (2001-09-07)
> phoenix-loader-20010907.jar       phoenix nightly build (2001-09-07)
> xerces.jar                        phoenix nightly build (2001-09-07)

I have followed your list, but still, I had the following:
Tue Sep 11 08:59:09 GMT+07:00 2001 [WARN   ] <<Phoenix>> (): Failed to
start application james.
org.apache.avalon.excalibur.container.ContainerException: Failed to
initialize application james.
	at
org.apache.avalon.phoenix.components.kernel.AbstractKernel.initializeEntry(Unknown
Source)
	at
org.apache.avalon.phoenix.components.kernel.AbstractKernel.startEntry(Unknown
Source)
	at
org.apache.avalon.phoenix.components.kernel.AbstractKernel.postAdd(Unknown
Source)
	at
org.apache.avalon.excalibur.container.AbstractContainer.add(AbstractContainer.java:39)
	at
org.apache.avalon.phoenix.components.deployer.DefaultSarDeployer.addEntry(Unknown
Source)
	at
org.apache.avalon.phoenix.components.deployer.DefaultSarDeployer.deploy(Unknown
Source)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Unknown
Source)
rethrown from
org.apache.avalon.framework.configuration.ConfigurationException: Unknown
logging priority DEBUG 

What should the "DEBUG" be?

TIA,
Oki



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
> 
> Which version of nightly build of Phoenix & Cornerstone did you use?
At the moment, I'm useing 2001-09-07... but it should also work with 
2001-09-09! I think, there is a problem with the logkit.jar!

Following my list of files I'm using:
avalon-excalibur-20010902.jar     phoenix nightly build (2001-09-07)
avalon-framework-4.0.jar          phoenix nightly build (2001-09-07)
avalon-jmx-20010907.jar           phoenix nightly build (2001-09-07)
avalon-scratchpad-20010902.jar    phoenix nightly build (2001-09-07)
cornerstone-0.7-20010907.bar      cornerstone nightly build (2001-09-07)
logkit.jar                        phoenix nightly build (2001-09-07)
phoenix-client-20010907.jar       phoenix nightly build (2001-09-07)
phoenix-engine-20010907.jar       phoenix nightly build (2001-09-07)
phoenix-loader-20010907.jar       phoenix nightly build (2001-09-07)
xerces.jar                        phoenix nightly build (2001-09-07)

I hope this helps!

Buchi
> I used 2001-09-09, and I got the following:
> Phoenix 3.1a1-dev
> 
> There was an uncaught exception:
> ---------------------------------------------------------
> java.lang.NoSuchMethodError:
> org.apache.avalon.framework.logger.AvalonFormatter: method
> <init>(Ljava/lang/String;)V not found
> 	at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createLogger(Unknown
> Source)
> 	at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponents(Unknown
> Source)
> 	at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(Unknown
> Source)
> 	at org.apache.avalon.phoenix.frontends.CLIMain.startup(Unknown
> Source)
> 	at org.apache.avalon.phoenix.frontends.CLIMain.execute(Unknown
> Source)
> 	at org.apache.avalon.phoenix.frontends.CLIMain.main(Unknown
> Source)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at org.apache.avalon.phoenix.launcher.Main.main(Unknown Source)
>  
> 
>>if you wanna use the latest feature in phoenix (shuting down), you can use the 
>>avalon framework 4.0 final release, you need a newer logkit and a newer 
>>excalibur. This versions are all inside the phoenix nightly build.
>>
> 
> I'm more interested in having two instances of James running on the same
> machine.
>  
> Oki
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Thu, 6 Sep 2001, Gabriel Bucher wrote:
> I think there are alot of dependencies in avalon:
> there are 5 parts.
> - avalon-framework (4.0 final release)
> - avalon-logkit (1.0 beta 4)
> - avalon-excalibur (4.0 beta 4)
> - avalon-phoenix (nightly build)
> - avalon-cornerstone (nightly build)

Which version of nightly build of Phoenix & Cornerstone did you use?
I used 2001-09-09, and I got the following:
Phoenix 3.1a1-dev

There was an uncaught exception:
---------------------------------------------------------
java.lang.NoSuchMethodError:
org.apache.avalon.framework.logger.AvalonFormatter: method
<init>(Ljava/lang/String;)V not found
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createLogger(Unknown
Source)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponents(Unknown
Source)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.startup(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.execute(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.main(Unknown
Source)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.avalon.phoenix.launcher.Main.main(Unknown Source)
 
> if you wanna use the latest feature in phoenix (shuting down), you can use the 
> avalon framework 4.0 final release, you need a newer logkit and a newer 
> excalibur. This versions are all inside the phoenix nightly build.

I'm more interested in having two instances of James running on the same
machine.
 
Oki



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Quoting Serge Knystautas <se...@lokitech.com>:

> Should we move James to Avalon 4.0 final release or a more recent
> nightly
> build?
Good question!

I think there are alot of dependencies in avalon:
there are 5 parts.
- avalon-framework (4.0 final release)
- avalon-logkit (1.0 beta 4)
- avalon-excalibur (4.0 beta 4)
- avalon-phoenix (nightly build)
- avalon-cornerstone (nightly build)

if you wanna use the latest feature in phoenix (shuting down), you can use the 
avalon framework 4.0 final release, you need a newer logkit and a newer 
excalibur. This versions are all inside the phoenix nightly build.

I don't know the roadmap for all the phoenix components. What I think, if we 
wanna start with alpha versions of james... its maybe better to upgrade to a 
newer avalon version.
Comments?!?

Buchi

> 
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
> ----- Original Message -----
> From: "Gabriel Bucher" <ga...@razor.ch>
> To: <ja...@jakarta.apache.org>
> Sent: Thursday, September 06, 2001 8:10 AM
> Subject: Re: Update Avalon/Phoenix
> 
> 
> > Hi Oki
> >
> > Quoting Oki DZ <ok...@pindad.com>:
> >
> > > On Wed, 5 Sep 2001, Gabriel Bucher wrote:
> > >
> > > > Hi together...
> > > >
> > > > I tried to upgrade james with the new phoenix/avalon package. I
> > > > downloaded the nightly build 20010905 from phoenix and
> cornerstone!
> > >
> > > Hi, what did you do?
> > > I did that once, but I couldn't get James even run.
> > I had a long time ago the same problem. But at the moment, it works
> fine.
> >
> > I donloaded the nightly builds (20010905) from phoenix and
> cornerstone. I
> > compiled phoenix and replaced all libs in james (not only phoenix
> itself,
> also
> > logkit, exalibur...).
> > Also, I compiled cornerstone and replaced the cornerstone.bar in
> james.
> > Thats it!!!
> >
> > Buchi
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: james-dev-help@jakarta.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Thu, 6 Sep 2001, Serge Knystautas wrote:

> Should we move James to Avalon 4.0 final release or a more recent nightly
> build?

Yes please; if there's not much problem in Avalon's stability. I'd like
to run Tomcat (+Turbine) along with James, and currently, Tomcat
occasionally will shutdown when I start James. It is the later Tomcat (ie: 
later than 3.2). 

Besides, the current Phoenix used by James 1.3-dev couldn't be run twice
(ie: having more than one instance). I'd like to run James 1.3-dev, one
for production and development on the same machine; that wouldn't be
possible without upgrading Phoenix to the latest version (nightly build). 

Oki



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Serge Knystautas <se...@lokitech.com>.
Should we move James to Avalon 4.0 final release or a more recent nightly
build?

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Gabriel Bucher" <ga...@razor.ch>
To: <ja...@jakarta.apache.org>
Sent: Thursday, September 06, 2001 8:10 AM
Subject: Re: Update Avalon/Phoenix


> Hi Oki
>
> Quoting Oki DZ <ok...@pindad.com>:
>
> > On Wed, 5 Sep 2001, Gabriel Bucher wrote:
> >
> > > Hi together...
> > >
> > > I tried to upgrade james with the new phoenix/avalon package. I
> > > downloaded the nightly build 20010905 from phoenix and cornerstone!
> >
> > Hi, what did you do?
> > I did that once, but I couldn't get James even run.
> I had a long time ago the same problem. But at the moment, it works fine.
>
> I donloaded the nightly builds (20010905) from phoenix and cornerstone. I
> compiled phoenix and replaced all libs in james (not only phoenix itself,
also
> logkit, exalibur...).
> Also, I compiled cornerstone and replaced the cornerstone.bar in james.
> Thats it!!!
>
> Buchi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Eung-ju Park <co...@isoft.co.kr>.
try like below order.

1. update to new avalon-framework.jar,avalon-excalibur.jar and logkit.jar in
jakarta-avalon-phoenix/lib/
2. build phoenix
3. update to new avalon-framework.jar,avalon-excalibur.jar, logkit.jar and
phoenix-*.jar in jakarta-james/lib/
4. build james
5. test.

It works for me.

NoSuchMethodError may be caused by logkit interface change...

----- Original Message -----
From: "Oki DZ" <ok...@pindad.com>
To: <ja...@jakarta.apache.org>
Sent: Monday, September 10, 2001 3:41 PM
Subject: Re: Update Avalon/Phoenix


> On Thu, 6 Sep 2001, Gabriel Bucher wrote:
> > I donloaded the nightly builds (20010905) from phoenix and cornerstone.
I
> > compiled phoenix and replaced all libs in james (not only phoenix
itself, also
> > logkit, exalibur...).
> > Also, I compiled cornerstone and replaced the cornerstone.bar in james.
> > Thats it!!!
>
> I think I've done the same thing, but I got the following:
>
> Phoenix 3.1a1-dev
>
> There was an uncaught exception:
> ---------------------------------------------------------
> java.lang.NoSuchMethodError
> at
>
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createLogger(U
nknown
> Source)
> at
>
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponen
ts(Unknown
> Source)
> at
>
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(Unk
nown
> Source)
> at org.apache.avalon.phoenix.frontends.CLIMain.startup(Unknown
> Source)
> at org.apache.avalon.phoenix.frontends.CLIMain.execute(Unknown
> Source)
> at org.apache.avalon.phoenix.frontends.CLIMain.main(Unknown
> Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.avalon.phoenix.launcher.Main.main(Unknown Source)
>
>
> What did I do wrong?
>
> Oki
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Thu, 6 Sep 2001, Gabriel Bucher wrote:
> I donloaded the nightly builds (20010905) from phoenix and cornerstone. I 
> compiled phoenix and replaced all libs in james (not only phoenix itself, also 
> logkit, exalibur...).
> Also, I compiled cornerstone and replaced the cornerstone.bar in james.
> Thats it!!!

I think I've done the same thing, but I got the following:

Phoenix 3.1a1-dev

There was an uncaught exception:
---------------------------------------------------------
java.lang.NoSuchMethodError
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createLogger(Unknown
Source)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponents(Unknown
Source)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.startup(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.execute(Unknown
Source)
	at org.apache.avalon.phoenix.frontends.CLIMain.main(Unknown
Source)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.avalon.phoenix.launcher.Main.main(Unknown Source)


What did I do wrong?

Oki



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Hi Oki

Quoting Oki DZ <ok...@pindad.com>:

> On Wed, 5 Sep 2001, Gabriel Bucher wrote:
> 
> > Hi together...
> > 
> > I tried to upgrade james with the new phoenix/avalon package. I 
> > downloaded the nightly build 20010905 from phoenix and cornerstone!
> 
> Hi, what did you do?
> I did that once, but I couldn't get James even run.
I had a long time ago the same problem. But at the moment, it works fine.

I donloaded the nightly builds (20010905) from phoenix and cornerstone. I 
compiled phoenix and replaced all libs in james (not only phoenix itself, also 
logkit, exalibur...).
Also, I compiled cornerstone and replaced the cornerstone.bar in james.
Thats it!!!

Buchi

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Wed, 5 Sep 2001, Gabriel Bucher wrote:

> Hi together...
> 
> I tried to upgrade james with the new phoenix/avalon package. I 
> downloaded the nightly build 20010905 from phoenix and cornerstone!

Hi, what did you do?
I did that once, but I couldn't get James even run.

Oki



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: Update Avalon/Phoenix

Posted by Oki DZ <ok...@pindad.com>.
On Wed, 5 Sep 2001, Gabriel Bucher wrote:

> Hi together...
> 
> I tried to upgrade james with the new phoenix/avalon package. I 
> downloaded the nightly build 20010905 from phoenix and cornerstone!

Hi, what did you do?
I did that once, but I couldn't get James even run.

Oki



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


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Hi together...

I tried to upgrade james with the new phoenix/avalon package. I 
downloaded the nightly build 20010905 from phoenix and cornerstone!

I found out, that if I shutdown james I saw, that james hangs inside in 
a dispose block! First I couldnt understand whats going on!
After that, I tried to shutdown the avalon-demo.sar and found out, that 
it is not possible to shutdown the DefaultConnectionManager 
successfully! I played around and saw, that the thread is hanging in the 
  class Connection, method dispose() at the second synchronized block 
(wait)!
I don't know who to solve but I hope you got enough information to do it!

Buchi

Peter Donald wrote:
> Hi,
> 
> I just thought I may ping this group to update Avalon/Phoenix when you get 
> the chance. The reason is the latest Phoenix will gracefully shutdown when 
> the JVM exits. As a side-effect you also need jdk1.3 though.
> 
> 



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


Re: Update Avalon/Phoenix

Posted by Gabriel Bucher <ga...@razor.ch>.
Hi together...

I tried to upgrade james with the new phoenix/avalon package. I 
downloaded the nightly build 20010905 from phoenix and cornerstone!

I found out, that if I shutdown james I saw, that james hangs inside in 
a dispose block! First I couldnt understand whats going on!
After that, I tried to shutdown the avalon-demo.sar and found out, that 
it is not possible to shutdown the DefaultConnectionManager 
successfully! I played around and saw, that the thread is hanging in the 
  class Connection, method dispose() at the second synchronized block 
(wait)!
I don't know who to solve but I hope you got enough information to do it!

Buchi

Peter Donald wrote:
> Hi,
> 
> I just thought I may ping this group to update Avalon/Phoenix when you get 
> the chance. The reason is the latest Phoenix will gracefully shutdown when 
> the JVM exits. As a side-effect you also need jdk1.3 though.
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org