5 Replies Latest reply on Jul 29, 2002 7:17 AM by Alexander Meisinger

    JBoss 3.0.0 and Petstore 1.1.2

    Alexander Meisinger Newbie

      I have a problem with running Petstore 1.1.2 on JBoss 3.0.0!

      I've followed the steps as described in the online manual(http://www.jboss.org/online-manual/HTML/ch12s02.html). But as i arrived at step 8. in this manual (8. Add JARS to JBoss) the first problem encountered. In my JBoss Installation there is no 'lib/ext' directory (only a lib directory) for the following files:
      - client.jar (from: c:\jsdkee1.2.1\lib\cloudscape),
      - RmiJdbc.jar (from: c:\jsdkee1.2.1\lib\cloudscape) and
      - tools.jar (from: c:\jdk1.3.1\lib).
      So I decided to make an 'ext' directory in the 'lib' directory and copied all these files into it. Additionally I set the Systempath on %JBOSS_HOME%\lib. Then I went on with the other steps in the manual. Then I've started cloudscape and JBoss; then I've tried to execute it (http://localhost:8080/estore). There was no problem with executing the application (no error messages). But the following message encountered: "Unable to Connect to Database" although cloudscape was running. Therefore it is impossible to populate the Database and go on with further steps.

      Does anyone know what I've made wrong or has anyone a solution for my problem.

      thanx

        • 1. Re: JBoss 3.0.0 and Petstore 1.1.2
          Joel Vogt Master

          firstly it doesn't sound right to me that you had no lib/ext, but anyways, if you can't connect to cloudscape, is there any better stack trace on your error? You might have to check your connection string too

          • 2. Re: JBoss 3.0.0 and Petstore 1.1.2
            mak Newbie

            Hi

            The unable to connect to DB probably indicates your settings in DB config file (-service.xml) in \server\default\deploy directory is not quite right.

            Remember petstore is looking for specific JNDI names for DB pools - EStoreDB and InventoryDB.

            As for lib dir I usually put all my libs in \server\default\lib. I think this is the equivalent of lib\ext dir in Jboss 2.4.x.

            The other problem I had deploying the Petstore was the 1.1.2 version gets Resource URLS using:
            getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();

            and then converting back to URL again in different places.

            With Jboss 3 and Tomcat 4 combination this URL is a JNDI URL so using toString is not valid.

            So I changed the code in com\sun\j2ee\blueprints\petstore\control\web\MailServlet.java and com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.java to use URL directly without URL to String conversion via toString().

            After rebuilding it all seem to work fine!!

            Hope this helps!
            Mak


            This

            • 3. Re: JBoss 3.0.0 and Petstore 1.1.2
              Alexander Meisinger Newbie

              hello,

              first: thank you for your fast help. but now i have other problems with running the petstore.

              --------------------
              -- The unable to connect to DB probably indicates your
              -- settings in DB config file (-service.xml) in
              -- \server\default\deploy directory is not
              -- quite right.
              --------------------

              can you tell me the name of the *service.xml for cloudscape. i can't find the right file. maybe you can tell me which exact changes i have to do.

              --------------------
              -- As for lib dir I usually put all my libs in
              -- \server\default\lib. I think this is the
              -- equivalent of lib\ext dir in Jboss 2.4.x.
              --------------------

              i've done it too - there was no real problem :o)

              --------------------
              -- The other problem I had deploying the Petstore was the
              -- 1.1.2 version gets Resource URLS using:
              -- getServletContext().getResource("/WEB-
              -- INF/xml/requestmappings.xml").toString();
              --------------------

              I did this changes but i can't build the .ear file because there was following error-message during the build process:

              C:\jps1.1.2\src\petstore\src>build.bat
              Buildfile: build.xml
              Project base dir set to: C:\jps1.1.2\src\petstore\src
              Executing Target: components
              Project base dir set to: C:\jps1.1.2\src\components\util\tracer\src
              Project base dir set to: C:\jps1.1.2\src\components\util\tracer\src
              Executing Target: init
              Executing Target: compile_classes
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\customer\src
              Project base dir set to: C:\jps1.1.2\src\components\customer\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: customerejbjar
              Created dir: C:\jps1.1.2\src\components\customer\build\ejbjar\META-INF
              Copying 48 files to C:\jps1.1.2\src\components\customer\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\customer\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\customer\build\customerEjb.jar
              Building jar: C:\jps1.1.2\src\components\customer\build\customerEjb.jar
              Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar
              Executing Target: customerejbclientjar
              Copying 48 files to C:\jps1.1.2\src\components\customer\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\customer\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
              ts\customer\customer\ejb\CustomerEJB.class
              Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
              ts\customer\order\ejb\OrderEJB.class
              Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
              ts\customer\account\ejb\AccountEJB.class
              Deleting: C:\jps1.1.2\src\components\customer\build\customerEjb_client.jar
              Building jar: C:\jps1.1.2\src\components\customer\build\customerEjb_client.jar
              Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\personalization\src
              Project base dir set to: C:\jps1.1.2\src\components\personalization\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: personalizationejbjar
              Created dir: C:\jps1.1.2\src\components\personalization\build\ejbjar\META-INF
              Copying 20 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\personalization\build\personalizationEjb.ja
              r
              Building jar: C:\jps1.1.2\src\components\personalization\build\personalizationEj
              b.jar
              Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar
              Executing Target: personalizationejbclientjar
              Copying 20 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar\com\sun\j2ee\b
              lueprints\personalization\profilemgr\ejb\ProfileMgrEJB.class
              Deleting: C:\jps1.1.2\src\components\personalization\build\personalizationEjb_cl
              ient.jar
              Building jar: C:\jps1.1.2\src\components\personalization\build\personalizationEj
              b_client.jar
              Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\inventory\src
              Project base dir set to: C:\jps1.1.2\src\components\inventory\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: inventoryejbjar
              Created dir: C:\jps1.1.2\src\components\inventory\build\ejbjar\META-INF
              Copying 15 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\inventory\build\inventoryEjb.jar
              Building jar: C:\jps1.1.2\src\components\inventory\build\inventoryEjb.jar
              Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar
              Executing Target: inventoryejbclientjar
              Copying 15 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar\com\sun\j2ee\bluepri
              nts\inventory\ejb\InventoryEJB.class
              Deleting: C:\jps1.1.2\src\components\inventory\build\inventoryEjb_client.jar
              Building jar: C:\jps1.1.2\src\components\inventory\build\inventoryEjb_client.jar

              Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\shoppingcart\src
              Project base dir set to: C:\jps1.1.2\src\components\shoppingcart\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: shoppingcartejbjar
              Created dir: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\META-INF
              Copying 20 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb.jar
              Building jar: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb.jar
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Executing Target: shoppingcartejbclientjar
              Copying 20 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\com\sun\j2ee\blue
              prints\shoppingcart\cart\ejb\ShoppingCartEJB.class
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\com\sun\j2ee\blue
              prints\shoppingcart\catalog\ejb\CatalogEJB.class
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb_client.j
              ar
              Building jar: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb_clie
              nt.jar
              Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\mail\src
              Project base dir set to: C:\jps1.1.2\src\components\mail\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: mailejbjar
              Created dir: C:\jps1.1.2\src\components\mail\build\ejbjar\META-INF
              Copying 7 files to C:\jps1.1.2\src\components\mail\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\mail\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\mail\build\mailerEjb.jar
              Building jar: C:\jps1.1.2\src\components\mail\build\mailerEjb.jar
              Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar
              Executing Target: mailejbclientjar
              Copying 7 files to C:\jps1.1.2\src\components\mail\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\mail\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar\com\sun\j2ee\blueprints\m
              ail\ejb\MailerEJB.class
              Deleting: C:\jps1.1.2\src\components\mail\build\mailerEjb_client.jar
              Building jar: C:\jps1.1.2\src\components\mail\build\mailerEjb_client.jar
              Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar
              Executing Target: core
              Project base dir set to: C:\jps1.1.2\src\components\signon\src
              Project base dir set to: C:\jps1.1.2\src\components\signon\src
              Executing Target: init
              Executing Target: compile_util_classes
              Executing Target: compile_classes
              Executing Target: signonejbjar
              Created dir: C:\jps1.1.2\src\components\signon\build\ejbjar\META-INF
              Copying 19 files to C:\jps1.1.2\src\components\signon\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\signon\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\signon\build\signonEjb.jar
              Building jar: C:\jps1.1.2\src\components\signon\build\signonEjb.jar
              Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar
              Executing Target: signonejbclientjar
              Copying 19 files to C:\jps1.1.2\src\components\signon\build\ejbjar
              Copying 1 files to C:\jps1.1.2\src\components\signon\build\ejbjar
              Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar\com\sun\j2ee\blueprints
              \signon\ejb\SignOnEJB.class
              Deleting: C:\jps1.1.2\src\components\signon\build\signonEjb_client.jar
              Building jar: C:\jps1.1.2\src\components\signon\build\signonEjb_client.jar
              Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar
              Executing Target: core
              Executing Target: init
              Executing Target: compile_classes
              Created dir: C:\jps1.1.2\src\petstore\build\classes
              Copying 1 files to C:\jps1.1.2\src\petstore\build\classes
              Compiling 92 source files to C:\jps1.1.2\src\petstore\build\classes
              Copying 2 support files to C:\jps1.1.2\src\petstore\build\classes
              Executing Target: war
              Copying 95 files to C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\classes
              Created dir: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\lib
              Building jar: C:\jps1.1.2\src\petstore\build\petstore.war
              Deleting: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\classes
              Deleting: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\lib
              Executing Target: ejbjar
              Created dir: C:\jps1.1.2\src\petstore\build\ejbjar\META-INF
              Expanding: C:\jps1.1.2\src\petstore\src\lib\jaxp.jar into C:\jps1.1.2\src\petsto
              re\build\classes
              Expanding: C:\jps1.1.2\src\petstore\src\lib\parser.jar into C:\jps1.1.2\src\pets
              tore\build\classes
              Copying 212 files to C:\jps1.1.2\src\petstore\build\ejbjar
              Building jar: C:\jps1.1.2\src\petstore\build\petstoreEjb.jar
              Deleting: C:\jps1.1.2\src\petstore\build\ejbjar
              Executing Target: ear
              [error]
              [exec] Assemble application {../../components/shoppingcart/build/shoppingcartEjb
              .jar=, ../../components/inventory/build/inventoryEjb.jar=, ../build/petstore.war
              =, ../../components/mail/build/mailerEjb.jar=, ../../components/customer/build/c
              ustomerEjb.jar=, ../../components/signon/build/signonEjb.jar=, ../../components/
              personalization/build/personalizationEjb.jar=, ../build/petstoreEjb.jar=}[] into
              ../build/petstore.ear
              [error] No local string for enterprise.deployment.application.description
              [exec] Creation of application in ../build/petstore.ear is complete
              Executing Target: runtime
              [error]
              [error] No local string for enterprise.deployment.application.description
              [exec] Set runtime done
              [error]
              [error] No local string for enterprise.deployment.application.description
              [exec] Set runtime done
              Executing Target: core
              Completed in 19 seconds

              --------------------
              I hope you can help me with this problem.

              thank you!

              • 4. Re: JBoss 3.0.0 and Petstore 1.1.2
                Alexander Meisinger Newbie

                hello,

                first: thank you for your fast help. but now i have other problems with running the petstore.

                --------------------
                -- The unable to connect to DB probably indicates your
                -- settings in DB config file (-service.xml) in
                -- \server\default\deploy directory is not
                -- quite right.
                --------------------

                can you tell me the name of the *service.xml for cloudscape. i can't find the right file. maybe you can tell me which exact changes i have to do.

                --------------------
                -- As for lib dir I usually put all my libs in
                -- \server\default\lib. I think this is the
                -- equivalent of lib\ext dir in Jboss 2.4.x.
                --------------------

                i've done it too - there was no real problem :o)

                --------------------
                -- The other problem I had deploying the Petstore was the
                -- 1.1.2 version gets Resource URLS using:
                -- getServletContext().getResource("/WEB-
                -- INF/xml/requestmappings.xml").toString();
                --------------------

                I did this changes but i can't build the .ear file because there was following error-message during the build process:

                C:\jps1.1.2\src\petstore\src>build.bat
                Buildfile: build.xml
                Project base dir set to: C:\jps1.1.2\src\petstore\src
                Executing Target: components
                Project base dir set to: C:\jps1.1.2\src\components\util\tracer\src
                Project base dir set to: C:\jps1.1.2\src\components\util\tracer\src
                Executing Target: init
                Executing Target: compile_classes
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\customer\src
                Project base dir set to: C:\jps1.1.2\src\components\customer\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: customerejbjar
                Created dir: C:\jps1.1.2\src\components\customer\build\ejbjar\META-INF
                Copying 48 files to C:\jps1.1.2\src\components\customer\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\customer\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\customer\build\customerEjb.jar
                Building jar: C:\jps1.1.2\src\components\customer\build\customerEjb.jar
                Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar
                Executing Target: customerejbclientjar
                Copying 48 files to C:\jps1.1.2\src\components\customer\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\customer\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
                ts\customer\customer\ejb\CustomerEJB.class
                Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
                ts\customer\order\ejb\OrderEJB.class
                Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar\com\sun\j2ee\blueprin
                ts\customer\account\ejb\AccountEJB.class
                Deleting: C:\jps1.1.2\src\components\customer\build\customerEjb_client.jar
                Building jar: C:\jps1.1.2\src\components\customer\build\customerEjb_client.jar
                Deleting: C:\jps1.1.2\src\components\customer\build\ejbjar
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\personalization\src
                Project base dir set to: C:\jps1.1.2\src\components\personalization\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: personalizationejbjar
                Created dir: C:\jps1.1.2\src\components\personalization\build\ejbjar\META-INF
                Copying 20 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\personalization\build\personalizationEjb.ja
                r
                Building jar: C:\jps1.1.2\src\components\personalization\build\personalizationEj
                b.jar
                Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar
                Executing Target: personalizationejbclientjar
                Copying 20 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\personalization\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar\com\sun\j2ee\b
                lueprints\personalization\profilemgr\ejb\ProfileMgrEJB.class
                Deleting: C:\jps1.1.2\src\components\personalization\build\personalizationEjb_cl
                ient.jar
                Building jar: C:\jps1.1.2\src\components\personalization\build\personalizationEj
                b_client.jar
                Deleting: C:\jps1.1.2\src\components\personalization\build\ejbjar
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\inventory\src
                Project base dir set to: C:\jps1.1.2\src\components\inventory\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: inventoryejbjar
                Created dir: C:\jps1.1.2\src\components\inventory\build\ejbjar\META-INF
                Copying 15 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\inventory\build\inventoryEjb.jar
                Building jar: C:\jps1.1.2\src\components\inventory\build\inventoryEjb.jar
                Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar
                Executing Target: inventoryejbclientjar
                Copying 15 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\inventory\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar\com\sun\j2ee\bluepri
                nts\inventory\ejb\InventoryEJB.class
                Deleting: C:\jps1.1.2\src\components\inventory\build\inventoryEjb_client.jar
                Building jar: C:\jps1.1.2\src\components\inventory\build\inventoryEjb_client.jar

                Deleting: C:\jps1.1.2\src\components\inventory\build\ejbjar
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\shoppingcart\src
                Project base dir set to: C:\jps1.1.2\src\components\shoppingcart\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: shoppingcartejbjar
                Created dir: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\META-INF
                Copying 20 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb.jar
                Building jar: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb.jar
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Executing Target: shoppingcartejbclientjar
                Copying 20 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\com\sun\j2ee\blue
                prints\shoppingcart\cart\ejb\ShoppingCartEJB.class
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar\com\sun\j2ee\blue
                prints\shoppingcart\catalog\ejb\CatalogEJB.class
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb_client.j
                ar
                Building jar: C:\jps1.1.2\src\components\shoppingcart\build\shoppingcartEjb_clie
                nt.jar
                Deleting: C:\jps1.1.2\src\components\shoppingcart\build\ejbjar
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\mail\src
                Project base dir set to: C:\jps1.1.2\src\components\mail\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: mailejbjar
                Created dir: C:\jps1.1.2\src\components\mail\build\ejbjar\META-INF
                Copying 7 files to C:\jps1.1.2\src\components\mail\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\mail\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\mail\build\mailerEjb.jar
                Building jar: C:\jps1.1.2\src\components\mail\build\mailerEjb.jar
                Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar
                Executing Target: mailejbclientjar
                Copying 7 files to C:\jps1.1.2\src\components\mail\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\mail\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar\com\sun\j2ee\blueprints\m
                ail\ejb\MailerEJB.class
                Deleting: C:\jps1.1.2\src\components\mail\build\mailerEjb_client.jar
                Building jar: C:\jps1.1.2\src\components\mail\build\mailerEjb_client.jar
                Deleting: C:\jps1.1.2\src\components\mail\build\ejbjar
                Executing Target: core
                Project base dir set to: C:\jps1.1.2\src\components\signon\src
                Project base dir set to: C:\jps1.1.2\src\components\signon\src
                Executing Target: init
                Executing Target: compile_util_classes
                Executing Target: compile_classes
                Executing Target: signonejbjar
                Created dir: C:\jps1.1.2\src\components\signon\build\ejbjar\META-INF
                Copying 19 files to C:\jps1.1.2\src\components\signon\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\signon\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\signon\build\signonEjb.jar
                Building jar: C:\jps1.1.2\src\components\signon\build\signonEjb.jar
                Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar
                Executing Target: signonejbclientjar
                Copying 19 files to C:\jps1.1.2\src\components\signon\build\ejbjar
                Copying 1 files to C:\jps1.1.2\src\components\signon\build\ejbjar
                Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar\com\sun\j2ee\blueprints
                \signon\ejb\SignOnEJB.class
                Deleting: C:\jps1.1.2\src\components\signon\build\signonEjb_client.jar
                Building jar: C:\jps1.1.2\src\components\signon\build\signonEjb_client.jar
                Deleting: C:\jps1.1.2\src\components\signon\build\ejbjar
                Executing Target: core
                Executing Target: init
                Executing Target: compile_classes
                Created dir: C:\jps1.1.2\src\petstore\build\classes
                Copying 1 files to C:\jps1.1.2\src\petstore\build\classes
                Compiling 92 source files to C:\jps1.1.2\src\petstore\build\classes
                Copying 2 support files to C:\jps1.1.2\src\petstore\build\classes
                Executing Target: war
                Copying 95 files to C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\classes
                Created dir: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\lib
                Building jar: C:\jps1.1.2\src\petstore\build\petstore.war
                Deleting: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\classes
                Deleting: C:\jps1.1.2\src\petstore\src\docroot\WEB-INF\lib
                Executing Target: ejbjar
                Created dir: C:\jps1.1.2\src\petstore\build\ejbjar\META-INF
                Expanding: C:\jps1.1.2\src\petstore\src\lib\jaxp.jar into C:\jps1.1.2\src\petsto
                re\build\classes
                Expanding: C:\jps1.1.2\src\petstore\src\lib\parser.jar into C:\jps1.1.2\src\pets
                tore\build\classes
                Copying 212 files to C:\jps1.1.2\src\petstore\build\ejbjar
                Building jar: C:\jps1.1.2\src\petstore\build\petstoreEjb.jar
                Deleting: C:\jps1.1.2\src\petstore\build\ejbjar
                Executing Target: ear
                [error]
                [exec] Assemble application {../../components/shoppingcart/build/shoppingcartEjb
                .jar=, ../../components/inventory/build/inventoryEjb.jar=, ../build/petstore.war
                =, ../../components/mail/build/mailerEjb.jar=, ../../components/customer/build/c
                ustomerEjb.jar=, ../../components/signon/build/signonEjb.jar=, ../../components/
                personalization/build/personalizationEjb.jar=, ../build/petstoreEjb.jar=}[] into
                ../build/petstore.ear
                [error] No local string for enterprise.deployment.application.description
                [exec] Creation of application in ../build/petstore.ear is complete
                Executing Target: runtime
                [error]
                [error] No local string for enterprise.deployment.application.description
                [exec] Set runtime done
                [error]
                [error] No local string for enterprise.deployment.application.description
                [exec] Set runtime done
                Executing Target: core
                Completed in 19 seconds

                --------------------
                I hope you can help me with this problem.

                thank you!

                • 5. Re: JBoss 3.0.0 and Petstore 1.1.2
                  Alexander Meisinger Newbie

                  hello,

                  first: thank you for your fast help. but now i have other problems with running the petstore.

                  --------------------
                  -- The unable to connect to DB probably indicates your
                  -- settings in DB config file (-service.xml) in
                  -- \server\default\deploy directory is not
                  -- quite right.
                  --------------------

                  can you tell me the name of the *service.xml for cloudscape. i can't find the right file. maybe you can tell me which exact changes i have to do.

                  --------------------
                  -- As for lib dir I usually put all my libs in
                  -- \server\default\lib. I think this is the
                  -- equivalent of lib\ext dir in Jboss 2.4.x.
                  --------------------

                  i've done it too - there was no real problem :o)

                  --------------------
                  -- The other problem I had deploying the Petstore was the
                  -- 1.1.2 version gets Resource URLS using:
                  -- getServletContext().getResource("/WEB-
                  -- INF/xml/requestmappings.xml").toString();
                  --------------------

                  I did this changes but i can't build the .ear file because there was following error-message during the build process:

                  C:\jps1.1.2\src\petstore\src>build.bat
                  Buildfile: build.xml

                  [...]

                  Building jar: C:\jps1.1.2\src\petstore\build\petstoreEjb.jar
                  Deleting: C:\jps1.1.2\src\petstore\build\ejbjar
                  Executing Target: ear
                  [error]
                  [exec] Assemble application {../../components/shoppingcart/build/shoppingcartEjb
                  .jar=, ../../components/inventory/build/inventoryEjb.jar=, ../build/petstore.war
                  =, ../../components/mail/build/mailerEjb.jar=, ../../components/customer/build/c
                  ustomerEjb.jar=, ../../components/signon/build/signonEjb.jar=, ../../components/
                  personalization/build/personalizationEjb.jar=, ../build/petstoreEjb.jar=}[] into
                  ../build/petstore.ear
                  [error] No local string for enterprise.deployment.application.description
                  [exec] Creation of application in ../build/petstore.ear is complete
                  Executing Target: runtime
                  [error]
                  [error] No local string for enterprise.deployment.application.description
                  [exec] Set runtime done
                  [error]
                  [error] No local string for enterprise.deployment.application.description
                  [exec] Set runtime done
                  Executing Target: core
                  Completed in 19 seconds

                  --------------------
                  I hope you can help me with this problem.

                  thank you!