You are viewing a plain text version of this content. The canonical link for it is here.
Posted to phoenix-dev@avalon.apache.org by Ulrich Mayring <ul...@denic.de> on 2002/05/17 13:34:58 UTC

Problem with newest Phoenix from cvs

Hello,

An application using the thread manager gives me this error upon
startup:

There was an error running phase "startup" for Block named
"thread-manager". (Reason: Block named "thread-manager" failed to pass
through the Configuration stage. (Reason:
java.lang.NoClassDefFoundError:
org/apache/avalon/excalibur/lang/ThreadContext).).

I haven't found this class in all of Phoenix - where can I get it from?

All I have is a class org/apache/excalibur/threadcontext/ThreadContext
in excalibur-threadcontext-1.0.jar

Thanks in advance,

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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


Re: Problem with newest Phoenix from cvs

Posted by Vinay Chandran <vi...@yahoo.com>.
Paul,
http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads/DefaultThreadManager.java.diff?r1=1.6&r2=1.7&diff_format=h
 illustrates the change in the threadmanager 
block within cornerstone which is causing these
problems.

Deploying a fresh cornerstone.jar (along with 
fresh excalibur.jar) 
build from its CVS should see it through.
Even the cornerstone.jar checked within 
jakarta-avalon-apps/hsql/lib is also old.

Regards,
V i n a y
--- Andrei Ivanov <my...@surfeu.fi> wrote:
> Hi, I don't think you need attic.
> 
> > What's more,
> > Excalibur from cvs doesn't build. Also, I checked
> out the newest Phoenix
> > and Cornerstone today. So I don't really know what
> to do anymore :)
> >
> The problem is that you don't have latest excalibur,
> as you said that it
> doesn't build, but it should. Building excalibur is
> not that
> straightforward: scripts must be configured and
> everything must be on it's
> place and so forth. Have you looked through
> ant.properties.sample? To build
> excalibur you have to modify this file according to
> your configuration. Fell
> free to mail me at myfam@surfeu.fi . What happens
> when you building
> excalibur?
> 
> Andrei
> 
> 
> 
> --
> To unsubscribe, e-mail:  
>
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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


Re: Problem with newest Phoenix from cvs

Posted by Andrei Ivanov <my...@surfeu.fi>.
Hi, I don't think you need attic.

> What's more,
> Excalibur from cvs doesn't build. Also, I checked out the newest Phoenix
> and Cornerstone today. So I don't really know what to do anymore :)
>
The problem is that you don't have latest excalibur, as you said that it
doesn't build, but it should. Building excalibur is not that
straightforward: scripts must be configured and everything must be on it's
place and so forth. Have you looked through ant.properties.sample? To build
excalibur you have to modify this file according to your configuration. Fell
free to mail me at myfam@surfeu.fi . What happens when you building
excalibur?

Andrei



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


Re: Problem with newest Phoenix from cvs

Posted by Ulrich Mayring <ul...@denic.de>.
Andrei Ivanov wrote:
> 
> Hm, I checked out my excalibur version on 14.05 and there were
> "jakarta-avalon-excalibur\threadcontext" from which I built it. I am
> currently running phoenix which uses it.

Well, the class that Phoenix is looking for is
org/apache/avalon/excalibur/lang/ThreadContext and that doesn't exist in
Excalibur's CVS and not in its Attic either, so, unless I completely
misunderstand the Attic feature, it never existed before. What's more,
Excalibur from cvs doesn't build. Also, I checked out the newest Phoenix
and Cornerstone today. So I don't really know what to do anymore :)

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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


Re: Problem with newest Phoenix from cvs

Posted by Andrei Ivanov <my...@surfeu.fi>.
Hm, I checked out my excalibur version on 14.05 and there were
"jakarta-avalon-excalibur\threadcontext" from which I built it. I am
currently running phoenix which uses it.
And I just (few minutes ago) checked out from apache cvs latest
jakarta-avalon-excalibur and it also contains
"jakarta-avalon-excalibur\threadcontext" which has exactly the same size and
content as one of 14.05 which my Phoenix uses. I think the problem might be
that your phoenix uses not all new jars. Some of them could be old and refer
to old location of threadcontext. I recommend to update all jars which are
in your dist/lib.
Andrei

PS thank you very much for your mail about Phoenix daemon and manager. I'll
test this on weekend :-)

>
> Yes, I would like to do that, but I don't know where to get this class
> from - it is not in Excalibur's CVS.
>
> Ulrich
>
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


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


