IT WORKS! Thank you so much! We should let other new JOnAS people know this.

George

-----Original Message-----
From: SG [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 10:15 PM
To: George Mu
Subject: Re: How to call EJB from JSP?


i forgot one more thing!!! (and it's important).
after you start EJBServer, and BEFORE you start tomcat do this:

(in the tomcat/bin folder):
config_env

after that command, type: startup (to start the tomcat)

then it will work!




----- Original Message -----
From: "George Mu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 8:35 PM
Subject: Re: How to call EJB from JSP?


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

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