Re: Karaf 4.0.1 & pax-jsf-support

2015-10-09 Thread conejo
Hi, thanks for the help.
These are my boot features:


org.apache.karaf.tooling
karaf-maven-plugin
true






wrap
obr
aries-blueprint
shell
shell-compat
feature
jaas
ssh
management
bundle
config
deployer
diagnostic
feature
instance
kar
log
package
service
system
webconsole   

gestorwebFeature

gestorwebFeature includes jpa, transaction, ...

About workaround, I modified my local repository in the "transaction-api"
feature to version 1.2.0 bundle that does not include "javax.el /
javax.el-api / 3.0.0". If I add, the fault persists.




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-1-pax-jsf-support-tp4042867p4042980.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf 4.0.1 & pax-jsf-support

2015-10-09 Thread Achim Nierbeck
Hi,

just from the top of my head, but I think I had to remove 3 bundles
exporting these packages, so take a look on the list of bundles which
actually are exporting it.
Maybe you need to "repackage" a bit more features.

regards, Achim


2015-10-09 9:46 GMT+02:00 conejo :

> Hi, thanks for the help.
> These are my boot features:
>
> 
> org.apache.karaf.tooling
> karaf-maven-plugin
> true
> 
>
> 
>
>
>
> wrap
> obr
> aries-blueprint
> shell
> shell-compat
> feature
> jaas
> ssh
> management
> bundle
> config
> deployer
> diagnostic
> feature
> instance
> kar
> log
> package
> service
> system
> webconsole
>
> gestorwebFeature
>
> gestorwebFeature includes jpa, transaction, ...
>
> About workaround, I modified my local repository in the "transaction-api"
> feature to version 1.2.0 bundle that does not include "javax.el /
> javax.el-api / 3.0.0". If I add, the fault persists.
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-4-0-1-pax-jsf-support-tp4042867p4042980.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer &
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master


Re: Karaf 4.0.1 & pax-jsf-support

2015-10-09 Thread conejo
Hi Achim. Thanks for the reply.
I think the problem is in the "transaction-api" feature, which includes
javax.el/javax.el-api/3.0.0.
Do you know any way to make a distribution that does not include a specific
bundle? I need a distribution with the features indicated in my previous
post.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-1-pax-jsf-support-tp4042867p4042977.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf 4.0.1 & pax-jsf-support

2015-10-09 Thread Achim Nierbeck
Hi,

try to enable the OBR resolver, it might help on this.
If you build a custom Karaf make sure you have the OBR feature as boot
featue within parenthesis
(obr)

if this doesn't help, we need to find a better way of "packaging" those
dependencies.
OTH as workaround you can create yourself a custom feature file which does
depend on certain features but
adds only the missing things from the transaction-api feature.

regards, Achim


2015-10-09 8:17 GMT+02:00 conejo :

> Hi Achim. Thanks for the reply.
> I think the problem is in the "transaction-api" feature, which includes
> javax.el/javax.el-api/3.0.0.
> Do you know any way to make a distribution that does not include a specific
> bundle? I need a distribution with the features indicated in my previous
> post.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-4-0-1-pax-jsf-support-tp4042867p4042977.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer &
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master


Re: Migration to Karaf 4.0.1

2015-10-09 Thread conejo
Hello Christian. Thanks for your help.

*My DataSource is in the deploy folder and has the following contents:
*




http://www.osgi.org/xmlns/blueprint/v1.0.0;   
   
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0;>





















On the other hand the data service (salazarDB) is a service that is
installed as part of the distribution (it's in the system folder, if I'm not
mistaken).

*In the log the following lines appear:*

2015-10-09 23:53:12,851 | INFO  | pool-2-thread-1  |
PersistenceBundleTracker | 38 - org.apache.aries.jpa.container -
2.1.0 | Found persistence unit salazarJPA in bundle salazarDB with provider
org.hibernate.jpa.HibernatePersistenceProvider.
2015-10-09 23:53:12,867 | INFO  | pool-2-thread-1  |
PersistenceProviderTracker   | 38 - org.apache.aries.jpa.container -
2.1.0 | Found provider for salazarJPA
org.hibernate.jpa.HibernatePersistenceProvider

2015-10-09 23:53:13,165 | INFO  | pool-2-thread-1  | DataSourceTracker  
 
| 38 - org.apache.aries.jpa.container - 2.1.0 | Tracking DataSource for
punit salazarJPA with filter
(&(objectClass=javax.sql.DataSource)(osgi.jndi.service.name=jdbc/gestords))
2015-10-09 23:53:13,165 | INFO  | pool-2-thread-1  | DataSourceTracker  
 
