This is a question which has been asked many times regarding Java PetStore
1.1.2 and JBoss 2.2 w/ Tomcat 3.2.

Using the zip file provided by C. Tran
(http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg04950.html)
I patched  jps1.1.2 to work with the Hypersonic 1.4 database included in the
JBoss2.2 w/ Tomcat 3.2 release. Having successfully built the application
and its web components using ant I placed the petstore.war file into the
.ear file as per C. Tran's instructions. I also made the appropriate
modifications to JBoss.jcml and Tomcat-users.xml .

The petstore .ear file deploys successfully into JBoss 2.2 w/ Tomcat 3.2.
The first time the petstore is run the tables are populated (using
cloudscape tables) also successfully. Unfortunately a subsequent attempt to
access the petstore results in:

Error: 500
Location: /estore/control/language
Internal Servlet Error:

com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
CatalogDAOFactory.getDAO:  NamingException while getting DAO type :
catalog not bound
        at
com.sun.j2ee.blueprints.petstore.control.web.CatalogWebImpl.(CatalogWebImpl.
java:36)
        at
com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo
delManager.java:84)
        at
com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager.
java:61)
        at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
ava:83)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Unknown Source)


Moreover, a refresh of this page brings up the Pet Store banner and an error
in the body:

Server Error
scc not bound
Oops! Your request cannot be completed. The server got the following error.



com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
scc not bound
        at
com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelMan
ager.java:130)
        at
com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl
.(ShoppingClientControllerWebImpl.java:65)
        at
com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest
(RequestProcessor.java:74)
        at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServl
et.java:111)
        at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
ava:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Unknown Source)

I am curious to have this answered for my sanity regarding ejb deployment
descriptors. Having traced the first exception to CatalogDAOFactory (in the
shoppingcart package), the descriptor (shoppingcart-ejb.xml) appears to set
up the appropritate <env-entry> tags for JNDI for the Catalog EJB. When the
bean invokes CatalogDAOFactory the env entries in the descriptor should
allow it to find the CatalogDAOHypersonic class bound in the tree. Or am I
wrong?

Some assistance would be greatly appreciated by me and my colleagues who are
sick of my obsessing about this.

j.


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to