Hello,
It's taken me a while to get to this point, but it seems that I can't go
further without some help. Below is information about my system. I get the
following error when I run the session bean example that came with Jonas:
Cannot lookup UserTransaction: javax.naming.NoInitialContextException: Need to
specify class name in environment or system property, or as an applet
parameter, or in an application resource file: java.naming.factory.initial
The command I typed in was (where ip address is my ip address):
java -Djava.naming.provider.url="rmi://<ip_address>:1099" sb.ClientOp
-Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
I did this in the directory:
/JONAS_ROOT/examples/src/sb
I started up the rmiregistry using the provided script in JONAS_ROOT/bin.
When I started up the EJBServer in /JONAS_ROOT/examples/src/sb, I got the
following message:
OnAS Server, version 1.6, running on rmi.
RMISecurityManager loaded
Working with a colocated Transaction Manager
Create and register TM factory
TransactionFactory constructor
Current.Current(TransactionFactory tmfact)
Batch constructor
Clock constructor
Register UserTransactionFactory
Current.getReference()
Container.Container()
String Env.getDataSources()
datasources=[]
String Env.getDescBeans()
descriptors=[Op.ser]
Container.addBeans(Vector [Op.ser])
Session Deployment descriptor is read
Remote interface=sb.Op
sb.JOnASOpBeanOpHome loaded
JBeanHome constructor for OpBean
JBeanHome.methodDescriptorsInit()
methodDescriptorsInit: ControlDescriptor[] size = 1
JBeanHome.register() OpHome
JSessionHome constructor for OpBean
JBeanMetaData.JBeanMetaData(ejbHome,sb.OpHome, sb.Op, null, true, false)
JBeanHome.setEJBMetaData()
JOnASOpBeanOpHome(OpBean)
EJBHome:sb.JOnASOpBeanOpHome for OpBean available
Server.main() : Container() call successfull
Adm.Adm()
String Env.getJonasName() -> jonas
rebind done jonas_Adm
Finally, here is my classpath. It's a little messy, but I think I have
everything...
/usr/local/jonas_jdk1.2/examples/classes:/usr/local/lib/idb.jar:/usr/local/lib
/idbexmpl.jar::/usr/lib/classes/jndi.jar:/usr/lib/classes/providerutil.jar:/usr/
lib/classes/rmiregistry.jar:/usr/lib/classes/jdbc2_0-stdext.jar:/usr/local/
jonas_jdk1.2/lib/RMI_jonas.jar:/usr/lib/classes/rmiregistry.jar:/usr/lib/
classes/providerutil.jar:/usr/lib/classes/mysql_comp.jar:/usr/lib/classes/
jta-spec1_0_1.jar:/usr/lib/classes/jndi.jar:/usr/lib/classes/
ejboss095_jdk122.jar:/usr/local/jonas_jdk1.2/examples/classes/sb
Thanks,
Paolo
----
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".