Quantcast

Error when building openesb-components

classic Classic list List threaded Threaded
26 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error when building openesb-components

Stefan Müller-Wilken

Dear all,

 

I’m currently in the process of building openesb-components from scratch following the instructions under <a href="https://openesb.atlassian.net/wiki/display/ESBCOMP/Building&#43;OpenESB&#43;Components"> https://openesb.atlassian.net/wiki/display/ESBCOMP/Building+OpenESB+Components and running into problems.

 

First I had a problem with a corrupt saxonb8-8j.zip:

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.2:run (customized-xmlbeans-merge-build) on project customized-xmlbeans: An Ant BuildException has occured: The following error occurred while executing this line:

[ERROR] /openesb-components/ojc-core/component-common/xmlbeans/bld/xbean_unzip/m2.ant:124: Error while expanding /openesb-components/ojc-core/component-common/xmlbeans/bld/xbean_unzip/external/lib/saxonb8-8j.zip

[ERROR] java.io.IOException: Negative seek offset

[ERROR] -> [Help 1]

[ERROR]

 

This problem could be (temporarily) cured by manually copying a working saxonb8-8j.zip into …/external/lib and restarting maven. Anyone else had that one?

 

Now I get stuck in httpsoapbc. Here I get the following error:

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project httpsoapbcimpl: Compilation failure: Compilation failure:

[ERROR] /openesb-components/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java:[39,39] package org.jvnet.ws.message.PropertySet does not exist

 

This time I fear it will be not as simple as copying a file so what’s the trick now?

 

Cheers

Stefan

 


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hi Stefan,

For saxon, please update ojc-core/component-common/xmlbeans/modified/m2.ant line 122 with this one:
src="http://ufpr.dl.sourceforge.net/project/saxon/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip"

For the second issue, did you run mvn clean before ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken

Hi David,

 

thanks for picking up the issue. :-)

 

> For the second issue, did you run mvn clean before ?

 

Well, I actually did. And the first 20 or so components / libraries have successfully built. The last successful one was ftpbc-top:

 

[INFO] encoder-coco ...................................... SUCCESS [49.918s]

[INFO] converter-ssc2custom .............................. SUCCESS [23.160s]

[INFO] sun-encoder-library ............................... SUCCESS [5.340s]

[INFO] encodersl-top ..................................... SUCCESS [0.042s]

[INFO] filebcimpl ........................................ SUCCESS [17.616s]

[INFO] sun-file-binding .................................. SUCCESS [1.157s]

[INFO] filebc-top ........................................ SUCCESS [0.028s]

[INFO] ftpbcimpl ......................................... SUCCESS [29.527s]

[INFO] sun-ftp-binding ................................... SUCCESS [2.877s]

[INFO] ftpbc-top ......................................... SUCCESS [0.075s]

[INFO] httpsoapbcimpl .................................... FAILURE [34.566s]

[INFO] sun-http-binding .................................. SKIPPED

[INFO] sun-http-binding .................................. SKIPPED

[INFO] httpbc-top ........................................ SKIPPED

 

The command I had issued was ‚ mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean‘ so that should be okay, no?

 

Cheers

Stefan


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hi Stefan,

I really have to come to Hamburg to explain you how to work with OpenESB sources. :-P

For the second issue, please provide us with the version of webservices-rt.jar from $GLASSFISH_HOME/lib
To get the version, please have a look to the file version.properties under com/sun/xml/ws/util package.

Cheers,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken

Hi David,


you are invited to come around anytime - but could I ever dream of reaching your skill level? ;-)


Anyways, the version.properties within webservices-rt.jar reads as follows:


build-id=hudson-749

                build-version=JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT

                major-version=2.1.3.1


Cheers
 Stefan


Von: Stefan Müller-Wilken [[hidden email]]
Gesendet: Montag, 12. Dezember 2016 19:44
An: [hidden email]
Betreff: AW: Error when building openesb-components

Hi David,

 

thanks for picking up the issue. :-)

 

> For the second issue, did you run mvn clean before ?

 

Well, I actually did. And the first 20 or so components / libraries have successfully built. The last successful one was ftpbc-top:

 

[INFO] encoder-coco ...................................... SUCCESS [49.918s]

[INFO] converter-ssc2custom .............................. SUCCESS [23.160s]

[INFO] sun-encoder-library ............................... SUCCESS [5.340s]

[INFO] encodersl-top ..................................... SUCCESS [0.042s]

[INFO] filebcimpl ........................................ SUCCESS [17.616s]

[INFO] sun-file-binding .................................. SUCCESS [1.157s]

[INFO] filebc-top ........................................ SUCCESS [0.028s]

[INFO] ftpbcimpl ......................................... SUCCESS [29.527s]

[INFO] sun-ftp-binding ................................... SUCCESS [2.877s]

[INFO] ftpbc-top ......................................... SUCCESS [0.075s]

