From user-return-15806-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Wed Nov 2 01:11:08 2011 Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D44E783E for ; Wed, 2 Nov 2011 01:11:08 +0000 (UTC) Received: (qmail 55423 invoked by uid 500); 2 Nov 2011 01:11:08 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 55396 invoked by uid 500); 2 Nov 2011 01:11:08 -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 55387 invoked by uid 99); 2 Nov 2011 01:11:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 01:11:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirunhua@gmail.com designates 209.85.220.182 as permitted sender) Received: from [209.85.220.182] (HELO mail-vx0-f182.google.com) (209.85.220.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 01:11:03 +0000 Received: by vcbfk26 with SMTP id fk26so3691156vcb.13 for ; Tue, 01 Nov 2011 18:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=T0KXm8u11ZkCA8gysGyBHGrJyaqNlOm6GMaYvyQj3z4=; b=as/4tYtqzLI67o5AJF83Oon6/AgCLopCw8P+c4VkZLwEmQfUiweE3HXqZPBKRZ/h2k iYN8wCs+a+yNUgghkodo/Mzkc6epN7lXQHFe2oI7HY2GlPYKFhMzVAZUrm8C3sd8h6hW NNwHDHXEp5LRSdHwgr2bJZm9Wvo120Rc1OzzE= MIME-Version: 1.0 Received: by 10.52.32.163 with SMTP id k3mr2232993vdi.33.1320196241616; Tue, 01 Nov 2011 18:10:41 -0700 (PDT) Received: by 10.220.98.82 with HTTP; Tue, 1 Nov 2011 18:10:41 -0700 (PDT) In-Reply-To: <4EB0879E.5020706@sendmail.cz> References: <4EB0879E.5020706@sendmail.cz> Date: Wed, 2 Nov 2011 09:10:41 +0800 Message-ID: Subject: Re: Grails application in Geronimo 3 From: chi runhua To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=bcaec51d276603ee3004b0b62438 --bcaec51d276603ee3004b0b62438 Content-Type: text/plain; charset=ISO-8859-1 IIRC, virtual host is not supported in G3.0 yet. I might be wrong... Jeff 2011/11/2 Radim Kolar > I have problem running grails application in G3. I am trying it to deploy > into virtual hosts using configuration from geronimo 2. > > It fails with: > > show/hide Error The application was not successfully started. > start of hebeidomains/whois-web/1.0.1/**war failed > org.apache.geronimo.kernel.**config.LifecycleException: start of > hebeidomains/whois-web/1.0.1/**war failed > at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.** > startConfiguration(**SimpleConfigurationManager.**java:718) > at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.** > startConfiguration(**SimpleConfigurationManager.**java:681) > at org.apache.geronimo.**deployment.plugin.local.** > StartCommand.run(StartCommand.**java:67) > at java.lang.Thread.run(Thread.**java:662) > Caused by: org.apache.geronimo.kernel.**config.NoSuchConfigException: > trying to start ancestor config for config hebeidomains/whois-web/1.0.1/**war, > but not found (configId: hebeidomains/whois-web/1.0.1/**war) (configId: > hebeidomains/whois-web/1.0.1/**war) > at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.** > startConfiguration(**SimpleConfigurationManager.**java:699) > ... 3 more > > I have no idea what should be ancestor for config. Virtual host is defined > here: > > > name="org.apache.geronimo.**configs/tomcat7/3.0-SNAPSHOT/** > car?ServiceModule=org.apache.**geronimo.configs/tomcat7/3.0-** > SNAPSHOT/car,j2eeType=Host,**name=bean"> > org.apache.**catalina.core.StandardHost attribute> > name=whois.**hebeidomains.com > appBase= > workDir=work > > > > and geronimo-web,xml is simple: > > > xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance > " > xsi:schemaLocation="http://**geronimo.apache.org/xml/ns/** > j2ee/web-2.0.1 > http://geronimo.apache.org/** > xml/ns/j2ee/web-2.0.1 "> > xsi:schemaLocation="http://**geronimo.apache.org/xml/ns/** > deployment-1.2 > http://geronimo.apache.org/**xml/ns/deployment-1.2 > "> > > hebeidomains > whois-web > 1.0.1 > war > > > /whois > whois.hebeidomains.com > > --bcaec51d276603ee3004b0b62438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable IIRC, virtual host is not supported in G3.0 yet.

I might= be wrong...

Jeff

2011/11/2 Radim Kolar <hsn@sendmail.cz>
I have problem running grails application i= n G3. I am trying it to deploy into virtual hosts using configuration from = geronimo 2.

It fails with:

show/hide =A0 =A0Error =A0 =A0The application was not successfully started.=
start of hebeidomains/whois-web/1.0.1/war failed
org.apache.geronimo.kernel.config.LifecycleException: start of hebei= domains/whois-web/1.0.1/war failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManag= er.startConfiguration(SimpleConfigurationManager.java:= 718)
at org.apache.geronimo.kernel.config.SimpleConfigurationManag= er.startConfiguration(SimpleConfigurationManager.java:= 681)
at org.apache.geronimo.deployment.plugin.local.StartCommand.r= un(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.geronimo.kernel.config.NoSuchConfigException: = trying to start ancestor config for config hebeidomains/whois-web/1.0.1/= war, but not found (configId: hebeidomains/whois-web/1.0.1/war) = (configId: hebeidomains/whois-web/1.0.1/war)
at org.apache.geronimo.kernel.config.SimpleConfigurationManag= er.startConfiguration(SimpleConfigurationManager.java:= 699)
... 3 more

I have no idea what should be ancestor for config. Virtual host is defined = here:

<module name=3D"org.apache.geronimo.configs/tomcat7/3.0-SNAP= SHOT/car">
<gbean gbeanInfo=3D"org.apache.geronimo.tomcat.HostGBean&quo= t; name=3D"org.apache.geronimo.configs/tomcat7/3.0-SNAPSHOT/= car?ServiceModule=3Dorg.apache.geronimo.configs/tomcat7/3.0-<= /u>SNAPSHOT/car,j2eeType=3DHost,name=3Dbean">
<attribute name=3D"className">org.apache.catalina.co= re.StandardHost</attribute>
<attribute name=3D"initParams">name=3Dwhois.hebeidomains.com =A0 =A0 =A0 =A0appBase=3D
=A0 =A0 =A0 =A0workDir=3Dwork</attribute>
</gbean>
</module>

and geronimo-web,xml is simple:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<web-app xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee= /web-2.0.1"
=A0 =A0 =A0 =A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-ins= tance"
=A0 =A0 =A0 =A0 xsi:schemaLocation=3D"http://geronimo.apac= he.org/xml/ns/j2ee/web-2.0.1
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://geronim= o.apache.org/xml/ns/j2ee/web-2.0.1">
<environment xmlns=3D"http://geronimo.apache.org/xml/ns/= deployment-1.2"
=A0 =A0xsi:schemaLocation=3D"http://geronimo.apache.org/xm= l/ns/deployment-1.2
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://geronimo.apache.= org/xml/ns/deployment-1.2">
<moduleId>
<groupId>hebeidomains</groupId>
<artifactId>whois-web</artifactId>
<version>1.0.1</version>
<type>war</type>
</moduleId>
</environment>
<context-root>/whois</context-root>
<host>who= is.hebeidomains.com</host>
</web-app>

--bcaec51d276603ee3004b0b62438--