You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2009/07/13 06:53:14 UTC

[jira] Commented: (GERONIMO-4733) Unable to starting to configure Apache mod_jk

    [ https://issues.apache.org/jira/browse/GERONIMO-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730213#action_12730213 ] 

Shawn Jiang commented on GERONIMO-4733:
---------------------------------------

This did not happen before because if there's a valid ajp connector GBean.  The error code(AJPHandler.java:62) did not get executed at all. In the latest tomcat trunk build.  There's not ajp connector GBean by default.  which results in this JIRA.

You can also recreate this on 2.1 branch by deleting AJP connector before access "Apache HTTP"--->"Get Started".


About the patch:

1, TomcatWebConnector inherits NetworkConnector but not WebConnector.   We should use NetworkConnector since there's only NetworkConnector method getPort()  needed here.

2, Somehow, the webmanager.getConnectors() might return a connector array that only contains null elements.  So we need to check null for connectors[0].

3, After fixing the problems above, there will be another EL parsing error.  "Can't find property "configId" in org.apache.geronimo.console.apache.jk.BaseApacheHandler.WebAppData. "  Actually, there's only "parentConfigId" in org.apache.geronimo.console.apache.jk.BaseApacheHandler.WebAppData but not "configId".    I just correct configId to parentconfigId to resolve this.







> Unable to starting to configure Apache mod_jk 
> ----------------------------------------------
>
>                 Key: GERONIMO-4733
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4733
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.2
>         Environment: Windows XP SP2, IE6.0
>            Reporter: Shiny Cheng
>            Assignee: Shawn Jiang
>             Fix For: 2.2
>
>         Attachments: G4733_21.patch, G4733_trunk.patch
>
>
> From Console Navigation, click "Apache HTTP" and then "Get Started". The following exception will appear, which means this function doesn't work correctly.
> java.lang.ClassCastException: [Lorg.apache.geronimo.tomcat.connector.TomcatWebConnector; cannot be cast to [Lorg.apache.geronimo.management.geronimo.WebConnector;
> 	org.apache.geronimo.console.apache.jk.AJPHandler.actionBeforeView(AJPHandler.java:62)
> 	org.apache.geronimo.console.MultiPagePortlet.processAction(MultiPagePortlet.java:112)
> 	org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
> 	org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
> 	org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
> 	org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:217)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:121)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:65)
> 	org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:125)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.