[ 
https://issues.apache.org/jira/browse/SMX4-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13585957#comment-13585957
 ] 

Davy Toch commented on SMX4-1386:
---------------------------------

I'm not really sure how to interpret the result of packages:import, but here it 
is:

karaf@root> packages:imports 169 (node '0')
  System Bundle (0): javax.sql; version=0.0.0
  System Bundle (0): javax.xml.datatype; version=0.0.0
  System Bundle (0): javax.xml.namespace; version=0.0.0
  activemq-core (49): org.apache.activemq; version=5.5.1
  Spring Beans (66): org.springframework.beans.factory.config; 
version=3.0.6.RELEASE
  Spring AOP (71): org.springframework.aop; version=3.0.6.RELEASE
  Spring AOP (71): org.springframework.aop.framework; version=3.0.6.RELEASE
  Apache ServiceMix :: Bundles :: aopalliance (72): org.aopalliance.aop; 
version=1.0.0
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): javax.xml.bind.annotation; 
version=2.2.1
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): 
javax.xml.bind.annotation.adapters; version=2.2.1
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): javax.xml.bind; version=2.2.1
  Apache ServiceMix :: Specs :: JAXWS API 2.2 (84): javax.xml.ws; version=2.2.0
  Web Services Metadata 2.0 (85): javax.jws.soap; version=2.0.0
  Web Services Metadata 2.0 (85): javax.jws; version=2.0.0
  Apache ServiceMix :: Specs :: JSR-311 API 1.1.1 (88): javax.ws.rs; 
version=1.1.1
  Apache ServiceMix :: Specs :: JSR-311 API 1.1.1 (88): javax.ws.rs.core; 
version=1.1.1
  camel-core (91): org.apache.camel.model; version=2.8.5
  camel-core (91): org.apache.camel.builder; version=2.8.5
  camel-core (91): org.apache.camel.spi; version=2.8.5
  camel-core (91): org.apache.camel; version=2.8.5
  Spring Transaction (93): org.springframework.transaction.annotation; 
version=3.0.6.RELEASE
  Spring Transaction (93): org.springframework.transaction.support; 
version=3.0.6.RELEASE
  Spring JMS (116): org.springframework.jms.connection; version=3.0.6.RELEASE
  activemq-camel (119): org.apache.activemq.camel.component; version=5.5.1
  Apache CXF Bundle Jar (141): org.apache.cxf.jaxrs.client; version=2.4.6
  Apache CXF Bundle Jar (141): org.apache.cxf.jaxws; version=2.4.6
  Apache ServiceMix :: Bundles :: wsdl4j (148): javax.wsdl; version=1.2.0
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.enhance; 
version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.conf; 
version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): 
org.apache.openjpa.persistence; version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): 
org.apache.openjpa.jdbc.kernel; version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.util; 
version=1.2.1
  Apache ServiceMix :: Bundles :: commons-httpclient (158): 
org.apache.commons.httpclient; version=3.1.0
  Apache ServiceMix :: Bundles :: commons-httpclient (158): 
org.apache.commons.httpclient.methods; version=3.1.0
  Apache ServiceMix :: Bundles :: commons-dbcp (159): org.apache.commons.dbcp; 
version=1.4.0
  Apache ServiceMix :: Specs :: Java Persistence API 1.4 (160): 
javax.persistence.spi; version=1.1.1
  Apache ServiceMix :: Specs :: Java Persistence API 1.4 (160): 
javax.persistence; version=1.1.1
  camel-jaxb (161): org.apache.camel.converter.jaxb; version=2.8.5
  Spring ORM (162): org.springframework.orm.jpa; version=3.0.6.RELEASE
  Spring ORM (162): org.springframework.orm.jpa.support; version=3.0.6.RELEASE
  Spring ORM (162): org.springframework.orm.jpa.vendor; version=3.0.6.RELEASE
  Apache CXF XJC Runtime (164): org.apache.cxf.xjc.runtime; version=2.6.0
  Apache ServiceMix :: Bundles :: hsqldb (165): org.hsqldb; version=1.8.0.10
  be.steria.esbpoc.directoryservice (167): be.steria.esbpoc.directoryservice; 
