File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Problem running petstore demo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Problem running petstore demo" Watch "Problem running petstore demo" New topic

Problem running petstore demo

Jeff Wachhorst
Ranch Hand

Joined: Mar 09, 2004
Posts: 41
I'm trying to run the petstore demo. I've downloaded the demo, I'm following the directions on \petstore1.3.2\docs\installing.html, everything goes great till I get to the bottom of installing.html where it says this:

Run the setup script to deploy the applications.

If you are using Unix, open a shell prompt and enter these commands:

cd <petstore.home>
sh deploy

If you are using Windows, open a command prompt and enter these commands:

cd <petstore.home>
setup.bat deploy

My machine is running Windows 2000. Here's what happens when I enter the command setup.bat deploy at my command prompt:

C:\petstore\petstore1.3.2>setup.bat deploy
Buildfile: setup.xml


[echo] Deploying ears ....


C:\petstore\petstore1.3.2\setup.xml:231: Execute failed: CreateProcess: \bin\deploytool.bat -generateSQL

petstore.ear localhost error=3
--- Nested Exception --- CreateProcess: \bin\deploytool.bat -generateSQL petstore.ear localhost error=3
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
at java.lang.Runtime.exec(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

Total time: 3 seconds


The last line on installing.html is: After installing the demo, you can start using it .
I click on 'using it' which takes me to /petstore1.3.2/docs/using.html#ataglance. There, under 'Using the Storefront', I click on the link http://localhost:8000/petstore. I get the HTTP status 404 screen - The requested resource (/petstore/) is not available.

Can anyone help me?

THANK YOU in advance-
Jeff Wachhorst
Ranch Hand

Joined: Mar 09, 2004
Posts: 41
I found my error. If you don't change your environment variables at MyComputer>Properties>Advanced>Environment Variables and instead set them with a script (as I did), that script has to be run (and those environment variables set) once in every command prompt window you open. I'm thinking that if they had computers in the classroom when I was in elementary and high school, I might know this kind of thing..
Anyway, I've successfully completed Installing and Building the demo and I find the API for the PetStore, containing the javadocs for everything in the PetStore demo but I still can't find an HTML index for the source code which you get when you click on 'Browseable source code' at
Have I missed something?
I agree. Here's the link:
subject: Problem running petstore demo
It's not a secret anymore!