I followed the instructions in this link and it works!

http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/
BEAreadme.html

-Patrick

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of WenJun Luo
Sent: Thursday, September 21, 2000 11:30 PM
To: [EMAIL PROTECTED]
Subject: Deploy j2ee sample pet store to weblogic server


Hi, All,
        I try to deploy j2ee sample application pet store to weblogic server
5.1. Using EJBDeployerTool, I made necessary changes to deploy descriptors
and succeed in deploying the estoreEJB.jar and estore.war to a WebLogic
server.When starting up, the server loaded the ejb jar and web app
successfully. But when I browse the main page, I got the following excpeiton
on the server side:
<WebAppServletContext-estore> Servlet failed with Exception
com.sun.estore.control.GeneralFailureException
        at com.sun.estore.util.EJBUtil.getSCCHome(EJBUtil.java:49)
        at
com.sun.estore.control.web.ModelManager.getSCCEJB(ModelManager.java:98)
        at
com.sun.estore.control.web.ShoppingClientControllerWebImpl.<init>(ShoppingCl
ientControllerWebImpl.java:54)
        at
com.sun.estore.control.web.RequestProcessor.init(RequestProcessor.java:66)
        at jsp_servlet.Main._jspService(Main.java:116)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
        at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
        at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
        at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

The exception caused by the JNDI look-up. But when deploying the app, I had
linked the ejb reference to a JNDI name in weblogic-ejb-jar.xml and
weblogic.xml,for example, I linked the ejb reference 'ejb/account' to the
bean JNDI name 'estore.account'. And when the server starts up, it binds the
ejb with the JNDI name successfully. Shall I change the local ejb reference
name ,for example, 'java:comp/env/ejb/account', in

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  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 "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to