Re: Using Java VisualVM profiler in Karaf

2014-03-19 Thread Bengt Rodehav
I added ,org.netbeans.lib.profiler.server to the property org.osgi.framework.bootdelegation and the profiling now seems to work! Thanks Guillaume, /Bengt 2014-03-18 16:12 GMT+01:00 Bengt Rodehav be...@rodehav.com: I'll try that. Thanks for the tip. /Bengt Den 18 mar 2014 16:04 skrev

Re: Using Java VisualVM profiler in Karaf

2014-03-19 Thread Claus Ibsen
On Wed, Mar 19, 2014 at 8:48 AM, Bengt Rodehav be...@rodehav.com wrote: I added ,org.netbeans.lib.profiler.server to the property org.osgi.framework.bootdelegation and the profiling now seems to work! Ah thanks for sharing. Wonder if this can be added to the Karaf documentation somehwere -

RE: Karaf Java8

2014-03-19 Thread CLEMENT Jean-Philippe
Hi JB, How may I download the 3.1.0-SNAPSHOT? Regards, JP [@@ THALES GROUP INTERNAL @@] -Message d'origine- De : Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Envoyé : lundi 17 mars 2014 10:55 À : user@karaf.apache.org Objet : Re: Karaf Java8 Hi JP, Karaf master is

Re: Karaf Java8

2014-03-19 Thread Guillaume Nodet
You'll find it at the following location: http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.1.0-SNAPSHOT/ 2014-03-19 9:26 GMT+01:00 CLEMENT Jean-Philippe jean-philippe.clem...@fr.thalesgroup.com: Hi JB, How may I download the 3.1.0-SNAPSHOT? Regards,

Re: Using Java VisualVM profiler in Karaf

2014-03-19 Thread Bengt Rodehav
I agree. VisualVM is a big helper. It actually helped me to locate the problem (I think). I'll post about that in my previous thread. Guillaume, perhaps you can add this to the Karaf documentation? /Bengt 2014-03-19 9:10 GMT+01:00 Claus Ibsen claus.ib...@gmail.com: On Wed, Mar 19, 2014 at

Re: Using Java VisualVM profiler in Karaf

2014-03-19 Thread Jean-Baptiste Onofré
Agree to add this in users guide. Regards JB On 03/19/2014 09:50 AM, Bengt Rodehav wrote: I agree. VisualVM is a big helper. It actually helped me to locate the problem (I think). I'll post about that in my previous thread. Guillaume, perhaps you can add this to the Karaf documentation?

Re: Karaf Java8

2014-03-19 Thread Jean-Baptiste Onofré
Hi JP, FYI, I updated the Jira this morning, I will work on ASM5 update today. Regards JB On 03/19/2014 09:26 AM, CLEMENT Jean-Philippe wrote: Hi JB, How may I download the 3.1.0-SNAPSHOT? Regards, JP [@@ THALES GROUP INTERNAL @@] -Message d'origine- De : Jean-Baptiste Onofré

RE: Karaf Java8

