From owner-freebsd-java@FreeBSD.ORG Mon Aug 8 16:15:47 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A33C16A41F for ; Mon, 8 Aug 2005 16:15:47 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8926D43D45 for ; Mon, 8 Aug 2005 16:15:46 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j78GFiID015309; Mon, 8 Aug 2005 19:15:44 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j78GFiiT062490; Mon, 8 Aug 2005 19:15:45 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <42F784BD.5020406@ebs.gr> Date: Mon, 08 Aug 2005 19:13:49 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050507) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bryan Maynard References: <200508071716.18303.bryan.maynard@reallm.com> In-Reply-To: <200508071716.18303.bryan.maynard@reallm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: Tmocat .ear question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2005 16:15:47 -0000 Bryan Maynard wrote: > Hello all! I ahve a simple question: how do I deploy an EAR in Tomcat > 5.0? I read through Tapestry in action and would like to give the > Virtual Library application a spin. I ran the Ant build spript and > a .ear file was created. I then dropped the .ear file into my > ${CATALINA_BASE}/webapps directory. This is different from my > ${CATALINA_HOME}/webapps directory. Jan Grant gave me the following > script: > > [[ > #!/bin/sh > > CATALINA_HOME=/usr/local/jakarta-tomcat5.0 > CATALINA_BASE=/home/Bryan/tomcat50 > JAVA_OPTS="-Xss4m -Djava.awt.headless=true" > JAVA_HOME=/usr/local/jdk1.4.2 > > export CATALINA_HOME CATALINA_BASE > export JAVA_OPTS JAVA_HOME > > cd "$CATALINA_BASE" > exec "$CATALINA_HOME"/bin/catalina.sh $1 > ]] > > This is what I use to start Tomcat. > > Thanks in advance for your help. I've learned a lot from these lists > already :-) > > Bryan I don't know about this particular application, but you deploy war files on servlet containers, not ear files. Perhaps your build script has another target just for creating a war. Otherwise you could install an application server, like jboss and deploy your ear there. Cheers, Panagiotis