> 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".