You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Commands Only

A lot of times docs get chatty. Sometimes there is nothing better than standing over someone's shoulder and watching how to setup something. So, here we go. This doc sets up the Moviefun example on Tomcat 5.0.28. These are the exact commands I typed to set things up successfully.

/tmp

I use /tmp as the directory to contain all the installations. You really don't want to use that for real setup. Your home dir or /usr/local/ would be better.

mingus:/tmp 12:33:52
$ wget http://apache.downlod.in/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz
-12:34:36- http://apache.downlod.in/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz
=> `jakarta-tomcat-5.0.28.tar.gz'
Resolving apache.downlod.in... done.
Connecting to apache.downlod.in72.36.213.244:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,718,313 application/x-gzip

100%=======================================================================================================> 10,718,313 476.67K/s ETA 00:00

12:34:58 (476.67 KB/s) - `jakarta-tomcat-5.0.28.tar.gz' saved 10718313/10718313

mingus:/tmp 12:34:58
$ tar xzf jakarta-tomcat-5.0.28.tar.gz
tar: A lone zero block at 82109

mingus:/tmp 12:35:18
$ wget http://dist.codehaus.org/openejb/distributions/openejb-1.0-beta1.tar.gz
-12:35:55- http://dist.codehaus.org/openejb/distributions/openejb-1.0-beta1.tar.gz
=> `openejb-1.0-beta1.tar.gz'
Resolving dist.codehaus.org... done.
Connecting to dist.codehaus.org64.7.141.17:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,086,662 application/x-tar

100%=======================================================================================================> 5,086,662 280.05K/s ETA 00:00

12:36:13 (280.05 KB/s) - `openejb-1.0-beta1.tar.gz' saved 5086662/5086662

mingus:/tmp 12:36:13
$ tar xzf openejb-1.0-beta1.tar.gz

mingus:/tmp 12:36:27
$ cp openejb-1.0-beta1/war/moviefun.war jakarta-tomcat-5.0.28/webapps/

mingus:/tmp 12:37:30
$ ./jakarta-tomcat-5.0.28/bin/startup.sh
Using CATALINA_BASE: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_HOME: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: /tmp/jakarta-tomcat-5.0.28/temp
Using JAVA_HOME: /Library/Java/Home

mingus:/tmp 12:37:45
$ emacs jakarta-tomcat-5.0.28/webapps/moviefun/WEB-INF/web.xml

openejb.home

Must set the openejb.home, so edit the web.xml remove this line:
<param-value>/Users/dblevins/work/openejb1/target/openejb-1.0-SNAPSHOT</param-value>
With this line:
<param-value>/tmp/openejb-1.0-beta1</param-value>

mingus:/tmp 12:38:52
$ ./jakarta-tomcat-5.0.28/bin/shutdown.sh
Using CATALINA_BASE: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_HOME: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: /tmp/jakarta-tomcat-5.0.28/temp

mingus:/tmp 12:40:15
$ ./jakarta-tomcat-5.0.28/bin/startup.sh
Using JAVA_HOME: /Library/Java/Home
Using CATALINA_BASE: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_HOME: /tmp/jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: /tmp/jakarta-tomcat-5.0.28/temp
Using JAVA_HOME: /Library/Java/Home

Now open your browser to http://localhost:8080/moviefun/
Visit the http://localhost:8080/moviefun/setup.jsp at anytime to reset the example data.

  • No labels