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 21EEC9FD0 for ; Thu, 2 Feb 2012 00:45:22 +0000 (UTC) Received: (qmail 28761 invoked by uid 500); 2 Feb 2012 00:45:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 28724 invoked by uid 500); 2 Feb 2012 00:45:20 -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 28717 invoked by uid 99); 2 Feb 2012 00:45:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 00:45:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xhhsld@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 00:45:14 +0000 Received: by wgbdq11 with SMTP id dq11so2038123wgb.31 for ; Wed, 01 Feb 2012 16:44:54 -0800 (PST) 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=wH9Ku5fbVzXSPadsZpl7C0ASiShcwa3/8F07Rj4z//w=; b=BmE71/XC6f0yieEfbvB6hPAHoPnaZqp44Fr2B/FznIpWn5kT5Xj3OeLZ9l/r+usDKU jvjC/2gZ7+1eSQa19ClgGT53cMC58xbnz3N6RQAiTTh70Q4f0sfNqbgh+MoKnCS0nnz1 ng0OPw7MoToi+NfZ5qUXboBDR0Tfv3FN6+A2Q= MIME-Version: 1.0 Received: by 10.180.78.233 with SMTP id e9mr14571883wix.0.1328143493925; Wed, 01 Feb 2012 16:44:53 -0800 (PST) Received: by 10.216.169.137 with HTTP; Wed, 1 Feb 2012 16:44:53 -0800 (PST) In-Reply-To: <4F29943B.4050207@sendmail.cz> References: <4F1DBC89.3010504@sendmail.cz> <4F1DE120.2020806@sendmail.cz> <4F29943B.4050207@sendmail.cz> Date: Thu, 2 Feb 2012 08:44:53 +0800 Message-ID: Subject: Re: Virtual Host Configuration From: Ivan To: user@geronimo.apache.org Content-Type: multipart/related; boundary=f46d043c81bc2a8d0004b7f081af X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c81bc2a8d0004b7f081af Content-Type: multipart/alternative; boundary=f46d043c81bc2a8cfd04b7f081ae --f46d043c81bc2a8cfd04b7f081ae Content-Type: text/plain; charset=ISO-8859-1 First, the Geronimo used is 2.2.2-SNAPSHOT ? The version number in the config.xml should be consistent with other versions. There should be more error message in the log file, could you paste it ? 2012/2/2 Radim Kolar > I could not make virtual hosts in any G 2.2 to work: > > configuration is following: (example configuration from wiki does not work > also, it fails with same error) > > --- config.xml --- > > > name="org.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car,j2eeType=Host,name=TomcatVirtualHost_1"> > > name="className">org.apache.catalina.core.StandardHost > name=whois.hebeidomains.com > > appBase= > workDir=work > > > TomcatEngine > > > > > > ---- geronimo-web.xml ---- (valid xml) > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 > > http://schema.filez.com/geronimo22/geronimo-web-2.0.1.xsd"> > > xsi:schemaLocation="http://geronimo.apache.org/xml/ns/deployment-1.2 > > http://schema.filez.com/geronimo22/geronimo-module-1.2.xsd"> > > hebeidomains > whois-web > 1.0.1 > war > > > net.sf.cglib > javax.transaction > javax.xml.soap > org.apache.axiom > > > > > > "http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0" > xsi:schemaLocation="http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0 > http://schema.filez.com/geronimo22/geronimo-tomcat-config-1.0.xsd" > > > whois.hebeidomains.com > > > > > -- and it fails -- > [image: show/hide] [image: 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:562) > at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$7eeef827.startConfiguration(**) > 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.InvalidConfigException: Unknown start exception > at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:531) > at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190) > at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546) > ... 14 more > Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration hebeidomains/whois-web/1.0.1/war failed to start due to the following reasons: > The service J2EEApplication=null,j2eeType=WebModule,name=hebeidomains/whois-web/1.0.1/war did not start because ContainerBase.addChild: start: LifecycleException: java.io.IOException: Context did not start for an unknown reason > > at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:494) > ... 16 more** > > > -- Ivan --f46d043c81bc2a8cfd04b7f081ae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable First, the Geronimo used is 2.2.2-SNAPSHOT ? The version number in the conf= ig.xml should be consistent with other versions.
There should be more e= rror message in the log file, could you paste it ?

2012/2/2 Radim Kolar <hsn@sendmail.cz>
=20 =20 =20
I could not make virtual hosts in any G 2.2 to work:

configuration is following: (example configuration from wiki does not work also, it fails with same error)

--- config.xml ---

<module name=3D"org.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car&quo= t;>
=A0=A0=A0=A0 <gbean gbeanInfo=3D"org.apache.geronimo.tomcat.Hos= tGBean" name=3D"org.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car?Service= Module=3Dorg.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car,j2eeType=3D= Host,name=3DTomcatVirtualHost_1">

