Hi Herak
I suspect the client proxy is not retaining annotations on the TestSO
JAXB bean.
Can you verify by checking if the following expression returns true or
false:
to.getClass().isAnnotatonPresent(XmlRootElement.class)
If false then it is a bug in Weld.
Paul.
On Dec 3, 2009, at 7:25 PM, Herak Sen wrote:
> Hi Paul,
>
> Output for SessionScoped beans cannot be generated by the default
> MessageWriters.
>
> @XmlRootElement
> @SessionScoped
> public class TestSO implements Serializable
> {
> private String f1 = "val";
> //get Set..
> }
>
> @Path("/system")
> @ManagedBean
> public class TesResource {
> @Inject
> private TestSO to;
>
> @GET
> @Produces(MediaType.APPLICATION_XML)
> public TestSO testMethod() {
> return to;
> }
> }
>
> It cannot find the messagewriter for the proxy that is generated by
> WELD.
>
> Herak
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>