Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 24485 invoked from network); 10 Apr 2006 08:20:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 08:20:29 -0000 Received: (qmail 49076 invoked by uid 500); 10 Apr 2006 08:20:26 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 49027 invoked by uid 500); 10 Apr 2006 08:20:25 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 49016 invoked by uid 99); 10 Apr 2006 08:20:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 01:20:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of janb@mortbay.com designates 209.235.255.182 as permitted sender) Received: from [209.235.255.182] (HELO jetty3.inetu.net) (209.235.255.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 01:20:24 -0700 Received: (qmail 59970 invoked from network); 10 Apr 2006 08:20:02 -0000 Received: from unknown (HELO ?192.168.16.3?) (janb@194.243.15.194) by jetty3.inetu.net with AES256-SHA encrypted SMTP; 10 Apr 2006 08:20:02 -0000 Message-ID: <443A1525.8030903@mortbay.com> Date: Mon, 10 Apr 2006 10:19:49 +0200 From: Jan Bartel Organization: Mort Bay Consulting User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: geronimo-dev@apache.org Subject: Re: Servlet Spec 2.5 References: <44397D5F.2070501@mortbay.com> <20060410032437.98508.qmail@web54406.mail.yahoo.com> In-Reply-To: <20060410032437.98508.qmail@web54406.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi David, Sorry, I must not have explained myself well enough. The problem is in the generation of the xmlbeans: The first thing to note is that the namespace has changed in javaee5. It was: http://java.sun.com/xml/ns/j2ee but is now: http://java.sun.com/xml/ns/javaee If you generate the beans from the xsds by simply specifying the existing relevant j2ee_1_4schemas along with the new schemas as above, then you get two class instances generated for each element common to both schemas: one instance from each of the root schemas (j2ee_1_4.xsd and javaee_5.xsd) eg: StringImpl.java and StringImpl2.java. The order of generation being dependent I suppose on the order of specification in the "sourceschema" attribute. To avoid duplication, one solution would be to change the src/conf/xmlconfig.xml file to ensure that the package names are different for each namespace: org.apache.geronimo.xbeans.javaee and org.apache.geronimo.xbeans.j2ee This would of course entail import changes to all classes that depend on any bean that is not part of the connector_1_5.xsd or j2ee_jaxrpc_mapping_1_1.xsd (because their package won't change). cheers Jan David Jencks wrote: > I don't understand what you are trying to do wrt copying the existing > j2ee 1.4 schemas still used in jee 5. If you intend the j2ee-schema > directory to be a replacement for the one in trunk, then keeping all the > schemas there is reasonable, and expecting class duplication between the > two nearly identical branches is to be expected. If the new copy is > intended to be an addition to the existing one in trunk, then you can > re-use the already generated classes from j2ee-1.4 in your jee 5 work by > including the trunk schema module in your project.xml dependencies with > a true property. This will put the dependency on > the xmlbeans compiler/code generator classpath and it won't regenerate > the classes. > > Have I missed the point? > > thanks > david jencks > > > */Jan Bartel /* wrote: > > FYI for anyone who is interested: > > I've made a branch in the sandbox for servlet 2.5 integration work. > The svn url is: > > https://svn.apache.org/repos/asf/geronimo/sandbox/servlet-2.5 > > So far I have checked in the 2.5 servlet spec schema (and all of the > other JavaEE 5 schemas too) and upped the version of Jetty to 6 and > begun making changes in jetty & jetty-builder to support the new > Jetty API, and in a couple of other modules to support the changes > for the servlet 2.5 spec. > > Caveat: It's early days yet so don't expect the branch to compile > just yet. > > One issue that I've come across is that the javaee5 spec re-uses > the connector_1_5.xsd and j2ee_jaxrpc_mapping_1_1.xsd from j2ee 1.4. > As both of these xsds include j2ee_1_4.xsd, if all xmlbeans are > generated into the same package (ie org.apache.geronimo.xbeans.j2ee) > th en most of the beans are generated twice. One solution would > be to generate the javaee5 beans into a different package eg > org.apache.geronimo.xbeans.javaee. If anybody has any thoughts > on this, then I'm all ears. > > > cheers > Jan > >