[jira] Commented: (GERONIMO-3327) When both tomcat http and https connector gbeans are unloaded, java.net.MalformedURLException occurs while starting server.
[ https://issues.apache.org/jira/browse/GERONIMO-3327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523775 ] Kan Ogawa commented on GERONIMO-3327: - By GERONIMO-3350 fix, this MalformedURLException wasn't thrown. https://issues.apache.org/jira/browse/GERONIMO-3350 > When both tomcat http and https connector gbeans are unloaded, > java.net.MalformedURLException occurs while starting server. > --- > > Key: GERONIMO-3327 > URL: https://issues.apache.org/jira/browse/GERONIMO-3327 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: Tomcat >Affects Versions: 1.x, 2.0-M6 >Reporter: Kan Ogawa > > When both tomcat http and https connector gbeans are unloaded, > java.net.MalformedURLException occurs while running tomcat module startup. > This configuration is, for example, a typical case that other web server ( > Apache HTTP Server, IIS, etc. ) connects geronimo server and processes all > http requests firstly as the main http server. > Tomcat module setting in config.xml: > > > > ${PlanServerHostname} > ${PlanHTTPPortPrimary + > portOffset} > ${PlanHTTPSPortPrimary + > portOffset} > > > ${PlanServerHostname} > ${PlanAJPPortPrimary + > portOffset} > ${PlanHTTPSPortPrimary + > portOffset} > > > ${PlanServerHostname} > ${PlanHTTPSPortPrimary + > portOffset} > > > Stack trace in geronimo log: > 18:30:41,156 ERROR [TomcatWebAppContext] Bad URL to connect to web app > java.net.MalformedURLException: unknown protocol: ajp > at java.net.URL.(URL.java:574) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at > org.apache.geronimo.tomcat.TomcatWebAppContext.getURLFor(TomcatWebAppContext.java:383) > at > org.apache.geronimo.tomcat.TomcatWebAppContext$$FastClassByCGLIB$$776c85b4.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:390) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:689) > at > org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178) > at > org.apache.geronimo.deployment.plugin.local.CommandSupport.addWebURLs(CommandSupport.java:295) > at > org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager.getModules(JMXDeploymentManager.java:177) > at > org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager.getAvailableModules(JMXDeploymentManager.java:118) > at > org.apache.geronimo.deployment.hot.DirectoryHotDeployer.doStart(DirectoryHotDeployer.java:160) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:994) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:551) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) > at > org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:442) > at > org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828) > 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.kern
[jira] Commented: (GERONIMO-3327) When both tomcat http and https connector gbeans are unloaded, java.net.MalformedURLException occurs while starting server.
[ https://issues.apache.org/jira/browse/GERONIMO-3327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525565 ] Kan Ogawa commented on GERONIMO-3327: - Sorry, Donald. I have verified the fix under the following environments: - Apache HTTP Server 2.2.4 - Apache Geronimo Server 2.0.1 that configured the TomcatAJPConnector gbean only startup to Tomcat 6. - Also, Apache HTTP Server connects to Apache Geronimo Server through mod_proxy_ajp module. So I have closed this issue. > When both tomcat http and https connector gbeans are unloaded, > java.net.MalformedURLException occurs while starting server. > --- > > Key: GERONIMO-3327 > URL: https://issues.apache.org/jira/browse/GERONIMO-3327 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: Tomcat >Affects Versions: 1.x, 2.0-M6 >Reporter: Kan Ogawa > Fix For: Verification Required > > > When both tomcat http and https connector gbeans are unloaded, > java.net.MalformedURLException occurs while running tomcat module startup. > This configuration is, for example, a typical case that other web server ( > Apache HTTP Server, IIS, etc. ) connects geronimo server and processes all > http requests firstly as the main http server. > Tomcat module setting in config.xml: > > > > ${PlanServerHostname} > ${PlanHTTPPortPrimary + > portOffset} > ${PlanHTTPSPortPrimary + > portOffset} > > > ${PlanServerHostname} > ${PlanAJPPortPrimary + > portOffset} > ${PlanHTTPSPortPrimary + > portOffset} > > > ${PlanServerHostname} > ${PlanHTTPSPortPrimary + > portOffset} > > > Stack trace in geronimo log: > 18:30:41,156 ERROR [TomcatWebAppContext] Bad URL to connect to web app > java.net.MalformedURLException: unknown protocol: ajp > at java.net.URL.(URL.java:574) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at > org.apache.geronimo.tomcat.TomcatWebAppContext.getURLFor(TomcatWebAppContext.java:383) > at > org.apache.geronimo.tomcat.TomcatWebAppContext$$FastClassByCGLIB$$776c85b4.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:390) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:689) > at > org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178) > at > org.apache.geronimo.deployment.plugin.local.CommandSupport.addWebURLs(CommandSupport.java:295) > at > org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager.getModules(JMXDeploymentManager.java:177) > at > org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager.getAvailableModules(JMXDeploymentManager.java:118) > at > org.apache.geronimo.deployment.hot.DirectoryHotDeployer.doStart(DirectoryHotDeployer.java:160) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:994) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:551) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) > at > org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:442) > at > org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127) > at > org.apache.geronimo.gbean.runtime.GBeanInstan