Installing WebConsole using OBR?

2009-01-16 Thread Allen Lau
I'm trying to install the Felix Web Management Console in Felix 1.4.1 using the obr client and this is popping up. - obr deploy Apache Felix Web Management Console Unsatisfied requirement(s): --- (service=org.osgi.service.http.HttpService) Apache Felix Web

OBR bundle installation order?

2009-01-19 Thread Allen Lau
Hi, Was wondering if there was a way to force the order of bundle installation with OBR? Basically I want to have the dependent bundles installed and optionally started first before the target bundle. For example. I have Bundle B1, B2, B3 where B1 depends on B2 which depends on B3. If I use

Re: OBR bundle installation order?

2009-01-20 Thread Allen Lau
dynamic services for. Kind regards, Peter Kriens On 19 jan 2009, at 21:32, Allen Lau wrote: Hi, Was wondering if there was a way to force the order of bundle installation with OBR? Basically I want to have the dependent bundles installed and optionally started first before

Re: OBR bundle installation order?

2009-01-20 Thread Allen Lau
at all. Do you actually mean the start order? - richard Allen Lau wrote: Peter, Richard, Thanks for the replies. Your are right, homegrown bundles should not rely on this mechanism. But for practical purposes, some 3rd-party bundles I'm installing do and as such I was looking

Re: Installing WebConsole using OBR?

2009-01-22 Thread Allen Lau
]) you should be able to deploy the web console in your setup. Regards Felix [1] http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.bundlerepository/1.3.0-SNAPSHOT/org.apache.felix.bundlerepository-1.3.0-20090122.082408-2.jar Allen Lau schrieb: I'm

Re: OBR uninstall command?

2009-03-10 Thread Allen Lau
Hi Stuart, Thanks for the pointer, I did look at it initially but missed the ExportedPackage.getImportingBundles() part. Now that makes sense. Allen On Tue, Mar 10, 2009 at 11:16 AM, Stuart McCulloch mccu...@gmail.comwrote: 2009/3/11 Allen Lau allen@gmail.com Hi, I'm looking

Re: Maven bundle plugin - building multiple bundles in one project

2009-05-15 Thread Allen Lau
Hi, Not sure if this will help, but if you want to run the bundle-plugin twice, I think you can accomplish this by specifying multiple execution with separate configuration options. For example: artifactIdmaven-bundle-plugin/artifactId executions execution

Issue with OBR filters?

2009-05-28 Thread Allen Lau
Hi, Trying out the latest BundleRepository 1.4.0 release. It seems that certain filters are still failing on deploy. For instance, I have an import-package header that looks like this: org.slf4j;version=[1.5.6,1.5.6];provider=paxlogging which bindex translates to require extend=false

Re: Issue with OBR filters?

2009-05-28 Thread Allen Lau
be on the export, not the import. Further, I am not sure if support for mandatory attributes is implemented in OBR. - richard On 5/28/09 4:30 PM, Allen Lau wrote: Hi, Trying out the latest BundleRepository 1.4.0 release. It seems that certain filters are still failing on deploy

Re: Issue with OBR filters?

2009-05-28 Thread Allen Lau
Felix OBR client does not understand it or is interpreting it incorrectly. Allen On Thu, May 28, 2009 at 5:00 PM, Richard S. Hall he...@ungoverned.orgwrote: On 05/28/2009 07:35 PM, Allen Lau wrote: Hi Richard, If that is the case, should the bindex code in the maven-bundle-plugin be updated

Excluding optional imports with OBR?

2009-08-17 Thread Allen Lau
Hi, just wondering if there is an easy way to tell OBR not to check and deploy optional imports during deploy? Thanks, Allen

bundle.findEntries() does not include Fragment contents?

2009-08-28 Thread Allen Lau
Hi, Testing the use of fragments in Felix 1.8.1 and it seems that the bundle.findEntries() method is not returning fragment contents at all. According to the javadocs, the fragment entries should be returned after all entries in the host bundle is returned. Is this due to the partial support of

Re: bundle.findEntries() does not include Fragment contents?

2009-08-29 Thread Allen Lau
, Allen Lau wrote: Hi, Testing the use of fragments in Felix 1.8.1 and it seems that the bundle.findEntries() method is not returning fragment contents at all. According to the javadocs, the fragment entries should be returned after all entries in the host bundle is returned. Is this due

Anyway to turn on DEBUG: WIRE: messages dynamically?

2009-09-11 Thread Allen Lau
Hi, When the Resolver fails in Felix (like when resolve can not resolve a package for some unknown reason), I usually have to stop the framework and set the felix.log.level=4 in the config.properties in order to see the DEBUG: WIRE: bundleid - module;bundle-symbolic-name= ... messages. Is

