Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Gemini Web on Felix
icon5.gif  Gemini Web on Felix [message #544886] Mon, 05 July 2010 21:34 Go to next message
David Savage is currently offline David SavageFriend
Messages: 6
Registered: July 2009
Junior Member
Hi there,

I'm trying to get gemini web running on felix and seeing a couple of problems - I'm using gemini-web-incubation-1.1.0.M01.zip.

Firstly I'm wondering if this is something you'd expect to work. Secondly if this "should" work it seems there's some missing bundles from the zip (or I'm missing some configuration step)

Here's the list of bundles I initially tried to install (from the gemini web 1.1.0.M01 zip - top level plus dep jars):

$ ls -1 bundles
com.springsource.javax.activation-1.1.1.jar
com.springsource.javax.annotation-1.0.0.jar
com.springsource.javax.ejb-3.0.0.jar
com.springsource.javax.el-1.0.0.jar
com.springsource.javax.mail-1.4.0.jar
com.springsource.javax.persistence-1.0.0.jar
com.springsource.javax.servlet-2.5.0.jar
com.springsource.javax.servlet.jsp-2.1.0.jar
com.springsource.javax.transaction-1.1.0.jar
com.springsource.javax.xml.bind-2.1.7.jar
com.springsource.javax.xml.rpc-1.1.0.jar
com.springsource.javax.xml.soap-1.3.0.jar
com.springsource.javax.xml.stream-1.0.1.jar
com.springsource.javax.xml.ws-2.1.1.jar
com.springsource.org.aopalliance-1.0.0.jar
com.springsource.org.apache.catalina.ha.springsource-6.0.20. S2-r5956.jar
com.springsource.org.apache.catalina.springsource-6.0.20.S2- r5956.jar
com.springsource.org.apache.catalina.tribes.springsource-6.0 .20.S2-r5956.jar
com.springsource.org.apache.commons.logging-1.1.1.jar
com.springsource.org.apache.coyote.springsource-6.0.20.S2-r5 956.jar
com.springsource.org.apache.el.springsource-6.0.20.S2-r5956. jar
com.springsource.org.apache.jasper.org.eclipse.jdt.springsou rce-6.0.20.S2-r5956.jar
com.springsource.org.apache.jasper.springsource-6.0.20.S2-r5 956.jar
com.springsource.org.apache.juli.extras.springsource-6.0.20. S2-r5956.jar
com.springsource.slf4j.api-1.5.10.jar
com.springsource.slf4j.nop-1.5.10.jar
org.eclipse.gemini.web.core-1.1.0.M01.jar
org.eclipse.gemini.web.extender-1.1.0.M01.jar
org.eclipse.gemini.web.tomcat-1.1.0.M01.jar
org.eclipse.virgo.util.common-2.1.0.D-20100420091708.jar
org.eclipse.virgo.util.io-2.1.0.D-20100420091708.jar
org.eclipse.virgo.util.math-2.1.0.D-20100420091708.jar
org.eclipse.virgo.util.osgi-2.1.0.D-20100420091708.jar
org.eclipse.virgo.util.parser.manifest-2.1.0.D-2010042009170 8.jar
org.springframework.aop-3.0.0.RELEASE.jar
org.springframework.beans-3.0.0.RELEASE.jar
org.springframework.context-3.0.0.RELEASE.jar
org.springframework.core-3.0.0.RELEASE.jar
org.springframework.osgi.core-1.2.1.jar
org.springframework.osgi.io-1.2.1.jar

This results in the following exception:

Error starting framework: org.osgi.framework.BundleException: Unresolved constraint in bundle com.springsource.org.apache.catalina.ha.springsource [16]: Unable to resolve 16.0: missing requirement [16.0] package; (&(package=org.apache.catalina)(version>=6.0.20.S2-r5956)(version <=6.0.20.S2-r5956)) - [16.0] package; (&(package=org.apache.catalina)(version>=6.0.20.S2-r5956)(version <=6.0.20.S2-r5956))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.springsource.org.apache.catalina.ha.springsource [16]: Unable to resolve 16.0: missing requirement [16.0] package; (&(package=org.apache.catalina)(version>=6.0.20.S2-r5956)(version <=6.0.20.S2-r5956)) - [16.0] package; (&(package=org.apache.catalina)(version>=6.0.20.S2-r5956)(version <=6.0.20.S2-r5956))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:34 21)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1754 )
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java: 905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java: 892)
...

The (&(package=org.apache.catalina)(version>=6.0.20.S2-r5956)(version <=6.0.20.S2-r5956)) version range seems a little restrictive...the closest I've found from spring bundle repository are:

com.springsource.org.apache.catalina-6.0.18.jar
and
com.springsource.org.apache.catalina-6.0.24.jar

But these don't export the correct package...

Any clues appreciated.

Regards,

Dave
Re: Gemini Web on Felix [message #544972 is a reply to message #544886] Tue, 06 July 2010 09:04 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Hi Dave

That's strange as the missing package is exported by bundle com.springsource.org.apache.catalina.springsource version 6.0.20.S2-r5956 which you seem to have installed.

The 'ha' bundle resolves fine under Equinox. Why don't you try it and then you can play spot the difference? See http://wiki.eclipse.org/Gemini/Web for instructions.

The reason for the specific version range is that Gemini Web uses a modified version of Tomcat 6.0.20. Essentially some changes needed to get embedded Tomcat working in an OSGi environment were accepted by the Tomcat community for Tomcat 7 but not for Tomcat 6, so we had to backport these on to a (private) vendor branch. The code is however present in an Eclipse CQ if you need to get it.

Regards,
Glyn
Re: Gemini Web on Felix [message #544998 is a reply to message #544972] Tue, 06 July 2010 10:20 Go to previous messageGo to next message
David Savage is currently offline David SavageFriend
Messages: 6
Registered: July 2009
Junior Member
Hmmm ok understood about the version range issue.

On further analysis the problem seems it could be related to a second level failure due to missing org.apache.coyote packages in the same range.

I see this is provided as a package from the fragment com.springsource.org.apache.coyote.springsource-6.0.20.S2-r5 956.jar...will dig further

Regards,

Dave
Re: Gemini Web on Felix [message #545442 is a reply to message #544998] Wed, 07 July 2010 19:16 Go to previous messageGo to next message
David Savage is currently offline David SavageFriend
Messages: 6
Registered: July 2009
Junior Member
Hi there,

Sorry took me a couple of days to get back to this.

The problem seems to be two fold, firstly the deps folder seems to be missing

com.springsource.org.apache.juli.extras:6.0.24

This is required to satisfy package imports in the following bundles:

com.springsource.org.apache.catalina:6.0.24
org.eclipse.gemini.web.tomcat:1.1.0.M01

If I add this then it works on equinox, but still fails on felix. On felix the problem looks like a resolve failure related to fragments attaching which I'll take up on the felix mailing lists.

Hope that's of interest/help

Regards,

Dave
Re: Gemini Web on Felix [message #545445 is a reply to message #545442] Wed, 07 July 2010 19:25 Go to previous message
David Savage is currently offline David SavageFriend
Messages: 6
Registered: July 2009
Junior Member
Embarrassed

Ignore me - com.springsource.org.apache.catalina:6.0.24 was added by my own hacking around...

Just a fragment problem...

I've raised the issue at felix:

http://issues.apache.org/jira/browse/FELIX-2466

Congrats on the release anyway works like a charm Smile

Regards,

Dave

[Updated on: Wed, 07 July 2010 20:16]

Report message to a moderator

Previous Topic:Gemini Web Milestone
Next Topic:missing blueprint namespace handler
Goto Forum:
  


Current Time: Fri Apr 26 01:27:20 GMT 2024

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

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

Back to the top