You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Alexis Agahi <al...@users.sf.net> on 2003/11/10 18:44:02 UTC

[Merlin] Did something change in composition (since 3.1)

Hi,

Using current Merlin CVS (build successfull), when trying to run an 
application (with composition), I get a "java.lang.NoClassDefFoundError".

Did something change in composition?
(as always: on Linox OS)

Regards


---------------------------------------------------------------

Al@five:~/openim> ./openim.sh
Setting OPENIM_HOME: /home/Al/openim

RUN CMD IS: /home/Al/works/merlin-bin/bin/merlin.sh 
/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar -config 
/home/Al/openim/conf/config.xml -home /home/Al/openim

RUN CMD IS: /usr/local/jdk/bin/java 
-Djava.security.policy=/home/Al/works/merlin-bin/bin/security.policy 
-Dmerlin.home=/home/Al/works/merlin-bin 
-Djava.ext.dirs=/home/Al/works/merlin-bin/ext -jar 
/home/Al/works/merlin-bin/bin/lib/merlin-bootstrap-1.0.jar 
/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar -config 
/home/Al/openim/conf/config.xml -home /home/Al/openim

[INFO   ] (kernel): installing: 
file:/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar
Composition failure.


---- report -------------------------------------------------------

Exception: java.lang.NoClassDefFoundError
Message: org/apache/avalon/activation/appliance/impl/DefaultBlock

-------------------------------------------------------------------


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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Alexis Agahi <al...@users.sf.net>.
On Monday 10 November 2003 20:21, Stephen McConnell wrote:
> OK - problem located.
>
> The bootstrap properties file contains an incorrect version reference -
> the merlin.properties file in bootstrap is referencing 3.2-dev, not
> 3.2.1-dev.
> I've committed the change - everything should be ok if you do cvs update
> and a merlin:update.

I confirm, it works now.
thx.

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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Stephen McConnell <mc...@apache.org>.
OK - problem located.

The bootstrap properties file contains an incorrect version reference - 
the merlin.properties file in bootstrap is referencing 3.2-dev, not 
3.2.1-dev.
I've committed the change - everything should be ok if you do cvs update 
and a merlin:update.

Cheers, Steve.


-- 

Stephen J. McConnell
mailto:mcconnell@apache.org




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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Alexis Agahi <al...@users.sf.net>.
On Monday 10 November 2003 20:05, Stephen McConnell wrote:

> Ok - its not the bootstraper!
> Can you run again with -debug and take a look at the stack trace - I
> need to know which class is referencing DefaultBlock.  Once we know that
> we know which package is out of sync.

Al@five:~> merlin.sh -info -debug
RUN CMD IS: /usr/local/jdk/bin/java 
-Djava.security.policy=/home/Al/works/merlin-bin/bin/security.policy 
-Dmerlin.home=/home/Al/works/merlin-bin 
-Djava.ext.dirs=/home/Al/works/merlin-bin/ext -jar 
/home/Al/works/merlin-bin/bin/lib/merlin-bootstrap-1.0.jar -info -debug
System Repository: /home/Al/works/merlin-bin/system
system remote repositories: http://dpml.net/,http://www.ibiblio.org/maven/
Classloader dump:

file:/home/Al/works/merlin-bin/system/avalon-framework/jars/avalon-framework-impl-4.1.5.jar
file:/home/Al/works/merlin-bin/system/avalon-meta/jars/avalon-meta-impl-1.2.1-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-extension/jars/avalon-extension-impl-1.0.jar
file:/home/Al/works/merlin-bin/system/avalon-composition/jars/avalon-composition-impl-1.2-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-activation/jars/avalon-activation-impl-1.2.2-dev.jar
file:/home/Al/works/merlin-bin/system/excalibur-i18n/jars/excalibur-i18n-1.1.jar
file:/home/Al/works/merlin-bin/system/avalon-repository/jars/avalon-repository-impl-1.1-dev.jar
file:/home/Al/works/merlin-bin/system/commons-cli/jars/commons-cli-1.0.jar
file:/home/Al/works/merlin-bin/system/merlin/jars/merlin-kernel-impl-3.2-dev.jar
file:/home/Al/works/merlin-bin/system/logkit/jars/logkit-1.2.jar
file:/home/Al/works/merlin-bin/system/excalibur-event/jars/excalibur-event-1.0.3.jar
file:/home/Al/works/merlin-bin/system/excalibur-configuration/jars/excalibur-configuration-1.1.jar
file:/home/Al/works/merlin-bin/system/mx4j/jars/mx4j-jmx-1.1.1.jar
file:/home/Al/works/merlin-bin/system/mx4j/jars/mx4j-tools-1.1.1.jar
file:/home/Al/works/merlin-bin/system/avalon-meta/jars/avalon-meta-spi-1.2.1-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-composition/jars/avalon-composition-spi-1.2-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-activation/jars/avalon-activation-spi-1.2.1-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-repository/jars/avalon-repository-spi-1.1-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-framework/jars/avalon-framework-api-4.1.5.jar
file:/home/Al/works/merlin-bin/system/avalon-meta/jars/avalon-meta-api-1.2.1-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-composition/jars/avalon-composition-api-1.2-dev.jar
file:/home/Al/works/merlin-bin/system/avalon-activation/jars/avalon-activation-api-1.2-dev.jar
file:/home/Al/works/merlin-bin/system/excalibur-lifecycle/jars/excalibur-lifecycle-api-1.0.jar
file:/home/Al/works/merlin-bin/system/avalon-extension/jars/avalon-extension-spi-1.0.jar
file:/home/Al/works/merlin-bin/system/merlin/jars/merlin-kernel-spi-3.2-dev.jar
file:/home/Al/works/merlin-bin/bin/lib/merlin-bootstrap-1.0.jar
file:/home/Al/works/merlin-bin/ext/xmlParserAPIs-2.0.2.jar
file:/home/Al/works/merlin-bin/ext/xml-apis-2.0.2.jar
file:/home/Al/works/merlin-bin/ext/xerces-2.4.0.jar