Re: Failing to use remote shell

2009-09-29 Thread Allen Lau
Did you happen to set the osgi.shell.telnet.ip to an ip other than 127.0.0.1? Otherwise, you can only telnet to the server from the local machine where Felix was started. On Tue, Sep 29, 2009 at 4:22 PM, Matt Tennant mtenn...@4home.com wrote: Hi all, I've been trying to use the Apache Felix

Re: Failing to use remote shell

2009-09-30 Thread Allen Lau
to start up only after another bundle has programatically set osgi.shell.telnet.ip, but that is a bit hokey. Or am I totally missing something? Thanks, Matt - Original Message - From: Allen Lau allen@gmail.com To: users@felix.apache.org Sent: Tuesday, September 29, 2009 4:37:46 PM

ConfigAdmin 1.2x issue with bind location

2009-11-16 Thread Allen Lau
Hi, I am seeing and issue with 1.2.0x(both 1.2.0 and 1.2.4) that seems to work in 1.0.10. I created a configuration with pid pidA and a null location. Installed new bundle, started it which registers a ManagedService using pidA All is fine, the bundle location is updated. However, when I

Re: bindex or obr problem?

2010-02-10 Thread Allen Lau
What we have done in our environment is to change the bindex tool to make the ExecutionEnvironment an optional requirement. Allen On Wed, Feb 10, 2010 at 7:32 AM, Hampel, Michael michael.ham...@siemens.com wrote: Hello, we have the following problem starting a bundle with obr: In the

Re: bindex program ignores war files

2010-03-21 Thread Allen Lau
BIndex only looks at jar files. It is quite easy to patch the src/org/osgi/impl/bundle/bindex/Index.java to work with other file extensions though. On Sat, Mar 20, 2010 at 9:17 PM, Sahoo sa...@sun.com wrote: BIndex utility seems to be ignoring .war files while creating the repository.xml. Is

Regression in OBR 1.6.0?

2010-04-03 Thread Allen Lau
Just trying out the 1.6.0 client. Seems like the new client does not allow installation of old bundles for some reason. Using the old 1.4.3 client, I can see obr list -v Felix Web Apache Felix Web Management Console [org.apache.felix.webconsole] (2.0.6, 2.0.4, 2.0.2, 1.2.10, 1.2.8, 1.2.2,

Re: Regression in OBR 1.6.0?

2010-04-12 Thread Allen Lau
: Yes, this is a regression. I'll fix it asap. On Sat, Apr 3, 2010 at 23:11, Allen Lau allen@gmail.com wrote: Just trying out the 1.6.0 client. Seems like the new client does not allow installation of old bundles for some reason. Using the old 1.4.3 client, I can see

Re: Web console issues

2010-11-02 Thread Allen Lau
There is a problem with newer Jetty versions running inside of Felix that causes this problem. Don't remember the thread that pinpoints the exact issue. Reverting back to PAX-WEB 0.7.2 solves the issue. Give that a try. Allen On Mon, Nov 1, 2010 at 9:57 AM, Irad Dor irad@edgeci.com

Re: Oracle JDBC in OSGI

2010-11-11 Thread Allen Lau
I use the jdbc driver from SpringSource and it works fine connecting to Oracle. Here's the link: http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.oracle.jdbcversion=10.2.0.2searchType=bundlesByNamesearchQuery=jdbc On Thu, Nov 11, 2010 at 9:48 AM, Larry T

Re: Issue when using Felix Http service bundle package.

2011-02-01 Thread Allen Lau
Have you check the HTTP service bundle properties? I think by default, the bundle starts the bridge service and you need to set the org.apache.felix.http.jettyEnabled=true to get the HTTP service to work. Also check that the org.osgi.service.http.port is set to an unused port. You can set

Re: pax exam and felix

2011-02-27 Thread Allen Lau
The current Pax Exam loads it's only Felix libraries until 3.0.2 I believe. It doesn't work with the new Felix versions yet, so take out your 3.0.8 jar and that should work. Allen On Sun, Feb 27, 2011 at 10:04 AM, teemu kanstren tkanst...@gmail.comwrote: Hello all, I have been trying to

Does ConfigurationAdmin.listConfigurations support service.bundleLocation as a filter?

2011-03-02 Thread Allen Lau
Hi, In the Configuration Admin 1.2.8 implementation, it doesn't seem to support service.bundleLocation as a filter. I'm passing in this filter (service.bundleLocation=file:bin/pax-logging-service-1.5.0.jar) and listConfigurations does not return a valid result. There pax logging bundle has a

Re: [ANN] OSGi in Action book

2011-03-30 Thread Allen Lau
Congrats. Another nice addition to the virtual library. On Mon, Mar 28, 2011 at 1:55 PM, Richard S. Hall he...@ungoverned.orgwrote: Sorry, for the blatant advertising, but the OSGi book that Karl, Stuart, David, and I have been working on forever is finally done and available (in electronic

Re: spring-osgi and autowired

2011-04-07 Thread Allen Lau
of a bean defined in B during the C startup, cause only C knows how to configure the bean from A that is needed in the bean in B. Does this make sense? On Wed, Mar 30, 2011 at 6:57 PM, Allen Lau allen@gmail.com wrote: I think what you want to do is achievable if you have some custom code

Re: A better life: quick webapp deploy

2011-04-25 Thread Allen Lau
I'm jumping in a bit late, but in order to build our wicket app without dependencies, we use both the maven-bundle-plugin to generate the manifest file first and then have the maven-war-plugin do the packaging of the actual war. we use the following lines in the war plugin configuration

Re: Recommended approach for consistent deployment

2011-05-03 Thread Allen Lau
Have you considered building a package/distribution yourself with all the bundles and configuration files included? That way, your are in complete control and can ensure that what ever you deploy will at least initially have everything that you intended and is completely reproducible. On Tue,

Re: SpringProxy is not visible from class loader

2011-06-16 Thread Allen Lau
,org.springframework.transaction.support;resolution:=optional;versi on=3.0,org.springframework.util;resolution:=optional;version=3.0 On Thu, Jun 16, 2011 at 1:31 PM, Allen Lau allen@gmail.com wrote: If you read the Spring manual, you'll notice that the @Transactional annotations are supported by Spring-AOP. See

Re: SpringProxy is not visible from class loader

2011-06-17 Thread Allen Lau
|taxonomymodelbundle/Embed-Dependency On Thu, Jun 16, 2011 at 5:07 PM, Allen Lau allen@gmail.com wrote: Have you consider just adding the org.springframework.aop as an import to the Import-Package directive? Bnd does a great job, but sometime it can't find all of your dependencies

Re: OSGi JPA example

2011-09-21 Thread Allen Lau
Have you looked at the EclipseLink implementation? We use it for DB2, Oracle, etc. On Wed, Sep 21, 2011 at 1:02 AM, Shai Amar shai.a...@krynnlance.com wrote: Hi I have a simple problem and I hope that there is a simple solution. I would like to use JPA in Felix and store data in a MySQL

system.bundle not a valid osgi.wiring.host?

2012-06-01 Thread Allen Lau
Hi, I think this is a bug, but not totally sure. Trying to attach a fragment to the system.bundle in order to export some javax.xml* packages with a different version than what is already exported by the system.bundle, However, when specifying a Fragment-Hostsystem.bundle/Fragment-Host, my

Re: system.bundle not a valid osgi.wiring.host?

2012-06-01 Thread Allen Lau
Thanks Felix, that did it. On Fri, Jun 1, 2012 at 3:45 PM, Felix Meschberger fmesc...@adobe.comwrote: Hi You have to add ; extension:=framework to the Fragment-Host header, as in Fragment-Host = system.bundle; extension:=framework Regards Felix Am 02.06.2012 um 00:28 schrieb Allen Lau

Re: exporting javax packages to osgi container

2012-06-14 Thread Allen Lau
Hi, see inline. On Thu, Jun 14, 2012 at 8:03 AM, chad.da...@emc.com wrote: I'm running felix embedded into a host application. I recently upgraded from java 6 to 7. When I did this, some of the bundles that import various javax packages, crypto and management for instance, began failing to

Re: Getting Started with Felix/Jetty

2012-06-14 Thread Allen Lau
Unless you really need to embed Felix, why not run the Felix distribution and add something like Pax-Web which embeds Jetty to be your WAR/WAB web container? On Thu, Jun 14, 2012 at 2:03 PM, Evan Ruff evan.r...@hendersonsawmill.comwrote: Hey guys, I'm just getting started with Felix and OSGi

Re: Maven Bundle Plugin incompatible with SVN revision bundles

2012-10-03 Thread Allen Lau
buildnumber-maven-plugin definitely works. Use maven-jar-plugin or maven-bundle-plugin depending on your package type. Don't mix them up. I would recommend that you use the bundle type and the maven-bundle-plugin for building OSGi apps. Try turning on debug with mvn -X to see what's going on.

Re: Maven Bundle Plugin incompatible with SVN revision bundles

2012-10-04 Thread Allen Lau
It will be overwritten by the bundle configuration of my modules Not very handy. But is there another way? Kind regards Le 04/10/2012 00:19, Allen Lau a écrit : buildnumber-maven-plugin definitely works. Use maven-jar-plugin or maven-bundle-plugin depending on your package type. Don't