I have resolved the ioser12 error.

I created a symbolic link such:

libioser12.so -> /usr/local/j2sdkee1.2.1/nativelib/libioser12.so

Now when I run the example in examples/src/eb I get:

bash-2.03# java eb.ClientAccount AccountImplHome
Getting a UserTransaction object from JNDI
Connecting to the AccountHome
Getting the list of existing accounts in database
Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing
class
        at org.objectweb.jonas.jtm.TransactionImpl.<init>(TransactionImpl.java:8
1)
        at org.objectweb.jonas.jtm.Current.begin(Current.java:148)
        at eb.ClientAccount.accountList(Compiled Code)
        at eb.ClientAccount.main(ClientAccount.java:111)
bash-2.03#

I didn't think this would have been so exciting.

Martyn Wilson wrote:

> Thank you Christian and Hélène,
>
> This worked, the EJBServer starts in the examples/src/eb directory.
>
> Then when I run the example I get this:
>
> EJBServer is ready
>
> bash-2.03# java eb.ClientAccount AccountImplHome
> Getting a UserTransaction object from JNDI
> ERROR! Shared library ioser12 could not be found.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: specialLoadClass
>         at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoade
> r.java:58)
>         at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:18
> 0)
>         at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83)
>         at javax.rmi.CORBA.Util.loadClass(Util.java:215)
>         at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:306)
>         at <Unloaded Method>
>         at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemo
> teObject.java:182)
>         at <Unloaded Method>
>         at eb.ClientAccount.main(ClientAccount.java:90)
> bash-2.03#
>
> I tried adding /usr/local/j2sdkee1.2.1/nativelib/libioser12.so to the class path, but
> this didn't help.
>
> I also added J2EE_HOME and JDK_HOME to the environment.
>
> Any ideas?
>
> Hélène JOANIN wrote:
>
> > Hi Martyn,
> >
> > Christian give you the answer of your problem:
> > The value of the 'jonas.datasources' property must be 'PostgreSQL'
> > instead of 'PostgreSQL.properties'.
> > Nevertheless, it is a bug to output a such dirty message.
> > We will fix it in a next release.
> >
> > Bests regards.
> > Hélène.
> >
> > Martyn Wilson wrote:
> > >
> > > I have tried again to set up JONAS to run the examples.
> > >
> > > Now I get this:
> > >
> > > bash-2.03# EJBServer &
> > > [2] 1282
> > > bash-2.03# JOnAS Server, version 2.0, running on rmi.
> > >  Cannot create ConnectionManager for null
> > > JOnAS: Cannot start DataBase Manager
> > > java.lang.NullPointerException
> > >         at java.util.Hashtable.put(Compiled Code)
> > >         at
> > > org.objectweb.jonas.dbm.ConnectionManager.setDataSourceName(Connectio
> > > nManager.java:548)
> > >         at
> > > org.objectweb.jonas.dbm.DataBaseManager.createConnectionManager(DataB
> > > aseManager.java:114)
> > >         at
> > > org.objectweb.jonas.dbm.DataBaseManager.createConnectionManagers(Comp
> > > iled Code)
> > >         at org.objectweb.jonas.server.Server.main(Server.java:100)
> > >
> > > [2]+  Exit 2                  EJBServer
> > >
> > > Here is my jonas.properties file in the $JONAS_ROOT/examples/src/eb
> > > directory:
> > >
> > > jonas.beans.descriptors       ejb-jar.xml
> > >
> > > jonas.datasources               PostgreSQL.properties
> > >
> > > Here is my jndi.properties file:
> > >
> > > ###################### 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.jnd
> > > i.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://63.77.18.10:1099
> > >
> > > # In both cases
> > > java.naming.factory.url.pkgs    org.objectweb.jonas.naming
> > >
> > > Here is my $CLASSPATH after running config.env and using XTRA_CLASSPTH:
> > >
> > > bash-2.03# echo $CLASSPATH
> > > /usr/local/jonas_jdk1.2:/usr/local/jonas_jdk1.2/PostgreSQL.properties:/usr/local
> > >
> > > /j2sdkee1.2.1/lib/j2ee.jar:/usr/local/jonas_jdk1.2/examples/classes:/usr/local/l
> > >
> > > ib/jndi.jar:/usr/local/lib/providerutil.jar:/usr/local/lib/rmiregistry.jar:/usr/
> > >
> > > local/lib/ejb.jar:/usr/local/lib/jta-spec1_0_1.jar:/usr/local/lib/jdbc2_0-stdext
> > >
> > > .jar:/usr/local/jonas_jdk1.2/lib/RMI_jonas.jar
> > >
> > > Where I am I going wrong?
> > >
> > > ----
> > > 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".
> >
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >                        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".

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