Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Note
titleTHIS PAGE WILL BE ARCHIVED AND REMOVED

Instructions on Collapsed EAR can be found at  Collapsed EAR

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.

Note
title/tmp

I use /tmp as the directory in this example 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.

Wiki Markup<span style="color: darkorange">mingusmingus:/tmp 12:33:52</span> $ <span style="color: darkblue">wget <span class="nobr"><a href="52
$ wget http://apache.downlod.in/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz" class="external-link" rel="nofollow">http://apache.downlod.in/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz<sup><img class="rendericon" src="/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></span> \-\
-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.in\[OPENEJB:72.36.213.244\]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,718,313 \ [OPENEJB:application/x-gzip\]unmigrated-wiki-markup

100%\[OPENEJB:=======================================================================================================>\] 10,718,313 476.67K/s ETA 00:00

Wiki Markup12:34:58 (476.67 KB/s) - `jakarta-tomcat-5.0.28.tar.gz' saved \ [OPENEJB:10718313/10718313\]

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

Wiki Markup<span style="color: darkblue">mingus:mingus:/tmp 12:35:18</span> $ <span style="color: black">wget <span class="nobr"><a href="18
$ wget http://dist.codehaus.org/openejb/distributions/openejb-1.0-beta1.tar.gz" class="external-link" rel="nofollow">http://dist.codehaus.org/openejb/distributions/openejb-1.0-beta1.tar.gz<sup><img class="rendericon" src="/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></span> \-\-
-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.org\[OPENEJB:64.7.141.17\]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,086,662 \ [OPENEJB:application/x-tar\]unmigrated-wiki-markup

100%\[OPENEJB:=======================================================================================================>\] 5,086,662 280.05K/s ETA 00:00unmigrated-wiki-markup

12:36:13 (280.05 KB/s) - `openejb-1.0-beta1.tar.gz' saved \ [OPENEJB: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

Info
titleopenejb.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/Image Removed
Visit the http://localhost:8080/moviefun/setup.jspImage Removed at anytime to reset the example data.