-
Oct 5th, 2011, 04:25 PM
#1
Spring Security with SAML integration
Hi ,
I'm new to SAML, and my project needs SAML with Spring security implementation.
I did download the code from https://jira.springsource.org/browse/SES-26
and i included following list of jars for the web project under main source folder -> spring-security-se-security/spring-security-saml .
bcprov-ext-jdk15-1.40.jar
commons-codec-1.3.jar
commons-collections.jar
commons-collections-3.1.jar
commons-digester.jar
commons-httpclient-3.1.jar
commons-lang-2.4.jar
commons-logging.jar
easymock.jar
icu4j_3_4_1.jar
jargs-1.0.jar
jcip-annotations-1.0.jar
jcl-over-slf4j-1.5.5.jar
joda-time-1.5.2.jar
jsf-ibm.jar
jstl-1.2.jar
log4j-1.2.15.jar
log4j-over-slf4j-1.5.5.jar
not-yet-commons-ssl-0.3.9.jar
opensaml-2.4.1.jar
openws-1.4.0.jar
org.springframework.web.servlet-3.0.3.RELEASE.jar
serializer-2.9.1.jar
slf4j-api-1.5.6.jar
slf4j-jdk14-1.5.6.jar
slf4j-nop-1.5.6.jar
spring-aop-3.0.3.RELEASE.jar
spring-asm-3.0.3.RELEASE.jar
spring-beans-3.0.3.RELEASE.jar
spring-context-3.0.3.RELEASE.jar
spring-core-3.0.3.RELEASE.jar
spring-expression-3.0.3.RELEASE.jar
Spring SAML Core.jar
spring-security-config-3.0.3.RELEASE.jar
spring-security-core-3.0.3.RELEASE.jar
spring-security-web-3.0.3.RELEASE.jar
spring-test-3.0.3.RELEASE.jar
spring-tx-3.0.3.RELEASE.jar
spring-web-3.0.3.RELEASE.jar
velocity-1.5.jar
xalan-2.7.1.jar, xmlunit-1.2.jar
xercesImpl-2.9.1.jar, easymock.jar
xml-apis-2.9.1.jar
xmlsec-1.4.2.jar
xmltooling-1.3.1.jar,
xmlunit-1.2.jar , spring-test-3.0.3.RELEASE.jar,
I'm working RSA 7.0.0.8 and Websphere 6.1 server
able to start the server and getting the following error:
20:37:063 EDT] 0000001f AdminHelper A ADMN1009I: An attempt is made to start the SpringSaml2WebEAR application.
[10/6/11 9:20:37:095 EDT] 0000001f ApplicationMg A WSVR0200I: Starting application: SpringSaml2WebEAR
[10/6/11 9:20:37:095 EDT] 0000001f ApplicationMg A WSVR0204I: Application: SpringSaml2WebEAR Application build level: Unknown
[10/6/11 9:20:39:877 EDT] 0000001f WebGroup A SRVE0169I: Loading Web Module: Spring Security SAML.
[10/6/11 9:20:40:034 EDT] 0000001f WebApp A SRVE0180I: [SpringSaml2WebEAR#SpringSaml2Web.war] [/SpringSaml2Web] [Servlet.LOG]: Initializing Spring root WebApplicationContext
[10/6/11 9:20:40:049 EDT] 0000001f ContextLoader I org.springframework.web.context.ContextLoader initWebApplicationContext Root WebApplicationContext: initialization started
[10/6/11 9:20:40:112 EDT] 0000001f XmlWebApplica I org.springframework.context.support.AbstractApplic ationContext prepareRefresh Refreshing Root WebApplicationContext: startup date [Thu Oct 06 09:20:40 EDT 2011]; root of context hierarchy
[10/6/11 9:20:40:159 EDT] 0000001f XmlBeanDefini I org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions Loading XML bean definitions from class path resource [resources/security/securityContext.xml]
[10/6/11 9:20:42:832 EDT] 0000001f HttpSecurityB I org.springframework.security.config.http.HttpSecur ityBeanDefinitionParser checkFilterChainOrder Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityC ontextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0;
destroyMethodName=null, order = 1800, <org.springframework.security.web.access.intercept .FilterSecurityInterceptor#0>, order = 1900]
[10/6/11 9:20:44:536 EDT] 0000001f ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.opensaml.xml.parse.BasicParserPool$DocumentBui lderProxy.parse(BasicParserPool.java:671)
at org.opensaml.xml.parse.BasicParserPool.parse(Basic ParserPool.java:215)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigura tor.java:141)
at org.opensaml.DefaultBootstrap.initializeXMLTooling (DefaultBootstrap.java:186)
at org.opensaml.PaosBootstrap.bootstrap(PaosBootstrap .java:28)
at org.springframework.security.saml.SAMLBootstrap.po stProcessBeanFactory(SAMLBootstrap.java:45)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsS ystem(ContextManagerImpl.java:4263)
at com.ibm.ws.security.core.SecurityContext.runAsSyst em(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:1466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java :62)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java :265)
at javax.management.modelmbean.RequiredModelMBean.inv okeMethod(RequiredModelMBean.java:1092)
at javax.management.modelmbean.RequiredModelMBean.inv oke(RequiredModelMBean.java:973)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(Admin ServiceImpl.java:1106)
at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(Admi nServiceImpl.java:999)
at com.ibm.ws.management.connector.AdminServiceDelega tor.invoke(AdminServiceDelegator.java:139)
at com.ibm.ws.management.connector.rmi.RMIConnectorSe rvice.invoke(RMIConnectorService.java:179)
at com.ibm.ws.management.connector.rmi._RMIConnectorS ervice_Tie.invoke(_RMIConnectorService_Tie.java:39 5)
at com.ibm.ws.management.connector.rmi._RMIConnectorS ervice_Tie._invoke(_RMIConnectorService_Tie.java:1 60)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHa ndler(ServerDelegate.java:621)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerD elegate.java:474)
at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.j ava:2703)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java :2577)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl. java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.ja va:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
[10/5/11 16:43:35:142 EDT] 00000013 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet saml: java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.opensaml.xml.parse.BasicParserPool$DocumentBui lderProxy.parse(BasicParserPool.java:671)
at org.opensaml.xml.parse.BasicParserPool.parse(Basic ParserPool.java:215)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigura tor.java:141)
at org.opensaml.DefaultBootstrap.initializeXMLTooling (DefaultBootstrap.java:186)
at org.opensaml.PaosBootstrap.bootstrap(PaosBootstrap .java:28)
at org.springframework.security.saml.SAMLBootstrap.po stProcessBeanFactory(SAMLBootstrap.java:45)
at org.springframework.context.support.AbstractApplic ationContext.invokeBeanFactoryPostProcessors(Abstr actApplicationContext.java:663)
at org.springframework.context.support.AbstractApplic ationContext.invokeBeanFactoryPostProcessors(Abstr actApplicationContext.java:653)
Looking forward for the reply.
Thanks,
Sanna
Last edited by Sann; Oct 6th, 2011 at 08:44 AM.
Reason: updated error msg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules