karaf feature `config` not getting bundled issue
Hello, I'm working with Sling on top of Karaf and I have discovered an issue that might be a bug. My issue is that configuration files are not available for offline use inside the custom karaf distribution. We define configurations like: mvn:org.apache.sling/org.apache.sling.karaf-configs/${project.version}/config/org.apache.sling.jcr.repoinit.RepositoryInitializer-sling_discovery Now when we build the karaf distribution and install the feature, it does not find the configuration files. Steps to reproduce: git clone https://github.com/netdava/sling-org-apache-sling-karaf.git cd sling-org-apache-sling-karaf echo "Update the version so we can replicate the issue easily" VERSION=0.99.0 mvn versions:set -DnewVersion=${VERSION} -DartifactId='*' echo "Create a custom distribution - do not install the bundles" mvn clean package echo "Unpack the distro" tar xf sling-org-apache-sling-karaf-distribution/target/org.apache.sling.karaf-distribution-0.99.0.tar.gz echo "Start Karaf" ./org.apache.sling.karaf-distribution-0.99.0/bin/karaf echo "Install feature and see it fail" feature:install sling-tar-all The feature fails to install because the config file referenced there cannot be found. Any ideas on how to get around this? I've tried config file but it seems to have some issue. Regards, Eugen [1] https://github.com/netdava/sling-org-apache-sling-karaf-features [2] https://issues.apache.org/jira/browse/KARAF-4829?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=15948530#comment-15948530
Re: Servlet 3.1 support
There is also experiental pax web 5.0 snapshot with undertow webserver that has servlet 3.1. Ioan Eugen Stan Pe 31.10.2014 22:04, "Achim Nierbeck" a scris: > Hi > > Sorry to correct, but servlet 3.1 is supported only with pax web 4.1 which > is still snapshot version. Though I would highly appreciate some tests of > the current snapshots. > > There are still some todos so I don't have a ETA for 4.1 yet, it's still a > one man show on this right now. > > Regards, Aching > > sent from mobile device > Am 31.10.2014 13:40 schrieb "Jean-Baptiste Onofré" : > >> Hi Jochen, >> >> Karaf 4.0.0.M1 embeds Pax Web 4.0.0 providing Servlet 3.1 support. >> >> Regards >> JB >> >> On 10/31/2014 01:21 PM, jkraushaar wrote: >> >>> Hi there, >>> >>> we are currently using Karaf 3.0.1 and plan to install ModeShape >>> 4.0.0.Final >>> as Java Content Repository into Karaf. We also like to use the WebDAV >>> interface of ModeShape. The interface depends on Servlet 3.1. Are there >>> plans for the Karaf war feature to upgrade to Servlet 3.1 in the near >>> future? >>> >>> Regards >>> Jochen >>> >>> >>> >>> -- >>> View this message in context: http://karaf.922171.n3.nabble. >>> com/Servlet-3-1-support-tp4036176.html >>> Sent from the Karaf - User mailing list archive at Nabble.com. >>> >>> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >
Re: [PROPOSAL] Karaf release cycle
a release waits on fixes or >> releases in >> >>> upstream projects. >> >>> >> >>> Christian >> >>> >> >>> Am 08.10.2014 07:52, schrieb Jean-Baptiste Onofré: >> >>>> >> >>>> Hi all, >> >>>> >> >>>> Users complained about the variable and long delays >> between Karaf >> >>>> releases. It's a fair comment and it's something that >> we have to >> >>>> improve. >> >>>> >> >>>> I propose the following new policy about the releases >> cycle: >> >>>> - for "active" branches (3.0.x and 2.4.x), I propose >> a release >> every 6 >> >>>> weeks, with maximum extend to 8 weeks. >> >>>> - for "eol" and "maintenance" branches (2.2.x and >> 2.3.x), it's "on >> >>>> demand", no strong cycle there. >> >>>> >> >>>> WDYT ? >> >>>> >> >>>> If everybody agrees, I will update the releases >> schedule page >> on the >> >>>> website. >> >>>> >> >>>> Regards >> >>>> JB >> >>> >> >>> >> >>> >> >> >> >> -- >> >> Jean-Baptiste Onofré >> >> jbono...@apache.org <mailto:jbono...@apache.org> >> <mailto:jbono...@apache.org <mailto:jbono...@apache.org>> >> >> http://blog.nanthrax.net >> >> Talend - http://www.talend.com >> > >> > >> > >> > >> > -- >> > >> > Apache Member >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC >> > OPS4J Pax Web >> <http://wiki.ops4j.org/__display/paxweb/Pax+Web/ >> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> >> Committer & >> > Project Lead >> > blog <http://notizblog.nierbeck.de/__> >> > >> > Software Architect / Project Manager / Scrum Master >> > >> >> >> >> >> -- >> Charlie Mordant >> >> Full OSGI/EE stack made with Karaf: >> https://github.com/__OsgiliathEnterprise/net.__osgiliath.parent >> <https://github.com/OsgiliathEnterprise/net.osgiliath.parent> >> >> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org <mailto:jbono...@apache.org> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> >> >> >> -- >> Charlie Mordant >> >> Full OSGI/EE stack made with Karaf: >> https://github.com/OsgiliathEnterprise/net.osgiliath.parent > > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com -- Ioan Eugen Stan 0720 898 747
Re: [ANN] Apache Karaf 4.0.0.M1 Released!
Also, I see that blueprint feature is installed by default. feature:list -i Name| Version | Required | Installed | Repository | Description -- aries-proxy | 4.0.0.M1 | | x | standard-4.0.0.M1 | Aries Proxy aries-blueprint | 4.0.0.M1 | x| x | standard-4.0.0.M1 | Aries Blueprint 2014-10-17 0:40 GMT+03:00 Ioan Eugen Stan : > The build seems to contain spring 3 libraries. Are they supposed to be there? > > 2014-10-15 19:14 GMT+03:00 Achim Nierbeck : >> >> Can easily found at the apache jira. >> Like this >> >> https://issues.apache.org/jira/browse/KARAF/fixforversion/12316946/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel >> >> Regards, Achim >> >> sent from mobile device >> >> Am 15.10.2014 18:01 schrieb "asookazian2" : >> >>> Please supply a link to list of new features in Karaf 4.0.0. thx. >>> >>> >>> >>> -- >>> View this message in context: >>> http://karaf.922171.n3.nabble.com/ANN-Apache-Karaf-4-0-0-M1-Released-tp4035927p4035969.html >>> Sent from the Karaf - User mailing list archive at Nabble.com. > > > > -- > Ioan Eugen Stan > 0720 898 747 -- Ioan Eugen Stan 0720 898 747
Re: [ANN] Apache Karaf 4.0.0.M1 Released!
The build seems to contain spring 3 libraries. Are they supposed to be there? 2014-10-15 19:14 GMT+03:00 Achim Nierbeck : > > Can easily found at the apache jira. > Like this > > https://issues.apache.org/jira/browse/KARAF/fixforversion/12316946/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel > > Regards, Achim > > sent from mobile device > > Am 15.10.2014 18:01 schrieb "asookazian2" : > >> Please supply a link to list of new features in Karaf 4.0.0. thx. >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/ANN-Apache-Karaf-4-0-0-M1-Released-tp4035927p4035969.html >> Sent from the Karaf - User mailing list archive at Nabble.com. -- Ioan Eugen Stan 0720 898 747
Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages
Hello JB, I think Freeman is right. I will explain my setup here: I have a bundle that uses Jasper to create PDF's. The Jasper bundle I'm using (5.1.0 from Maven Central) depends on Xerces libraries but declares Dynamic-Imports, not explicit imports. Because Karaf does not export the xerces packages from lib/endorsed I have to add the xerces bundle. I'm also using XML parsers from javax.xml.* packages, implemented by xerces from lib/endorsed. The issue arises from the fact that during PDF generation, classes from my own xerces bundle get mixed with classes from javax.xml system bundle implemented by the lib/endorsed xerces. Since they are loaded by different ClassLoaders it results in a ClassCast exception. I think the solution is, as Freeman suggested to export the xerces packages from the lib/endorsed version. That way the calsses will be loaded from the same bundle, by the same ClassLoader. I'm willing to test this if you tell me what to do. I'm not that deep in Karaf yet, and no time to get deep right now. Regards,
Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages
Hello, I removed it and it worked. It's a bummer though - xerces impl from endorsed does not export org.apache.xerces.* packages so I need to import them from another bundle which gets me to ClassCast exception. Any way around this?
Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages
plicationContext$4.run(AbstractDelegatedExecutionApplicationContext.ja >> va:355) >> at >> >> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) >> at >> >> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplication >> Context.java:320) >> at >> >> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependen >> cyWaiterApplicationContextExecutor.java:132) >> at java.lang.Thread.run(Thread.java:722) >> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: >> Factory method [public static com.hazelcast.core.HazelcastInstance >> com.haze >> lcast.core.Hazelcast.newHazelcastInstance(com.hazelcast.config.Config)] >> threw exception; nested exception is java.lang.NoClassDefFoundError: >> javax/sec >> urity/auth/login/LoginException >> at >> >> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181) >> at >> >> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570) >> ... 16 more >> Caused by: java.lang.NoClassDefFoundError: >> javax/security/auth/login/LoginException >> at com.hazelcast.impl.Node.(Node.java:171) >> at com.hazelcast.impl.FactoryImpl.(FactoryImpl.java:374) >> at >> >> com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:121) >> at >> >> com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:107) >> at >> com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:507) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at >> >> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) >> ... 17 more >> Caused by: java.lang.ClassNotFoundException: >> javax.security.auth.login.LoginException >> at >> >> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/Karaf-2-3-2-ClassNotFoundException-for-javax-packages-tp4029428p4029430.html >> Sent from the Karaf - User mailing list archive at Nabble.com. >> > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com -- Ioan Eugen Stan 0720 898 747
Re: system wide Karaf under Debian
Hello JB, Thanks.I wanted to know who else is interested in this and to clarify some things. Regards,
system wide Karaf under Debian
Hello, I'm working on packaging (a custom distribution of) Karaf for Debian. I'm going for better integration with the OS trying to respect as much as possible the Unix guidelines and Debian Policy. I hope I get something useful to contribute back to the community. I wish to store karaf logs under /var/log/karaf and configuration under /etc/karaf . Is it possible with the karaf-2.3.x branch? I hope I can count on some of you're help with this. Longer explanation and details follow: --- Note: My inspiration is tomcat7 package. Pre-requisiste - system wide Apache Karaf should start and run as user 'karaf' under group 'karaf' - for security reasons. So far I figured some of the requirements for Karaf with respect for packaging are: - should read configuration files from /etc/karaf -- they are not overriden during package updates - should store log files under /var/log/karaf - should keep it's own files under /usr/share/karaf - should store data created at runtime under /var/lib/karaf - documentation should go under /usr/share/doc/karaf There are many reasons to do things this way, mainly to ease administration, increase security and use the package management tools. --- end long explanation. Regards, -- Ioan Eugen Stan 0720 898 747
Re: [ANN] Apache Karaf 2.3.2 Released!
Yeey! Congratulation on the new release,
Re: features-maven-plugin fails to download smooks dependencies
Hi, Your answer was quite shocking :D but after giving it a thought it started to make sense. I was miss-leaded by the fact that smooks dependencies are different from the the smooks feature. Although I've seen them both this fact some how escaped me. You've managed to restore my 'zen' state :). Thank you Freeman,
Re: features-maven-plugin fails to download smooks dependencies
Hello Freeman, I've added the Alfresco repo and it works as expected. Thanks for the help. However I'm not sure why the strange behavior with Central. Running 'mvn install' fails with missing artifact, but manually getting the artifact with the bellow command succeeds. Too bad I don't have time to investigate. Cheers, mvn install:install-file -DgroupId=org.objectweb.asm -DartifactId=com.springsource.org.objectweb.asm.util -Dversion=2.2.3 -Dpackaging=jar -Dfile=/path/to/file --- alfresco-releases true always warn false Alfresco Public Artifacts https://artifacts.alfresco.com/nexus/content/groups/public/ On Fri, Jun 7, 2013 at 4:11 AM, Freeman Fang wrote: > Hi, > > I can find one repo here[1], could you add it into your pom.xml? > > [1]https://maven.alfresco.com/nexus/content/repositories/com.springsource.repository.bundles.external/org/objectweb/asm/com.springsource.org.objectweb.asm.util/2.2.3/ > > - > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: @Freeman小屋 > > www.camelone.org : The open source integration conference: > > On 2013-6-7, at 上午12:42, Ioan Eugen Stan wrote: > > Hello Freeman, > > I have the repo (checked in effective-pom). I removed the directory > but it's still doesn't work. It's also strange that search.maven.org > does not seem to find it either [1]. > > Cheers, > > [1] > http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util > > -- Ioan Eugen Stan 0720 898 747
Re: features-maven-plugin fails to download smooks dependencies
Hello Freeman, I have the repo (checked in effective-pom). I removed the directory but it's still doesn't work. It's also strange that search.maven.org does not seem to find it either [1]. Cheers, [1] http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util
features-maven-plugin fails to download smooks dependencies
Hello, I'm using the features-maven-plugin 2.3.1 to build a repo for a custom distribution. All is good except that for some reason it fails when downloading the smooks dependencies. Running the install manually as suggested in the error output works. Installing the feature in Karaf at runtime works. Adding the feature to featuresBoot works but with a significant delay (almost 1 min, or so). Could you try to reproduce this and see if it's a bug? My configuration is: org.apache.karaf.tooling features-maven-plugin 2.3.1 add-features-to-repo compile add-features-to-repo false mvn:org.apache.karaf.assemblies.features/standard/2.3.1/xml/features mvn:org.apache.karaf.assemblies.features/enterprise/2.3.1/xml/features mvn:org.apache.camel.karaf/apache-camel/2.11.0/xml/features mvn:org.milyn/milyn-smooks-all/1.5.1/xml/features war jpa transaction smooks true target/features-repo The full error output (with -X and -e) is available here: https://paste.apache.org/jK9u . In short: [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.3.1:add-features-to-repo (add-features-to-repo) on project distribution: Can't resolve bundle org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3: Failure to find org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.objectweb.asm -DartifactId=com.springsource.org.objectweb.asm.util -Dversion=2.2.3 -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.objectweb.asm -DartifactId=com.springsource.org.objectweb.asm.util -Dversion=2.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] [ERROR] org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3 [ERROR] [ERROR] from the specified remote repositories: [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException -- Ioan Eugen Stan 0720 898 747
Re: Loading Resources with Jetty in Karaf
Hi, Pax-Web is the way to go. Here is some sample blueprint code for serving static html pages from Karaf. This will serve 'index.html' and other static resources directly from your bundle. Put files under src/main/resources in your maven project. Cheers, index.html On Sun, May 5, 2013 at 1:32 PM, Achim Nierbeck wrote: > Hi, > > you need to make sure you're using the "WebContainer" HTTP-Service, it's the > one provided by Pax-Web. Take also > a look at the samples of Pax-Web[1]. > > Another way of registering your resources might be to use the whiteboard > mechanism. > > Greetings, Achim > > [1] - > https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/helloworld-wc/src/main/java/org/ops4j/pax/web/samples/helloworld/wc/internal/Activator.java#L122 > > > 2013/5/4 Clement Jebakumar >> >> >> Hi, >> >> I have a bundle which supplies css/img folder. I tried with below code, >> looks like jetty is not recognizing it. How to enable files in those folders >> be served by Jetty >> >> ServiceReference sRef = context.getServiceReference(HttpService.class >> .getName()); >> HttpService service = (HttpService) context.getService(sRef); >> service.registerResources("/", "/htmls", null); >> // service.registerResources("/js", "js", null); >> String webDir = getClass().getClassLoader().getResource("css") >> .toExternalForm(); >> service.registerResources("/css", webDir, null); >> service.registerResources("/img", "/img", null); >> >> Files are put insider bundle. In eclipse devlopment, we have an unpack >> option which solved the issue in Eclipse. But in karaf, i am not sure how to >> make jetty to work with this. >> >> >> Clement Jebakumar, >> >> 111/27 Keelamutharamman Kovil Street, >> Tenkasi, 627 811 >> http://www.declum.com/clement.html >> > > > > -- > > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> > Commiter & Project Lead > blog <http://notizblog.nierbeck.de/> -- Ioan Eugen Stan 0720 898 747
Re: bug ssh terminal - no character echo
Hello, I found a fix for it. If you run 'reset' [1] command it will reset the terminal and things will work as normal. I don't know what is the cause. Anybody with more Terminal knowledge please step in. [1] http://linux.die.net/man/1/reset Cheers, -- Ioan Eugen Stan / CTO / http://axemblr.com
Re: bug ssh terminal - no character echo
Hello, I'm on Debian Wheezy (unreleased yet) and the results are the same. Linux daos 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux $ cat /etc/debian_version 7.0 I've tested with openjdk-1.6, openjdk-1.7 and oracle-jre-1.7.11 by setting JAVA_HOME like this: $ JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/ bin/karaf $ JAVA_HOME=~/Programe/jre-1.7/ bin/karaf -- java version "1.7.0_03" OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) -- java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) On Mon, Jan 21, 2013 at 9:50 AM, Freeman Fang wrote: > Hi, > > I'm with JDK 7 > > - > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: @Freeman小屋 > > On 2013-1-21, at 下午3:45, Krzysztof Sobkowiak wrote: > > Hi > > > I have tested 2.3.0 on my job Windows with Java 1.6.0_31 (starting the > Windows distribution and the Linux distribution using Cygwin) and it works > correctly in both cases. It didn't work on my Ubuntu with Java 1.7.0_11. > I'll test it again on Ubuntu with Java 1.6.x. I can't currently test it on > Windows with Java 1.7.x > > Which Java version do you use on your Mac? > > Perhaps can Ioan give us a detailed description of his environment? > > Best regards > Krzysztof > > > On 21 January 2013 05:40, Freeman Fang wrote: >> >> hmm, I can't reproduce it on my mac, I tested with both Karaf 2.3.0 and >> FUSE ESB 7.1. >> >> What I do is just connect back to the karaf ssh server, something like >> >> >> karaf@root> ssh:ssh -p 8101 karaf@localhost >> Connecting to host localhost on port 8101 >> Connected >> __ __ >>/ //_/ __ _/ __/ >> / ,< / __ `/ ___/ __ `/ /_ >> / /| |/ /_/ / / / /_/ / __/ >> /_/ |_|\__,_/_/ \__,_/_/ >> >> Apache Karaf (2.3.0) >> >> Hit '' for a list of available commands >> and '[cmd] --help' for help on a specific command. >> Hit 'osgi:shutdown' to shutdown Karaf. >> Hit '' or 'logout' to disconnect shell from current session. >> >> karaf@root> la >> >> I can see the command I typed in the ssh client >> >> - >> Freeman(Yue) Fang >> >> Red Hat, Inc. >> FuseSource is now part of Red Hat >> Web: http://fusesource.com | http://www.redhat.com/ >> Twitter: freemanfang >> Blog: http://freemanfang.blogspot.com >> http://blog.sina.com.cn/u/1473905042 >> weibo: @Freeman小屋 >> >> >> > > -- Ioan Eugen Stan / CTO / http://axemblr.com
bug ssh terminal - no character echo
Hello, I think I found a bug in karaf. There is no charecter echo in SSH terminal. Using ssh:ssh command to connect to localhost, all goes well, but I can't see any command I type. The result of the command gets printed ok. Cheers, -- Ioan Eugen Stan / CTO / http://axemblr.com
Re: commons-logging needed for commons-configuration feature
Hello Ioannis, Thanks. I am suspecting a problem with different plugin configurations/versions in pluginsManagement in parent pom and plugins in pom. There was also an issue with builds.apache.org not building OSGi bundles (a bug, which seems fixed now). This made debugging harder. I'll check it over the weekend again. Cheers, -- Ioan Eugen Stan / CTO / http://axemblr.com
Re: commons-logging needed for commons-configuration feature
Hello JB, Feel free to have a look. It's kind of difficult to reproduce so you might wish to wait until I find the cause. I wouldn't mind a review or some tips on making James work with Karaf. It's Spring based and currently I'm working on having all the dependencies as bundles via the feature. Thanks, On Fri, Jan 11, 2013 at 1:53 AM, Jean-Baptiste Onofré wrote: > Hi Ioan, > > Weird for the reactor projects, I never had this issue. > > Do you want that I take a look on the code on your github ? > > Regards > JB > > > On 01/11/2013 12:45 AM, Ioan Eugen Stan wrote: >> >> Hello JB, >> >> Thank you. I hope I find another alternative to commons-configuration :). >> >> Another issue, not related to the first one is that >> maven-bundle-plugin does not generate the OSGi manifest headers all >> the times for some child projects. >> I have the plugin configured in the parent [1] with extension set to >> true and it runs well, but sometimes it does not generate the >> manifests for some child projects. Very strange. >> >> Cheers, >> >> [1] https://github.com/ieugen/james/tree/karaf >> >> -- >> Ioan Eugen Stan / CTO / http://axemblr.com >> > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com -- Ioan Eugen Stan / CTO / http://axemblr.com
Re: commons-logging needed for commons-configuration feature
Hello JB, Thank you. I hope I find another alternative to commons-configuration :). Another issue, not related to the first one is that maven-bundle-plugin does not generate the OSGi manifest headers all the times for some child projects. I have the plugin configured in the parent [1] with extension set to true and it runs well, but sometimes it does not generate the manifests for some child projects. Very strange. Cheers, [1] https://github.com/ieugen/james/tree/karaf -- Ioan Eugen Stan / CTO / http://axemblr.com
commons-logging needed for commons-configuration feature
Hello, I'm working on James on Karaf and I depend on commons-configuration that has further dependencies on commons-logging and commons-lang. Trying to validate the bellow feature results in a failure: [WARNING] Failed to validate feature commons-configuration [WARNING] No export found to match org.apache.commons.logging (imported by mvn:commons-configuration/commons-configuration/1.9) [WARNING] No export found to match org.apache.commons.logging.impl (imported by mvn:commons-configuration/commons-configuration/1.9) --- mvn:commons-configuration/commons-configuration/${commons-configuration.version} mvn:commons-lang/commons-lang/${commons-lang.version} --- Adding pax-logging didn't work. Any known solutions to this? Thanks, [1] https://github.com/ieugen/james/blob/karaf/karaf/features/src/main/resources/features.xml [2] https://github.com/ieugen/james/tree/karaf -- Ioan Eugen Stan / CTO / http://axemblr.com
Re: multivalued commands
Hello Freeman, We managed to fix it. It was not that obvious from my question that we had trouble with the command line format. A call like this works as expected (please note we supply --package multiple times): provisionr:create --id amazon -k web-1 --size 5 -h m1.small --port 80 --port 443 --package nginx --package gunicorn Cheers, [1] https://github.com/axemblr/axemblr-provisionr/pull/99 On Tue, Jan 8, 2013 at 2:54 AM, Freeman Fang wrote: > Hi, > > You may need take [1] & [2] as example > > [1]https://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/features/command/src/main/java/org/apache/karaf/features/command/AddUrlCommand.java > [2]https://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/admin/command/src/main/java/org/apache/karaf/admin/command/CreateCommand.java > - > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: @Freeman小屋 > > On 2013-1-8, at 上午12:26, Ioan Eugen Stan wrote: > > Hello, > > Could you please tell me how can I write multi-valued commands in > Activiti Karaf? We need to supply a list of packages to our > 'create-pool' command [1]. > I've tried with colon separated '--packages nginx,puppet' in our > implementation [1] but without luck. From the examples I found I don't > seem to figure out what I'm doing wrong. > > Cheers, > > [1] > https://github.com/axemblr/axemblr-provisionr/blob/master/karaf/commands/src/main/java/com/axemblr/provisionr/commands/CreatePoolCommand.java > > -- > Ioan Eugen Stan / CTO / http://axemblr.com > > -- Ioan Eugen Stan / CTO / http://axemblr.com