version=0.0.0
  be.steria.esbpoc.loggingservice (168): be.steria.esbpoc.loggingservice; 
version=0.0.0
  be.steria.esbpoc.loggingservice (168): 
be.steria.esbpoc.loggingservice.domain; version=0.0.0

karaf@root> packages:imports 170 (node '1')
  System Bundle (0): javax.sql; version=0.0.0
  System Bundle (0): javax.xml.datatype; version=0.0.0
  System Bundle (0): javax.xml.namespace; version=0.0.0
  activemq-core (49): org.apache.activemq; version=5.5.1
  Spring Beans (66): org.springframework.beans.factory.config; 
version=3.0.6.RELEASE
  Spring AOP (71): org.springframework.aop; version=3.0.6.RELEASE
  Spring AOP (71): org.springframework.aop.framework; version=3.0.6.RELEASE
  Apache ServiceMix :: Bundles :: aopalliance (72): org.aopalliance.aop; 
version=1.0.0
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): javax.xml.bind.annotation; 
version=2.2.1
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): 
javax.xml.bind.annotation.adapters; version=2.2.1
  Apache ServiceMix :: Specs :: JAXB API 2.2 (80): javax.xml.bind; version=2.2.1
  Apache ServiceMix :: Specs :: JAXWS API 2.2 (84): javax.xml.ws; version=2.2.0
  Web Services Metadata 2.0 (85): javax.jws.soap; version=2.0.0
  Web Services Metadata 2.0 (85): javax.jws; version=2.0.0
  Apache ServiceMix :: Specs :: JSR-311 API 1.1.1 (88): javax.ws.rs; 
version=1.1.1
  Apache ServiceMix :: Specs :: JSR-311 API 1.1.1 (88): javax.ws.rs.core; 
version=1.1.1
  camel-core (91): org.apache.camel.model; version=2.8.5
  camel-core (91): org.apache.camel.builder; version=2.8.5
  camel-core (91): org.apache.camel.spi; version=2.8.5
  camel-core (91): org.apache.camel; version=2.8.5
  Spring Transaction (93): org.springframework.transaction.annotation; 
version=3.0.6.RELEASE
  Spring Transaction (93): org.springframework.transaction.support; 
version=3.0.6.RELEASE
  Spring JMS (116): org.springframework.jms.connection; version=3.0.6.RELEASE
  activemq-camel (119): org.apache.activemq.camel.component; version=5.5.1
  Apache CXF Bundle Jar (141): org.apache.cxf.jaxrs.client; version=2.4.6
  Apache CXF Bundle Jar (141): org.apache.cxf.jaxws; version=2.4.6
  Apache ServiceMix :: Bundles :: wsdl4j (148): javax.wsdl; version=1.2.0
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.enhance; 
version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.conf; 
version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): 
org.apache.openjpa.persistence; version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): 
org.apache.openjpa.jdbc.kernel; version=1.2.1
  Apache ServiceMix Bundles: openjpa-1.2.1 (157): org.apache.openjpa.util; 
version=1.2.1
  Apache ServiceMix :: Bundles :: commons-httpclient (158): 
org.apache.commons.httpclient; version=3.1.0
  Apache ServiceMix :: Bundles :: commons-httpclient (158): 
org.apache.commons.httpclient.methods; version=3.1.0
  Apache ServiceMix :: Bundles :: commons-dbcp (159): org.apache.commons.dbcp; 
version=1.4.0
  Apache ServiceMix :: Specs :: Java Persistence API 1.4 (160): 
javax.persistence.spi; version=1.1.1
  Apache ServiceMix :: Specs :: Java Persistence API 1.4 (160): 
javax.persistence; version=1.1.1
  camel-jaxb (161): org.apache.camel.converter.jaxb; version=2.8.5
  Spring ORM (162): org.springframework.orm.jpa; version=3.0.6.RELEASE
  Spring ORM (162): org.springframework.orm.jpa.support; version=3.0.6.RELEASE
  Spring ORM (162): org.springframework.orm.jpa.vendor; version=3.0.6.RELEASE
  Apache CXF XJC Runtime (164): org.apache.cxf.xjc.runtime; version=2.6.0
  Apache ServiceMix :: Bundles :: hsqldb (165): org.hsqldb; version=1.8.0.10
  be.steria.esbpoc.directoryservice (167): be.steria.esbpoc.directoryservice; 
version=0.0.0
  be.steria.esbpoc.loggingservice (168): be.steria.esbpoc.loggingservice; 
version=0.0.0
  be.steria.esbpoc.loggingservice (168): 
be.steria.esbpoc.loggingservice.domain; version=0.0.0
  be.steria.esbpoc.personservice.0 (169): be.steria.esbpoc.personservice; 
version=0.0.0
                
> OSGI component isolation problem resulting in "Cannot convert value of type" 
> in JPA persistence layer
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SMX4-1386
>                 URL: https://issues.apache.org/jira/browse/SMX4-1386
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.4.2, 4.5.0
>         Environment: Windows Vista 64 bit
> JDK 1.6.0_25
>            Reporter: Davy Toch
>         Attachments: 
> be.steria.esbpoc.personservice.0-1.0-SNAPSHOT-features.xml, 
> be.steria.esbpoc.personservice.0-1.0-SNAPSHOT.jar, 
> be.steria.esbpoc.personservice.1-1.0-SNAPSHOT-features.xml, 
> be.steria.esbpoc.personservice.1-1.0-SNAPSHOT.jar, servicemix.log
>
>
> We're trying to make a proof of concept with a webservice 'personservice' 
> that has CUD operations to manipulate person data that are persisted in a 
> database using OpenJPA. The purpose of the POC is actually to simulate 
> different nodes of 'personservice' each having their own database and to test 
> data replication between these different nodes with regards to performance, 
> stability. In order to simulate multiple nodes of this service, we 
> implemented it as an OSGI component deployable in servicemix, but with each 
> deployable component having in its configuration a distinct context root, 
> schema URL, ... . We wanted it this way in order to be able to deploy these 
> instances in the same servicemix JVM which facilitates configuration for the 
> POC (a more realistic situation is to have multiple JVMs but for the moment 
> we don't want to do that because then it's a hassle trying to get the ports 
> configurated without conflicts, like http port, ActiveMQ broker port, ...).
> Now our problem : deployment of the first node '0' of the service works, but 
> when trying to deploy the second node '1', we get a class conflict on the DAO 
> persistence layer that I didn't expect since OSGI deployments are supposed to 
> be completely isolated from each other:
>     Caused by: org.springframework.beans.ConversionNotSupportedException: 
>        Failed to convert property value of type 
> 'be.steria.esbpoc.personservice.dao.PersonDaoImpl' 
>          to required type 'be.steria.esbpoc.personservice.dao.PersonDao' for 
> property 'personDao'; 
>            nested exception is java.lang.IllegalStateException: Cannot 
> convert value of type [be.steria.esbpoc.personservice.dao.PersonDaoImpl] 
>            to required type [be.steria.esbpoc.personservice.dao.PersonDao] 
> for property 'personDao': no matching editors or conversion strategy found
>             ...
>        Caused by: java.lang.IllegalStateException: Cannot convert value of 
> type [be.steria.esbpoc.personservice.dao.PersonDaoImpl]
>          to required type [be.steria.esbpoc.personservice.dao.PersonDao] for 
> property 'personDao': no matching editors or conversion strategy found
>          ...
> The deployment was done in the servicemix console using the following 
> commands:
>     features:addUrl 
> mvn:be.steria.esbpoc/be.steria.esbpoc.personservice.0/1.0-SNAPSHOT/xml/features
>     features:install be.steria.esbpoc.personservice.0
>     features:addUrl 
> mvn:be.steria.esbpoc/be.steria.esbpoc.personservice.1/1.0-SNAPSHOT/xml/features
>     features:install be.steria.esbpoc.personservice.1
> Included the log file (servicemix.log), the 2 jars of the personservice nodes 
> '0' and '1' and the related features configurations for these 2 deployments.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to