I talked with Guillaume about applying the patch and he wants us to verify that the jdt compiler really works in an osgi environment without the prefs service. I think that means we will need to get the the point of actually deploying a jsp app and having it run in the server and compile the jsps on the fly.... this may be a few days off. We might disable precompilation of jsps for the console and welcome app.

thanks
david jencks

On Nov 18, 2009, at 5:06 AM, Rick McGuire wrote:

Rick McGuire wrote:
Ivan wrote:
>From the error message, it is caused by org.apache.felix.prefs bundle is not started successfully, adding a -X option may help to check what happened while starting the dependent bundle.

2009/11/18 Forrest Xia <[email protected] <mailto:[email protected] >>

   Hi,

   When I try to build trunk, I encounter a problem when coming to
   plugins/jasper/jasper-deployer like this:

   [org.apache.geronimo.system.configuration.DependencyManager] :
   Could not start bundle:
   org.apache.geronimo.modules.geronimo-jasper [86]
   org.osgi.framework.BundleException: Unresolved constraint in
   bundle org.apache.servicemix.bundles.jdt-core [94]: package;
   (package=org.osgi.service.prefs)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) at org.apache.felix.framework.Felix.startBundle(Felix.java: 1597)
       at
   org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)

   Then I checked the started bundles stack and found no preference
   service bundle installed, which is required by jdt-core.

I add some dependency like this to the pom.xml, but it's not work.

I'm not sure why the dependency isn't working, but it's possible that the Felix implementation jar is not exporting the api.

However, I just checked my build, and I had to make a local modification to that bundle to make the import of that package optional. I'll see if I can't get that change made in the official version.
It looks like David Jencks is ahead of me on this. Apply the patch attached to this Jira to get this working:

https://issues.apache.org/activemq/browse/SMX4-412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

And now that I'm reminded of this...I believe I sent the patch to David in the first place :-)

Rick

Rick


   <dependency>
                   <groupId>org.apache.felix</groupId>
                   <artifactId>org.osgi.compendium</artifactId>
                   <version>1.2.0</version>
                   <exclusions>
                       <exclusion>
                           <groupId>org.apache.felix</groupId>
<artifactId>org.osgi.foundation</ artifactId>
                       </exclusion>
                       <exclusion>
                           <groupId>org.apache.felix</groupId>
                           <artifactId>javax.servlet</artifactId>
                       </exclusion>
                   </exclusions>
               </dependency>

       <dependency>
                   <groupId>org.apache.felix</groupId>
                   <artifactId>org.apache.felix.prefs</artifactId>
                   <version>1.0.2</version>
                                  </dependency>

   So anyone can give me a hint about this problem? thanks a lot!

   Forrest




--
Ivan




Reply via email to