Hi, currently I am trying to make simple java code to make SAML Attribute query to the
OpenSSO in
http://localhost:8080/opensso/SAMLSOAPReceiver, which is deployed in my machine by Glassfish v2, I also run the java code
in my machine as well
To extract the attribute, I also have made implementation of AttributeMapper class, which
is modification of DefaultAttributeMapper class, and I have compiled it, make the jar file,
and placed it under:
<glassfish_install_dir>/lib/
<glassfish_install_dir>/domain/domain1/applications/j2ee-modules/opensso/WEB-INF/lib/
The name of the class which I made is SAMLAttributeMapper.class
The name of package under which the class is wrapped is saml_query_baru
I also have configured OpenSSO, in the Federation tab, and SAML 1.x configuration
I made new trusted partner:
Name:
http://localhost:8080
Site ID: <The Site ID from Local Host Properties in federation tab>
Host List: 127.0.0.1
Attribute Mapper: saml_query_baru.SAMLAttributeMapper
In addition, I have also included the system classpath in file <glassfish_install_dir>/domains/domain1/config/domain.xml, the classpath pointed to the jar file of SAMLAttributeMapper
After I restart the server and run my java code, I obtain these error under:
<opensso_install_dir>/opensso/debug/libSAML:
03/23/2008 04:46:30:541 PM SGT: Thread[httpSSLWorkerThread-8080-2,10,Grizzly]
ERROR: SAMLServiceManager:java.lang.ClassNotFoundException: saml_query_baru.SAMLAttributeMapper
03/23/2008 04:46:30:551 PM SGT: Thread[httpSSLWorkerThread-8080-2,10,Grizzly]
ERROR: SAMLServiceManager:java.lang.ClassNotFoundException: saml_query_baru.SAMLAccountMapper
03/23/2008 04:46:32:457 PM SGT: Thread[httpSSLWorkerThread-8080-2,10,Grizzly]
ERROR: Error in processing Request
java.lang.NullPointerException
at com.sun.identity.saml.plugins.DefaultAttributeMapper.getAttributes(DefaultAttributeMapper.java:272)
at com.sun.identity.saml.AssertionManager.getAttributeAssertion(AssertionManager.java:1285)
at com.sun.identity.saml.AssertionManager.getAssertion(AssertionManager.java:1126)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.extractProcessRequest(SAMLSOAPReceiver.java:745)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.onMessage(SAMLSOAPReceiver.java:328)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.doPost(SAMLSOAPReceiver.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
03/23/2008 04:46:32:896 PM SGT: Thread[httpSSLWorkerThread-8080-2,10,Grizzly]
ERROR: FormSOAPError:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Namespace Error, Standard Faultcode: Server, should be in SOAP 1.1 Namespace
at com.sun.xml.messaging.saaj.soap.ver1_1.Fault1_1Impl.setFaultCode(Fault1_1Impl.java:376)
at com.sun.xml.messaging.saaj.soap.impl.FaultImpl.setFaultCode(FaultImpl.java:122)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.FormSOAPError(SAMLSOAPReceiver.java:922)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.onMessage(SAMLSOAPReceiver.java:337)
at com.sun.identity.saml.servlet.SAMLSOAPReceiver.doPost(SAMLSOAPReceiver.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
[Message sent by forum member 'edwinlc' (edwinlc)]
http://forums.java.net/jive/thread.jspa?messageID=265348