robertd - 2012-05-23

Hi, please help. the error below suddenly appeared. what happens is the client tries to log in and is just redirected to a blank page.

I already checked the the josso-agent-config.properties and nothing has changed, it is still the same one that we use previously where we had no problems. i also checked the context root defined in the glasshfish server and it is the same one as servicesWebContext.

Please see below for logs:

[#|2012-05-23T09:56:35.869+0800|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=106;_ThreadName=Thread-1;|ERROR - SxiServletSSOAgentFilter   - Outbound relaying failed for assertion id [55AB29BBB585A1EB], no Principal found.
|#]
[#|2012-05-23T09:56:35.870+0800|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=106;_ThreadName=Thread-1;|ERROR - SxiServletSSOAgentFilter   - Error in Processing: /sso
javax.servlet.ServletException: No Principal found. Verify your SSO Agent Configuration!
        at com.ccti.josso.agent.SxiServletSSOAgentFilter.doFilter(SxiServletSSOAgentFilter.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:662)
|#]

josso-agent-properties:

josso.agent.session.access.mininterval=1000
josso.agent.gateway.login.url=http://172.22.52.92:8080/sso-gateway/signon/login.do
josso.agent.gateway.logout.url=http://172.22.52.92:8080/sso-gateway/signon/logout.do
josso.agent.gateway.service.locator.endpoint=172.22.52.92:8080
josso.agent.gateway.service.locator.services.context=sso-gateway
josso.agent.gateway.logoutBackToURL=http://172.22.52.92:8080/sso/login

josso.agent.sso.id=sso

josso.agent.sso.context=/sso

josso.agent.rib.id=fo

josso.agent.rib.context=/fo

josso.agent.clg.id=clg

josso.agent.clg.context=/

josso-agent-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<s:beans xmlns:s="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<s:bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<s:property name="locations">
<s:list>
<!- Location of configuration properties files. ->
<!- Change the following values on client's demand. ->
<s:value>classpath:josso-agent-config.properties</s:value>
</s:list>
</s:property>
<s:property name="ignoreResourceNotFound" value="true"/>
<s:property name="ignoreUnresolvablePlaceholders" value="true"/>
</s:bean>

<s:bean id="agent" class="com.ccti.josso.agent.SxiServletNativeSSOAgent">
<s:property name="sessionAccessMinInterval" value="${josso.agent.session.access.mininterval}"/>
<s:property name="gatewayLoginUrl" value="${josso.agent.gateway.login.url}"/>
<s:property name="gatewayLogoutUrl" value="${josso.agent.gateway.logout.url}"/>
<s:property name="automaticLoginStrategies">
<s:list>
<s:ref bean="defaultAutomaticLoginStrategy"/>
</s:list>
</s:property>
<s:property name="configuration" ref="ssoAgentConfiguration"/>
<s:property name="gatewayServiceLocator" ref="gatewayServiceLocator"/>
<s:property name="parametersBuilders">
<s:list>
<s:bean class="org.josso.agent.http.VHostParametersBuilder"/>
<s:bean class="org.josso.agent.http.AppContextParametersBuilder"/>
</s:list>
</s:property>
<s:property name="logoutBackToURL" value="${josso.agent.gateway.logoutBackToURL}"/>
</s:bean>

<s:bean id="defaultAutomaticLoginStrategy" class="org.josso.agent.http.DefaultAutomaticLoginStrategy">
<s:constructor-arg value="SUFFICIENT"/>
</s:bean>

<s:bean id="ssoAgentConfiguration" class="org.josso.agent.SSOAgentConfigurationImpl">
<s:property name="ssoPartnerApps">
<s:list>
<s:bean class="org.josso.agent.SSOPartnerAppConfig">
<s:property name="id" value="${josso.agent.sso.id}"/>
<s:property name="context" value="${josso.agent.sso.context}"/>
</s:bean>
<s:bean class="org.josso.agent.SSOPartnerAppConfig">
<s:property name="id" value="${josso.agent.clg.id}"/>
<s:property name="context" value="${josso.agent.clg.context}"/>
</s:bean>
<s:bean class="org.josso.agent.SSOPartnerAppConfig">
<s:property name="id" value="${josso.agent.rib.id}"/>
<s:property name="context" value="${josso.agent.rib.context}"/>
</s:bean>
</s:list>
</s:property>
</s:bean>

<s:bean id="gatewayServiceLocator" class="org.josso.gateway.WebserviceGatewayServiceLocator">
<s:property name="endpoint" value="${josso.agent.gateway.service.locator.endpoint}"/>
<s:property name="servicesWebContext" value="${josso.agent.gateway.service.locator.services.context}"/>
</s:bean>
</s:beans>