Hi,
Excuse me for such a question i could not find the answer in archives or
faq. I am trying to run
the samples.
It seems I have a CLASSPATH problem but I don't know how to get rid of.
I have installed jonas 1.5 and necessary jar files from sun.(updated my
classpath with these and jonas' jars) I have compiled the examples with no
errors. And i made rmiregisttry work by running "registry". Then I start
EJBServer at src/sb and it says
------------
[root@svrlinux1 sb]# EJBServer &
[3] 2103
[root@svrlinux1 sb]# JOnAS - Version 1.5
EJBHome:sb.JOnASOpBeanOpHome for OpBean available
-----------------
I think everything is ok till now. And as I run AdmServer -l(-L) I see this:
---------
[root@svrlinux1 sb]# AdmServer -l
AdmServer -l
AdmServer -l : Bean 0 in the JOnAS server = sb.JOnASOpBeanOpHome
[root@svrlinux1 sb]# AdmServer -L
AdmServer -L
AdmServer -L : Name 0 in the JNDI context =
javax.transaction.UserTransaction
AdmServer -L : Name 1 in the JNDI context = OpHome
AdmServer -L : Name 2 in the JNDI context = jonas_Adm
AdmServer -L : Name 3 in the JNDI context = TMFactory
---------
And as I try to run the sample by following command I get this error:
-----
[root@svrlinux1 sb]# java -Djava.naming.provider.url="rmi://svrlinux1:1099"
sb.ClientOp
Can't find class sb.ClientOp
-----
my classpath wariable:
--------
[root@svrlinux1 sb]# echo $CLASSPATH
.:/usr/local/java/lib/classes.zip:/usr/local/java/lib/jsdk.jar:/usr/local/ja
va/lib/mysql.jar:/usr/local/java/lib/postgresql.jar:/usr/local/java/lib/ejb.
jar:/usr/local/java/lib/jdbc2_0-stdext.jar:/usr/local/java/lib/jndi.jar:/usr
/local/java/lib/jta-spec1_0_1.jar:/usr/local/java/lib/providerutil.jar:/usr/
local/java/lib/rmiregistry.jar:/usr/local/jonas/classes:/usr/local/jonas/lib
/jonas.jar:/usr/local/jonas/lib/jpp.jar
-----------
By the way I am using BlackDown java 1.1.7 v3 and noting is different with
the entity bean sample.
Sorry if such a question bores you. Any help is appreciated.
Devrim Baris Acar
Tubitak-Bilten ODTU