Re: Problem with newest Phoenix from cvs

Posted by Ulrich Mayring <ul...@denic.de>.
Andrei Ivanov wrote:
> 
> Hi,
> I had same problem before I put excalibur-threadcontext-1.0.jar under
> dist\lib (phoenix distribution).
> In other words I am modifying build script every time I update
> phoenix/cornerstone/excalibur from cvs.

Yes, I would like to do that, but I don't know where to get this class
from - it is not in Excalibur's CVS.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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


Re: Problem with newest Phoenix from cvs

Posted by Andrei Ivanov <my...@surfeu.fi>.
Hi,
I had same problem before I put excalibur-threadcontext-1.0.jar under
dist\lib (phoenix distribution).
In other words I am modifying build script every time I update
phoenix/cornerstone/excalibur from cvs.
The routine for me is simple and stupid, but effective:
When I am updating stuff
1. I checkout *all* avalon projects from cvs
2. I am building all jars in all projects
3. then I am adding 100% necessary new jars to phoenix
4. then I am running phoenix and it never works for the first time but gives
exception like yours
5. then I am looking for necessary jars using missing class name (most often
these are excalibur sub projects' jars) and adding them under dist\lib
6. repeating 4 and 5 before phoenix starts well

as a result I am getting latest phoenix which I am using for about one week
:-)

Andrei

----- Original Message -----
From: "Ulrich Mayring" <ul...@denic.de>
To: <av...@jakarta.apache.org>
Sent: Friday, May 17, 2002 2:34 PM
Subject: Problem with newest Phoenix from cvs


> Hello,
>
> An application using the thread manager gives me this error upon
> startup:
>
> There was an error running phase "startup" for Block named
> "thread-manager". (Reason: Block named "thread-manager" failed to pass
> through the Configuration stage. (Reason:
> java.lang.NoClassDefFoundError:
> org/apache/avalon/excalibur/lang/ThreadContext).).
>
> I haven't found this class in all of Phoenix - where can I get it from?
>
> All I have is a class org/apache/excalibur/threadcontext/ThreadContext
> in excalibur-threadcontext-1.0.jar
>
> Thanks in advance,
>
> Ulrich
>
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


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


Re: Problem with newest Phoenix from cvs

Posted by Peter Donald <pe...@apache.org>.
On Tue, 21 May 2002 20:41, Ulrich Mayring wrote:
> So in one of my applications there is no way to update from
> AbstractLoggable to AbstractLogEnabled, before fop is updated to use the
> latter. So please don't remove AbstractLoggable :)

Oops - already done. Should have spoke up before the weekend ;) I will add 
back a compatability fix for you then. Put it on Bugzilla so I remember to do 
it.

-- 
Cheers,

Peter Donald


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


Re: Problem with newest Phoenix from cvs

Posted by Ulrich Mayring <ul...@denic.de>.
Peter Donald wrote:
> 
> It was an old version that used to be used prior to rejig of excalibur CVS.
> You probably need to update your cornerstone to latest version.

I checked out the newest Framework, Excalibur and Cornerstone, but now
I'm getting this error on startup:

java.lang.NullPointerException
        at
org.apache.excalibur.threadcontext.ThreadContext.setThreadContext(ThreadContext.java:95)

Also, Apache fop only works with an org.apache.log.Logger (which is what
getLogger() from AbstractLoggable returns), so I can't use it with an
org.apache.avalon.framework.logger.Logger (which is what getLogger()
from AbstractLogEnabled returns). 

So in one of my applications there is no way to update from
AbstractLoggable to AbstractLogEnabled, before fop is updated to use the
latter. So please don't remove AbstractLoggable :)

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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


Re: Problem with newest Phoenix from cvs

Posted by Peter Donald <pe...@apache.org>.
On Fri, 17 May 2002 21:34, Ulrich Mayring wrote:
> Hello,
>
> An application using the thread manager gives me this error upon
> startup:
>
> There was an error running phase "startup" for Block named
> "thread-manager". (Reason: Block named "thread-manager" failed to pass
> through the Configuration stage. (Reason:
> java.lang.NoClassDefFoundError:
> org/apache/avalon/excalibur/lang/ThreadContext).).
>
> I haven't found this class in all of Phoenix - where can I get it from?

It was an old version that used to be used prior to rejig of excalibur CVS. 
You probably need to update your cornerstone to latest version.

I probably need to get around to fixing ClassLoader stuff in phoenix so that 
this sorta thing does not crop up again ;)

-- 
Cheers,

Peter Donald


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