Hi all,

Just thought I'd pipe up since I, as a phoenix newbie, ran into this exact
same thing the other day.

After some experimentation, I believe the Phonenix-4.0.3 server (the current
binary download) appears to have a classloader-related bug which causes it
to find jars in ./phoenix-4.0.3/lib before it finds them in the SAR's own
lib subdir.

In this case, the SAR in question is avalon-demo.sar.  avalon-demo.sar
currently builds against/includes excalibur-thread-1.1.1.jar, while the
phoenix-4.0.3 server has the excalibur-1.0.jar in its own lib subdir.  When
phoenix-4.0.3 trys to start avalon-demo.sar, it finds the earlier version of
the threads component, and the avalon-demo Thread-Manager configure activity
chokes because it can't find the
DefaultThreadPool(string,int,int,ThreadContext) constructor, which is only
in the excalibur-thread-1.1.x.jar(s), not in the previous versions of
excalibur-thread.

Temporary workaround (not fix) is to overwrite any jars in the
phonenix-4.0.3/lib subdir with newer versions when those newer version
component jars are needed by your SAR.

I notice in the email archives a series of emails on this general topic and
the faint hint that this is a known issue and that the latest release
candidate has a fix for it, but the bugtracking system doesn't seem to have
a filed bug on this... the closest I found is PNIX-6 "Per-block
classloaders" which is listed as a new feature (and doesn't really directly
talk about this specific issue).  Is this a currently untracked bug?
Regardless, is this fixed in the current codebase (in CVS)?


Could one of the developers familiar with phoenix's classloading strategy
comment/confirm?


Thanks much,

- Scot




> -----Original Message-----
> From: Kyunam Kim [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 7:32 AM
> To: Avalon framework users
> Subject: Re: Helloworld.sar demo help please.
>
>
> Paul,
>
> I really appreciate your help.
> I was able to build avalon-demo.sar.
> I put this in phoenix-4.0.3/apps/, and run it, I get the following error.
> I tried to use both excalibur-thread-1.0 and 1.1 when I build sar
> file, but
> I get the same result.
> ------------------------------------------------------------------
> ----------
> ------------------
> C:\Avalon\phoenix-4.0.3-bin\phoenix-4.0.3\bin>run
> Using PHOENIX_HOME:   C:\Avalon\phoenix-4.0.3-bin\phoenix-4.0.3
> Using PHOENIX_TMPDIR: C:\Avalon\phoenix-4.0.3-bin\phoenix-4.0.3\temp
> Using JAVA_HOME:      C:\j2sdk1.4.1_01
>
> Phoenix 4.0.3
>
> org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component
> named
> "thread-manager" failed to pass through the Configuration stage. (Reason:
> java.l
> ang.NoSuchMethodError:
> org.apache.avalon.excalibur.thread.impl.DefaultThreadPool
> .<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/Th
> readContex
> t;)V
> ).
>         at
> org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(Life
> cycleHelper.java:289)
>         at
> org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(L
> ifecycleHelper.java:159)
>         at
> org.apache.avalon.phoenix.components.application.DefaultApplication.s
> tartup(DefaultApplication.java:480)
>
>
>
> ----- Original Message -----
> From: "Paul Hammant" <[EMAIL PROTECTED]>
> To: "Avalon framework users" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 02, 2003 5:51 PM
> Subject: Re: Helloworld.sar demo help please.
>
>
> > Kim,
> >
> > >- I got 4 files from
> > >avalon-apps/demo/src/java/org/apache/avalon/apps/demos/helloworldserver
> > >
> > You'll need the whole of avalon-apps. Well, not true, avalon-apps/common
> > and avalon-apps/demo.
> > To be honest you'd best follow the instruction on
> > http://jakarta.apache.org/site/cvsindex.html and download a module
> > called 'avalon-apps' in its entirety.
> >
> > >- ant version 1.5.2
> > >
> > Cool.
> >
> > >- In my directory, I have build.xml (avalon-apps/demo) and a directory
> org
> > >(/apache/avalon/apps/demos/helloworldserver/ and 4 java files).
> > >- In my common/lib, I have all jars from avalon-apps/demo/lib/Attic.
> > >
> > Nothing is needed from attic.
> >
> > Regards,
> >
> > - Paul
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to