The Open Source App Server wrote:
>
> Hello,
>
> I am trying to run the sample beans with Jonas, but I have some issues
> with the client beans.
> I succesfully installed JOnAS on linux (jdk122). I did all the
> configuration form the documentation.
> I can compile the Session beans and the Entities succesfully.
> I can start the rmiregistry without a problem.
> I can start the EJBServer for the session beans and the entity beans
> fine with the command:
> EJBServer -Djava.security.policy=$JONAS_ROOT/java.policy &
>
> Unfortunatelly when I want to run the client with the command :
> java -Djava.naming.provider.url="rmi://my.ip.address:1099"
> eb.ClientAccount AccountImplHome
> I got this error message:
> 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
>
> and with the command :
> java -Djava.naming.provider.url="rmi://my.ip.address:1099" sb.ClientOp
> I got the following error message:
> Getting a UserTransaction object from JNDI
> 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
>
> Does anyone know how to solve this problem, and how I could manage to
> test the sample beans from JOnAS?
>
> Thank you for your help and thanks to the JOnAS team for this product.
> I am looking forward to promote it as soon as I manage to make it work.
>
> Frederic.
>
Have a look at the README in example/src/sb you will see that you have
to pass on the command line two system properties:
java -Djava.naming.provider.url="rmi://hostname:1099"
-Djava.naming.factory.initial="com.sun.jndi.rmi.registry.RegistryContextFactory"
It is because it is (in the CVS version) possible to use Jeremie that is
an alternative
to Sun RMI.
Best regards,
--
Philippe
Philippe Coq Groupe Bulll/BullSoft/OpenMaster Phone: (33) 04 76 29 78
49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED] http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb
----
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".