This is the error I get when trying to run the ClientOp example in JOnAS
1.5:

Cannot lookup UserTransaction: java.lang.ClassCastException:
javax.naming.Reference

...which originates from the following line in ClientOp.java:
     utx = (UserTransaction)
initialContext.lookup("javax.transaction.UserTransaction");

Any hints will help, even if you can only tell me why it mentions
javax.naming.Reference, to which I cannot find any reference in the
source.

As for any other possible facts of relevance, we have:
JDK 1.1.8
JOnAS 1.5
PostgreSQL 6.5.2
JTA 1.0.1
JNDI 1.1.2 (RMI came with it), and the List example runs (though I can't
figure out how to use any arguments)
We have JDBC 2.0 standard extensions.
We're running FreeBSD.

It is finding javax.transaction.UserTransaction in our CLASSPATH, and
everything else in it has been triple-checked.  The only things we've
personalized are the paths, makefiles, and .properties files... and I
can certainly include those if anyone wants to see them!

Thanks!
Trent

PS: More specifics:

In our jonas.properties, we changed this line:
java.naming.provider.url rmi://lynx.cs.byu.edu:1099

The response from running EJBServer is:
$ EJBServer &
JOnAS - Version 1.5
JDBC DataSource jdbc_1 is mapped on PostgreSQL1.properties
EJBHome:sb.JOnASOpBeanOpHome for OpBean available

Our PostgreSQL1.properties looks like this:
        datasource.name         jdbc_1
        datasource.url          jdbc:postgresql://lynx.cs.byu.edu/assn07

        datasource.classname    postgresql.Driver
        datasource.username     web
        datasource.password     <wouldn't you like to know...>

Reply via email to