You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2007/12/12 13:32:28 UTC

Sample development

The following lines in common-build.xml suggest that there is a
methodology for running samples against a build tree. Could someone
please elaborate on it?

I am somewhat confused, as well, by the presence of cxf-server.xml and
well as cxf.xml. Is there some tooling to build webapps using the
former?

    <!-- Setup for building in a source build-->
    <available property="srcbuild_paths.file"
        value="../../../../target/srcbuild_paths.xml"
        file="target/srcbuild_paths.xml"
        filepath="../../../.."/>



Re: Sample development

Posted by Glen Mazza <gl...@verizon.net>.
Am Mittwoch, den 12.12.2007, 07:32 -0500 schrieb Benson Margulies:

> I am somewhat confused, as well, by the presence of cxf-server.xml and
> well as cxf.xml. Is there some tooling to build webapps using the
> former?
> 

Yes.  Several of the samples provide the option of WAR files for
deployment to Tomcat.  Presumably they would use that cxf-server.xml
file.

Glen



Re: Sample development

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday 12 December 2007, Benson Margulies wrote:
> I thought that the fix was going to be to avoid compiling the
> generated sources at all, since we don't ship them.

We don't compile them.  The problem is that we DO want checkstyle and pmd 
to check the *.java in src/main/release/samples so that all the samples 
are consistent.   However, we don't want them checking 
src/main/release/samples/**/build/src/**.   That's easy to do with 
checkstyle.   Just not easy to do with PMD.  

Dan



> On Wed, 2007-12-12 at 13:44 -0500, Daniel Kulp wrote:
> > On Wednesday 12 December 2007, Benson Margulies wrote:
> > > While you are in there, note that once you run ant in a sample,
> > > you can't run mvn above it until you do 'ant clean' since it tries
> > > to compile the generated sources and they fail checkstyle/PMD.
> >
> > Fixed the building of the samples and I should have fixed the
> > checkstyle errors.   PMD is going to be a lot harder, but I didn't
> > run into a PMD issue with the few samples I checked.
> >
> > Dan
> >
> > > On Wed, 2007-12-12 at 12:28 -0500, Daniel Kulp wrote:
> > > > Benson,
> > > >
> > > > Looks like the source build stuff wasn't updated after all the
> > > > sample were re-organized and shuffled around.
> > > >
> > > > And it looks like newer versions of the ant plugin broke the
> > > > generation of the srcbuild_paths.xml.    I'll try and figure out
> > > > what has happened to it.
> > > >
> > > > :-(
> > > >
> > > > Dan
> > > >
> > > > On Wednesday 12 December 2007, Benson Margulies wrote:
> > > > > The following lines in common-build.xml suggest that there is
> > > > > a methodology for running samples against a build tree. Could
> > > > > someone please elaborate on it?
> > > > >
> > > > > I am somewhat confused, as well, by the presence of
> > > > > cxf-server.xml and well as cxf.xml. Is there some tooling to
> > > > > build webapps using the former?
> > > > >
> > > > >     <!-- Setup for building in a source build-->
> > > > >     <available property="srcbuild_paths.file"
> > > > >         value="../../../../target/srcbuild_paths.xml"
> > > > >         file="target/srcbuild_paths.xml"
> > > > >         filepath="../../../.."/>



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Sample development

Posted by Benson Margulies <bi...@gmail.com>.
I thought that the fix was going to be to avoid compiling the generated
sources at all, since we don't ship them.

On Wed, 2007-12-12 at 13:44 -0500, Daniel Kulp wrote:
> On Wednesday 12 December 2007, Benson Margulies wrote:
> > While you are in there, note that once you run ant in a sample, you
> > can't run mvn above it until you do 'ant clean' since it tries to
> > compile the generated sources and they fail checkstyle/PMD.
> 
> Fixed the building of the samples and I should have fixed the checkstyle 
> errors.   PMD is going to be a lot harder, but I didn't run into a PMD 
> issue with the few samples I checked.
> 
> Dan
> 
> 
> >
> > On Wed, 2007-12-12 at 12:28 -0500, Daniel Kulp wrote:
> > > Benson,
> > >
> > > Looks like the source build stuff wasn't updated after all the
> > > sample were re-organized and shuffled around.
> > >
> > > And it looks like newer versions of the ant plugin broke the
> > > generation of the srcbuild_paths.xml.    I'll try and figure out
> > > what has happened to it.
> > >
> > > :-(
> > >
> > > Dan
> > >
> > > On Wednesday 12 December 2007, Benson Margulies wrote:
> > > > The following lines in common-build.xml suggest that there is a
> > > > methodology for running samples against a build tree. Could
> > > > someone please elaborate on it?
> > > >
> > > > I am somewhat confused, as well, by the presence of cxf-server.xml
> > > > and well as cxf.xml. Is there some tooling to build webapps using
> > > > the former?
> > > >
> > > >     <!-- Setup for building in a source build-->
> > > >     <available property="srcbuild_paths.file"
> > > >         value="../../../../target/srcbuild_paths.xml"
> > > >         file="target/srcbuild_paths.xml"
> > > >         filepath="../../../.."/>
> 
> 
> 


Re: Sample development

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday 12 December 2007, Benson Margulies wrote:
> While you are in there, note that once you run ant in a sample, you
> can't run mvn above it until you do 'ant clean' since it tries to
> compile the generated sources and they fail checkstyle/PMD.

Fixed the building of the samples and I should have fixed the checkstyle 
errors.   PMD is going to be a lot harder, but I didn't run into a PMD 
issue with the few samples I checked.

Dan


>
> On Wed, 2007-12-12 at 12:28 -0500, Daniel Kulp wrote:
> > Benson,
> >
> > Looks like the source build stuff wasn't updated after all the
> > sample were re-organized and shuffled around.
> >
> > And it looks like newer versions of the ant plugin broke the
> > generation of the srcbuild_paths.xml.    I'll try and figure out
> > what has happened to it.
> >
> > :-(
> >
> > Dan
> >
> > On Wednesday 12 December 2007, Benson Margulies wrote:
> > > The following lines in common-build.xml suggest that there is a
> > > methodology for running samples against a build tree. Could
> > > someone please elaborate on it?
> > >
> > > I am somewhat confused, as well, by the presence of cxf-server.xml
> > > and well as cxf.xml. Is there some tooling to build webapps using
> > > the former?
> > >
> > >     <!-- Setup for building in a source build-->
> > >     <available property="srcbuild_paths.file"
> > >         value="../../../../target/srcbuild_paths.xml"
> > >         file="target/srcbuild_paths.xml"
> > >         filepath="../../../.."/>



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Sample development

Posted by Benson Margulies <bi...@gmail.com>.
While you are in there, note that once you run ant in a sample, you
can't run mvn above it until you do 'ant clean' since it tries to
compile the generated sources and they fail checkstyle/PMD.


On Wed, 2007-12-12 at 12:28 -0500, Daniel Kulp wrote:
> Benson,
> 
> Looks like the source build stuff wasn't updated after all the sample 
> were re-organized and shuffled around.   
> 
> And it looks like newer versions of the ant plugin broke the generation 
> of the srcbuild_paths.xml.    I'll try and figure out what has happened 
> to it.
> 
> :-(
> 
> 
> Dan
> 
> 
> 
> On Wednesday 12 December 2007, Benson Margulies wrote:
> > The following lines in common-build.xml suggest that there is a
> > methodology for running samples against a build tree. Could someone
> > please elaborate on it?
> >
> > I am somewhat confused, as well, by the presence of cxf-server.xml and
> > well as cxf.xml. Is there some tooling to build webapps using the
> > former?
> >
> >     <!-- Setup for building in a source build-->
> >     <available property="srcbuild_paths.file"
> >         value="../../../../target/srcbuild_paths.xml"
> >         file="target/srcbuild_paths.xml"
> >         filepath="../../../.."/>
> 
> 
> 


Re: Sample development

Posted by Daniel Kulp <dk...@apache.org>.
Benson,

Looks like the source build stuff wasn't updated after all the sample 
were re-organized and shuffled around.   

And it looks like newer versions of the ant plugin broke the generation 
of the srcbuild_paths.xml.    I'll try and figure out what has happened 
to it.

:-(


Dan



On Wednesday 12 December 2007, Benson Margulies wrote:
> The following lines in common-build.xml suggest that there is a
> methodology for running samples against a build tree. Could someone
> please elaborate on it?
>
> I am somewhat confused, as well, by the presence of cxf-server.xml and
> well as cxf.xml. Is there some tooling to build webapps using the
> former?
>
>     <!-- Setup for building in a source build-->
>     <available property="srcbuild_paths.file"
>         value="../../../../target/srcbuild_paths.xml"
>         file="target/srcbuild_paths.xml"
>         filepath="../../../.."/>



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

RE: Sample development

Posted by "Jiang, Ning (Willem)" <Ni...@iona.com>.
OK,
I think we missing the cxf jars some where.
Benson I think we do not use the default mvn repo directory(${user.home}/.m2/repository) for maven.
You can go through the srcbuild_paths.xml for more information if you already run mvn install in distribution directory.

Willem.

-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com]
Sent: Wed 12/12/2007 21:01
To: cxf-dev@incubator.apache.org
Subject: RE: Sample development
 
Willem,

Did you mean to include another line in the email? If I just cd to the
sample in the source tree and run ant, it doesn't build. 

bim-1330% ant
Buildfile: build.xml

maybe.generate.code:

generate.code:
     [echo] Generating code using wsdl2java...
    [mkdir] Created
dir: /home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build/classes
    [mkdir] Created
dir: /home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build/src
     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/cxf/tools/wsdlto/WSDLToJava

BUILD FAILED
/home/benson/cxf/trunk/distribution/src/main/release/samples/common_build.xml:100: The following error occurred while executing this line:
/home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build.xml:47: The following error occurred while executing this line:
/home/benson/cxf/trunk/distribution/src/main/release/samples/common_build.xml:207: Java returned: 1

Total time: 0 seconds



On Wed, 2007-12-12 at 07:44 -0500, Jiang, Ning (Willem) wrote:
> Hi Benson
> 
> If you want to build the sample in the svn trunk without build a kit, 
> the below lines will set value for us.
> 
> If you want to build war, there a ant marco cxfwar for you. you can find it 
> in the common-build.xml.
> 
> Willem.
> 
> 
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Wed 12/12/2007 20:32
> To: cxf-dev@incubator.apache.org
> Subject: Sample development
>  
> The following lines in common-build.xml suggest that there is a
> methodology for running samples against a build tree. Could someone
> please elaborate on it?
> 
> I am somewhat confused, as well, by the presence of cxf-server.xml and
> well as cxf.xml. Is there some tooling to build webapps using the
> former?
> 
>     <!-- Setup for building in a source build-->
>     <available property="srcbuild_paths.file"
>         value="../../../../target/srcbuild_paths.xml"
>         file="target/srcbuild_paths.xml"
>         filepath="../../../.."/>
> 
> 


RE: Sample development

Posted by Benson Margulies <bi...@gmail.com>.
Willem,

Did you mean to include another line in the email? If I just cd to the
sample in the source tree and run ant, it doesn't build. 

bim-1330% ant
Buildfile: build.xml

maybe.generate.code:

generate.code:
     [echo] Generating code using wsdl2java...
    [mkdir] Created
dir: /home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build/classes
    [mkdir] Created
dir: /home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build/src
     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/cxf/tools/wsdlto/WSDLToJava

BUILD FAILED
/home/benson/cxf/trunk/distribution/src/main/release/samples/common_build.xml:100: The following error occurred while executing this line:
/home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/build.xml:47: The following error occurred while executing this line:
/home/benson/cxf/trunk/distribution/src/main/release/samples/common_build.xml:207: Java returned: 1

Total time: 0 seconds



On Wed, 2007-12-12 at 07:44 -0500, Jiang, Ning (Willem) wrote:
> Hi Benson
> 
> If you want to build the sample in the svn trunk without build a kit, 
> the below lines will set value for us.
> 
> If you want to build war, there a ant marco cxfwar for you. you can find it 
> in the common-build.xml.
> 
> Willem.
> 
> 
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Wed 12/12/2007 20:32
> To: cxf-dev@incubator.apache.org
> Subject: Sample development
>  
> The following lines in common-build.xml suggest that there is a
> methodology for running samples against a build tree. Could someone
> please elaborate on it?
> 
> I am somewhat confused, as well, by the presence of cxf-server.xml and
> well as cxf.xml. Is there some tooling to build webapps using the
> former?
> 
>     <!-- Setup for building in a source build-->
>     <available property="srcbuild_paths.file"
>         value="../../../../target/srcbuild_paths.xml"
>         file="target/srcbuild_paths.xml"
>         filepath="../../../.."/>
> 
> 


RE: Sample development

Posted by Benson Margulies <bi...@gmail.com>.
First of all, common_build.xml has the wrong number of ..'s, it seems to
me.

If I'm sitting in distribution/src/main/release/samples/whatever, target
is FIVE ..'s up, not four.

Second, the xml file has nothing but an XML header.


On Wed, 2007-12-12 at 07:44 -0500, Jiang, Ning (Willem) wrote:
> Hi Benson
> 
> If you want to build the sample in the svn trunk without build a kit, 
> the below lines will set value for us.
> 
> If you want to build war, there a ant marco cxfwar for you. you can find it 
> in the common-build.xml.
> 
> Willem.
> 
> 
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Wed 12/12/2007 20:32
> To: cxf-dev@incubator.apache.org
> Subject: Sample development
>  
> The following lines in common-build.xml suggest that there is a
> methodology for running samples against a build tree. Could someone
> please elaborate on it?
> 
> I am somewhat confused, as well, by the presence of cxf-server.xml and
> well as cxf.xml. Is there some tooling to build webapps using the
> former?
> 
>     <!-- Setup for building in a source build-->
>     <available property="srcbuild_paths.file"
>         value="../../../../target/srcbuild_paths.xml"
>         file="target/srcbuild_paths.xml"
>         filepath="../../../.."/>
> 
> 


RE: Sample development

Posted by "Jiang, Ning (Willem)" <Ni...@iona.com>.
Hi Benson

If you want to build the sample in the svn trunk without build a kit, 
the below lines will set value for us.

If you want to build war, there a ant marco cxfwar for you. you can find it 
in the common-build.xml.

Willem.


-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com]
Sent: Wed 12/12/2007 20:32
To: cxf-dev@incubator.apache.org
Subject: Sample development
 
The following lines in common-build.xml suggest that there is a
methodology for running samples against a build tree. Could someone
please elaborate on it?

I am somewhat confused, as well, by the presence of cxf-server.xml and
well as cxf.xml. Is there some tooling to build webapps using the
former?

    <!-- Setup for building in a source build-->
    <available property="srcbuild_paths.file"
        value="../../../../target/srcbuild_paths.xml"
        file="target/srcbuild_paths.xml"
        filepath="../../../.."/>