=A0=A0=A0=A0=A0 <attribute name=3D"className">org.apache.catalina.core.StandardHost</a= ttribute>
=A0=A0=A0=A0=A0=A0 <attribute name=3D"initParams">name=3Dwhois.hebeidomains.com
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 appBase=3D
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 workDir=3Dwork</attribute>= ;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <reference name=3D"Engine&quo= t;>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <pattern>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <name>T= omcatEngine</name>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </pattern>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </reference>
=A0=A0=A0=A0=A0=A0=A0 </gbean>
=A0=A0=A0 </module>

---- geronimo-web.xml ---- (valid xml)
<?xml version=3D"1.0" encoding=3D"UTF-8"?> <web-app xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/we= b-2.0.1"
=A0=A0=A0 =A0=A0=A0 =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-= instance"
=A0=A0=A0 =A0=A0=A0 =A0xsi:schemaLocation=3D"http://geronimo.apache.org/xml/ns/j2e= e/web-2.0.1
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 http://schema.filez.com/geronimo22/geronimo-web-2.0.1.xsd<= /a>">
=A0=A0=A0 <environment xmlns=3D
"http://geronimo.apache.org/xml/ns/deployment-1.2"= ;
=A0=A0=A0 xsi:schemaLocation=3D"http://geronimo.apache.org/xml/ns/deploy= ment-1.2
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 http://schema.filez.com/geronimo22/geronimo-module-1.2.xs= d">
=A0=A0=A0=A0=A0=A0=A0 <moduleId>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <groupId>hebeidomains</group= Id>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <artifactId>whois-web</artif= actId>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <version>1.0.1</version><= br> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <type>war</type>
=A0=A0=A0=A0=A0=A0=A0 </moduleId>
=A0=A0=A0=A0=A0=A0=A0 <non-overridable-classes>
=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 <filter>net.sf.cglib</filter&g= t;
=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 <filter>javax.transaction</fil= ter>
=A0=A0=A0 =A0=A0=A0 <filter>javax.xml.soap</filter>
=A0=A0=A0 =A0=A0=A0 <filter>org.apache.axiom</filter>
=A0=A0=A0=A0=A0=A0=A0 </non-overridable-classes>
=A0=A0=A0=A0=A0=A0=A0 <inverse-classloading/>
=A0=A0=A0 </environment>
=A0=A0=A0 <context-root></context-root>
=A0=A0=A0 <container-config>
=A0=A0=A0=A0=A0 <tomcat xmlns=3D"http://geronimo.apache.org/xml/ns/web/tomcat/c= onfig-1.0"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 xsi:schemaLocation=3D"http://geronimo.apache.org/xml/ns/web/tomca= t/config-1.0 http://schema.filez.com/geronimo22/geronimo-tomcat-config-1.0.xsd"= >
=A0=A0=A0=A0=A0 <host>whois.hebeidomains.com</host>
=A0=A0=A0=A0=A0 </tomcat>
=A0=A0=A0 </container-config>
</web-app>

-- and it fails --
3D"show/hide" 3D"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.startConfi=
guration(SimpleConfigurationManager.java:562)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfi=
guration(SimpleConfigurationManager.java:527)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja=
va:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso=
rImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflec=
tionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.=
java:130)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja=
va:816)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperatio=
nInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Proxy=
MethodInterceptor.java:96)
	at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$7eeef827.sta=
rtConfiguration()
	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartComma=
nd.java:67)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknow=
n start exception
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationG=
Beans(ConfigurationUtil.java:531)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Kern=
elConfigurationManager.java:190)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfi=
guration(SimpleConfigurationManager.java:546)
	... 14 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configu=
ration hebeidomains/whois-web/1.0.1/war failed to start due to the followin=
g reasons:
  The service J2EEApplication=3Dnull,j2eeType=3DWebModule,name=3Dhebeidomai=
ns/whois-web/1.0.1/war did not start because ContainerBase.addChild: start:=
 LifecycleException:  java.io.IOException: Context did not start for an unk=
nown reason

	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationG=
Beans(ConfigurationUtil.java:494)
	... 16 more




--
Ivan
--f46d043c81bc2a8cfd04b7f081ae-- --f46d043c81bc2a8d0004b7f081af Content-Type: image/gif; name="arrow_expanded.gif" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: 1eaa944ba6cda2de_0.1.1 R0lGODlhEAAQALMAAICAgP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AP///yH5BAEAAAEALAAAAAAQABAAQAQiMMhJKxU2YLtrz2AoSt9Uktk5rqLgvm8qcxqszV4K22wP RgA7 --f46d043c81bc2a8d0004b7f081af Content-Type: image/gif; name="msg_error.gif" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: 1eaa944ba6cda2de_0.1.2 R0lGODlhEAAQALP/AP///8wAM8DAwJkAAIAAAP9mZv+Zmf/MzMzMzJmZmTMzMwAAAAAAAAAAAAAA AAAAACH5BAEAAAIALAAAAAAQABAAQARIUMhJq0ihgFMOKMFgjSSmcR6oKAjpTlhWgENbDXO3zQFh wwEZLfF7GY8TxGC5LCYHQl7tNvMYdj2q7vrprZ65XIhlSTCXREsEADs= --f46d043c81bc2a8d0004b7f081af--