Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 33281 invoked from network); 19 Jun 2007 17:27:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 17:27:48 -0000 Received: (qmail 13334 invoked by uid 500); 19 Jun 2007 17:27:51 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 13317 invoked by uid 500); 19 Jun 2007 17:27:51 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 13308 invoked by uid 99); 19 Jun 2007 17:27:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 10:27:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 10:27:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 342227141FC for ; Tue, 19 Jun 2007 10:27:27 -0700 (PDT) Message-ID: <7477558.1182274047211.JavaMail.jira@brutus> Date: Tue, 19 Jun 2007 10:27:27 -0700 (PDT) From: "Steve Kondik (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-340) Support adding extra classes to JAXB context In-Reply-To: <2578573.1167418100956.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Kondik updated CXF-340: ----------------------------- Attachment: cxf-test-extends.tar.gz My fault- I thought that the enclosing element set the default namespace. Inheritance is still not working though. Attached is an updated version of the test that has an "ExtendedWidget" :) It fails with the same exception noted above, like JAXB can't see the extended class to use for unmarshalling. > Support adding extra classes to JAXB context > -------------------------------------------- > > Key: CXF-340 > URL: https://issues.apache.org/jira/browse/CXF-340 > Project: CXF > Issue Type: Improvement > Affects Versions: 2.0-M1 > Reporter: Dan Diephouse > Assignee: Freeman Fang > Fix For: 2.1 > > Attachments: cxf-test-extends.tar.gz, cxf-test.tar.gz, Widget.java > > > Users may have their own JAXB classes which need to be included in the context. We should provide a simple mechanism to add extra classes to the context. (This worked pretty well in XFire). > HashMap props = new HashMap(); > props.put("jaxb.additionalContextClasses", new Class[] { Foo.class, Bar.class }); > serverFactory.setProperties(props); > serverFactory.create(); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.