From user-return-15808-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Wed Nov 2 01:49:01 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 986C0784B for ; Wed, 2 Nov 2011 01:49:01 +0000 (UTC) Received: (qmail 86519 invoked by uid 500); 2 Nov 2011 01:49:01 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 86487 invoked by uid 500); 2 Nov 2011 01:49:01 -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 86480 invoked by uid 99); 2 Nov 2011 01:49:01 -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:49:01 +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 xhhsld@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 01:48:56 +0000 Received: by wwf22 with SMTP id 22so3952164wwf.1 for ; Tue, 01 Nov 2011 18:48:34 -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=xxpCTldii3eoIUKIcdgg4lQCeac7jCf/3ZG8lH3j5QQ=; b=D/hK6hdJdoX0ZZLB2VpAxQYUYdcJyzOmliuKRWogdV3dNspF9gwvr3Zm4otOucAx48 qJfwzhPtQS+wF6JSo97LD6uMlbHWRoZLgAItmJ+8FuX5AOguWTmGDsmTjb4k7H6shPSV kLhKD4W++1hWSAKSNL04Xn0T9lwxuy6n5bFN4= MIME-Version: 1.0 Received: by 10.216.158.140 with SMTP id q12mr671215wek.8.1320198514770; Tue, 01 Nov 2011 18:48:34 -0700 (PDT) Received: by 10.216.88.82 with HTTP; Tue, 1 Nov 2011 18:48:34 -0700 (PDT) In-Reply-To: References: <4EB0879E.5020706@sendmail.cz> Date: Wed, 2 Nov 2011 09:48:34 +0800 Message-ID: Subject: Re: Grails application in Geronimo 3 From: Ivan To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=0016367fb02781864104b0b6ab5b --0016367fb02781864104b0b6ab5b Content-Type: text/plain; charset=ISO-8859-1 Hmm, virtual server is supported in Geronimo 3.0. Before I checking the exception, it will be better if you could directly configure the virtual host in the server.xml file in the /var/catalina directory. >From Geronimo 2.2, we are trying to make the configurations easier, for the Tomcat assembly, almost the same syntax of server.xml is used to configure the Tomcat container. The most difference with Tomcat is that it is not allowed to configure web application context in that file. BTW, due to the timeline of the incoming 3.0-beta-1 release, I did not have chance to merge the root context changes to that build. not sure it will affect your decision. Thanks. 2011/11/2 chi runhua > 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 >> >> > > -- Ivan --0016367fb02781864104b0b6ab5b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hmm, virtual server is supported in Geronimo 3.0.=A0
Before I checking = the exception, it will be better if you could directly configure the virtua= l host in the server.xml file in the /var/catalina directory.
From Gero= nimo 2.2, we are trying to make the configurations easier, for the Tomcat a= ssembly, almost the same syntax of server.xml is used to configure the Tomc= at container. The most difference with Tomcat is that it is not allowed to = configure web application context in that file.

BTW, due to the timeline of the incoming 3.0-beta-1 release, I did not = have chance to merge the root context changes to that build. not sure it wi= ll affect your decision.
Thanks.

2011/= 11/2 chi runhua <chirunhua@gmail.com>
IIRC, virtual host is not supported in G3.0= yet.

I might be wrong...

Jeff<= div>


2011/11/2 R= adim Kolar <hsn@sendmail.cz>
I have problem running grails application in= G3. I am trying it to deploy into virtual hosts using configuration from g= eronimo 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>




--
Ivan
--0016367fb02781864104b0b6ab5b--