Re: could not start merlin from main method

"Yura Ivanov" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <03e801c49423$7240ebc0$5c03a8c0@ivanov>
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.
>
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.