6 Replies Latest reply on May 14, 2002 8:32 AM by paulf

    petstore patch problem

    baker

      anyone know where I can get a copy of jboss-jps-patch.zip ? Its the patch file for building petstore 1.1.2.

      I'm working through the pdf SAMs book JBOSS administration and development. They have supplied the example source, but not the petstore patch. The patch they talk about supplies a build.xml file with a project
      name of "JPS Build Master". I have found the petstore-1.1.1-patch.zip, and the jps112-01.zip, but neither of these have the proper setup xml files for the petstore. I have even pulled the cvs source down to see if its in there with no luck.

      Thanks in advance

        • 1. Re: petstore patch problem
          attila1

          Where did you download the other patches you found ? I couldn't even find them. Please post the links, your help is much appreciated.

          • 2. Re: petstore patch problem
            baker

            Heres a link to those older patch files:

            http://www.jboss.org/doco_files/

            I found the link (above) by searching through the forum messages. Neither of these patch files were similar to the one depicted in the pdf documentation (flashline.com $9.99), and I had started trying to build the classpath to make it compile... ie add a jar, build again to see what is missing the next time around.

            Then someone from jboss sent me a patch file whose name matched the pdf version of the name, which got me so far as to build and deploy using Ant with no errors. However, the scripts mentioned in the pdf (pg 373) that are used to start jboss with the configuration and classpath changes specific to petstore were not included in that patch. Sent a msg about this to the person who sent me the patch, so maybe I'll get a patch that matches the pdf documentation.

            • 3. Re: petstore patch problem
              johnheath

              I have got the Sams book. I have used the book's jps release and applied their patch. But there does not seem to be any run_petstore.bat or run_petstore.sh on the disk with the book. Do you know where I could find these or other info to get petstore running ? Thanks John

              • 4. Re: petstore patch problem
                attila1

                Just do the 1.1.2 patch on the jps 1.1.2 full version that u can download from the link above, then run the build.bat in the folder : jps-1_1_2-full\src\petstore\src. You can then copy the petstore.ear to your jboss deploy or add a deploy target to your build.xml. Hope this helps.

                • 5. Re: petstore patch problem
                  attila1

                  Oh I forgot to ask. Could you post the patch that you received by email from the jboss employee. I think that could be helpful to everyone working on the petstor example. Thanks.

                  • 6. Re: petstore patch problem
                    paulf

                    Hi

                    I got around the problem by making a copy of the run_with_tomcat.bat file (that I suppose you find in your jboss/bin dir) and renaming it to run_petshop.bat. In the renamed batch file I changed the argument on the last line from tomcat to petstore (as shown):
                    .\run.bat petstore

                    Works fine for me. :-)