[DEBUG  ] (kernel.logging): default priority: DEBUG
[DEBUG  ] (kernel.logging): adding category: kernel, null
[DEBUG  ] (kernel.context): logging system established
[DEBUG  ] (kernel.context): setting runtime repository to: 
/home/Al/works/merlin-bin/repository
[DEBUG  ] (kernel.context): repository established: 
/home/Al/works/merlin-bin/repository

  ${user.dir}: /home/Al
  ${merlin.home}: /home/Al/works/merlin-bin
  Version: Merlin SMP 3.0
  Build: 20031107
  Environment: Linux 2.4.21 Java 1.4.2_02
  Deployment Home: ${user.dir}/home
  System Repository: /home/Al/works/merlin-bin/system
  Runtime Repository: /home/Al/works/merlin-bin/repository
  Library Anchor: ${user.dir}
  Kernel Path:
  Deployment Blocks:
  Override Path:
  Server Flag: true
  Debug Flag: true

[DEBUG  ] (kernel.logging): adding category: kernel, null
[DEBUG  ] (kernel.context): model factory established
[DEBUG  ] (kernel.logging): adding category: , null
[DEBUG  ] (kernel.logging): adding category: , null
[DEBUG  ] (classloader): base: ${user.dir}
[DEBUG  ] (classloader): classpath:
[DEBUG  ] (classloader.types): type install count: 0
[DEBUG  ] (kernel): creating root containment context
[DEBUG  ] (kernel): construction phase
[DEBUG  ] (kernel): install phase
[DEBUG  ] (kernel): customization phase
[DEBUG  ] (kernel): state: initialized
[DEBUG  ] (kernel): kernel established
[DEBUG  ] (kernel): state: starting
[DEBUG  ] (kernel): state: model composition
[DEBUG  ] (kernel): state: initialized
Composition failure.


---- report -------------------------------------------------------

Exception: java.lang.NoClassDefFoundError
Message: org/apache/avalon/activation/appliance/impl/DefaultBlock
---- stack trace ---------------------------------------------------

java.lang.NoClassDefFoundError: 
org/apache/avalon/activation/appliance/impl/DefaultBlock
        at 
org.apache.avalon.merlin.kernel.impl.DefaultKernel.startup(DefaultKernel.java:468)
        at 
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.standardStartup(CLIKernelLoader.java:266)
        at 
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.<init>(CLIKernelLoader.java:186)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at Merlin.main(Merlin.java:265)

-------------------------------------------------------------------


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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Stephen McConnell <mc...@apache.org>.

Alexis Agahi wrote:

>On Monday 10 November 2003 19:37, Stephen McConnell wrote:
>  
>
>>Alexis Agahi wrote:
>>    
>>
>>>Hi,
>>>
>>>Using current Merlin CVS (build successfull), when trying to run an
>>>application (with composition), I get a "java.lang.NoClassDefFoundError".
>>>
>>>Did something change in composition?
>>>(as always: on Linox OS)
>>>      
>>>
>>The avalon-activation package has been going though some changes.  What
>>is happening is that an AbstractBlock has been put in place and the
>>functionality that was in DefaultBlock is now under CompositeBlock. My
>>guess is that you are running with an old merlin-bootstrap jar file (in
>>the bin/lib directory).  If you do a merlin -info you will get the
>>snapshot date - this will provide a hint concerning the real version of
>>the bootstrapper.
>>    
>>
>
>funky
>