| 38 - org.apache.aries.jpa.container - 2.1.0 | Found DataSource for
salazarJPA
osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/gestords)
2015-10-09 23:53:13,165 | INFO  | jpa.salazarJPA]) | ManagedEMF 
 
| 38 - org.apache.aries.jpa.container - 2.1.0 | Registering
EntityManagerFactory for persistence unit salazarJPA


*If you need the full log I can provide it for. You tell me.*

I can wait for version 4.0.2, if not much delay. We are evaluating it Karaf
for a larger project and the possibility of using JPA 2.0 seems more
attractive.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982p4042990.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Can I use JMXMP protocol in karaf 4.0.1 or 3.0.5

2015-10-09 Thread Jean-Baptiste Onofré

Hi,

As you can see in the Jira, the status is still open, and we don't have 
fixVersion for now. So it's not yet implemented. I plan to work on it soon.


Regards
JB

On 10/10/2015 05:13 AM, Lu Qin wrote:


Hi, I see the issue in
https://issues.apache.org/jira/browse/KARAF-2925 ,it say karaf will
support JMXMP protocol,and fix version is 3.0.5 and 4.0.1,but I can not
find it in release note.

Can I direct use JMXMP in karaf ?Thanks


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Can I use JMXMP protocol in karaf 4.0.1 or 3.0.5

2015-10-09 Thread Lu Qin

Hi, I see the issue in https://issues.apache.org/jira/browse/KARAF-2925 
 ,it say karaf will support 
JMXMP protocol,and fix version is 3.0.5 and 4.0.1,but I can not find it in 
release note.

Can I direct use JMXMP in karaf ?Thanks

Re: Migration to Karaf 4.0.1

2015-10-09 Thread Jean-Baptiste Onofré

Hi,

what's the JPA engine ?

Did you install at runtime the jpa, and jpa engine features ?

Regards
JB

On 10/09/2015 12:33 PM, conejo wrote:

Hello.
I have an application that runs on Karaf 3.0.3 and would like to migrate to
Karaf 4.0.1.
The main problem I have with the migration of data service: I do not get
that blueprint inject the EntityManager.

*This is my pom:*

 dataService
 0.0.1
 bundle

 DataBaseService
 Servicio de base de datos.

 
 

 
 org.apache.maven.plugins
 maven-compiler-plugin
 3.1
 
 1.7
 1.7
 
 

 
 org.apache.felix
 maven-bundle-plugin
 2.5.4
 true
 true
 
 
 salazarDB
 ${project.version}

META-INF/persistence.xml
 

es.salazaryasociados.db.*;version=${project.version}
 

 
 *
 
 *, org.hibernate.proxy,
javassist.util.proxy
 
 
 
 
 
 
 


org.apache.geronimo.specs
geronimo-jpa_2.0_spec
1.1
provided


 
org.hibernate
hibernate-validator
5.0.3.Final
provided



javax.inject
javax.inject
1
true



javax.transaction
javax.transaction-api
1.2



*And this is the definition of the service:*


http://www.osgi.org/xmlns/blueprint/v1.0.0;
 xmlns:jpa="http://aries.apache.org/xmlns/jpan/v1.0.0;
 xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.2.0;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 >

 




























   



And finally the class:

@Transactional
public class DataService implements IDataService  {

private ClientDao clientDao;
private ExpedienteDao fileDao;
private ResponsableDao responsableDao;
private UserDao userDao;
private PagoDao pagoDao;
private DocumentoDao documentoDao;

@PersistenceContext(unitName="salazarJPA")
EntityManager entityManager;

public EntityManager getEntityManager() {
return entityManager;
}

public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}


I've been mulling over time and can not see why not inject the EntityManager
blueprint.

Can you help me?
Thank you.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982.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


Migration to Karaf 4.0.1

2015-10-09 Thread conejo
Hello.
I have an application that runs on Karaf 3.0.3 and would like to migrate to
Karaf 4.0.1.
The main problem I have with the migration of data service: I do not get
that blueprint inject the EntityManager.

*This is my pom:*

dataService
0.0.1
bundle

DataBaseService
Servicio de base de datos.





org.apache.maven.plugins
maven-compiler-plugin
3.1

1.7
1.7




org.apache.felix
maven-bundle-plugin
2.5.4
true
true


salazarDB
${project.version}
   
META-INF/persistence.xml

   
es.salazaryasociados.db.*;version=${project.version}



*

*, org.hibernate.proxy,
javassist.util.proxy









