2 Replies Latest reply on Apr 12, 2002 2:17 AM by garropoli remo

    Pet Store 1.1.2 Demo in JBOSS

    Michael Newbie

      After Downlaoding SUN's Java Pet Store 1.1.2, then extracting the petstore zip file jps112-01.zip patch from jboss on top of it, when I run the build.bat file as
      described in the Documentation (www.jboss.org/online-manual/HTML/ch14s02.html), I get the following errors during build.

      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\Account.java:11: Class javax.ejb.EJBObject no
      t found in import.
      import javax.ejb.EJBObject;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\Account.java:21: Interface javax.ejb.EJBObjec
      t of interface com.sun.j2ee.blueprints.customer.account.ejb.Account not found.
      public interface Account extends EJBObject {
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:11: Class javax.ejb.EntityBea
      n not found in import.
      import javax.ejb.EntityBean;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:12: Class javax.ejb.EntityCon
      text not found in import.
      import javax.ejb.EntityContext;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:13: Class javax.ejb.EJBExcept
      ion not found in import.
      import javax.ejb.EJBException;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:14: Class javax.ejb.FinderExc
      eption not found in import.
      import javax.ejb.FinderException;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:15: Class javax.ejb.CreateExc
      eption not found in import.
      import javax.ejb.CreateException;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java:16: Class javax.ejb.RemoveExc
      eption not found in import.
      import javax.ejb.RemoveException;

      import org.w3c.dom.Document;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\order\model\OrderModel.java:13: Class org.w3c.dom.Element
      not found in import.
      import org.w3c.dom.Element;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\order\model\OrderModel.java:14: Class org.w3c.dom.Documen
      t not found in import.
      import org.w3c.dom.Document;
      ^
      G:\jps1.1.2\src\components\customer\src\com\sun\j2ee\blueprints\customer\util\Address.java:9: Class org.w3c.dom.Element not found
      in import.
      import org.w3c.dom.Element;

      -- Any ideas?
      Thanks,

        • 1. Re: Pet Store 1.1.2 Demo in JBOSS
          Michael Newbie

          I found out that I was missing the environment variable
          J2EE_HOME=installeddir. Once I added it I was able to do a clean build.

          However, after deploying the new .ear file and starting cloudscape as described on port 1098, I am still experiencing the following problem. The Database EstoreDB
          is hanging.

          Here is a portion of my startup and then my jboss.jcml

          [INFO,DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
          [INFO,DefaultDS] Started
          [INFO,EstoreDB] Starting
          [INFO,EstoreDB] XA Connection pool EstoreDB bound to java:/EstoreDB


          <!-- Cloudscape -->


          EstoreDB
          org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
          jdbc:rmi://localhost:1098/jdbc:cloudscape:CloudscapeDB;create=true
          estoreuser
          estore

          1200000
          10
          false
          false
          false
          true
          120000
          1800000
          false
          false
          1.0
          0


          Does anyone have an idea?
          -- Thanks

          • 2. Re: Pet Store 1.1.2 Demo in JBOSS
            garropoli remo Newbie

            Ciao,
            this is the configuration that I have used in jboss.jcml:


            EstoreDB
            org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
            jdbc:rmi://localhost:1098/jdbc:cloudscape:CloudscapeDB;create=true
            none
            none

            1200000
            10
            false
            false
            false
            true
            120000
            1800000
            false
            true
            1.0
            0


            I advise to enable logging in the Bean.
            Best regards
            Garropoli Remo