>  Build: 20031107
>

Ok - its not the bootstraper!
Can you run again with -debug and take a look at the stack trace - I 
need to know which class is referencing DefaultBlock.  Once we know that 
we know which package is out of sync.
Stephen.


>
>Composition failure.
>
>
>---- report -------------------------------------------------------
>
>Exception: java.lang.NoClassDefFoundError
>Message: org/apache/avalon/activation/appliance/impl/DefaultBlock
>
>-------------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org




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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Alexis Agahi <al...@users.sf.net>.
On Monday 10 November 2003 19:37, Stephen McConnell wrote:
> Alexis Agahi wrote:
> >Hi,
> >
> >Using current Merlin CVS (build successfull), when trying to run an
> >application (with composition), I get a "java.lang.NoClassDefFoundError".
> >
> >Did something change in composition?
> >(as always: on Linox OS)
>
> The avalon-activation package has been going though some changes.  What
> is happening is that an AbstractBlock has been put in place and the
> functionality that was in DefaultBlock is now under CompositeBlock. My
> guess is that you are running with an old merlin-bootstrap jar file (in
> the bin/lib directory).  If you do a merlin -info you will get the
> snapshot date - this will provide a hint concerning the real version of
> the bootstrapper.

funky

Al@five:~> merlin.sh -info
RUN CMD IS: /usr/local/jdk/bin/java 
-Djava.security.policy=/home/Al/works/merlin-bin/bin/security.policy 
-Dmerlin.home=/home/Al/works/merlin-bin 
-Djava.ext.dirs=/home/Al/works/merlin-bin/ext -jar 
/home/Al/works/merlin-bin/bin/lib/merlin-bootstrap-1.0.jar -info

  ${user.dir}: /home/Al
  ${merlin.home}: /home/Al/works/merlin-bin
  Version: Merlin SMP 3.0
  Build: 20031107
  Environment: Linux 2.4.21 Java 1.4.2_02
  Deployment Home: ${user.dir}/home
  System Repository: /home/Al/works/merlin-bin/system
  Runtime Repository: /home/Al/works/merlin-bin/repository
  Library Anchor: ${user.dir}
  Kernel Path:
  Deployment Blocks:
  Override Path:
  Server Flag: true
  Debug Flag: false

Composition failure.


---- report -------------------------------------------------------

Exception: java.lang.NoClassDefFoundError
Message: org/apache/avalon/activation/appliance/impl/DefaultBlock

-------------------------------------------------------------------


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


Re: [Merlin] Did something change in composition (since 3.1)

Posted by Stephen McConnell <mc...@apache.org>.

Alexis Agahi wrote:

>Hi,
>
>Using current Merlin CVS (build successfull), when trying to run an 
>application (with composition), I get a "java.lang.NoClassDefFoundError".
>
>Did something change in composition?
>(as always: on Linox OS)
>

The avalon-activation package has been going though some changes.  What 
is happening is that an AbstractBlock has been put in place and the 
functionality that was in DefaultBlock is now under CompositeBlock. My 
guess is that you are running with an old merlin-bootstrap jar file (in 
the bin/lib directory).  If you do a merlin -info you will get the 
snapshot date - this will provide a hint concerning the real version of 
the bootstrapper.

Stephen.


>
>Regards
>
>
>---------------------------------------------------------------
>
>Al@five:~/openim> ./openim.sh
>Setting OPENIM_HOME: /home/Al/openim
>
>RUN CMD IS: /home/Al/works/merlin-bin/bin/merlin.sh 
>/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar -config 
>/home/Al/openim/conf/config.xml -home /home/Al/openim
>
>RUN CMD IS: /usr/local/jdk/bin/java 
>-Djava.security.policy=/home/Al/works/merlin-bin/bin/security.policy 
>-Dmerlin.home=/home/Al/works/merlin-bin 
>-Djava.ext.dirs=/home/Al/works/merlin-bin/ext -jar 
>/home/Al/works/merlin-bin/bin/lib/merlin-bootstrap-1.0.jar 
>/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar -config 
>/home/Al/openim/conf/config.xml -home /home/Al/openim
>
>[INFO   ] (kernel): installing: 
>file:/home/Al/.maven/repository/openim/jars/openim-server-impl-1.1.1.jar
>Composition failure.
>
>
>---- report -------------------------------------------------------
>
>Exception: java.lang.NoClassDefFoundError
>Message: org/apache/avalon/activation/appliance/impl/DefaultBlock
>
>-------------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org




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