You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by robin <ro...@adm-soft.com> on 2010/08/15 06:37:02 UTC
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
Robin 谢文彬
ADM Science & Technology Co.,Ltd.
Tel : 86-10-8260 7022/3/6/8 ext 8812
Fax : 86-10-8260 7022/23/26/28/ext 8880
E-Mail : robin@adm-soft.com
No.3 Dan Ling Road Hai Dian District,Beijing 100080
中国.北京市海淀区丹棱街3号中国电子大厦B座6层03-05室 100080
Re: Invalid direct reference to form login page while cluster
Posted by Woonsan Ko <wo...@yahoo.com>.
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 <ro...@adm-soft.com>
> To: jetspeed-user <je...@portals.apache.org>
> 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
>
>
>
> Robin 谢文彬
> ADM Science & Technology Co.,Ltd.
> Tel : 86-10-8260 7022/3/6/8 ext 8812
> Fax : 86-10-8260 7022/23/26/28/ext 8880
> E-Mail : robin@adm-soft.com
> No.3 Dan Ling Road Hai Dian District,Beijing 100080
> 中国.北京市海淀区丹棱街3号中国电子大厦B座6层03-05室 100080
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Re: Re: Invalid direct reference to form login page while cluster
Posted by robin <ro...@adm-soft.com>.
hi all
OK, it works, I can login as admin, add apache server config as follow, i added red lines then test ok. thanks you very much
ProxyPass / balancer://cluster/ lbmethod=byrequests stickysession=JSESSIONID nofailover=Off timeout=5 maxattempts=3
ProxyPassReverse / balancer://cluster/
<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>
2010-08-26
Robin
发件人: Woonsan Ko
发送时间: 2010-08-26 02:42:43
收件人: Jetspeed Users List
抄送:
主题: Re: Re: Invalid direct reference to form login page while cluster
Can you test if your load balancing configuration provides sticky session correctly?
For example, you can add different jsp pages with same name to each tomcat node to see whether it always shows only either one consistently for a browser when you access the url for the page.
-Woonsan
--- On Tue, 8/24/10, robin <ro...@adm-soft.com> wrote:
> From: robin <ro...@adm-soft.com>
> Subject: Re: Re: Invalid direct reference to form login page while cluster
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, August 24, 2010, 5:33 AM
> 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 wenbin988@sina.com
> 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 <ro...@adm-soft.com>
> > To: jetspeed-user <je...@portals.apache.org>
> > 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Re: Invalid direct reference to form login page while cluster
Posted by Woonsan Ko <wo...@yahoo.com>.
Can you test if your load balancing configuration provides sticky session correctly?
For example, you can add different jsp pages with same name to each tomcat node to see whether it always shows only either one consistently for a browser when you access the url for the page.
-Woonsan
--- On Tue, 8/24/10, robin <ro...@adm-soft.com> wrote:
> From: robin <ro...@adm-soft.com>
> Subject: Re: Re: Invalid direct reference to form login page while cluster
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, August 24, 2010, 5:33 AM
> 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 wenbin988@sina.com
> 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 <ro...@adm-soft.com>
> > To: jetspeed-user <je...@portals.apache.org>
> > 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Re: Invalid direct reference to form login page while cluster
Posted by robin <ro...@adm-soft.com>.
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 wenbin988@sina.com
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 <ro...@adm-soft.com>
> To: jetspeed-user <je...@portals.apache.org>
> 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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org