It looks like if you are using CORBA at first sight (see the stack trace
which refers to CORBA). According to your config.env you are set to rely on
RMI. Moreover, your error comes from JNDI that seems to be configured for
CORBA. I took a look at your jndi.properties file and I found you commented
out the last line.

First of all, uncomment that line. Copy your jndi.properties file and
jonas.properties files in the directory you call the server. JOnAS looks to
the . directory when it starts up. Correct your jonas.properties because the
jonas.beans.descriptors  property is ill-formed (mix between previous
version and actual version of jonas and trailing \ must be removed):


jonas.beans.descriptors  examples/src/eb/jonas-ejb-jar.xml
examples/src/sb/jonas-ejb-jar.xml

Olivier Richaud
CSTB
office: +33 4 93 95 67 24
mobile: +33 6 87 52 53 17
www: http://cic.cstb.fr
----- Message d'origine -----
De : Philippe Durieux <[EMAIL PROTECTED]>
� : Eujene Chung <[EMAIL PROTECTED]>
Cc : <[EMAIL PROTECTED]>
Envoy� : mercredi 12 avril 2000 10:24
Objet : Re: How to run examples?


> > Eujene Chung wrote:
> >
> >
> > Hi everybody?
> >
> > I'm installed Jonas 2.0 version.
> > But I'm having trouble with running examples.
> > 1.I can run the script $JONAS_ROOT/bin/registry.
> > 2. cd examples/src/sb
> >     bash-2.02$ EJBServer
> > [this error:]
> >
> > bash-2.02$ EJBServer
> > JOnAS Server, version 2.0, running on Jeremie.
> > Exception in thread "main" java.lang.ExceptionInInitializerError:
> > org.omg.CORBA.
> > INITIALIZE: can't instantiate default ORB implementation
> > com.visigenic.vbroker.o
> > rb.ORB  minor code: 0  completed: No
> >         at org.omg.CORBA.ORB.create_impl(ORB.java:305)
> >         at org.omg.CORBA.ORB.<clinit>(ORB.java:202)
> >         at
> > com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:141)
> >         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:63)
> >         at
> > com.sun.enterprise.naming.EJBInitialContextFactory.<init>(EJBInitialC
> > ontextFactory.java:34)
> >         at java.lang.Class.newInstance0(Native Method)
> >         at java.lang.Class.newInstance(Compiled Code)
> >         at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
> > 60)
> >         at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
> > )
> >         at javax.naming.InitialContext.init(InitialContext.java:226)
> >         at javax.naming.InitialContext.<init>(InitialContext.java:182)
> >         at
> > org.objectweb.jonas.naming.NamingManager.<init>(NamingManager.java:71
> > )
> >         at org.objectweb.jonas.server.Server.main(Server.java:78)
> > What's problems?
> > Help me.
> > I add files(jonas.properites, jndi.properites, config.env).
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >                        Name: jonas.properties
> >    jonas.properties    Type: unspecified type
> >                              (application/octet-stream)
> >                    Encoding: quoted-printable
> >
> >                       Name: jndi.properties
> >    jndi.properties    Type: unspecified type
> >                             (application/octet-stream)
> >                   Encoding: quoted-printable
> >
> >                  Name: config.env
> >    config.env    Type: unspecified type (application/octet-stream)
> >              Encoding: quoted-printable
> Your problem seems to be that jndi.properties refers to rmiregistry
> and your JOnAS server uses Jeremie, i.e. it should use jrmiregistry.
> Simply modify your jndi.properties file to use jeremie instead of rmi
> and it should work better:
>
> try with this:
>
> ###################### JNDI configuration
> # Please refer to the JNDI documentation for further details.
> # You must adapt <hostname> and maybe the port number (1099 by default)
> # depending on your configuration.
>
> # If you use Jeremie only
> java.naming.factory.initial
>
org.objectweb.jeremie.libs.services.registry.jndi.JRMIInitialContextFactory
> java.naming.provider.url       jrmi://<hostname>:1099
>
> # if you use rmi only
> #java.naming.factory.initial
> com.sun.jndi.rmi.registry.RegistryContextFactory
> #java.naming.provider.url        rmi://150.10.192.210:1099
>
>
> # In both cases
> java.naming.factory.url.pkgs   org.objectweb.jonas.naming
>
> --
> Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
> [EMAIL PROTECTED]  http://www-frec.bull.com
> -> Download our EJBServer at http://www.bullsoft.com/ejb <-
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
>

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to