Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Building Virgo 3.7.x
Building Virgo 3.7.x [message #1782215] Tue, 20 February 2018 14:06 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
I was trying to build Virgo in order to update the Jetty server version. While I'm not a gradle expert, it appears that that there seems to be more to it than a simple gradle build. The wiki states that the documentation is for 3.6 and older only. Is there any place to find out more?

As a side note, I was scanning the forum and noticed an older post about discontinuing VJS but nothing else anywhere. I know that for us this is really our favored approach as we are transitioning and have some current dependencies on Jetty.

Thanks
Alain
Re: Building Virgo 3.7.x [message #1782272 is a reply to message #1782215] Wed, 21 February 2018 07:45 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Alain,

yes, we currently don't have the resources nor the necessary Jetty expertise to deliver a high quality Jetty flavour of Virgo.
Last year Eduardo Fernández started working on upgrading VJS [1] but we didn't manage to get a newer version of Jetty up and running properly with all required dependencies updated.

In case you want to pick up the work (which is highly appreciated) please comment on the bug mentioned above so we can gather all required information in one place.

A good starting point is `BUILD.MD`[2] in the new Virgo main repository[3].

Thanks in advance,
florian

[1] - https://bugs.eclipse.org/bugs/show_bug.cgi?id=511424https://bugs.eclipse.org/bugs/show_bug.cgi?id=511424
[2] - http://git.eclipse.org/c/virgo/org.eclipse.virgo.root.git/tree/BUILD.md
[3] - git.eclipse.org/gitroot/virgo/org.eclipse.virgo.root.git
Re: Building Virgo 3.7.x [message #1782289 is a reply to message #1782272] Wed, 21 February 2018 11:37 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Hi Florian,

Thanks for all the info. Really to the point. I added myself to the issue for VJS and more than likely will tackle it in the next month or so after we get further along (for now we'll use the old Jetty).

Alain
Re: Building Virgo 3.7.x [message #1782500 is a reply to message #1782272] Sat, 24 February 2018 20:14 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Florian,

I have been making some progress but also have a few questions.

1- We are migrating from a PDE environment and many of our projects use recent Eclipse and Equinox bundles, while Virgo ships with antique versions. For example we have o.e.core.runtime-3.13. When trying to import those bundles in my plan I face the issue of the system bundle fragments. I was wondering if it wouldn't be better for Virgo to use the current release of Equinox or should I add them as suggested in the doc ?

2- Then tried to built but getting some download errors such as:
Download http://build.eclipse.org/rt/virgo/maven/bundles/release/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.pom
[Fatal Error] com.springsource.org.objectweb.asm-3.1.0.pom:2:3: The markup in the document preceding the root element must be well-formed.
Download http://build.eclipse.org/rt/virgo/maven/bundles/release/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.pom
[Fatal Error] com.springsource.org.objectweb.asm.tree-3.1.0.pom:2:3: The markup in the document preceding the root element must be well-formed.

which don't seem to exist.

3- Build Error
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\ALPIC\git\virgo\kernel\build.gradle' line: 293

* What went wrong:
Execution failed for task ':kernel:org.eclipse.virgo.kernel.services:rewriteJar'.
> Unable to delete file: C:\ALPIC\git\virgo\kernel\org.eclipse.virgo.kernel.services\build\libs\org.eclipse.virgo.kernel.services-3.8.0.SNAPSHOT.jar

The file can't be deleted and Windows reports that it is in use by Java (probably the Gradle daemon). Have you seen this?

4- Bundle versions in org.eclipse.virgo.mirrored:
It seems here that even if I was to change the versions in the build that the latest ones are not mirrored, am I missing something?

5- Required Bundle (or Import-Bundle) with Virgo tooling: The documentation states: "Note that when using the Tools together with PDE to develop for Virgo it's not possible to use the MANIFEST.MF headers Import-Bundle (not part of the standard OSGi specification but supported by Virgo) and Require-Bundle (part of the standard OSGi specification but not supported by Virgo). Developers will have to declare all of their external dependencies using the Import-Package header only. ". While working with the tooling, I have a mix of Require-Bundle and Import Package and I can't seem to understand what is not supported at this point. Could you explain.

Thanks
Alain
Re: Building Virgo 3.7.x [message #1783741 is a reply to message #1782272] Fri, 16 March 2018 13:08 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Florian,

As stated in my last message I have a few issues that I would like to resolve and share back to help Virgo. Would appreciate a few quick pointers.

Thanks
Alain
Re: Building Virgo 3.7.x [message #1790460 is a reply to message #1783741] Mon, 11 June 2018 11:57 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Alain,

sorry for the late response.

to 1: Yes, we want to migrate to a newer version of Equinox: Bug 516412 - Upgrade Equinox to v3.12

to 2: I can reproduce this locally (after wiping my local Maven cache).
Finally the SpringSource EBR has been shut down.
Please build and install bundlor locally (See instructions below).
Newer versions of bundlor have all dependencies embedded.
We didn't publish bundlor 1.1.3.M01 or newer to Maven Central yet.

$ git clone git.eclipse.org/gitroot/virgo/org.eclipse.virgo.bundlor.git
$ ./gradlew publishToMavenLocal


to 3: The 'rewrite' task was introduced because Gemini Blueprint didn't recognise the jar as OSGi bundle otherwise.
I haven't seen that problem personally.
Maybe this is a Windows specific problem.
Could you open a bug?

to 4: Which bundle/version combinations are you looking for?

to 5: Maybe Giamma can chime in here...I'll drop him a note.

Regards,
florian
Re: Building Virgo 3.7.x [message #1851734 is a reply to message #1782215] Thu, 14 April 2022 08:39 Go to previous messageGo to next message
rob li is currently offline rob liFriend
Messages: 3
Registered: September 2021
Junior Member
Hi all,

I tried building 3.7.x, but got this error, any idea what I am missing?

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':medic:org.eclipse.virgo.medic:compileAspect'.
> Could not resolve all dependencies for configuration ':medic:org.eclipse.virgo.medic:compileClasspath'.
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
Required by:
project :medic:org.eclipse.virgo.medic
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
> Could not get resource 'http://build.eclipse.org/rt/virgo/ivy/bundles/release/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Could not GET 'http://build.eclipse.org/rt/virgo/ivy/bundles/release/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Connection reset
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
> Could not get resource 'http://build.eclipse.org/rt/virgo/ivy/bundles/milestone/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Could not GET 'http://build.eclipse.org/rt/virgo/ivy/bundles/milestone/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Connection reset
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
> Could not get resource 'http://build.eclipse.org/rt/virgo/ivy/bundles/release/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Could not GET 'http://build.eclipse.org/rt/virgo/ivy/bundles/release/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Connection reset
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
> Could not get resource 'http://build.eclipse.org/rt/virgo/ivy/bundles/milestone/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Could not GET 'http://build.eclipse.org/rt/virgo/ivy/bundles/milestone/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/ivy-3.9.1.v20140110-1610.xml'.
> Connection reset
> Could not resolve org.eclipse.virgo.mirrored:org.eclipse.osgi:3.9.1.v20140110-1610.
> Could not get resource 'http://build.eclipse.org/rt/virgo/maven/bundles/release/org/eclipse/virgo/mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/org.eclipse.osgi-3.9.1.v20140110-1610.pom'.
> Could not GET 'http://build.eclipse.org/rt/virgo/maven/bundles/release/org/eclipse/virgo/mirrored/org.eclipse.osgi/3.9.1.v20140110-1610/org.eclipse.osgi-3.9.1.v20140110-1610.pom'.
> Connection reset
Re: Building Virgo 3.7.x [message #1864059 is a reply to message #1851734] Thu, 14 March 2024 02:13 Go to previous message
qiang wang is currently offline qiang wangFriend
Messages: 2
Registered: March 2024
Junior Member
Has this problem be resolved?I found the build.eclipse.org site was missing too.
Previous Topic:AspectJ logs not printing issue with Open JDK 17
Next Topic:Building Virgo 3.6.4
Goto Forum:
  


Current Time: Fri Apr 19 19:50:40 GMT 2024

Powered by FUDForum. Page generated in 0.03105 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top