geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liangkun (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (GERONIMO-4855) Clustering can not work when the application needs login information
Date Wed, 09 Sep 2009 07:47:57 GMT

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

liangkun edited comment on GERONIMO-4855 at 9/9/09 12:47 AM:
-------------------------------------------------------------

I have take 2 kinds of clustering: one is Tomcat native clustering and another is WADI clustering.

1.Tomcat native clustering is referred JIRA:GERONIMO-4804:
(1)On NODE-A and NODE-B deploy the file demo-realm.xml and file-realm-demo-2.1.1.2.war.
(2)Configure the http server referred the DOC http://cwiki.apache.org/GMOxDOC22/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
PS:
JkMount /console/* ajp13  should be changed to   JkMount /demo/* ajp13
(3)Access http://&lt;http server ip>/demo/protect/hello.html and input metro as the
name and mouse as the password.

2. WADI clustering

(1) Made the following changes to Geronimo A
   (1.1) For var\config\config-substitutions.properties
       clusterNodeName=NODE --> clusterNodeName=NODE-A
   (1.2) For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car
-----------------------------------------------------------------
        <gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=GBean,name=NodeInfoB"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NODE-B</attribute>
            <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">localhost</ns:property>
                    <ns:property name="port">1109</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>
-----------------------------------------------------------------

(2). Made the following changes to Geronimo B
   (2.1) For var\config\config-substitutions.properties
       clusterNodeName=NODE --> clusterNodeName=NODE-B
       PortOffset=0 --> PortOffset=10
   (2.2) For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car
-----------------------------------------------------------------
        <gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=GBean,name=NodeInfoA"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NODE-A</attribute>
            <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">localhost</ns:property>
                    <ns:property name="port">1099</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>
-----------------------------------------------------------------

(3). Start A and B

(4). Run the following commands in PATH_A\bin
   (4.1) deploy.bat/sh --user system --password manager start org.apache.geronimo.configs/farming//car
   (4.2) deploy.bat/sh --user system --password manager --port 1109 start org.apache.geronimo.configs/farming//car
(5)Deploy the demo application
   deploy.bat--user system --password manager deploy --targets org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore
file-realm-demo-2.1.1.2.war demo-realm.xml

(6) Configure the http server referred the DOC http://cwiki.apache.org/GMOxDOC22/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
PS:JkMount /console/* ajp13   should be changed to JkMount /demo/* ajp13

(7)Access http://&lt;http server ip>/demo/protect/hello.html and input metro as the
name and mouse as the password.



Result: There are error! 

      was (Author: ben.liang):
    I have take 2 kinds of clustering: one is Tomcat native clustering and another is WADI
clustering.

1.Tomcat native clustering is referred JIRA:GERONIMO-4804:
(1)On NODE-A and NODE-B deploy the file demo-realm.xml and file-realm-demo-2.1.1.2.war.
(2)Configure the http server referred the DOC http://cwiki.apache.org/GMOxDOC22/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
PS:
JkMount /console/* ajp13  should be changed to   JkMount /demo/* ajp13
(3)Access http://&lt;http server ip>/demo/protect/hello.html and input metro as the
name and mouse as the password.

2. WADI clustering

(1) Made the following changes to Geronimo A
   (1.1) For var\config\config-substitutions.properties
       clusterNodeName=NODE --> clusterNodeName=NODE-A
   (1.2) For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car
-----------------------------------------------------------------
        <gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=GBean,name=NodeInfoB"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NODE-B</attribute>
            <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">localhost</ns:property>
                    <ns:property name="port">1109</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>
-----------------------------------------------------------------

(2). Made the following changes to Geronimo B
   (2.1) For var\config\config-substitutions.properties
       clusterNodeName=NODE --> clusterNodeName=NODE-B
       PortOffset=0 --> PortOffset=10
   (2.2) For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car
-----------------------------------------------------------------
        <gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=GBean,name=NodeInfoA"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NODE-A</attribute>
            <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">localhost</ns:property>
                    <ns:property name="port">1099</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>
-----------------------------------------------------------------

(3). Start A and B

(4). Run the following commands in PATH_A\bin
   (4.1) deploy.bat/sh --user system --password manager start org.apache.geronimo.configs/farming//car
   (4.2) deploy.bat/sh --user system --password manager --port 1109 start org.apache.geronimo.configs/farming//car
(5)Deploy the demo application
   deploy.bat--user system --password manager deploy --targets org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore
file-realm-demo-2.1.1.2.war demo-realm.xml

(6) Configure the http server referred the DOC http://cwiki.apache.org/GMOxDOC22/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
PS:JkMount /console/* ajp13
# Sets a mount point from a context to a Tomcat worker. In this case will allow access (forward
the request) to the console.
should be changed to JkMount /demo/* ajp13

(7)Access http://&lt;http server ip>/demo/protect/hello.html and input metro as the
name and mouse as the password.



Result: There are error! 
  
> Clustering can not work when the application needs login information
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-4855
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4855
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Clustering
>    Affects Versions: 2.2
>         Environment: windows sp2
> jdk1.6
>            Reporter: liangkun
>         Attachments: demo-realm.xml, file-realm-demo-2.1.1.2.war
>
>
> When I using WADI clustering and tomcat native clustering there are the same problem:
> If the application on the different node needs the security information to access some
page then firefox gives the following error information:
> HTTP Status 404 - /demo/protect/j_security_check
> type Status report
> message /demo/protect/j_security_check
> description The requested resource (/demo/protect/j_security_check) is not available.
> so it is likely clustering can not access any resource which need security check.

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


Mime
View raw message