2014-03-19 Thread CLEMENT Jean-Philippe
I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get the following error message: ./karaf: line 242: [: : integer expression expected Don't know why but karaf does not start at all. PS: apache-karaf-3.0.1-20140319.004654-68.tar.gz Regards, JP De : Guillaume Nodet

Re: Karaf Java8

2014-03-19 Thread Daniel McGreal
I think that's the part of the startup script that tries to parse the version out of a call to /whichever/java -version From memory, the script isn't capable of interpreting Java versions that are not reported as x.x.x. Though that doesn't prevent startup. I have had startups seemingly 'hang'

RE: Karaf Java8

2014-03-19 Thread CLEMENT Jean-Philippe
Correct, The problem is the first egrep to match against '([0-9]. [0-9]\..* [0-9])'. In fact java version might be followed by a suffix like -ea. The correct pattern should include this by adding .* which gives: '([0-9]. [0-9]\..* [0-9]).*' How to update Karaf? Regards, JP De :

RE: Karaf Java8

2014-03-19 Thread CLEMENT Jean-Philippe
Did try Karaf 3.1.0-SNAPSHOT but it seems the javafx classes not to be found: java.lang.ClassNotFoundException: javafx.application.Application I added the javafx packages in the jre.properties, the same way I did for Karaf 3.0.0 (which works). Any idea what's wrong? Regards, JP

Re: Karaf Java8

2014-03-19 Thread Jean-Baptiste Onofré
Hi JP, the problem only occurs with Java8 ? (I don't think so regarding the issue). I tried just now without problem on Ubuntu, I'm testing on my CentOS VM. Regards JB On 03/19/2014 01:17 PM, CLEMENT Jean-Philippe wrote: I tried the lastest 3.0.1-SNAPSHOT (not 3.1.0 yet) on RHEL6 and I get

using version=0 in Import-Package

2014-03-19 Thread asookazian2
what does version=0 mean/do? Import-Packagecom.mysql.jdbc;resolution:=optional;version=0/Import-Package Also, I have optional JARs b/c we're not sure which RDBMS vendor the client will be using. But I want maven-bundle-plugin to resolve all the other dependencies in Import-Package for me. How

disturbing behavior while debugging bundle WAR in karaf 3.0.0

2014-03-19 Thread asookazian2
I was using javax.naming.directory.SearchControls and had failed to import javax.naming.directory in my manifest.mf, but had imported other javax.naming packages (javax.naming ,javax.naming.event ,javax.naming.ldap ,javax.naming.spi), and no error was given at start or run time. Adding the import

Re: Karaf Java8

2014-03-19 Thread Daniel McGreal
If you mean the ./karaf: line 242: [: : integer expression expected it will happen on any non x.x.x version of the VM, though I don't know exactly how or why they vary. I have Ashen:~ dan$ java -version java version 1.7.0_25 Java(TM) SE Runtime Environment (build 1.7.0_25-b15)

best practice using maven-bundle-plugin for Import-Package

2014-03-19 Thread asookazian2
What is best practice for using maven-bundle-plugin for Import-Package? do we need to leave it out in the instructions or use Import-Package*/Import-Package? also, i noticed it is not listing javax.naming.directory package if I leave it out. My app does not behave correctly if it is not in the

Re: Karaf Java8

2014-03-19 Thread Jean-Baptiste Onofré
Catcha Daniel, thanks for the update, I gonna fix that: https://issues.apache.org/jira/browse/KARAF-2830 Regards JB On 03/19/2014 05:28 PM, Daniel McGreal wrote: If you mean the ./karaf: line 242: [: : integer expression expected it will happen on any non x.x.x version of the

getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
I have a WAR which deploys fine and not getting the exception when using AD in GF v3. I have a mega-bundle WAR (based on same WAR above) in karaf 3.0.0 which is giving following exception when I exec the same use case in front-end: javax.naming.PartialResultException [Root exception is

Re: getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
javax.naming.PartialResultException [Root exception is javax.naming.NotContextException: Cannot create context for: ldap://ForestDnsZones.internal.nextgatesolutions.com/DC=ForestDnsZones,DC=internal,DC=nextgatesolutions,DC=com; remaining name 'DC=internal,DC=nextgatesolutions,DC=com'] at

Re: getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
this java doc helped: http://docs.oracle.com/javase/6/docs/api/javax/naming/NamingEnumeration.html using hasMoreElements() and nextElement() which doesn't throw that exception and I see my users during import now. I'm not sure why I have this problem in Karaf but not Glassfish -- View

Re: using version=0 in Import-Package

2014-03-19 Thread Freeman Fang
Hi, Per the OSGi spec, the version=0 here means version=[0, infinite), actually it's default version range so you needn't explicitly have it. About the JDBC driver classname issue, I believe you run into a problem explained here[1], please take a look