Hi Yury,

could you please send me your eclipse project?

I will try to get your example run and add it to Merlin Studio, so that
everyone has a "quick start" with embedded servers.

Andreas  

> -----Original Message-----
> From: Yura Ivanov [mailto:[EMAIL PROTECTED]
> Sent: Montag, 6. September 2004 18:10
> To: Avalon framework users
> Subject: Re: could not start merlin from main method
> 
> You are right! It's something with dependencies, when I've declared in
> eclipse 4 dependencies all was right and merlin was successful started
>  <classpathentry kind="lib"
> path="C:/Programming/merlin/3.3/system/avalon-repository/jars/avalon-
> reposit
> ory-main-2.0.0.jar"/>
>  <classpathentry kind="lib"
>
path="C:/Programming/merlin/3.3/system/merlin/jars/merlin-api-3.3.0.jar"
/>
>  <classpathentry kind="lib"
> path="C:/Programming/merlin/3.3/system/avalon-framework/jars/avalon-
> framewor
> k-api-4.2.0.jar"/>
>  <classpathentry kind="lib"
> path="C:/Programming/merlin/3.3/system/avalon-repository/jars/avalon-
> reposit
> ory-cli-2.0.0.jar"/>
> 
> but then when I've got the Kernal I want to get a component from it.
So I
> used Kernal.locate() method, but Eclipse tells me this
> 
> --- The type org.apache.avalon.composition.model.DeploymentModel
cannot be
> resolved.
> --- It is indirectly referenced from required .class files
> TestExecMerlin.java testmerlinwithmain/src/test line 70
> 
> ok, then I added lib for Ecpse
> <classpathentry kind="lib"
> path="C:/Programming/merlin/3.3/system/avalon-composition/jars/avalon-
> compos
> ition-api-2.0.0.jar"/>
> 
> error in Eclipse disappeared but when I tried to run main I've got
this !
> :(
> 
> [DEBUG ] (kernel.logger): adding root category
> org.apache.avalon.merlin.KernelException: Internal error while build a
> containment profile.
> <container/>
> at
>
org.apache.avalon.merlin.impl.DefaultFactory.getContainmentProfile(Defau
lt
> Fa
> ctory.java:495)
> at
>
org.apache.avalon.merlin.impl.DefaultFactory.createApplicationModel(Defa
ul
> tF
> actory.java:478)
> at
>
org.apache.avalon.merlin.impl.DefaultFactory.create(DefaultFactory.java:
24
> 4)
> at test.TestExecMerlin.main(TestExecMerlin.java:68)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/avalon/meta/info/ServiceDescriptor
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at
>
org.apache.avalon.composition.data.builder.XMLContainmentProfileCreator.
cr
> ea
> teServiceDirectives(XMLContainmentProfileCreator.java:475)
> at
>
org.apache.avalon.composition.data.builder.XMLContainmentProfileCreator.
cr
> ea
> teContainmentProfile(XMLContainmentProfileCreator.java:95)
> at
>
org.apache.avalon.merlin.impl.DefaultFactory.getContainmentProfile(Defau
lt
> Fa
> ctory.java:488)
> ... 3 more
> 
> and if I add all libs from system merlin dir then I've got the same
> message
> as I wrote at the beginning.
> And I don't know what I should to do if I want run it from Eclipse!
> Regards, Yuriy Ivanov.
> 
> 
> ----- Original Message -----
> From: "Stephen McConnell" <[EMAIL PROTECTED]>
> To: "'Avalon framework users'" <[EMAIL PROTECTED]>
> Sent: Monday, September 06, 2004 6:27 PM
> Subject: RE: could not start merlin from main method
> 
> 
> >
> > What are the dependencies that you have declared?  Specifically -
what
> > is in the classpath before merlin is kicking in?
> >
> > Basically this looks like a case of conflicting jar files in your
> > initial classloader.  Merlin is attempting to load the logging
system
> > but it looks like a different version of the logging classes already
> > exist in a higher classloader.
> >
> > Steve.
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.749 / Virus Database: 501 - Release Date: 01.09.2004
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.749 / Virus Database: 501 - Release Date: 01.09.2004
 


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

Reply via email to