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 OpenEJB Tomcat Installation can be found at  Tomcat

Wiki Markup
{composition-setup}{composition-setup} h1. Install Tomcat 6 h2. Unpack Tomcat installation {deck:id=UnpackTomcat} {card:label=Windows} {code:none}% jar -xf apache-tomcat-6.0.14.zip{code} {code:none}$ dir apache-tomcat-6.0.14\ Windows output here{code} {card} {card:label=Unix} {code:none}$ jar -xf apache-tomcat-6.0.14.zip{code} {code:none}$ ls apache-tomcat-6.0.14/ LICENSE RELEASE-NOTES bin/ lib/ temp/ work/ NOTICE RUNNING.txt conf/ logs/ webapps/{code} {card} {deck} h2. Make scripts executable {code}$ chmod u+x apache-tomcat-6.0.14/bin/*.sh{code} h2. Start Tomcat {code:none}$ apache-tomcat-6.0.14/bin/startup.sh Using CATALINA_BASE: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14 Using CATALINA_HOME: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home{code} h2. Verify Tomcat is Running Visit [http://localhost:8080/] and you should see the Tomcat welcome page. h2. Stop Tomcat {code:none}$ apache-tomcat-6.0.14/bin/shutdown.sh Using CATALINA_BASE: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14 Using CATALINA_HOME: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /Users/dain/work/ejb-plugin/apache-tomcat-6.0.14/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home{code} h1. Install OpenEJB h2. Unzip OpenEJB Tomcat plugin in Tomcat webapps directory {code:none}$ cd apache-tomcat-6.0.14/webapps/ apache-tomcat-6.0.14/webapps$ jar -xf ../../openejb-tomcat-3.0.0-SNAPSHOT-bin.zip apache-tomcat-6.0.14/webapps$ cd ../..{code} h2. Copy openejb-loader jar to Tomcat lib directory {code:none}$ cp apache-tomcat-6.0.14/webapps/openejb/lib/openejb-loader-3.0.0-SNAPSHOT.jar apache-tomcat-6.0.14/lib/{code} h2. Add OpenEJB listener to Tomcat server.xml file Add the following {highlight}highlighted lines{highlight} to your apache-tomcat-6.0.14/conf/server.xml file: {panel:title=apache-tomcat-6.0.14/conf/server.xml} <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="8005" shutdown="SHUTDOWN"> {highlight}<!-- OpenEJB plugin for tomcat --> <Listener className="org.apache.openejb.loader.OpenEJBListener" />{highlight} <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> .... {panel}