Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 85750 invoked from network); 4 Mar 2009 20:46:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 20:46:31 -0000 Received: (qmail 93267 invoked by uid 500); 4 Mar 2009 20:46:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 93233 invoked by uid 500); 4 Mar 2009 20:46:21 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 93053 invoked by uid 99); 4 Mar 2009 20:46:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 12:46:19 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 74.125.92.24 as permitted sender) Received: from [74.125.92.24] (HELO qw-out-2122.google.com) (74.125.92.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 20:46:11 +0000 Received: by qw-out-2122.google.com with SMTP id 8so2752485qwh.25 for ; Wed, 04 Mar 2009 12:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=ThsOSIxexSzDJUhr9LK+gtSw6HQ9+lPBnRv9l9cfkGk=; b=cpAyzKGL7snmvuVGzES7BPG0j2IaAE6RO9JQZRdPyIqCH6gUxzr7uADIYa2u8qtqsO k16k9psO5/tUEjyNK1wq7z7wkSPkcQVsN3soFQfvl9almUWyAU0xLehSnGUSOF0y+zvR 2EVsxr+y1a1SaPMKgbou++RYhmOXmXbXtUlk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=MT8KhZl+4sjDdvVyjIwjk8/MKtJghOXtPVKMlomMuJQFB93GAJZ0xBaiFqAH65Ueqt CE1lXJPfaDziiqNbIT1e0SIylfE5ypYyMuKkOYDpe9fNbJ62Pa1FCdqo1IlObLZj2QdL PCFAvluDOZbrEgzYkE5V/+Nqo/uDWbRk3PcUU= Received: by 10.224.15.16 with SMTP id i16mr558661qaa.186.1236199550462; Wed, 04 Mar 2009 12:45:50 -0800 (PST) Received: from ?10.0.1.190? (cpe-076-182-095-055.nc.res.rr.com [76.182.95.55]) by mx.google.com with ESMTPS id 6sm4499902ywi.43.2009.03.04.12.45.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Mar 2009 12:45:49 -0800 (PST) Message-Id: <60E7935F-F4BF-4A0B-B89E-1DDED278DE77@gmail.com> From: Kevan Miller To: user@geronimo.apache.org In-Reply-To: <22334444.post@talk.nabble.com> Content-Type: multipart/alternative; boundary=Apple-Mail-4-194310769 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Hotdeploy Problem Date: Wed, 4 Mar 2009 15:45:48 -0500 References: <22334444.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-4-194310769 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 4, 2009, at 12:02 PM, PeterE59 wrote: > > Hi, > > i have a basic problem. I am a newbie to geronimo. > > Geronimo is running: > Version 2.1.3 > Build 2008.09.10-10:18:40.636-0400 > Java Version 1.5.0_17 > Java Vendor Sun Microsystems Inc. > Architecture i386 > Name Linux > Version 2.6.9-023stab048.6-smp > > I try to deploy a very simple web application to check my > installation: > > HelloWorld\HelloWorld.jsp > \WEB-INF\web.xml > \geronimo-web-xml You want geronimo-web.xml to be in WEB-INF\ > ----------------------------------------------------------- > HelloWorld.jsp: > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > > > > > HelloWorld! > > >

> > Hello world from GERONIMO V1.1! > >

> ${datetime} > > --------------------------------------------------------- > web.xml: > > xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > HelloWorld.jsp > > Note that the above welcome-file in web.xml does not match your HelloWorld/HelloWorld.jsp location. Updating to 'HelloWorld/ HelloWorld.jsp' is probably what you want. In this case, the 'HelloWorld' url should work. Without this update, you'd need 'HelloWorld/HelloWorld' to reach your jsp. If you fix geronimo-web.xml, your url would become 'hello' since geronimo-web.xml is setting the context-root > > ------------------------------------------------------------ > geronimo-web.xml: > > > > > geronimo > HelloWorld > 1.1 > war > > > /hello > See above about insuring geronimo-web.xml is in WEB-INF/ and note the change of behavior caused by context-root. > > I build a jar file with: > jar cvf HelloWorld.jar HelloWorld > > Hot deploy: > cp HelloWorld.jar $GERONIMO_HOME/deploy > > Messages in geronimo.out: > 17:34:58,001 WARN [TomcatModuleBuilder] Web application . does not > contain > a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a > problem, depending on whether you have things like resource > references that > need to be resolved. You can also give the deployer a separate > deployment > plan file on the command line. This message tells us that geronimo did not locate your geronimo- web.xml file. Hope that helps. --kevan --Apple-Mail-4-194310769 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Mar 4, 2009, = at 12:02 PM, PeterE59 wrote:


Hi,

i have a basic problem. I am a newbie = to geronimo.

Geronimo is running:
Version   = 2.1.3
Build = 2008.09.10-10:18:40.636-0400
Java Version   = 1.5.0_17
Java Vendor Sun Microsystems = Inc.
Architecture   i386
Name = Linux
Version 2.6.9-023stab048.6-smp

I = try to deploy a very simple web application to check my = installation:

HelloWorld\HelloWorld.jsp
=             &n= bsp;  \WEB-INF\web.xml
=             &n= bsp;           &nbs= p;    \geronimo-web-xml
You want geronimo-web.xml to be in = WEB-INF\ 

-------------------------------------------------------= ----
HelloWorld.jsp:
<%@ page language=3D"java" = contentType=3D"text/html; charset=3DISO-8859-1"
=    pageEncoding=3D"ISO-8859-1"%>
<!DOCTYPE HTML = PUBLIC "-//W3C//DTD HTML 4.01 = Transitional//EN">
<html>
<head>
<meta = http-equiv=3D"Content-Type" content=3D"text/html; = charset=3DISO-8859-1">
<title>HelloWorld!</title>
<= ;/head>
<body bgcolor=3D"#707DB8">
=     <h1>

=             &n= bsp;   Hello world from GERONIMO V1.1!

=       </h1>
=           ${datetime}</html>
--------------------------------------------------------= -
web.xml:
<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
<web-app version=3D"2.4"
=   xmlns=3D"http://java.sun.com/xml/ns/j2ee"
   xmlns:xsi=3D"
http://www.w3.org/2001/= XMLSchema-instance"
  xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee
  
http://java.sun.c= om/xml/ns/j2ee/web-app_2_4.xsd">
=    <welcome-file-list>
=         <welcome-file>HelloW= orld.jsp</welcome-file>
=    </welcome-file-list>
</web-app>
=

Note that the above welcome-file in = web.xml does not match your HelloWorld/HelloWorld.jsp location. Updating = to 'HelloWorld/HelloWorld.jsp'  is probably what you want. In this = case, the 'HelloWorld' url should work. Without this update, you'd need = 'HelloWorld/HelloWorld' to reach your jsp.

If = you fix geronimo-web.xml, your url would become 'hello' since = geronimo-web.xml is setting the = context-root


---------------------------------------------------= ---------
geronimo-web.xml:
<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
<web-app xmlns=3D"http://geronimo.ap= ache.org/xml/ns/j2ee/web-1.1">
 <environment = xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1">
=    <moduleId>
=      <groupId>geronimo</groupId>
=      <artifactId>HelloWorld</artifactId&= gt;
=      <version>1.1</version>
=      <type>war</type>
=    </moduleId>
 </environment>
=  <context-root>/hello</context-root>
</web-app><= br>

See above about insuring = geronimo-web.xml is in WEB-INF/ and note the change of behavior caused = by context-root.


I build a = jar file with:
jar cvf HelloWorld.jar HelloWorld

Hot = deploy:
cp HelloWorld.jar $GERONIMO_HOME/deploy

Messages in = geronimo.out:
17:34:58,001 WARN  [TomcatModuleBuilder] Web = application . does not contain
a WEB-INF/geronimo-web.xml deployment = plan.  This may or may not be a
problem, depending on whether = you have things like resource references that
need to be resolved. =  You can also give the deployer a separate deployment
plan file = on the command line.

This = message tells us that geronimo did not locate your geronimo-web.xml = file.

Hope that = helps.

--kevan 

= --Apple-Mail-4-194310769--