Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 47701 invoked from network); 2 Jun 2008 01:48:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 01:48:06 -0000 Received: (qmail 80601 invoked by uid 500); 2 Jun 2008 01:48:09 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 80585 invoked by uid 500); 2 Jun 2008 01:48:09 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 80574 invoked by uid 99); 2 Jun 2008 01:48:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2008 18:48:09 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 01:47:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 09B91234C12C for ; Sun, 1 Jun 2008 18:47:45 -0700 (PDT) Message-ID: <749519578.1212371265038.JavaMail.jira@brutus> Date: Sun, 1 Jun 2008 18:47:45 -0700 (PDT) From: "Bob Fields (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-1620) wsdl2java ignores jaxb2 xjc globalBindings with namespace xjc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org wsdl2java ignores jaxb2 xjc globalBindings with namespace xjc ------------------------------------------------------------- Key: CXF-1620 URL: https://issues.apache.org/jira/browse/CXF-1620 Project: CXF Issue Type: Bug Components: JAXB Databinding Affects Versions: 2.0.6 Environment: CXF 2.0.6. Jaxb 2.0.5 Reporter: Bob Fields JAXB databindings work fine as shown in wsdl2java bindings documentation for customizing Date mapping. If I add the Jaxb2 specific customizations, they are ignored in xjc. Specifically, add jxb:version="2.0" jxb:extensionBindingPrefixes="xjc" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" in the jaxws:bindings declaration, and use something like in the jxb:globalBindings section. There's no error or anything, the xjc bindings are simply ignored. One possibly related problem - if cxf-manifest.jar is in my environment classpath, Jaxb2 xjc customizations cause the xjc ant task to fail even when I set the classpath. I'm generating JAXB classes in a project unrelated to CXF using Jaxb 2.0.5 xjc jar. I have to remove the manifest jar from the classpath for xjc to work again. We specifically need xjc:simple to avoid JAXBElement creations and to add @XmlRootElement where it would otherwise not appear. We also want xjc:javaType adapter="" because the jxb:javaType print/parse bindings create one Adapter class for each binding customization (not for each customization type), which can be several hundred in very large webservice projects. A related improvement would be to add CXF DataTypeAdapter classes that extend javax.xml.bind.annotation.adapters.XmlAdapter with a marshal and unmarshal method, which looks like the generated AdapterX classes. I would suggest four classes for date, time, dateTime, and integer (replacing BigInteger with Integer). A sample project showing JAXB customized datatype bindings for wsdl2java would be helpful too. If I get some time next week I'll create and submit one based on the wsdl2java samples, with a working jxb binding and an xjc binding that should work but doesn't. Unless this issue has already been noticed and is being worked on (I didn't see anything related in JIRA). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.