You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dan Diephouse (JIRA)" <ji...@apache.org> on 2007/06/05 17:52:26 UTC

[jira] Closed: (CXF-697) Agis ClassCastException:

     [ https://issues.apache.org/jira/browse/CXF-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Diephouse closed CXF-697.
-----------------------------

    Resolution: Fixed

Yeah, I just took a look at this and I noticed the same things freeman did.
1. You were passing in a null classloader. I changed the code to this and it worked:

ClassLoader cl = Thread.currentThread().getContextClassLoader();
Client client = dcf.createClient("http://localhost:8080/service?wsdl",cl);
...
Object book = cl.loadClass("com.acme.test.Book").newInstance();

2. You're methods on BookService were package protected, not public. CXF ignores package protected methods. I'm sure this was just a cut/paste error from Groovy though :-)

So I'm going to close this issue unless you have other issues...

> Agis ClassCastException: 
> -------------------------
>
>                 Key: CXF-697
>                 URL: https://issues.apache.org/jira/browse/CXF-697
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>         Environment: Linux Debian - Java 1.5- CXF trunk
>            Reporter: Guillaume Alleon
>            Assignee: Freeman Fang
>             Fix For: 2.0
>
>         Attachments: cxftest.tgz, cxftestnew.tar, cxftestwithaegis.tar
>
>
> Got a  java.lang.ClassCastException: org.apache.cxf.service.model.BindingInfo when using a Dynamic client (Aegis Binding)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.