[ http://issues.apache.org/jira/browse/GERONIMO-1098?page=all ]

Vamsavardhana Reddy updated GERONIMO-1098:
------------------------------------------

    Attachment: tomcatConnectorName.patch

tomcatConnectorName.patch:  Fixes the problem by setting the "name" attribute 
when the connector GBean is created.

> Tomcat web connector fails to start due to missing name attribute
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1098
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1098
>      Project: Geronimo
>         Type: Bug
>   Components: Tomcat
>     Versions: 1.0-M5
>     Reporter: Vamsavardhana Reddy
>     Priority: Minor
>  Attachments: tomcatConnectorName.patch
>
> Tomcat HTTP Web Connector created by the API 
> org.apache.geronimo.console.util.PortletManager.createWebConnector(actionRequest,
>  managerName, containerName, name, protocol, host, port)  fails to start on 
> calling startRecursive() on the connector gbean.  Error seems to be due to a 
> "null" value in the "name" attribute of the GBean.  Log shows the following 
> error.
> 14:53:47,471 ERROR [GBeanInstanceState] Error while starting; GBean is now in 
> the FAILED state: 
> objectName="geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Tomcat,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebConnector-HTTP-T3000"
> java.lang.IllegalArgumentException: name cannot be null.
>       at 
> org.apache.geronimo.tomcat.ConnectorGBean.<init>(ConnectorGBean.java:77)
>                      ...
>       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:856)
>                      ...
>       at 
> org.apache.geronimo.tomcat.TomcatWebConnector$$EnhancerByCGLIB$$d52b2a39.startRecursive(<generated>)
>       at 
> org.apache.geronimo.console.webmanager.ConnectorPortlet.processAction(ConnectorPortlet.java:144)
>                      ...
>       at java.lang.Thread.run(Unknown Source)
> Ultimate reason seems to be that TomcatManagerImpl.addConnector(String 
> containerObjectName, String uniqueName, String protocol, String host, int 
> port) does not set the "name" GBean attribute of the connector when the 
> connector is created.  Though the connector is created successfully without 
> this attribute, org.apache.geronimo.tomcat.ConnectorGBean constructor throws 
> an Exception while attempting to start the connector.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to