Hi,
Your problem seems to be a JNDI configuration problem.
Acces to JNDI is bound to a jndi.properties file that must be accessible
from your CLASSPATH.
Such a file is supplied with the JOnAS distribution as example.
You must customize it and place it in a directory viewed by your
CLASSPATH.
###################### 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>:12340
# if you use rmi only
java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url rmi://<hostname>:1099
# In both cases
java.naming.factory.url.pkgs org.objectweb.jonas.naming
Moreover, you have not to update your CLASSPATH with the RMI_jonas.jar.
Indeed, all JOnAS scripts call a script named $JONAS_ROOT/bin/config.env
which update the CLASSPATH with the prerequired classes.
Please, have a look to the JOnAS installation guide.
Kind regards.
H�l�ne.
Martyn Wilson wrote:
>
> H�l�ne,
>
> I changed my CLASSPATH so that, where I had /usr/local/jonas_jdk1.2/, I now have,
> /usr/local/jonas_jdk1.2/lib/RMI_jonas.jar.
>
> Now I get this error:
>
> bash-2.03# EJBServer &
> [2] 575
> bash-2.03# JOnAS Server, version 2.0, running on rmi.
> Exception in thread "main" java.lang.InstantiationError: org/omg/CosTransactions
> /PropagationContext
> at <Unloaded Method>
> at com.sun.jts.CosTransactions.CurrentImpl.<init>(CurrentImpl.java:81)
> at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(De
> faultTransactionService.java:183)
> at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(Compiled Code
> )
> at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:200)
> at org.omg.CORBA.ORB.init(ORB.java:353)
> at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
> at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
> at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
> ontextFactory.java:36)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance0(Compiled Code)
> 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)
>
> Sorry to be bothering you so much, I'm afraid I'm somewhat of a novice.
>
> Martyn Wilson wrote:
>
> > H�l�ne,
> >
> > Thank you for your response, however, after I changed the datasource I still get
>the
> > same error after running 'EJBServer &' thus:
> >
> > bash-2.03# EJBServer &
> > [2] 369
> > bash-2.03# JOnAS Server, version 2.0, running on rmi.
> > Cannot load JDBC driver : java.lang.ClassNotFoundException: org.enhydra.instantd
> > b.jdbc.idbDriver.class
> > Mapping datasource jdbc:idb=Account.prp on jdbc_1
> > EJBHome:eb.JOnASAccountExplBeanAccountHome for AccountExpl available
> > EJBHome:eb.JOnASAccountImplBeanAccountHome for AccountImpl available
> > EJBServer is ready
> >
> > bash-2.03#
> >
> > Here is the full contents of my InstantDB1.properties file:
> >
> > datasource.name jdbc_1
> > datasource.url jdbc:idb=Account.prp
> > datasource.classname org.enhydra.instantdb.jdbc.idbDriver.class
> >
> > jdbc.connchecklevel 1
> > jdbc.connmaxage 30
> > jdbc.connmaxthreads 4
> > jdbc.connexcltimeout 30
> > jdbc.connteststmt set date format "yyyy/mm/dd"
> >
> > Thanks.
> >
> > H�l�ne JOANIN wrote:
> >
> > > Hello,
> > >
> > > The datasource.classname property of your
> > > $JONAS_ROOT/InstantDB1.properties
> > > file should be
> > > datasource.classname org.enhydra.instantdb.jdbc.idbDriver.class
> > > instead of
> > > datasource.classname org/enhydra/instantdb/jdbc/idbDriver.class
> > >
> > > Kind regards
> > > H�l�ne.
> > >
> > > Martyn Wilson wrote:
> > > >
> > > > Thanks for the previous responses, I do need some more guidance though.
> > > >
> > > > I am trying to run the example beans to test the installation of Jonas.
> > > >
> > > > The session bean works but I am having problems with the Entity ones.
> > > >
> > > > When I run 'EJBServer &' in the $JONAS_ROOT/examples/src/eb directory I
> > > > get the following return:
> > > >
> > > > bash-2.03# EJBServer &
> > > > [2] 4323
> > > > bash-2.03# JOnAS Server, version 2.0, running on rmi.
> > > > Cannot load JDBC driver : java.lang.ClassNotFoundException:
> > > > org/enhydra/instantd
> > > > b/jdbc/idbDriver.class
> > > > Mapping datasource jdbc:idb=Account.prp on jdbc_1
> > > > EJBHome:eb.JOnASAccountExplBeanAccountHome for AccountExpl available
> > > > EJBHome:eb.JOnASAccountImplBeanAccountHome for AccountImpl available
> > > > EJBServer is ready
> > > >
> > > > This is in my $JONAS_ROOT/examples/src/eb/jonas.properties file:
> > > >
> > > > jonas.datasources InstantDB1
> > > >
> > > > This is in my $JONAS_ROOT/InstantDB1.properties file:
> > > >
> > > > datasource.name jdbc_1
> > > > datasource.url jdbc:idb=Account.prp
> > > > datasource.classname org/enhydra/instantdb/jdbc/idbDriver.class
> > > >
> > > > jdbc.connchecklevel 1
> > > > jdbc.connmaxage 30
> > > > jdbc.connmaxthreads 4
> > > > jdbc.connexcltimeout 30
> > > > jdbc.connteststmt set date format "yyyy/mm/dd"
> > > >
> > > > This is my CLASSPATH:
> > > >
> > > > bash-2.03# echo $CLASSPATH
> > > >
>:/usr/local/jonas_jdk1.2//examples/classes::/usr/local/jonas_jdk1.2//examples/cl
> > > >
> > > >
>asses:/usr/local/lib/idb.jar:/usr/local/lib/idbexmpl.jar:/usr/local/lib/classes1
> > > >
> > > >
>11.zip:/usr/local/lib/jndi.jar:/usr/local/lib/providerutil.jar:/usr/local/lib/rm
> > > >
> > > >
>iregistry.jar:/usr/local/jonas_jdk1.2//lib/RMI_jonas.jar:/usr/local/jonas_jdk1.2
> > > >
> > > >
>/:/usr/local/lib/ejb.jar:/usr/local/lib/jdbc2_0-stdext.jar:/usr/local/lib/jndi.j
> > > >
> > > >
>ar:/usr/local/lib/jta-spec1_0_1.jar:/usr/local/lib/providerutil.jar:/usr/local/l
> > > >
> > > >
>ib/rmiregistry.jar:/usr/local/j2sdkee1.2.1/lib/j2ee.jar:/usr/local/idb3_14/Class
> > > >
> > > >
>es/idb.jar:/usr/local/idb3_14/Classes/idbexmpl.jar:/usr/local/idb3_14/Classes/id
> > > >
> > > > bf.jar:/org/enhydra/instantd:/org/enhydra/instantd
> > > >
> > > > Do I have everything configured properly?
> > > >
> > > > Thank you.
> > > >
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
PLEASE, TAKE INTO ACCOUNT MY NEW EMAIL
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
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".