-----Original Message-----
From: SG [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:55 PM
To: George Mu
Subject: Re: How to call EJB from JSP?
Check out the security example. You're gonna need to make a few changes
though. First, you're gonna need to compile a new class:
SecurityCtxInterceptor32 which you can find (along with instructions on how
to integrate with Tomcat) at:
http://www.objectweb.org/messages/JonasUsers/2001/04/msg00012.html
Then you'll need to follow the instructions for setting up security with
Tomcat:
http://www.objectweb.org/jonas/jonas_root/doc/Install.html#Running (look
at the security one)
BUT you'll need to make a few changes since their example is faulty.
After you have the .war file in Tomcat, and have started tomcat up and tried
to hit the .war file (by doing http://localhost:8080/ejbSample - case
sensistive), it will extract the .war to make the folders. At this point, go
to that folder and inside it, add the folder "secured" and then move Op.html
into the "secured" folder, and also move "Op.class" and "OpHome.class" into
the secured folder. Then you MUST compile the OpServlet.java file (that's in
the "classes" folder inside the ejbSample folder). Then (last thing) you
have to add the "tomcat = tomcat" into "jonas-users.properties" file in the
"examples/security/sb" folder where the EJBServer will be run.
Hope this helps!
Robert
----------------------------------------------------------------------------
Robert,
I have tried the Security example by the instructions in your mail and did
one more change as follow:
---Created security.jar and copied it to Tomcat/lib directiry, security.jar
includes SecurityCtxInterceptor32 and
org.enhydra.security.avs.api.SecurityCurrent.
But when I ran the sample again, I got an error that said:
"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"
What's wrong here? Look forward more help!
Thanks,
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".