Re: JPA 2.1 (eclipselink) in Karaf 3.01
Hmm, DynamicImport-Package should always be used as the last alternative. In your case I'd make sure it is restricted to org.eclipse.persistence.*. This way you make sure you don't start to import other not intended packages. regards, Achim 2014-07-23 5:22 GMT+02:00 Rodrigo Serra rodrigo.se...@jlab.com.ar: I found the way to ignore custom Import-Package required for eclipselink. Replace Import-Package with DynamicImport-Package*/DynamicImport-Package. Regards, Rodrigo El 22/07/2014, a las 12:54, Jean-Baptiste Onofré j...@nanthrax.net escribió: Awesome Rodrigo, thanks a bunch for sharing this. Regards JB On 07/22/2014 05:28 PM, Rodrigo Serra wrote: Hello, I tried to work with last SNAPSHOT of karat 3.0.2 and i can be able to run JPA 2.1 with eclipselinks 2.5.2. This is the procedure to install eclipselink 2.5.2: karaf@root() feature:install jdbc karaf@root() feature:install jndi karaf@root() feature:install transaction karaf@root() feature:install jpa karaf@root() list -t 0 | grep -i hibernate-jpa 91 | Active | 30 | 1.0.0.Final | hibernate-jpa-2.1-api karaf@root() uninstall -f 91 karaf@root() install -s mvn:org.eclipse.persistence/javax.persistence/2.1.0 Bundle ID: 96 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.5.2 Bundle ID: 97 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.5.2 Bundle ID: 98 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.5.2 Bundle ID: 99 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/2.5.2 Bundle ID: 100 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.5.2 Bundle ID: 101 karaf@root() list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name -- 79 | Active | 80 | 1.6.0 | Commons Pool 80 | Active | 80 | 1.4 | Commons DBCP 81 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Core 82 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Command 90 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JNDI :: Command 96 | Active | 80 | 2.1.0.v201304241213 | Java Persistence API 2.1 97 | Active | 80 | 3.2.0.v201302191141 | EclipseLink ANTLR 98 | Active | 80 | 3.3.1.v201302191223 | EclipseLink ASM 99 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink Core 100 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink Hermes Parser 101 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink JPA karaf@root() ^D Deploy eclipselink provider: create file deploy/eclipselink-provider.xml blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:cm= http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0; manifest xmlns= http://karaf.apache.org/xmlns/deployer/blueprint/v1.0.0; Bundle-Version: 1.0.0 Bundle-Description: Eclipselink JPA Provider Bundle-Name: EclipseLink JPA Provider Bundle-SymbolicName: org.eclipse.persistence.jpa.PersistenceProvider /manifest bean id=ECLIPSELINK_PERSISTENCE_PROVIDER class=org.eclipse.persistence.jpa.PersistenceProvider /bean service ref = ECLIPSELINK_PERSISTENCE_PROVIDER interface = javax.persistence.spi.PersistenceProvider service-properties entry key = org.apache.aries.jpa.proxy.factory value=true/ entry key = osgi.jndi.service.name value = eclipselink.persistence.provider/ entry key = osgi.unit.provider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.provider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.spi.PersistenceProvider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.PersistenceProvider value = org.eclipse.persistence.jpa.PersistenceProvider/ /service-properties /service /blueprint This is the final installation: karaf@root() list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name -- 79 | Active | 80 | 1.6.0 | Commons Pool 80 | Active | 80 | 1.4 | Commons DBCP 81 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Core 82 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Command 90 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JNDI :: Command
Re: karaf-3.0.2 Problem with console
Hi Jean-Baptiste, have you had time to reproduce the problem of console windows? Regards, Sébastien. - CTO , JeetConsulting. Analyze now your Maven Java projects' dependencies , here -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-3-0-2-Problem-with-console-tp4034304p4034388.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: karaf-3.0.2 Problem with console
Hi Sébastien, no yet, but it's on my TODO for today (I finished 2.3.6 release preparation and I have a couple things to do on Pax Exam). I keep you posted. Regards JB On 07/23/2014 09:34 AM, nseb wrote: Hi Jean-Baptiste, have you had time to reproduce the problem of console windows? Regards, Sébastien. - CTO , JeetConsulting. Analyze now your Maven Java projects' dependencies , here -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-3-0-2-Problem-with-console-tp4034304p4034388.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: karaf-3.0.2 Problem with console
Thanks! Regards, Sébastien. - CTO , JeetConsulting. Analyze now your Maven Java projects' dependencies , here -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-3-0-2-Problem-with-console-tp4034304p4034390.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: JPA 2.1 (eclipselink) in Karaf 3.01
ok, sound good. Thank you. Regards, Rodrigo El 23/07/2014, a las 03:23, Achim Nierbeck bcanh...@googlemail.com escribió: Hmm, DynamicImport-Package should always be used as the last alternative. In your case I'd make sure it is restricted to org.eclipse.persistence.*. This way you make sure you don't start to import other not intended packages. regards, Achim 2014-07-23 5:22 GMT+02:00 Rodrigo Serra rodrigo.se...@jlab.com.ar: I found the way to ignore custom Import-Package required for eclipselink. Replace Import-Package with DynamicImport-Package*/DynamicImport-Package. Regards, Rodrigo El 22/07/2014, a las 12:54, Jean-Baptiste Onofré j...@nanthrax.net escribió: Awesome Rodrigo, thanks a bunch for sharing this. Regards JB On 07/22/2014 05:28 PM, Rodrigo Serra wrote: Hello, I tried to work with last SNAPSHOT of karat 3.0.2 and i can be able to run JPA 2.1 with eclipselinks 2.5.2. This is the procedure to install eclipselink 2.5.2: karaf@root() feature:install jdbc karaf@root() feature:install jndi karaf@root() feature:install transaction karaf@root() feature:install jpa karaf@root() list -t 0 | grep -i hibernate-jpa 91 | Active | 30 | 1.0.0.Final | hibernate-jpa-2.1-api karaf@root() uninstall -f 91 karaf@root() install -s mvn:org.eclipse.persistence/javax.persistence/2.1.0 Bundle ID: 96 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.5.2 Bundle ID: 97 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.5.2 Bundle ID: 98 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.5.2 Bundle ID: 99 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/2.5.2 Bundle ID: 100 karaf@root() install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.5.2 Bundle ID: 101 karaf@root() list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name -- 79 | Active | 80 | 1.6.0 | Commons Pool 80 | Active | 80 | 1.4 | Commons DBCP 81 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Core 82 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Command 90 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JNDI :: Command 96 | Active | 80 | 2.1.0.v201304241213 | Java Persistence API 2.1 97 | Active | 80 | 3.2.0.v201302191141 | EclipseLink ANTLR 98 | Active | 80 | 3.3.1.v201302191223 | EclipseLink ASM 99 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink Core 100 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink Hermes Parser 101 | Active | 80 | 2.5.2.v20140319-9ad6abd | EclipseLink JPA karaf@root() ^D Deploy eclipselink provider: create file deploy/eclipselink-provider.xml blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:cm= http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0; manifest xmlns= http://karaf.apache.org/xmlns/deployer/blueprint/v1.0.0; Bundle-Version: 1.0.0 Bundle-Description: Eclipselink JPA Provider Bundle-Name: EclipseLink JPA Provider Bundle-SymbolicName: org.eclipse.persistence.jpa.PersistenceProvider /manifest bean id=ECLIPSELINK_PERSISTENCE_PROVIDER class=org.eclipse.persistence.jpa.PersistenceProvider /bean service ref = ECLIPSELINK_PERSISTENCE_PROVIDER interface = javax.persistence.spi.PersistenceProvider service-properties entry key = org.apache.aries.jpa.proxy.factory value=true/ entry key = osgi.jndi.service.name value = eclipselink.persistence.provider/ entry key = osgi.unit.provider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.provider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.spi.PersistenceProvider value = org.eclipse.persistence.jpa.PersistenceProvider/ entry key = javax.persistence.PersistenceProvider value = org.eclipse.persistence.jpa.PersistenceProvider/ /service-properties /service /blueprint This is the final installation: karaf@root() list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name -- 79 | Active | 80 | 1.6.0 | Commons Pool 80 | Active | 80 | 1.4 | Commons DBCP 81 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Core 82 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JDBC :: Command 90 | Active | 80 | 3.0.2.SNAPSHOT | Apache Karaf :: JNDI ::
Read password securely from Karaf CLI
Hi All, I have a requirement to read the clients' userid and password securely from the Karaf shell. Is there a way to do this? I have gone through the org.apache.karaf.shell.console.impl.jline.ConsoleImpl class, but cant understand the usage and constructor parameters. Can someone please point me to an example code? Thanks, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/Read-password-securely-from-Karaf-CLI-tp4034419.html Sent from the Karaf - Dev mailing list archive at Nabble.com.