<table><tbody><tr><td class="votecell"><div class="vote">
    <span class="vote-count-post"><br></span><a id="twitter-share-7603851" class="twitter-share" title="share link to this question on Twitter"></a>    

</div>

    </td>

<td class="postcell">
<div>          
    <div class="post-text">
        <p>I am unsure if this si the right place for this question. I am relatively new at trying my hand on Open SAML2 but I am gonna go for it anyways.</p><p></p><p>I am trying to setup my Service provider using OpenSAML2 
libraries. I am trying to set up a servlet which would accept 
HttpRequest from user&#39;s browser and based on the request parameters I 
want to create a SAML Authentication request packet.</p>

<p>I am able to create the SAML packet, however I want to Base64 encode 
the SAML so that I can redirect the user browser to the Identity 
provider server. In order to do that I am trying to marshall the SAML 
Authentication Request using 
&#39;org.opensaml.saml2.core.impl.AuthnRequestMarshaller#marshall(AuthnRequest)&#39;.</p>

<p>This works fine when I try it outside of the web server environment 
(standalone JAVA application). However when I run it as a servlet 
component I get an error saying &quot;No marshaller available for 
{urn:oasis:names:tc:SAML:2.0:assertion}Issuer, child of 
{urn:oasis:names:tc:SAML:2.0:protocol}AuthnRequest&quot;, where Issuer is a 
component of the AuthnRequest object.</p>

<p>I am using Tomcat 5.5.34 webserver. It would be nice if someone can 
help me figure out whats happening here. It would help others trying to 
write their own Service Providers as well. <br></p>

<p>Thanks,
Kaustubh</p>

    </div></div></td></tr></tbody></table>