ResteasyProviderFactory exception in Glassfish
I'm having some trouble invoking a RESTful webservice using the Client Framework provided by RESTEasy. When I try to register the ResteasyProviderFactory I got a ClassCastException and nothing more works.

Here's the code:

        RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
        LifeGoalClient leClient = ProxyFactory.create(LifeGoalClient.class, "http://localhost:8080/TutorFinanceiro");
        List<LifeGoal> lifeGoals = leClient.getLifeGoals();
        JOptionPane.showMessageDialog(null, lifeGoals);
        return lifeGoals;

And the exception: 

        java.lang.ClassCastException: com.sun.jersey.server.impl.provider.RuntimeDelegateImpl cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory

I searched through the web but found no solution or no relevant info in respect to this.
If anyone have a solution or an alternative way of doing this, please help me!

Thanks in advance
ResteasyProviderFactory exception in Glassfish
===

I'm having some trouble invoking a RESTful webservice using the Client Framework provided by RESTEasy. When I try to register the ResteasyProviderFactory I got a ClassCastException and nothing more works.

Here's the code:

        RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
        LifeGoalClient leClient = ProxyFactory.create(LifeGoalClient.class, "http://localhost:8080/TutorFinanceiro");
        List<LifeGoal> lifeGoals = leClient.getLifeGoals();
        JOptionPane.showMessageDialog(null, lifeGoals);
        return lifeGoals;

And the exception: 

        java.lang.ClassCastException: com.sun.jersey.server.impl.provider.RuntimeDelegateImpl cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory

I searched through the web but found no solution or no relevant info in respect to this.
If anyone have a solution or an alternative way of doing this, please help me!

Thanks in advance