org.apache.geronimo.specs
geronimo-jpa_2.0_spec
1.1
provided



org.hibernate
hibernate-validator
5.0.3.Final
provided



javax.inject
javax.inject
1
true



javax.transaction
javax.transaction-api
1.2



*And this is the definition of the service:*


http://www.osgi.org/xmlns/blueprint/v1.0.0;
xmlns:jpa="http://aries.apache.org/xmlns/jpan/v1.0.0;
xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.2.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>
   
   











   
















 



And finally the class:

@Transactional
public class DataService implements IDataService  {

private ClientDao clientDao;
private ExpedienteDao fileDao;
private ResponsableDao responsableDao;
private UserDao userDao;
private PagoDao pagoDao;
private DocumentoDao documentoDao;

@PersistenceContext(unitName="salazarJPA")
EntityManager entityManager;

public EntityManager getEntityManager() {
return entityManager;
}

public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}


I've been mulling over time and can not see why not inject the EntityManager
blueprint.

Can you help me?
Thank you.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Migration to Karaf 4.0.1

2015-10-09 Thread conejo
Hello. Thanks for the help.
I think. I installed the JPA, transaction and Hibernate 4.3.6.Final
features.

And this is my persistence.xml


http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd;
xmlns = "http://java.sun.com/xml/ns/persistence;
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance;
version = "2.0">


 org.apache.openjpa.persistence.PersistenceProviderImpl 

 org.hibernate.jpa.HibernatePersistenceProvider 
osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/gestords)
 es.salazaryasociados.db.model.Cliente 
 es.salazaryasociados.db.model.Documento 
 es.salazaryasociados.db.model.Expediente 
 es.salazaryasociados.db.model.Pago 
 es.salazaryasociados.db.model.Responsable 
 es.salazaryasociados.db.model.User 
 es.salazaryasociados.db.model.Role 
 AUTO 





->








The service is installed:
185 [es.salazar asociados.db.service.IDataService] salazarDB (168)
And also the persistence unit:
200 [javax.persistence.EntityManagerFactory] salazarDB (168)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982p4042984.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Extending karaf command

2015-10-09 Thread xav
Hi all,

Do you have any information about this?

Thx



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Extending-karaf-command-tp4041458p4042987.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Migration to Karaf 4.0.1

2015-10-09 Thread Christian Schneider

Can you post the log?
You should see that Aries JPA find the peristence unit bundle, searches 
and finds the PersistenceProvider and then searches and finds the 
DataSource.

Only when all are present the inject will be done.

Btw. You should consider to update to Karaf 4.0.2 soon as it fixes some 
bugs with jpa.

How do you create the DataSource?

Christian

On 09.10.2015 12:33, conejo wrote:

Hello.
I have an application that runs on Karaf 3.0.3 and would like to migrate to
Karaf 4.0.1.
The main problem I have with the migration of data service: I do not get
that blueprint inject the EntityManager.

*This is my pom:*

 dataService
 0.0.1
 bundle

 DataBaseService
 Servicio de base de datos.

 
 
 
 

 org.apache.maven.plugins
 maven-compiler-plugin
 3.1
 
 1.7
 1.7
 
 
 
 

 org.apache.felix
 maven-bundle-plugin
 2.5.4
 true
 true
 
 
 salazarDB
 ${project.version}

META-INF/persistence.xml

 

es.salazaryasociados.db.*;version=${project.version}

 
 
 

 *
 
 *, org.hibernate.proxy,
javassist.util.proxy
 
 
 
 
 
 
 


org.apache.geronimo.specs
geronimo-jpa_2.0_spec
1.1
provided


 
org.hibernate
hibernate-validator
5.0.3.Final
provided



javax.inject
javax.inject
1
true



javax.transaction
javax.transaction-api
1.2



*And this is the definition of the service:*


http://www.osgi.org/xmlns/blueprint/v1.0.0;
 xmlns:jpa="http://aries.apache.org/xmlns/jpan/v1.0.0;
 xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.2.0;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 >

 




























   



And finally the class:

@Transactional
public class DataService implements IDataService  {

private ClientDao clientDao;
private ExpedienteDao fileDao;
private ResponsableDao responsableDao;
private UserDao userDao;
private PagoDao pagoDao;
private DocumentoDao documentoDao;

@PersistenceContext(unitName="salazarJPA")
EntityManager entityManager;

public EntityManager getEntityManager() {
return entityManager;
}

public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}


I've been mulling over time and can not see why not inject the EntityManager
blueprint.

Can you help me?
Thank you.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com