RE: could not start merlin from main method

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <000101c49425$f5254de0$1601a8c0@gloria>
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.


> -----Original Message-----
> From: Yura Ivanov [mailto:[email protected]]
> Sent: 06 September 2004 17:09
> To: Avalon framework users
> Subject: Re: could not start merlin from main method
> 
> Thank You Stephen for so fast response to my problem!
> 
> May be it's heppening because I was trying to run it from eclipse ...
> but then I tried  to do this with jettry which was started from maven
and
> I've got the same result.
> 
> here is my merlin start method (actually I copied it from tutorial)
> 
> public void initComponentManager()throws Exception{
>             InitialContextFactory initial =
>                 new DefaultInitialContextFactory( "merlin" );
>               File home = initial.getHomeDirectory();
>               initial.setCacheDirectory( new File( home, "system" ) );
>               InitialContext context = initial.createInitialContext();
> 
>               String spec = "artifact:merlin/merlin-impl#3.3.0";
>               Artifact artifact = Artifact.createArtifact( spec );
>               Builder builder = context.newBuilder( artifact );
> 
>               Factory factory = builder.getFactory();
>               KernelCriteria criteria = (KernelCriteria)
> factory.createDefaultCriteria();
>               m_kernel = (Kernel) factory.create( criteria );
> }
> 
> Regards, Yuriy Ivanov.
> 
> ----- Original Message -----
> From: "Stephen McConnell" <[email protected]>
> To: "'Avalon framework users'" <[email protected]>
> Sent: Monday, September 06, 2004 6:00 PM
> Subject: RE: could not start merlin from main method
> 
> 
> >
> > A couple of questions:
> >
> >  1. What's present in the bootstrap classloader?
> >  2. What does your main method look like?
> >
> > Cheers, Steve.
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.