no difference, still the same error:
javax.servlet.ServletException: javax/net/SocketFactory
!!
-----Original Message-----
From: Mohamed Reyas M.S [mailto:[EMAIL PROTECTED]]
Sent: 13 August 2002 12:43
To: [EMAIL PROTECTED]
Subject: Re: deploying EJBs on jboss
There is no need to put the jndi.jar file in WEB-INF/lib directory.you can
as such
invoke the ejb using the jsp file.One change you have to do is
instead of
FirstHome home = (FirstHome)ctx.lookup("ejb/First");
give
FirstHome home = (FirstHome)ctx.lookup("java:comp/env/ejb/First");
try this and please let me know if you have any problem.
Thanks
Reyas
"Shahata, Ash" wrote:
> Hi all, I'm trying to access my deployed ejb on jboss from tomcat 4.. I'm
> running a jsp client to link to my ejb ...I know that the jndi.jar should
be
> kept at the WEB-INF\lib dir, however I couldn't find it under
jboss\client!
> Is this normal? This is my first time to use jboss, am I missing
something?
> My client jsp properties update code looks like this:
>
> <%@ page import="javax.naming.InitialContext,
> javax.naming.Context,
> java.util.Properties,
> com.stardeveloper.ejb.session.First,
> com.stardeveloper.ejb.session.FirstHome"%>
> <%
> long t1 = System.currentTimeMillis();
> Properties props = new Properties();
> props.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.jnp.interfaces.NamingContextFactory");
> props.put(Context.PROVIDER_URL, "localhost:1099");
>
> Context ctx = new InitialContext(props);
> FirstHome home = (FirstHome)ctx.lookup("ejb/First");
> First bean = home.create();
> String time = bean.getTime();
> bean.remove();
> ctx.close();
> long t2 = System.currentTimeMillis();
> %>
>
> Thanks
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com