users@jaxb.java.net

Re: com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion, got exception: Type

From: Mohit Anchlia <mohitanchlia_at_gmail.com>
Date: Fri, 12 May 2006 09:14:09 -0700

>
> I am trying to run SAMLinterop example. When I try to return Element, I
> > get this message. I am using latest build of JAXWS and XWS and rest of the
> > jars for XWS from JWSDP 2.0.
> >
> > assertion.toElemnt(null) throws exception:
> >
> > [
> > *java*] *com.sun.xml.wss.XWSSecurityException* : *
> > java.lang.RuntimeException*: *com.sun.xml.wss.XWSSecurityException* :
> > Not able to Marshal
> > com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion, got exception:
> > Type javax.xml.bind.annotation.AccessType not present
> >
> > [
> > *java*] at com.sun.xml.xwss.SecurityConfiguration.<init>(*
> > SecurityConfiguration.java:49 *)
> >
> > [
> > *java*] at
> > com.sun.xml.xwss.SecurityConfigurationFactory.newXWSSecurityConfiguration
> > (*SecurityConfigurationFactory.java :29*)
> >
> > [
> > *java*] at fromwsdlmime.client.ClientSendSubmissionReceiptsImpl.main(Unknown
> > Source)
> >
> > [
> > *java*] Caused by: *java.lang.RuntimeException*: *
> > com.sun.xml.wss.XWSSecurityException*: Not able to Marshal
> > com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion, got exception:
> > Type javax.xml.bind.annotation.AccessType not present
> >
> > [
> > *java*] at
> > fromwsdlmime.client.SecurityEnvironmentHandler.createSVSAMLAssertion(Unknown
> > Source)
> >
> > [
> > *java*] at fromwsdlmime.client.SecurityEnvironmentHandler.<init>(Unknown
> > Source)
> >
> > [
> > *java*] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(*Native
> > Method* )
> >
> > [
> > *java*] at sun.reflect.NativeConstructorAccessorImpl.newInstance(*
> > NativeConstructorAccessorImpl.java :39*)
> >
> > [
> > *java*] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(*
> > DelegatingConstructorAccessorImpl.java :27*)
> >
> > [
> > *java*] at java.lang.reflect.Constructor.newInstance(*Constructor.java
> > :494* )
> >
> > [
> > *java*] at java.lang.Class.newInstance0(*Class.java:350* )
> >
> > [
> > *java*] at java.lang.Class.newInstance(*Class.java:303* )
> >
> > [
> > *java*] at com.sun.xml.xwss.SecurityConfiguration.<init>(*
> > SecurityConfiguration.java:43 *)
> >
> > [
> > *java*] ... 2 more
> >
> > [
> > *java*] Caused by: *com.sun.xml.wss.XWSSecurityException* : Not able to
> > Marshal com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion, got
> > exception: Type javax.xml.bind.annotation.AccessType not present
> >
> > [
> > *java*] at com.sun.xml.wss.saml.util.SAMLUtil.toElement(*SAMLUtil.java
> > :110* )
> >
> > [
> > *java*] at
> > com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion.toElement(*
> > Assertion.java :234*)
> >
> > [
> > *java*] ... 11 more
> >
>
>
>