Author: steveh Date: Mon Nov 1 17:46:34 2004 New Revision: 56319 Modified: incubator/beehive/branches/v1/alpha/samples/petstoreWeb/README Log: Added Unix content, fixed paths so they are more cut-and-paste friendly.
Modified: incubator/beehive/branches/v1/alpha/samples/petstoreWeb/README ============================================================================== --- incubator/beehive/branches/v1/alpha/samples/petstoreWeb/README (original) +++ incubator/beehive/branches/v1/alpha/samples/petstoreWeb/README Mon Nov 1 17:46:34 2004 @@ -21,9 +21,9 @@ the value of BEEHIVE_HOME would be: - %BEEHIVE_HOME%=c:\java\beehive-0.3alpha + BEEHIVE_HOME = c:\java\beehive-0.3alpha -Now, modify and run $BEEHIVE_HOME/beehiveUser.cmd to initialize your +Now, modify and run BEEHIVE_HOME/beehiveUser.cmd|sh to initialize your shell with some required environment variables including: BEEHIVE_HOME @@ -33,21 +33,22 @@ This will also add Java and Ant to your PATH. -Note, if you are running on Windows, you will need to replace -$BEEHIVE_HOME with %BEEHIVE_HOME% below. - Building ======== To build the Petstore web application, run the following target: -ant -f $BEEHIVE_HOME\ant\buildWebapp.xml - deploy.beehive.webapp.runtime build.webapp - -Dwebapp.dir=$BEEHIVE_HOME\samples\petstoreWeb +On Windows: + + ant -f %BEEHIVE_HOME%\ant\buildWebapp.xml deploy.beehive.webapp.runtime build.webapp -Dwebapp.dir=%BEEHIVE_HOME%\samples\petstoreWeb + +On Unix: + + ant -f $BEEHIVE_HOME\ant\buildWebapp.xml deploy.beehive.webapp.runtime build.webapp -Dwebapp.dir=$BEEHIVE_HOME\samples\petstoreWeb This will copy the Beehive webapp runtime into - $BEEHIVE_HOME/samples/petstoreWeb/WEB-INF/lib + BEEHIVE_HOME/samples/petstoreWeb/WEB-INF/lib and run the Beehive webapp build process on the petstoreWeb application. @@ -57,22 +58,25 @@ Petstore can be deployed to a running version of Tomcat in one of two ways: -1) copy $BEEHIVE_HOME/samples/petstoreWeb/ to $CATALINA_HOME/webapps +1) copy BEEHIVE_HOME/samples/petstoreWeb/ to CATALINA_HOME/webapps This will cause Tomcat to automatically deploy the webapp. 2) Use Beehive's deploy Ant target to deploy the Petstore to Tomcat. This requires that the "manager" role be defined in -$CATALINA_HOME/conf/tomcat-users.xml with a username / password of +CATALINA_HOME/conf/tomcat-users.xml with a username / password of "manager" / "manager". Then, run the Ant command: -ant -f $BEEHIVE_HOME\ant\buildWebapp.xml - deploy - -Dwebapp.dir=$BEEHIVE_HOME\samples\petstoreWeb - -Dcontext.path=petstoreWeb +On Windows: + + ant -f %BEEHIVE_HOME%\ant\buildWebapp.xml deploy -Dwebapp.dir=%BEEHIVE_HOME%\samples\petstoreWeb -Dcontext.path=petstoreWeb + +On Unix: + + ant -f $BEEHIVE_HOME\ant\buildWebapp.xml deploy -Dwebapp.dir=$BEEHIVE_HOME\samples\petstoreWeb -Dcontext.path=petstoreWeb To hit the running application, use the URL:
