Re: Felix download links broken
There is a link under the Mirrors section that says "If the mirror displayed above is labeled preferred, then please reload this page by clicking here". If you don't have an actual mirror displayed this link will reload the mirrors list and you will get correct download links. Let us know if this doesn't fix the links for you. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Sun, May 16, 2010 at 7:38 PM, Matt Tennant wrote: > I hope this will get to the right person. All the download links at > > > > http://felix.apache.org/site/downloads.html > > > > are broken right now. > > > > Cheers, > > Matt > >
Re: starting a bundle from a separate JVM
These are all good options, but I would also look at JMX via the new 4.2 Enterprise Specification. Karaf includes the JMX implementation from Aries if you want to try it out. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Sun, May 9, 2010 at 12:19 AM, Kent Tong wrote: > Hi, > > What is the best way to start a bundle installed in Felix from a Java > program > running in another JVM (not a bundle)? > > Thanks! > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: correct syntax for multi-valued properties in fileinstall cfg files?
OK, I see what you are after now :-) The fileinstall config handler doesn't currently support multivalue properties, so whatever you set on a property value gets parsed as a single string (the code simply uses load(inputstream) from the Properties class). This functionality could probably be added, but we would have to decide on a way to differentiate between scalar values and arrays ("this, is, one, string" vs. String[] property = {"this","is","one","string"} ). Another option would be to support syntax similar to the scr javadoc annotations and munge the properties into an array (value.1="this", value.2="is", etc become String[] property = {"this","is", etc} ). If you are interested in that feature, please create a Jira and someone will take a look. http://issues.apache.org/jira/browse/FELIX Until then, you could either add your own config admin code to do something like this, or you can add a method with a single string argument to accept the property and then parse and process into your component after it is set by scr from the config admin. Thanks, Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Mar 18, 2010 at 10:11 AM, Justin Edelson wrote: > Thanks Chris. > > I was actually referring to the configuration files (with .cfg > extension) which is described here: > > http://felix.apache.org/site/apache-felix-file-install.html#ApacheFelixFileInstall-Configurations > > I would like to set a property to a String array. With scr qdox > annotations, this would look like this: >/** > * @scr.property values.1="/foo" values.2="/bar" > */ > > I saw this line in the documentation: > header ::= ( ':' | '=' ) ( '\ ) * > > which implied to me that the syntax I used below would work. > > If no one knows, I'll look through the code. Maybe this isn't possible. > > Justin > > > On 3/17/10 11:37 PM, Chris Custine wrote: > > There really aren't any config properties for fileinstall that accept > > multiple values as far as I know. If you need to monitor multiple > > directories you can create multiple config files as shown in the > > fileinstall docs > > here: > http://felix.apache.org/site/apache-felix-file-install.html#ApacheFelixFileInstall-WatchingmultipledirectorieswithFileInstall > > > > Chris > > < > http://felix.apache.org/site/apache-felix-file-install.html#ApacheFelixFileInstall-WatchingmultipledirectorieswithFileInstall > > > > -- > > Chris Custine > > FUSESource :: http://fusesource.com > > My Blog :: http://blog.organicelement.com > > Apache ServiceMix :: http://servicemix.apache.org > > Apache Felix :: http://felix.apache.org > > Apache Directory Server :: http://directory.apache.org > > > > > > On Wed, Mar 17, 2010 at 7:07 PM, Justin Edelson > <mailto:justinedel...@gmail.com>> wrote: > > > > What is the correct syntax for multi-valued properties in a > fileinstall > > cfg file? I tried a few variations on: > > > > name=value1 \ > > value2 \ > > value3 > > > > but they didn't work. > > > > Thanks, > > Justin > > > > - > > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > > <mailto:users-unsubscr...@felix.apache.org> > > For additional commands, e-mail: users-h...@felix.apache.org > > <mailto:users-h...@felix.apache.org> > > > > > >
Re: correct syntax for multi-valued properties in fileinstall cfg files?
There really aren't any config properties for fileinstall that accept multiple values as far as I know. If you need to monitor multiple directories you can create multiple config files as shown in the fileinstall docs here: http://felix.apache.org/site/apache-felix-file-install.html#ApacheFelixFileInstall-WatchingmultipledirectorieswithFileInstall Chris <http://felix.apache.org/site/apache-felix-file-install.html#ApacheFelixFileInstall-WatchingmultipledirectorieswithFileInstall> -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Wed, Mar 17, 2010 at 7:07 PM, Justin Edelson wrote: > What is the correct syntax for multi-valued properties in a fileinstall > cfg file? I tried a few variations on: > > name=value1 \ > value2 \ > value3 > > but they didn't work. > > Thanks, > Justin > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
[ANN] Apache Felix Karaf version 1.4.0 released
The Felix team is pleased to announce the release of Apache Felix Karaf version 1.4.0 Karaf is a small, OSGi-based runtime that provides a lightweight container into which various components and applications can be deployed. http://felix.apache.org/site/apache-felix-karaf.html This release is available from http://felix.apache.org/site/downloads.cgi Release Notes: ** Bug * [FELIX-1768] - should catch exception for FeaturesServiceImpl.internalAddRepository per uri * [FELIX-1843] - Karaf shell doens't work properly under windows * [FELIX-1932] - Possible NullPointerException when itest fails * [FELIX-1939] - [karaf] Ssh client out put is poorly formatted. * [FELIX-1964] - Unable to choose the framework using system properties * [FELIX-1970] - The stop script should always work even if the default user / password / host has been changed * [FELIX-1994] - Web Console admin,features and gogo plugins do not work with Equinox * [FELIX-1995] - Spring status does not show properly after osgi:list command * [FELIX-2012] - NullPointerException when some links clicked if karaf.framework=equinox * [FELIX-2025] - grep -v doesn't filter linefeed on Windows * [FELIX-2026] - Remove org.ops4j.pax.logging.DefaultServiceLog.level from system.properties * [FELIX-2027] - The custom deployers leveraging url handlers must not be registered before the url handler is actually registered in the osgi framework * [FELIX-2032] - file host.key is not correctly written for a new instance(s) * [FELIX-2043] - When launching Karaf with equinox, the osgi framework state is not written until 30s after the boot * [FELIX-2044] - System bundles are started out of order if the karaf.lock.level is > 1 * [FELIX-2045] - Restarting the framework from the web console (or using update on the system bundle) does not work * [FELIX-2053] - Completion does not reprint previous characters in some circumstances * [FELIX-2054] - Logo is garbled when connecting using putty * [FELIX-2063] - [karaf] hardcoding org.ops4j.pax.exam.rbc.rmi.port property in raw pax runner --vmOptions is problematic when 1099 is not the next free port * [FELIX-2065] - BootstrapLogManager doesn't load etc/org.ops4j.pax.logging.cfg file * [FELIX-2072] - [Karaf] OracleJDBCLock filling UNDO segment. * [FELIX-2074] - Bring back the history command ** Improvement * [FELIX-1914] - Add a development subshell to ease troubleshooting classloading/resolution issues * [FELIX-1947] - [Karaf] Remove import java.util.* from karaf.main.StringMap and replace with proper import list. * [FELIX-2001] - Add more info to log and console when feature bundles fail to resolve * [FELIX-2018] - features-maven-plugin add-features-to-repo should suport the bundle start with wrap: in features.xml * [FELIX-2028] - Upgrade to preferences services 1.0.4 * [FELIX-2046] - Upgrade web bundles to their latest version (jetty, pax-web, felix console) * [FELIX-2049] - extend org.apache.felix.karaf.testing.Helper to emit a karaf-specific execution environment file for pax-runner * [FELIX-2055] - Use a nicer shutdown mechanism when stopping a managed instance * [FELIX-2061] - [karaf] use waitForFrameworkStartup pax-exam option in the integration tests * [FELIX-2070] - Upgrade to felix framework 2.0.3 * [FELIX-2075] - Add a "new" command to create java objects from the command line * [FELIX-2084] - Make the display of exception stack traces available through a variable in the shell ** New Feature * [FELIX-1815] - Introduce 'shell:logout' command to close the current shell * [FELIX-1975] - [Karaf] Add oracle database support to Karaf jdbc locking feature. * [FELIX-2033] - Provide an easy to use layer for writing pax-exam test for Karaf * [FELIX-2047] - Support for WAR files ** Task * [FELIX-1902] - [karaf] sanitize web demo README of references to FUSE SNAPSHOT version * [FELIX-1915] - [karaf] allow overridding of etc/system.properties via environment Enjoy! -The Felix team
Re: Framework TCK results
Thanks for pointing this out. Nice work guys! Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Feb 18, 2010 at 1:09 AM, Richard S. Hall wrote: > Not sure if everyone is aware, but we've reached a nice milestone for the > framework: > > > http://felix.apache.org/site/apache-felix-framework-osgi-tck-results.html > > Since the framework 2.0.0 release, we've been passing all core mandatory > parts of the OSGi CT. > > Thanks to Karl Pauls' recent effort around security, framework 2.0.3 now > passes all security tests...in other words, we are passing the entire core > OSGi framework CT. > > Karl rocks! > > -> richard > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Using maven embedder in Felix
I would say that either the bundle with that xml resource does not export the org.codehaus.plexus package where the xml file is, and/or the bundle containing your activator does not import that package. If those are both true, it should work as far as I can tell. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Jan 28, 2010 at 5:45 AM, Alexander Blotny < alexander.blo...@fokus.fraunhofer.de> wrote: > Hi, > > I am trying to use maven embedder inside the Felix OSGi framework. > At first I created the MANIFEST files for all the dependencies of maven > embedder and used jardir for starting the bundles. > > Following jars are started: > > aspectjrt-1.5.3.jar > commons-cli-1.0.jar > doxia-sink-api-1.0-alpha-9.jar > jsch-0.1.27.jar > jtidy-4aug2000r7-dev.jar > maven-artifact-3.0-SNAPSHOT.jar > maven-core-2.1-SNAPSHOT.jar > maven-embedder-2.1-SNAPSHOT.jar > maven-lifecycle-2.1-SNAPSHOT.jar > maven-model-2.1-SNAPSHOT.jar > maven-plugin-api-2.1-SNAPSHOT.jar > maven-profile-2.1-SNAPSHOT.jar > maven-project-2.1-SNAPSHOT.jar > maven-reporting-api-2.1-SNAPSHOT.jar > maven-toolchain-2.1-SNAPSHOT.jar > maven-workspace-2.1-SNAPSHOT.jar > plexus-classworlds-1.2-alpha-12.jar > plexus-container-default-1.0-alpha-44.jar > plexus-interactivity-api-1.0-alpha-6.jar > plexus-interpolation-1.0-SNAPSHOT.jar > plexus-utils-1.5.1.jar > wagon-file-1.0-beta-2.jar > wagon-http-lightweight-1.0-beta-2.jar > wagon-http-shared-1.0-beta-2.jar > wagon-provider-api-1.0-beta-2.jar > wagon-ssh-1.0-beta-2.jar > wagon-ssh-common-1.0-beta-2.jar > wagon-ssh-external-1.0-beta-2.jar > > Using maven embedder from within eclipse was no problem but starting it in > the OSGi framework throws exceptions. > The code for using maven embedder I got from the apache maven homepage > (excerpt) and started it in the Activator of a bundle: > > File projectDirectory = new File(folder); > File user = new File(projectDirectory, "settings.xml"); > Configuration configuration = new > DefaultConfiguration().setUserSettingsFile( user ).setClassLoader( > context.getBundle().getClass().getClassLoader() ); > ConfigurationValidationResult validationResult = > MavenEmbedder.validateConfiguration(configuration); > if ( validationResult.isValid() ) >{ >MavenEmbedder embedder = null; >try { >embedder = new MavenEmbedder( configuration ); >} catch (MavenEmbedderException e) { >e.printStackTrace(); > } > } > > As you can see, as Classloader I am using the one from the bundle. > The problem is now that inside the jar plexus-container is a resource as > xml > which is accessed via getResourceStream of the Classloader. But the > resource > cannot be found: > > java.lang.IllegalStateException: The internal default plexus-bootstrap.xml > is missing. This is highly irregular, your plexus JAR is most likely > corrupt. Realms: > plexus.core parent=sun.misc.launcher$appclassloa...@6a765291 (null) >at > > org.codehaus.plexus.DefaultPlexusContainer.initializeConfiguration(DefaultPl > exusContainer.java:1017) [na:na] >at > > org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer > .java:812) [na:na] >at > > org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer. > java:406) [na:na] >at > > org.codehaus.plexus.DefaultPlexusContainer.(DefaultPlexusContainer.jav > a:199) [na:na] >at org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:652) > [na:na] >at > org.apache.maven.embedder.MavenEmbedder.(MavenEmbedder.java:198) > [na:na] > > The source code of accessing the xml file in plexus-container.jar looks > like > this: > >InputStream is = containerRealm.getResourceAsStream( > "org/codehaus/plexus/plexus-bootstrap.xml" ); if ( is == null ) > {ClassRealm cr = containerRealm;String realmStack = > "";while ( cr != null ){realmStack > += "\n " + cr.getId() + " parent=" + cr.getParent() + " (" > + cr.getResource( "org/codehaus/plexus/plexus-bootstrap.xml" ) + ")"; > cr = cr.getParentRealm();} > containerRealm.display(); > throw new IllegalStateException( "The internal default plexus-bootstrap.xml > is missing. "+ "This is highly irregular, your plexus JAR > is > most likely corrupt. Realms:" + realmStack );} > > Is there a possibility to assure access to that resource without changing > the source code? > Has anyone an idea? > > Thanks, > Alex > > >
Re: Command to list OSGI services published in Karaf
We also have a built in Karaf command "ls" which provides similar info. "ls" Shows all bundles and the services they provide. "ls -u" Shows all bundles and the services they are consuming. "ls and ls -u likewise provide a bit more detail on an individual bundle Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Fri, Jan 22, 2010 at 4:03 AM, Charles Moulliard wrote: > Hi, > > Is there a command equivalent of Apache Felix Inspect under karaf to check > services exposed by Blueprint, Spring-DM, ... ? > > To see the services exposed by a bundle, type > $ inspect service capability > or in brief > $ inspect s c > > To see services used by a bundle, type > $ inspect service requirement > or in brief > $ inspect s r > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > * > blog : http://cmoulliard.blogspot.com > twitter : http://twitter.com/cmoulliard > Linkedlin : http://www.linkedin.com/in/charlesmoulliard > > Apache Camel Group : > http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm >
Re: how to analyze bundle status in karaf (or the felix shell)
At the moment, I resolve these types of issues by setting felix.log.level=4 in etc/config.properties (or if you are using the latest snapshot Karaf builds you can use use the new "dev:framework --enable-debug" command and then restart). This will give you more information about the fragment resolution issues when resolution fails. In this particular case, you are running into https://issues.apache.org/jira/browse/FELIX-1919 which has had some discussion recently and hopefully we can find a solution at some point. Richard's first comment on the issue contains the specifics on why this happens. Thanks, Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Sat, Jan 2, 2010 at 2:45 PM, jamie campbell wrote: > I'm setting a system up in karaf, with local shell enabled. One of the > bundles (maven info, groupId: org.hibernate ; artifactId: > com.springsource.org.hibernate.annotations ; version 3.4.0.GA) gets to the > "installed" state, but doesn't get to active or resolved. > > I've read the dependencies listed using > http://www.springsource.com/repository/app/search , and verified they're > satisfied. I also went right to the pom and verified the dependencies > listed there are satisfied. I've also used the headers command in karaf, > and verified that the import packages list is satisfied. I read the mailing > list archives for this list and googled, and had a brief bit of excitement > thinking that "inspect package requirement" would be helpful, but it shows > me nothing (literally bundle imports packages : nothing). > > Is there a shell command of some sort I can use on a bundle id to tell me > "this bundle is still waiting for requirements satisfaction of blah, blah, > and blah" ? > > -Jamie > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Karaf fails to start as a service on an Arm processor
This is really good info John. Should save me some time when I finally get mine. I ordered the ProSyst card as well but I would like to see all of the open source projects running well also. When I get mine up and running we should compare notes and I will create some docs on the wiki. If you come up with anything else that needs to be documented or addressed fell free to reply to this thread or start a new one. Thanks, Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Dec 24, 2009 at 12:45 PM, John E. Conlon wrote: > Hi Chris, > > See inline comments... > > > > Chris Custine wrote: > >> The service wrapper doesn't have a libwrapper.so compiled for Arm so this >> isn't going to work at the moment. >> > Suspected so. Yesterday was a plunge ahead and temporarily ignore reality > kind of day. > I have been developing my bundles (based on OSGi WireAdmin/Config Admin > services ) and have been testing them on a Karaf working in an 256M Ubuntu > CLI based virtualbox vm running on my intel dev machine. Karaf is very cool > and easy to work with and the docs are straightforward and to the point. > But now I need to move the virtual to the real world. I hope to do it on > the plug, but if I encounter too much friction I can always go with a small > intel based box as well. > > I have a SheevaPlug coming next week so >> I will certainly be doing something about this, but in the mean time if >> you >> want to use the service wrapper you will have to get the native source for >> Tanuki Service Wrapper 3.2.3 and set up a cross compiler for Arm on a >> Linux >> machine. >> > Time permitting I may look into this. Thanks for the tip. > I know the Service Wrapper works well and there are a lot of features, but > is it possible to just start Karaf in the background? > > I'll try to add this to Karaf some time in the next month or two. >> >> >> > That would be very good. > > Just out of curiosity, other than the service wrapper is everything else >> running OK? >> > So so... > > The os shipping on the plug is somewhat of a hodgepodge and needs some > holes patched up to make it more usable. > See: > > http://plugcomputer.org/plugwiki/index.php/New_Plugger_How_To > > > Even with the patches the plug is very slow to boot and starting Karaf > (until the prompt) takes around 25 seconds! > > See also the intro of: > http://crichton.homelinux.org/~marc/eib_sheeva.html > > My experiences, and the comments from the above blog writer, make me think > that a clean OS install is the way to go. > > Also, are you running this on the ProSyst mBedded Server with >> J9 or are you using Felix and have all of the Java bits installed >> manually? >> >> > There is a long backlog for shipping the plug so our earlier prototyping > was done on the sister product to the plug the OpenRD client. (A plug mother > board with lots of I/O options.) Then I used J9 and ProSyst mBedded Server. > (As you probably already know the ProSyst dev kit is available as a buying > option along with the plug. Price is ~$39. But the ProSyst run times are > evaluation only.) > But for Java, I prefer to work in SE JVMs and found the J9 Foundation > Profile too constraining. Although ProSyst marketing and support were > helpful, here too I prefer to work with a larger community based OpenSource > OSGi framework like Felix or Equinox. > > As for now the Java on the Plug is an OpenJDK headless JRE. I simply > (after all the fixes noted above) installed a headless JRE on the plug with > a: > apt-get update openjdk-6-jre-headless > command. > > happy holidays, > John > > > Thanks, >> Chris >> -- >> Chris Custine >> FUSESource :: http://fusesource.com >> My Blog :: http://blog.organicelement.com >> Apache ServiceMix :: http://servicemix.apache.org >> Apache Felix :: http://felix.apache.org >> Apache Directory Server :: http://directory.apache.org >> >> >> On Wed, Dec 23, 2009 at 7:01 PM, John E. Conlon > >wrote: >> >> >> >>> Having problems running karaf as a service on a Sheeva Plug < >>> >>> http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp >>> >>> >>>> . >>>> >>>> >>> # cat /etc/issue >>> Ubuntu jaunty (development branch) \n \l >>> # cat /etc/debian_version >>> 5.0 >&
Re: Karaf 1.2.0 console not sending cr on Linux
I am fairly certain that this relates to the Mina/SSHD issue here: https://issues.apache.org/jira/browse/SSHD-67 which is also tracked at Karaf here: http://issues.apache.org/jira/browse/FELIX-1939 This should be fixed in SSHD soon, but in the mean time there is a patch attached to the first issue if you want to patch and build SSHD from SVN. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Dec 24, 2009 at 4:55 PM, John E. Conlon wrote: > Doing a ssh to a karaf running in as a service presents a console that does > not seem to send carriage returns. This makes the UI text jagged and > basically unuseable. > > Here is the command I use to open a remote session. > ssh -p 8101 -l karaf tracker1 > > This works in 1.0.0. Has something changed and now needs to be explicitly > configured? > > thanks, > John > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Karaf fails to start as a service on an Arm processor
The service wrapper doesn't have a libwrapper.so compiled for Arm so this isn't going to work at the moment. I have a SheevaPlug coming next week so I will certainly be doing something about this, but in the mean time if you want to use the service wrapper you will have to get the native source for Tanuki Service Wrapper 3.2.3 and set up a cross compiler for Arm on a Linux machine. I'll try to add this to Karaf some time in the next month or two. Just out of curiosity, other than the service wrapper is everything else running OK? Also, are you running this on the ProSyst mBedded Server with J9 or are you using Felix and have all of the Java bits installed manually? Thanks, Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Wed, Dec 23, 2009 at 7:01 PM, John E. Conlon wrote: > Having problems running karaf as a service on a Sheeva Plug < > http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp > >. > > # cat /etc/issue > Ubuntu jaunty (development branch) \n \l > # cat /etc/debian_version > 5.0 > # uname -a > Linux debian 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux > > After installing the wrapper feature > ka...@root> wrapper:install > Creating file: /opt/felix/apache-felix-karaf-1.2.0/bin/karaf-wrapper > Creating file: /opt/felix/apache-felix-karaf-1.2.0/bin/karaf-service > Creating file: /opt/felix/apache-felix-karaf-1.2.0/etc/karaf-wrapper.conf > Creating file: /opt/felix/apache-felix-karaf-1.2.0/lib/libwrapper.so > Creating file: /opt/felix/apache-felix-karaf-1.2.0/lib/karaf-wrapper.jar > > After linking > ln -s /opt/felix/apache-felix-karaf-1.2.0/bin/karaf-service /etc/init.d/ > > I am not able to start the service. Here is what I get... > jcon...@debian:/opt/felix/apache-felix-karaf-1.2.0$ bin/karaf-service > start > Starting karaf... > Killed > > Any ideas or trouble shooting tips? > > thanks, > John > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.
Hi Charles, In addition to Richard's suggestion to look at debug level framework logging, I wonder was this working for you previously? Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Thu, Dec 3, 2009 at 9:37 AM, Charles Moulliard wrote: > I try to link a fragment bundle to its host but it does not succeed with > Apache Felix 2.0.1 which is used on Apache Felix Karaf > > Here are the bundles installed for Hibernate : > > osgi:install -s > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_2 > osgi:install -s mvn:org.antlr/com.springsource.antlr/2.7.7 > osgi:install -s mvn:org.jgroups/com.springsource.org.jgroups/2.5.1 > osgi:install -s > mvn:org.objectweb.asm/com.springsource.org.objectweb.asm/1.5.3 > osgi:install -s > mvn:net.sourceforge.cglib/com.springsource.net.sf.cglib/2.2.0 > osgi:install -s mvn:org.jboss.javassist/com.springsource.javassist/ > 3.9.0.GA > osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate/3.3.2.GA > osgi:install -s > mvn:org.hibernate/com.springsource.org.hibernate.annotations.common/ > 3.3.0.GA > osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate.ejb/ > 3.4.0.GA > > and the two bundles involved > > [ 86] [Installed ] [] [ ] [ 60] JBoss Hibernate > Entity > Manager (3.4.0.GA) // Fragment bundle > [ 89] [Active ] [] [ ] [ 60] JBoss Hibernate > Object-Relational Mapper (3.3.2.GA) // its host > > using the command > > osgi:refresh 89 > > does not affect the host bundle. The list of packages of the fragment > bundles are not at all exported. > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > * > blog : http://cmoulliard.blogspot.com > twitter : http://twitter.com/cmoulliard > Linkedlin : http://www.linkedin.com/in/charlesmoulliard > > Apache Camel Group : > http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm >
Re: Problems On OS X
I think Felix is meant to be started from the install root with the command "java -jar bin/felix.jar". If you want a different location for the bundle cache you can use "java -jar bin/felix.jar " or take a look at the config properties org.osgi.framework.storage, felix.cache.rootdir, etc. from here: http://felix.apache.org/site/apache-felix-framework-usage-documentation.html#ApacheFelixFrameworkUsageDocumentation-configuringframework Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Mon, Nov 9, 2009 at 9:54 AM, Johannes Ruscheinski wrote: > Hi, > > Last night I downloaded the most recent version of Felix as a gzipped > tarball and installed it under /usr/local/... After starting felix > with "java -jar .../bin/felix.jar" I got the Felix version number and > a row of equal signs but not the "->" prompt or any other prompt. I > did wait for several minutes. I am running Snow Leopard 10.6.1 and if > I remember correctly, Felix was at 2.1.x. Sorry, my laptop is at home > and I am not sure about the exact version number. My Java is at > 1.5.x. How should I go about debugging this problem? > > TIA, > -- > Johannes > > Obligatory current favourite quotes: > > "I have more confidence in the methods of science, based on the amazing > record of science and its ability over the centuries to answer > unanswerable questions, than I do in the methods of faith (what are > they?)." > -- David J. Gross "Physics Nobel Laureate" > > "Atheism is a religion to the same extent that not collecting stamps is a > hobby." > -- seen on Slashdot.org > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Version management in Sigil
Hi David, I haven't used it myself, but have you looked at Tycho? http://docs.codehaus.org/display/M2ECLIPSE/Tycho+user+docs#Tychouserdocs-InstallingandrunningTycho IIUC, this is specifically for building Eclipse Plugins and update sites with Maven. It almost certainly has a solution for the issues you mention. The page above is a bit old, but I think there has been a lot more development and progress on Tycho than is apparent on that page. This is being built by the Sonatype guys, so I think it might be worth looking at if you haven't already. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Wed, Sep 16, 2009 at 8:18 AM, David Savage wrote: > Hi there, > > Thought I'd send out this message to a large audience than just the > dev team as it's one of those things that it's good to get wide > feedback on. I'm currently in the process of getting the sigil build > up and running here at apache and one slightly complicated issues in > OSGi development is managing the version number of bundles and I'm > currently trying to figure out the "best" path. > > In order to describe the problem I also probably need to give you some > background...I started to do this in email but then figured wiki was a > better place for it. > > http://cwiki.apache.org/FELIX/sigil-projects.html > http://cwiki.apache.org/FELIX/sigil-installation.html > > Both are quite short if you've the time to read them the rest of this > email will make more sense... > > My current problem with the sigil build is wrt to .SNAPSHOT and > eclipse update sites. I've currently set the sigil build to build > bundles with a version of 0.9.0.SNAPSHOT as per the maven build > pattern. But this get's me into hot water when trying to test these > bundles in Eclipse as P2 quite rightly assumes that once you've > installed a version of a bundle with a particular version that's it. > It will only prompt you to install a new bundle from an update-site if > a new version appears that is greater than the old version. Here > .SNAPSHOT falls down... > > I think in order to make this process easier sigil should borrow a > pattern from pde which is to use a version of the format: > > -version: 1.0.0.${qualifier} > > where qualifier is a dynamically calculated value - either from system > properties or some other config source. In snapshot builds where you > don't want multiple versions of your jar piling up on top of each > other the qualifer can be set to .SNAPSHOT but in release builds a > time stamp value can be automatically substituted to ensure > incremental builds. Again this is important for development time work > on sigil as in order to test the plugins we build that are downloaded > from an update site the version number needs to increment and it's a > pain to have to keep doing this manually. > > Does this make any sense - are there other options? > > Thoughts on a post card etc. > > Regards, > > Dave > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Problem with config of FileInstall 2.0.0 (includes solution)
The filter and tmpdir properties were updated in the docs yesterday, but were probably not pushed from the wiki until last night. Looks like they are live now: http://felix.apache.org/site/apache-felix-file-install.html Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Tue, Sep 15, 2009 at 9:56 AM, Matthias Neubert wrote: > Hello, > > I had a Problem using FileInstall 2.0.0 (I recently upgraded my project > from 1.2.0 > While writing this mail I found the solution, which I now want to share. > > > I configure fileisntall when i configure my embedded felix : (in java code > embedded) > ("felix.fileinstall.dir", absNewBundle); > ("felix.fileinstall.debug", "1"); > ("felix.fileinstall.poll", "3000"); > > this worked until using version 2.0.0 > > Version 2.0.0 tries to create a folder ./tmp and then proclaims about > not beeing able to create that folder. This leads fileinstall not to work. > (see error message at bottom) > > On googleing I found this page; > > http://mail-archives.apache.org/mod_mbox/felix-commits/200909.mbox/%3c1324519852.4906.1252930140018.javamail.www-d...@brutus%3e > > Here a property I never have seen before is mentioned: > ... > felix.fileinstall.tmpdir > ./tmp > The name of the temporary directory to use with > exploded or > transformed bundles > > > Then I found this in standard message, which showed me the solution: > 09-15 17:25:21.316: INFO/System.out(12502): {felix.fileinstall.poll (ms) = > 3000, felix.fileinstall.dir = > /data/data/de.mnsoft.felixhostapp/files/felix/newbundles, > felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, > felix.fileinstall.tmpdir = ./tmp, felix.fileinstall.filter = null} > > I may have overseen it, but when upgrading I checked the properties on > fileinstalls webpage, and it wasn't mentioned there that this important > key exists. It would be nice (if not already happend) if this would be > somehow mentioned in all fileinstall docs on the apache felix sites. > > regards > matthias > > > > > > > > > Error message: > > 09-15 17:26:06.487: INFO/System.out(12502): Cannot create folder ./tmp. Is > the folder write-protected? > 09-15 17:26:06.497: INFO/System.out(12502): In main loop, we have serious > trouble: java.lang.RuntimeException: Cannot create folder: ./tmp > 09-15 17:26:06.497: INFO/System.out(12502): java.lang.RuntimeException: > Cannot create folder: ./tmp > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareDir(DirectoryWatcher.java:385) > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.transformArtifact(DirectoryWatcher.java:333) > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:271) > >
Re: Cannot load native library
I could be mistaken, but IIRC you can also get this error if the library is linked against another lib that is missing. On linux you can usually figure these out with ldd. ldd -v /var/lib/fluid/osgi-config/bundle9/version0.0/lib/native/linux/mips/librxtxSerial.so Not sure if you have that option on your device, but it might be worth a try. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Mon, Sep 14, 2009 at 5:13 PM, Matt Tennant wrote: > Hi all, > > I have a problem that has me stumped, and I'm looking for any help I can > get. I recently ported our company's java code to OSGi bundles, usually > running in the Felix framework and embedded in a device with phoneME JVM. > Everything works great except for a couple of issues, one of which is that > on one of our devices the native libraries won't load. I get an error like > this: > > Uncaught Exception in thread Serial Communications Thread: > java.lang.UnsatisfiedLinkError Can't load > /var/lib/fluid/osgi-config/bundle9/version0.0/lib/native/linux/mips/librxtxSerial.so > java.lang.ClassLoader.loadLibraryInternal(Unknown Source) > java.lang.ClassLoader.loadLibrary(Unknown Source) > java.lang.Runtime.loadLibrary0(Unknown Source) > java.lang.System.loadLibrary(Unknown Source) > gnu.io.RXTXPort.(Unknown Source) > java.lang.Class.runStaticInitializers(Unknown Source) > com.fourhome.zwave.SerialComm.run(Unknown Source) > java.lang.Thread.run(Unknown Source) > java.lang.Thread.startup(Unknown Source) > > > Even though that library file is there: > > # ls > /var/lib/fluid/osgi-config/bundle9/version0.0/lib/native/linux/mips/librxtxSerial.so > > /var/lib/fluid/osgi-config/bundle9/version0.0/lib/native/linux/mips/librxtxSerial.so > # cd /var/lib/fluid/osgi-config/bundle9/version0.0/lib/native/linux/mips/ > # ls -l > -rw---1 00 94351 Sep 14 10:46 librxtxSerial.so > > I'm starting the bundles in the config.properties file at startup time > (pasted below). I've also tried starting everything but the problematic > zwave.jar bundle, and then starting that one interactively. When I do that, > I get: > > -> install file:/usr/lib/fluid/plugins/zwave.jar > ERROR: JarContent: Unable to create library directory. > removing /var/lib/fluid/osgi-config/bundle15/bundle.id > rm ret -1 > unlinking /var/lib/fluid/osgi-config/bundle15/bundle.id > b 0 > removing /var/lib/fluid/osgi-config/bundle15/bundle.location > rm ret -1 > unlinking /var/lib/fluid/osgi-config/bundle15/bundle.location > b 0 > removing /var/lib/fluid/osgi-config/bundle15/version0.0/bundle.jar > rm ret -1 > unlinking /var/lib/fluid/osgi-config/bundle15/version0.0/bundle.jar > b 0 > removing /var/lib/fluid/osgi-config/bundle15/version0.0/revision.location > rm ret -1 > unlinking /var/lib/fluid/osgi-config/bundle15/version0.0/revision.location > b 0 > removing /var/lib/fluid/osgi-config/bundle15/version0.0 > rm ret 0 > removing /var/lib/fluid/osgi-config/bundle15 > rm ret 0 > org.osgi.framework.BundleException: Native library does not exist: > native/linux/mips/librxtxSerial.so >at org.apache.felix.framework.searchpolicy.ModuleImpl.(Unknown > Source) >at org.apache.felix.framework.BundleImpl.createModule(Unknown > Source) >at org.apache.felix.framework.BundleImpl.(Unknown Source) >at org.apache.felix.framework.Felix.installBundle(Unknown Source) >at org.apache.felix.framework.Felix.installBundle(Unknown Source) >at > org.apache.felix.framework.BundleContextImpl.installBundle(Unknown Source) >at org.apache.felix.shell.impl.InstallCommandImpl.install(Unknown > Source) >at org.apache.felix.shell.impl.InstallCommandImpl.execute(Unknown > Source) >at > org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Unknown > Source) >at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Unknown > Source) >at java.lang.Thread.run(Unknown Source) >at java.lang.Thread.startup(Unknown Source) > org.osgi.framework.BundleException: Native library does not exist: > native/linux/mips/librxtxSerial.so > > In particular, the line that says "ERROR: JarContent: Unable to create > library directory." seems promising. When I do things this way, the bundle > is never installed and the bundle directory is never created. But I don't > know why. > > What I'm looking for is any advice on how to tease more information out of > Felix about what the problem is with that libra
Re: [ANN] Felix Framework version 2.0.0 Released
Should have been available in maven central for a couple of days now. http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.framework/2.0.0/ -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Sat, Sep 12, 2009 at 6:37 PM, Mark Derricutt wrote: > Congrats! Is this available in any maven repository at all? > -- > Pull me down under... > > On Sat, Sep 12, 2009 at 3:31 AM, Karl Pauls wrote: > > > We are pleased to announce the release of version 2.0.0 of the Felix > > Framework with support for the OSGi R4.2 specification. This release > > represents a significant amount of work and improvement since the last > > release. Please report any issues. Enjoy! > > > > This release is available from > > http://felix.apache.org/site/downloads.cgi and Maven. > > > > -The Felix team > > > > - > > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > > For additional commands, e-mail: users-h...@felix.apache.org > > > > >