Stephen,

> Then ...
> 
> $ cd <avalon-dir>
> $ ant

Done.

> $ cd <excalibur-dir>
> $ ant

Done.

> $ cd <cornerstone-dir>
> $ ant -buildfile cornerstone.xml

Done.

> $ cd <james-dir>
> $ ant -buildfile james.xml

Done.  Although I needed to make an interesting change here.  Specifically,
I needed to change the import statement:

import org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;

to

import
org.apache.avalon.cornerstone.services.datasources.DataSourceSelector;

I suspect this is a packaging issue with the cornerstone-datasource-1.0.jar,
since the former appears to still be present in source control.

> $ cd <avalon-sandbox>
> $ cd merlin
> $ ant

Done.  Found a bug in the config (it uses the old
File_Persistent_Stream_Repository, File_Persistent_Object_Repository).
Fixed it.

> 
> // edit the blocks.xml file to make sure the james block is enabled
> // and that the demos are disabled then launch merlin
> 
> $
> $ start demo

And here we have a problem.  When I type "start demo" I get:

C:\development\apache-cvs\avalon-sandbox\merlin>java -classpath
build\lib\avalon
-merlin-bootstrap-2.1.jar org.apache.avalon.merlin.bootstrap.Merlin
merlin.prope
rties
[INFO   ] (sys): initialization from:
C:\development\apache-cvs\avalon-sandbox\m
erlin on localhost
[INFO   ] (sys):

commencing block construction phase

[INFO   ] (sys): block count = 3
[INFO   ] (sys): [james/14780827]
[INFO   ] (sys): [playground/17905186]
[INFO   ] (sys): [demo/16316379]
[INFO   ] (sys):

commencing structural assembly phase

[ERROR  ] (sys): Message: Unable to deploy block: [james/14780827] due to a
structural assembly failure.
===================================================================

Exception: org.apache.avalon.assembly.lifecycle.AssemblyException
Assembly failure attributable to embedded appliance.

Cause: org.apache.avalon.assembly.lifecycle.AssemblyException
Unable to deploy a supplier for a service dependency:
[org.apache.james.services
.MailStore] org.apache.james.services.MailStore:1.0.0

Cause: org.apache.avalon.assembly.appliance.ApplianceException
Unresolvable assembly graph for appliance: [mailstore/29086271]

===================================================================
org.apache.avalon.assembly.appliance.ApplianceException: Unresolvable
assembly g
raph for appliance: [mailstore/29086271]
        at
org.apache.avalon.assembly.engine.EngineClassLoader.resolve(EngineCla
ssLoader.java:809)
        at
org.apache.avalon.assembly.appliance.DefaultAppliance.executeAssembly
(DefaultAppliance.java:828)
        at
org.apache.avalon.assembly.appliance.DefaultAppliance.assemble(Defaul
tAppliance.java:479)
        at
org.apache.avalon.merlin.block.impl.DefaultBlock.assembleComponents(D
efaultBlock.java:408)
        at
org.apache.avalon.merlin.block.impl.DefaultBlock.assemble(DefaultBloc
k.java:334)
        at
org.apache.avalon.merlin.kernel.impl.DefaultKernel.initialize(Default
Kernel.java:414)
        at
org.apache.avalon.merlin.kernel.impl.KernelLoader.<init>(KernelLoader
.java:117)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at org.apache.avalon.merlin.bootstrap.Merlin.<init>(Merlin.java:190)
        at org.apache.avalon.merlin.bootstrap.Merlin.main(Merlin.java:64)
===================================================================
[INFO   ] (sys):

commencing decommissioning phase

[INFO   ] (sys):

commencing termination phase

java.lang.NullPointerException
        at
org.apache.avalon.merlin.block.impl.DefaultBlock.handleDisassembly(De
faultBlock.java:728)
        at
org.apache.avalon.merlin.block.impl.DefaultBlock.handleTermination(De
faultBlock.java:768)
        at
org.apache.avalon.merlin.block.impl.DefaultBlock.terminate(DefaultBlo
ck.java:480)
        at
org.apache.avalon.merlin.kernel.impl.DefaultKernel.dispose(DefaultKer
nel.java:520)
        at
org.apache.avalon.merlin.kernel.impl.KernelLoader$1.run(KernelLoader.
java:83)

C:\development\apache-cvs\avalon-sandbox\merlin>

> $ cd <james-dir>
> $ cd tests
> $ ant -buildfile test.xml
> $

And obviously I don't get here.

I find the problem difficult to debug because I know absolutely nothing
about Merlin.  It happens both before and after I make the changes to the
configuration file, so it's not due to the changes I cite above.  Any help
in debugging this would be appreciated.  Thanks.

Now, onto Phoenix.  I've built a sar file out of the latest and greatest
files, and am having issues deploying it in Phoenix 4.0.3.

When I try and use the excalibur-thread-1.1 in this version of Phoenix,
nothing works.  This is kind of what I expected from Peter D.'s earlier
comments, so I wasn't surprised.

Then I tried something different - I reverted the DefaultThreadManager
change (side note, this change is wrong - the constructor arguments should
be minThreads,maxThreads not maxThreads,maxThreads) and reverted the
cornerstone dependencies to excalibur-thread-1.0.jar .

However when I tried to deploy these individual Cornerstone jar files, I got
an error on starting up Phoenix that referred to 7 missing extensions.

Finally, I deployed with a single cornerstone.jar built off the current
Cornerstone sources with the aforementioned revert.  This worked fine.  My
Phoenix deployment passed basic tests, including the EndToEnd test.   So my
current code appears to work fine, and there isn't a single
Component/ComponentManager to be found anywhere in it.

Based on these tests it seems that:

i) We need a version of Phoenix that runs with the Excalibur-thread-1.1.jar,
but that is reasonably stable (4.0.4?)

ii) The DefaultThreadManager patch needs to be fixed

iii) Someone needs to give me some advice on Merlin :)  Or take my code base
and figure out what needs to be done to make it run in Merlin.

iv) The dependency issues for the individual Cornerstone jar files needs to
be clarified.

Thoughts?

--Peter 




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

Reply via email to