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 <[email protected]> > 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="org.apache.geronimo.configs/tomcat6/2.2.2-SNAPSHOT/car"> > <gbean gbeanInfo="org.apache.geronimo.tomcat.HostGBean" > 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"> > > <attribute > name="className">org.apache.catalina.core.StandardHost</attribute> > <attribute name="initParams">name=whois.hebeidomains.com > > appBase= > workDir=work</attribute> > <reference name="Engine"> > <pattern> > <name>TomcatEngine</name> > </pattern> > </reference> > </gbean> > </module> > > ---- geronimo-web.xml ---- (valid xml) > <?xml version="1.0" encoding="UTF-8"?> > <web-app > xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"<http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<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"> > <environment > xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"<http://geronimo.apache.org/xml/ns/deployment-1.2> > xsi:schemaLocation="http://geronimo.apache.org/xml/ns/deployment-1.2 > > http://schema.filez.com/geronimo22/geronimo-module-1.2.xsd"> > <moduleId> > <groupId>hebeidomains</groupId> > <artifactId>whois-web</artifactId> > <version>1.0.1</version> > <type>war</type> > </moduleId> > <non-overridable-classes> > <filter>net.sf.cglib</filter> > <filter>javax.transaction</filter> > <filter>javax.xml.soap</filter> > <filter>org.apache.axiom</filter> > </non-overridable-classes> > <inverse-classloading/> > </environment> > <context-root></context-root> > <container-config> > <tomcat xmlns= > "http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0"<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"<http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0http://schema.filez.com/geronimo22/geronimo-tomcat-config-1.0.xsd> > > > <host>whois.hebeidomains.com</host> > </tomcat> > </container-config> > </web-app> > > -- 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
<<arrow_expanded.gif>>
<<msg_error.gif>>
