> >What did fail in detail? We just wrote a small demo and it worked well.
> The problem is when I use a JSP calling my client class, which locates in
> webapps/../WEB-INF/classes, I cannot lookup EJB Home or UserTransaction.
> Error message is as below:
> "Cannot lookup OpHome: 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"
> Those JNDI varibles seems not accessible within Tomcat, but they work well
> just in JOnAS envoirment. So, my client class works if I call it though
> standard Java code, not though JSP held by Tomcat.
> I thought there should be some configurations between Tomcat & JOnAs, but
> How?
> Thanks for help!
> George

Hi George,

if you run an EJB Client Application, then the parameters are normally set
either by System.setProperty() or by -D command line switch. Same has to be
done in your JSP Bean class, which acts as a client here. As I think to
remember, we did System.setProperty() in the constructor, but if you want I
can send you a simple example that worked on our Tomcat/Jonas configuration.

Markus

----
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".

Reply via email to