[INFO] httpsoapbcimpl .................................... FAILURE [34.566s]

[INFO] sun-http-binding .................................. SKIPPED

[INFO] sun-http-binding .................................. SKIPPED

[INFO] httpbc-top ........................................ SKIPPED

 

The command I had issued was ‚ mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean‘ so that should be okay, no?

 

Cheers

Stefan


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hi Stefan,

Let's plan something in next weeks / months. I will be happy to me you and have some stratospheric discussions ;)
And be sure that you're probably a better OpenESB user that I am!

The following is the content of my version.properties.
build-id=tags/2.2.0-4-7595; 2013-05-30T12:51:32+0200
build-version=Metro/2.2.0-4 (tags/2.2.0-4-7595; 2013-05-30T12:51:32+0200) JAXWS-RI/2.2.6-5 JAXWS/2.2
major-version=2.2.0-4


I'm wondering if your using an old version of OpenESB... Can you have a try with OpenESB 2.3.1 and set your JV_GFBASE env variable to this fresh installation before building the project ?

Something like export JV_GFBASE=/Users/david/OpenESB-v2.3.1/glassfish

Cheers,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken

Hi David,


I've now switched to OpenESB 2.3.1's glassfish installation but the error unfortunately remains the same:


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project httpsoapbcimpl: Compilation failure: Compilation failure:

[ERROR] /openesb-components/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java:[39,39] package org.jvnet.ws.message.PropertySet does not exist

...

I'm actually not so sure if this error is connected to the Glassfish revision in use...

Cheers
 Stefan

Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Did you run mvn clean before mvn package / install ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken
> Did you run mvn clean before mvn package / install ?

Absolutely! ;-)

But just to make sure I'm going to repeat the procedure starting from a 'git clean -d -x -f':

git clean -d -x -f
o Apply change for missing jsr173 bundle (m2.ant, line 146)

  change to: src="http://source.sakaiproject.org/maven/xmlbeans/jars/jsr173_1.0_api_bundle.jar"

o Apply change for missing Saxon lib (m2.ant, line 122)
  change to: src="http://ufpr.dl.sourceforge.net/project/saxon/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip"
mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean
mvn -Dmaven.test.skip=true -Dmaven.repo.local=$JV_SRCROOT/m2/repository install

So far, so good? I'll report when the compile has finished.

Cheers
 Stefan

Von: Stefan Müller-Wilken [[hidden email]]
Gesendet: Dienstag, 13. Dezember 2016 21:16
An: [hidden email]
Betreff: AW: Error when building openesb-components

Hi David,


I've now switched to OpenESB 2.3.1's glassfish installation but the error unfortunately remains the same:


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project httpsoapbcimpl: Compilation failure: Compilation failure:

[ERROR] /openesb-components/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java:[39,39] package org.jvnet.ws.message.PropertySet does not exist

...

I'm actually not so sure if this error is connected to the Glassfish revision in use...

Cheers
 Stefan

Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
I suppose that $JV_SRCROOT points on the new Glassfish install ;)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken
> I suppose that $JV_SRCROOT points on the new Glassfish install ;)

Ab...so...lutely! :-)

By the way: my version.properties for OpenESB 2.3.1 says the following:

build-id=branches/2.1-6844; 2011-07-29T12:07:24+0000

build-version=Metro/2.1.1 (branches/2.1-6844; 2011-07-29T12:07:24+0000) JAXWS-RI/2.2.5 JAXWS/2.2

major-version=2.1.1


This is again not what you posted but indeed comes from the OpenESB 2.3.1 downloaded earlier today.


Cheers

 Stefan



Von: Stefan Müller-Wilken [[hidden email]]
Gesendet: Dienstag, 13. Dezember 2016 21:46
An: [hidden email]
Betreff: AW: Error when building openesb-components

> Did you run mvn clean before mvn package / install ?

Absolutely! ;-)

But just to make sure I'm going to repeat the procedure starting from a 'git clean -d -x -f':

git clean -d -x -f
o Apply change for missing jsr173 bundle (m2.ant, line 146)

  change to: src="http://source.sakaiproject.org/maven/xmlbeans/jars/jsr173_1.0_api_bundle.jar"

o Apply change for missing Saxon lib (m2.ant, line 122)
  change to: src="http://ufpr.dl.sourceforge.net/project/saxon/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip"
mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean
mvn -Dmaven.test.skip=true -Dmaven.repo.local=$JV_SRCROOT/m2/repository install

So far, so good? I'll report when the compile has finished.

Cheers
 Stefan

Von: Stefan Müller-Wilken [[hidden email]]
Gesendet: Dienstag, 13. Dezember 2016 21:16
An: [hidden email]
Betreff: AW: Error when building openesb-components

Hi David,


I've now switched to OpenESB 2.3.1's glassfish installation but the error unfortunately remains the same:


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project httpsoapbcimpl: Compilation failure: Compilation failure:

