Hicham Kadri wrote:
>
> Hello,
>
> I have problem to run the examples of JOnAS 2.2 on Windows 2000 :
>
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-1999 Microsoft Corp.
>
> C:\>cd C:\JONAS2.2\bin\nt
>
> C:\JONAS2.2\bin\nt>config_env
> C:\JONAS2.2\bin\nt>set CLASSPATH
> CLASSPATH=;C:\JONAS2.2\examples\src\classes;C:\JONAS2.2;C:\JONAS2.2\lib\jms.jar;
> C:\JONAS2.2\lib\idb.jar;C:\JONAS2.2\lib\idbexmpl.jar;C:\JONAS2.2\lib\classes111.
> zip;C:\JONAS2.2\lib\jndi.jar;C:\JONAS2.2\lib\providerutil.jar;C:\JONAS2.2\lib\rm
> iregistry.jar;C:\JONAS2.2\lib\RMI_jonas.jar
>
> C:\JONAS2.2\bin\nt>cd C:\JONAS2.2\examples\src\classes
>
> C:\JONAS2.2\examples\src\classes>java eb.ClientAccount AccountImplHome
> Getting a UserTransaction object from JNDI
> Connecting to the AccountHome
> Cannot lookup AccountImplHome: javax.naming.NameNotFoundException:
> AccountImplHo
> me
>
> C:\JONAS2.2\examples\src\classes>cd C:\JONAS2.2\bin\nt
>
> C:\JONAS2.2\bin\nt>config_env
> C:\JONAS2.2\bin\nt>set CLASSPATH
> CLASSPATH=;C:\JONAS2.2\examples\src\classes;C:\JONAS2.2;C:\JONAS2.2\lib\jms.jar;
> C:\JONAS2.2\lib\idb.jar;C:\JONAS2.2\lib\idbexmpl.jar;C:\JONAS2.2\lib\classes111.
> zip;C:\JONAS2.2\lib\jndi.jar;C:\JONAS2.2\lib\providerutil.jar;C:\JONAS2.2\lib\rm
> iregistry.jar;C:\JONAS2.2\lib\RMI_jonas.jar
>
> C:\JONAS2.2\bin\nt>cd C:\JONAS2.2\examples\src\classes
>
> C:\JONAS2.2\examples\src\classes>java sb.ClientOp
> Cannot lookup OpHome: javax.naming.NameNotFoundException: OpHome
>
> C:\JONAS2.2\examples\src\classes>
>
> ----------------------------------------------------------------------
>
> C:\JONAS2.2\examples\src\classes>java bookstore.book.ClientBook
> Getting a UserTransaction object from JNDI
> Connecting to the BookHome
> Cannot lookup BookBean: javax.naming.NameNotFoundException: BookHome
>
> can you help me
>
> Think you
>
Hi,
You need to be in the directory C:\JONAS2.2\examples\src\sb
for running the EJBServer for the sb example because the
jonas.properties
located here tells what bean must be loaded
idem you must be under C:\JONAS2.2\examples\src\eb for running the
EJBServer for the eb
example.
you can run the clients from everywhere since you have run config_env
When I read your traces I understand that the Home objects are not
registered in JNDI,
I think that you have run EJBServer from a wrong location, so the server
has started but has not loaded the correct beans for the clients you
want to run.
Regards,
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer 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".