Hi Woonsan Ko 
  i have reconfiged apache + 2 tomcat cluster, does not using https

 now , i get error message while i try to login as admin, it seems can't get 
the login user name. if just run apache + one tomcat server, login success

 
2010-8-24 11:22:01 org.apache.catalina.realm.JAASRealm authenticate
warn: Login exception authenticating username "null"
javax.security.auth.login.LoginException: The user null does not exist.
        at org.apache.jetspeed.security.impl.DefaultLoginModule.login(DefaultLog
inModule.java:258)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)


apache config:
 
in httpd.confg
------------------------------------------------------------------
ProxyRequests Off
<proxy balancer://cluster>
BalancerMember ajp://127.0.0.1:8009 loadfactor=1 route=jvm8009
BalancerMember ajp://127.0.0.1:9009 loadfactor=1 route=jvm9009
</proxy>

in httpd-vhosts.config
--------------------------------------------------------------- 
<VirtualHost *:8001>
    ServerAdmin [email protected]
    ServerName localhost
    ServerAlias localhost
    ProxyPass / balancer://cluster/ stickysession=jsessionid nofailover=On
    ProxyPassReverse / balancer://cluster/
</VirtualHost>

tomcat config
--------------------------------------------------------------------------

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
                 channelSendOptions="8">
          <Manager className="org.apache.catalina.ha.session.DeltaManager"
                   expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true"/>
          <Channel className="org.apache.catalina.tribes.group.GroupChannel">
            <Membership 
className="org.apache.catalina.tribes.membership.McastService"
                        address="228.0.0.4"
                        port="45564"
                        frequency="500"
                        dropTime="3000"/>
            <Receiver 
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                      address="auto"
                      port="4001"
                      autoBind="100"
                      selectorTimeout="5000"
                      maxThreads="6"/>
            <Sender 
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
              <Transport 
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
            </Sender>
            <Interceptor 
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
            <Interceptor 
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
          </Channel>
          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
                 filter=""/>
          <Valve 
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
          <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>
          <ClusterListener 
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
          <ClusterListener 
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
        </Cluster>  


 thanks

2010-08-24 



Robin 



发件人: Woonsan Ko 
发送时间: 2010-08-17  00:55:41 
收件人: Jetspeed Users List 
抄送: 
主题: Re: Invalid direct reference to form login page while cluster 
 
Hi Robin,
Did you configure the load balancing in sticky session mode?
Or do you use different schemes during login requests (http and https)? I think 
you can trace all request-response with a tool like FireBug..
-Woonsan
----- Original Message ----
> From: robin <[email protected]>
> To: jetspeed-user <[email protected]>
> Sent: Sat, August 14, 2010 9:37:02 PM
> Subject: Invalid direct reference to form login page while cluster
> 
> i created  j2 customer application by jetspeed2 architype, then deployed it  
>into tomcat cluster env, i can access the home page, but while try to login in 
> 
>as admin (using login portlet), get error Http status 400, Invalid direct  
>reference to form login page, how to fix it.
> 
> i have deploy a simple web  application to test login, it success , but 
>jetspeed application can't  login
> 
> 2010-08-15 
> 

      
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to