[ERROR] /openesb-components/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java:[39,39] package org.jvnet.ws.message.PropertySet does not exist

...

I'm actually not so sure if this error is connected to the Glassfish revision in use...

Cheers
 Stefan

Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Ok, one last thing:

Please update webservices-rt.jar with this one: http://repo1.maven.org/maven2/org/glassfish/metro/webservices-rt/2.2.0-4/webservices-rt-2.2.0-4.jar

And I'm pretty sure it will be ok ;)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken
... it is not that I'm particularly happy about it, but the error still remains:


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48:27.413s[INFO] Finished at: Tue Dec 13 23:08:21 CET 2016[INFO] Final Memory: 103M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project httpsoapbcimpl: Compilation failure: Compilation failure:[ERROR] /openesb-components/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java:[39,39] package org.jvnet.ws.message.PropertySet does not exist
...

:-(

Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hum.. not so good...

What I do not understand is that the missing class exists in webservices-rt.jar


So you're probably doing something wrong.

Just to be sure about the build, did you try to:
1) Remove m2 repository from $JV_SRCROOT/m2/
2) mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean
3) mvn -Dmaven.test.skip=true -Dmaven.repo.local=$JV_SRCROOT/m2/repository package

And be sure that  JV_GFBASE is based on OE 2.3.1 with updated webservices-rt.jar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken

Okay, progress at last. It seems as if git clean (for what reason so ever) hasn’t removed $JV_SRCROOT/m2/ and the webservices-rt.jar apparently has been cached there. Removing m2/ has brought me past httpsoapbcimpl at least.

 

Next error now is within sun-scheduler-binding :

 

[ERROR] Failed to execute goal on project schedulerbc-installer: Could not resolve dependencies for project open-jbi-components:schedulerbc-installer:jar:2.3.6-SNAPSHOT: Could not find artifact javax.sql:jdbc-stdext:jar:2.0 in OpenESB - Release (http://build2.open-esb.net:8081/nexus/content/repositories/openesb-release) -> [Help 1]

 

Seems as if jdbc-stdext.jar is declared as required in pom.xml but not available upstream….

 

Cheers

Stefan


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hum, you're right.

Please try to install it manually using this jar http://www.ifremer.fr/maven/repository/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar

Something like: $M2_HOME/bin/mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true -Dfile=/Users/david/Downloads/jdbc-stdext-2.0.jar

Regards,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken

Seems we’re reaching parts oft he build process which are a little rougher around their edges.

 

ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.2:run (schedulerbc-installer-generate-i18n-descriptors) on project schedulerbc-installer: An Ant BuildException has occured: XML file does not exist at: / openesb-components/ojc-core/schedulerbc/src/jbi.xml

 

I’ll have a look at this myself but maybe someone has an idea straight away?

 

Cheers

Stefan


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
I really don't understand how can you have this kind of issue.

The issue seems to be relative to this line:
https://bitbucket.org/openesb/openesb-components/src/462261e6487bd81bb997db542305554427228263/ojc-core/schedulerbc/packaging/pom.xml?at=master&fileviewer=file-view-default#pom.xml-27

And the jbi.xml is existing: https://bitbucket.org/openesb/openesb-components/src/462261e6487bd81bb997db542305554427228263/ojc-core/schedulerbc/packaging/src/jbi.xml?at=master&fileviewer=file-view-default

Can you tell me:
* which version of JDK you are using
* which version of ant you are using
* which version of Maven you are using

Regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Error when building openesb-components

Stefan Müller-Wilken
In reply to this post by Stefan Müller-Wilken
Well, what can I say, I have 'git clone'd the openesb-components project and worked from there. And yes, I have seen jbi.xml, but it seems as if the build process can't see it. I haven't had the time to analyze the details but I can't  see how java (downgraded to 1.6.26 for the build) maven (3.0.5, by the way) could play a role. Hmmm...

Cheers
 Stfan

>I really don't understand how can you have this kind of issue.
>
>The issue seems to be relative to this line:
>https://bitbucket.org/openesb/openesb-components/src/462261e6487bd81bb997db542305554427228263/ojc-core/schedulerbc/packaging/pom.xml?at=master&fileviewer=file-view-default#pom.xml-27
>
>And the jbi.xml is existing: https://bitbucket.org/openesb/openesb-components/src/462261e6487bd81bb997db542305554427228263/ojc-core/schedulerbc/packaging/src/jbi.xml?at=master&fileviewer=file-view-default
>
>Can you tell me:
>* which version of JDK you are using
>* which version of ant you are using
>* which version of Maven you are using
>
>Regards



Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AW: Error when building openesb-components

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.

Stefan, FYI, when I'm building  OE components, I am using:
* JDK 6
* Maven 2.2.1
* ANT 1.9.x

I've clean and setup entirely my OE components repository to build it again... without issue at all :(
12
Loading...