You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Ivanhoe Abrahams <iv...@gmail.com> on 2012/09/18 20:03:37 UTC
Moving to Aries 1.0.0
Hi all
I have started moving my proof of concept aries project from version 0.3 to
1.0.0
However I now see the following exceptions
ERROR: Bundle org.apache.aries.blueprint.core [65] EventDispatcher: Error
during dispatch. (java.lang.ClassCastException:
org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
org.
apache.aries.blueprint.NamespaceHandler)
java.lang.ClassCastException:
org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
org.apache.aries.blueprint.NamespaceHandler
at
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:113)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:906)
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
at
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
...................
Later on in the log output I see
ERROR: Bundle org.apache.aries.jpa.container [69] EventDispatcher: Error
during dispatch. (java.lang.NullPointerException)
java.lang.NullPointerException
at
org.apache.aries.util.internal.DefaultWorker.setupListener(DefaultWorker.java:99)
at
org.apache.aries.util.internal.DefaultWorker.getClassLoader(DefaultWorker.java:87)
at
org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:100)
at
org.apache.aries.jpa.container.unit.impl.PersistenceUnitInfoImpl.getClassLoader(PersistenceUnitInfoImpl.java:105)
at
org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:377)
at
org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314)
at
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:161)
at
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
at
org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:329)
at
org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:175)
at
org.apache.aries.jpa.container.impl.PersistenceBundleManager.modifiedBundle(PersistenceBundleManager.java:296)
at
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:495)
at
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:424)
These exceptions then result in my service which contains a persistence.xml
and a blueprint.xml file to fail with the following timeout exception
324028 [Blueprint Extender: 3] ERROR
org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to
start blueprint container for bundle accountingservice due to unresolved
dependencies [(&(&
(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name
=accountingservice-PersistenceUnit_JTA))(objectClass=javax.persistence.EntityManagerFactory))]
java.util.concurrent.TimeoutException
at
org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:302)
at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
Here is my blueprint.xml file of the service that fails with the timeout
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="
http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="
http://aries.apache.org/xmlns/transactions/v1.0.0"
default-activation="eager" default-availability="optional">
<!--Export services defined in this module-->
<bean id="AccountingServiceImplementationBean"
class="com.bpi.accountingservice.AccountingServiceImplementation"
init-method="init">
<jpa:context property="entityManager"
unitname="accountingservice-PersistenceUnit_JTA"/>
<tx:transaction method="*" value="Required"/>
<property name="actorService" ref="actorServiceService"/>
</bean>
<service id="AccountingServiceImplementationService"
ref="AccountingServiceImplementationBean"
interface="com.bpi.accountingapi.AccountinService">
<service-properties>
<entry key="service.exported.interfaces" value="*"/>
<entry key="service.exported.configs" value="org.apache.cxf.ws"/>
<entry key="org.apache.cxf.ws.httpservice.context"
value="/AccountinService"/>
</service-properties>
</service>
<!--Import the services that this module uses-->
<reference id="actorServiceService"
interface="com.bpi.actormodel.ActorService"/>
<reference id="userService" interface="com.bpi.user.UserService"/>
</blueprint>
I am running my proof of concept on
- windows 7
- java 1.6
- Apache Felix 4.0.2
Funny thing is that when I check the bundles using the felix webconsole,
all bundles have started fine and are active.
This all worked fine in 0.3 version of aries.
Any pointers will be appreciated.
Kind
Regards
Ivanhoe
Re: Moving to Aries 1.0.0
Posted by Ivanhoe Abrahams <iv...@gmail.com>.
Hi Holly
Thank you for your reply
Below is a listing of the bundles i have installed.
Once again this is running on a clean Apache Felix 4.0,2
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (4.0.2)
[ 1] [Active ] [ 1] activeio-core (3.1.4)
[ 2] [Installed ] [ 1] activemq-blueprint (5.6.0)
[ 3] [Active ] [ 1] activemq-camel (5.6.0)
[ 4] [Active ] [ 1] activemq-core (5.6.0)
[ 5] [Active ] [ 1] activemq-pool (5.6.0)
[ 6] [Active ] [ 1] activemq-ra (5.6.0)
[ 7] [Active ] [ 1] activemq-web (5.6.0)
[ 8] [Active ] [ 1] ASM all classes (3.2)
[ 9] [Active ] [ 1] CometD :: Bayeux API (2.4.2)
[ 10] [Active ] [ 1] Blueplanet_commons (1.0.0.qualifier)
[ 11] [Active ] [ 1] camel-blueprint (2.10.1)
[ 12] [Active ] [ 1] camel-core (2.10.1)
[ 13] [Active ] [ 1] camel-jms (2.10.1)
[ 14] [Active ] [ 1] ANTLR (3.1.3)
[ 15] [Active ] [ 1] Apache Log4J (1.2.15)
[ 16] [Active ] [ 1] JDOM DOM Processor (1.1.0)
[ 17] [Active ] [ 1] PostgreSQL JDBC4 Driver (8.3.604)
[ 18] [Active ] [ 1] Commons Collections (3.2.1)
[ 19] [Active ] [ 1] Apache Commons IO Bundle (1.4)
[ 20] [Active ] [ 1] Commons JEXL (2.0)
[ 21] [Active ] [ 1] Commons Lang (2.4)
[ 22] [Active ] [ 1] Commons Management (1.0)
[ 23] [Active ] [ 1] Commons Pool (1.5.3)
[ 24] [Active ] [ 1] Apache CXF Minimal Bundle Jar (2.5.2)
[ 25] [Active ] [ 1] CXF Zookeeper-based Discovery Service
Bundle (1.3.1)
[ 26] [Active ] [ 1] ZooKeeper server control bundle (1.3.1)
[ 27] [Active ] [ 1] ZooKeeper server configuration bundle (1.3.1)
[ 28] [Active ] [ 1] CXF Local Discovery Service Bundle (1.3.1)
[ 29] [Active ] [ 1] CXF dOSGi Remote Service Admin
Implementation (1.3.1)
[ 30] [Active ] [ 1] CXF dOSGi Topology Manager (1.3.1)
[ 31] [Active ] [ 1] database-service (1.0.0)
[ 32] [Active ] [ 1] Apache Derby 10.5 (10.5.3000000.802917)
[ 33] [Active ] [ 1] drools-rules-service (1.0.0.qualifier)
[ 34] [Active ] [ 1] dynamic-component
[ 35] [Active ] [ 1] geronimo-annotation_1.0_spec (1.1.1)
[ 36] [Active ] [ 1] Apache Geronimo Expression Language Spec
2.2 (1.0.1)
[ 37] [Active ] [ 1] geronimo-j2ee-connector_1.5_spec (2.0.0)
[ 38] [Active ] [ 1] geronimo-j2ee-management_1.1_spec (1.0.1)
[ 39] [Active ] [ 1] geronimo-jms_1.1_spec (1.1.1)
[ 40] [Active ] [ 1] Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1)
[ 41] [Active ] [ 1] geronimo-jsp_2.1_spec (1.0.1)
[ 42] [Active ] [ 1] geronimo-jta_1.1_spec (1.1.1)
[ 43] [Active ] [ 1] Geronimo TxManager :: Transaction (2.2.1)
[ 44] [Active ] [ 1] guice (3.0.0)
[ 45] [Resolved ] [ 1] guice-servlet (3.0.0.rc3)
[ 46] [Active ] [ 1] Javolution (5.5.1)
[ 47] [Active ] [ 1] kahadb (5.6.0)
[ 48] [Active ] [ 1] localization-service (1.0.0.qualifier)
[ 49] [Active ] [ 1] JavaMail API (compat) (1.4.4)
[ 50] [Active ] [ 1] Sun Microsystems' JDBC Driver for MySQL (5.1.12)
[ 51] [Active ] [ 1] Apache Neethi (3.0.2)
[ 52] [Active ] [ 1] OpenJPA Aggregate Jar (2.0.0)
[ 53] [Active ] [ 1] Apache Aries Application API (1.0.1.SNAPSHOT)
[ 54] [Active ] [ 1] Apache Aries Application Default local
platform (1.0.1.SNAPSHOT)
[ 55] [Active ] [ 1] Apache Aries Application Deployment
Management (1.0.1.SNAPSHOT)
[ 56] [Active ] [ 1] Apache Aries Application Installer (1.0.1.SNAPSHOT)
[ 57] [Active ] [ 1] Apache Aries Application Management
(1.0.1.SNAPSHOT)
[ 58] [Active ] [ 1] Apache Aries Application Modelling (1.0.1.SNAPSHOT)
[ 59] [Active ] [ 1] Apache Aries Application OBR Resolver
(1.0.1.SNAPSHOT)
[ 60] [Active ] [ 1] Apache Aries Application Runtime (1.0.1.SNAPSHOT)
[ 61] [Active ] [ 1] Apache Aries Application Utils (1.0.1.SNAPSHOT)
[ 62] [Active ] [ 1] Apache Aries Blueprint Bundle (1.0.1.SNAPSHOT)
[ 63] [Active ] [ 1] Apache Aries Blueprint API (1.0.1.SNAPSHOT)
[ 64] [Active ] [ 1] Apache Aries Blueprint CM (1.0.1.SNAPSHOT)
[ 65] [Active ] [ 1] Apache Aries Blueprint Core (1.0.1.SNAPSHOT)
[ 66] [Active ] [ 1] Apache Aries JNDI Bundle (1.0.1.SNAPSHOT)
[ 67] [Active ] [ 1] Aries JPA Container API (1.0.1.SNAPSHOT)
[ 68] [Active ] [ 1] Aries JPA Container blueprint integration
for Aries blueprint (1.0.1.SNAPSHOT)
[ 69] [Active ] [ 1] Aries JPA Container (1.0.1.SNAPSHOT)
[ 70] [Active ] [ 1] Aries JPA Container Managed Contexts
(1.0.1.SNAPSHOT)
[ 71] [Active ] [ 1] Apache Aries Proxy Bundle (1.0.1.SNAPSHOT)
[ 72] [Active ] [ 1] Apache Aries Proxy API (1.0.1.SNAPSHOT)
[ 73] [Active ] [ 1] Apache Aries Transaction Blueprint (1.0.1.SNAPSHOT)
[ 74] [Active ] [ 1] Apache Aries Transaction Manager (1.0.1.SNAPSHOT)
[ 75] [Active ] [ 1] Apache Aries Transaction Enlisting JDBC
Datasource (1.0.1.SNAPSHOT)
[ 76] [Active ] [ 1] Apache Aries Util (1.0.1.SNAPSHOT)
[ 77] [Active ] [ 1] Apache Felix Bundle Repository (1.6.4)
[ 78] [Active ] [ 1] Apache Felix Configuration Admin Service (1.2.4)
[ 79] [Active ] [ 1] Apache Felix File Install (3.1.6)
[ 80] [Active ] [ 1] Apache Felix Http Bundle (2.2.1.SNAPSHOT)
[ 81] [Active ] [ 1] Apache Felix Http Cometd (2.2.1.SNAPSHOT)
[ 82] [Active ] [ 1] Apache Felix Metatype Service (1.0.4)
[ 83] [Active ] [ 1] Apache Felix Declarative Services (1.6.0)
[ 84] [Active ] [ 1] Apache Felix Shell Service (1.4.2)
[ 85] [Active ] [ 1] Apache Felix Web Management Console (3.1.8)
[ 86] [Active ] [ 1] Apache ServiceMix OSGI Common Bundles:
aopalliance-1.0 (1.0.0.rc1)
[ 87] [Active ] [ 1] Apache ServiceMix Bundles: cglib-2.1_3 (2.1.0.3_4)
[ 88] [Active ] [ 1] Apache ServiceMix :: Bundles ::
commons-beanutils (1.8.2.1)
[ 89] [Active ] [ 1] Apache ServiceMix :: Bundles :: drools (5.1.1.1)
[ 90] [Active ] [ 1] Apache ServiceMix :: Bundles :: howl (1.0.1.1_2)
[ 91] [Active ] [ 1] Apache ServiceMix :: Bundles ::
javax.inject (1.0.0.1)
[ 92] [Active ] [ 1] Apache ServiceMix Bundles:
jaxb-impl-2.1.6 (2.1.6.1)
[ 93] [Active ] [ 1] Apache ServiceMix :: Bundles :: core (3.2.3.4)
[ 94] [Active ] [ 1] Apache ServiceMix :: Bundles :: opensaml (2.5.1.2)
[ 95] [Active ] [ 1] Apache ServiceMix :: Bundles :: quartz (1.8.4.1)
[ 96] [Active ] [ 1] Apache ServiceMix Bundles: serp-1.13.1 (1.13.1.2)
[ 97] [Active ] [ 1] Apache ServiceMix :: Bundles :: woodstox (3.2.9.1)
[ 98] [Active ] [ 1] Apache ServiceMix OSGI Common Bundles:
wsdl4j (4.0.0.m1)
[ 99] [Active ] [ 1] Apache ServiceMix :: Bundles :: xmlpull (1.1.3.1_1)
[ 100] [Active ] [ 1] Apache ServiceMix :: Bundles ::
xmlresolver (1.2.0.3)
[ 101] [Active ] [ 1] Apache ServiceMix Bundles:
xmlschema-1.4.3 (1.4.3.1)
[ 102] [Active ] [ 1] Apache ServiceMix :: Bundles :: xpp3 (1.1.0.4c_4)
[ 103] [Active ] [ 1] Apache ServiceMix :: Bundles :: xstream (1.3.0.4)
[ 104] [Active ] [ 1] Apache ServiceMix :: Specs :: Activation
API 1.4 (1.7.0)
[ 105] [Active ] [ 1] Apache ServiceMix :: Specs :: JAXB API 2.2 (1.7.0)
[ 106] [Active ] [ 1] Apache ServiceMix :: Specs :: JAXWS API 2.2 (1.7.0)
[ 107] [Active ] [ 1] Apache ServiceMix :: Specs :: JSR-311 API
1.1 (1.7.0)
[ 108] [Active ] [ 1] Apache ServiceMix :: Specs :: SAAJ API 1.3 (1.7.0)
[ 109] [Active ] [ 1] Apache ServiceMix Specs :: STAX API 1.0 (1.0.0)
[ 110] [Active ] [ 1] osgi.cmpn (4.2.0.200908310645)
[ 111] [Active ] [ 1] osgi.enterprise (4.2.0.201003190513)
[ 112] [Active ] [ 1] OPS4J Pax Exam - API (1.2.0)
[ 113] [Active ] [ 1] OPS4J Pax Logging - API (1.4)
[ 114] [Active ] [ 1] OPS4J Pax Logging - Service (1.4)
[ 115] [Active ] [ 1] OPS4J Pax Url - mvn: (1.1.2)
[ 116] [Active ] [ 1] OPS4J Pax Web - API (2.0.1.SNAPSHOT)
[ 117] [Active ] [ 1] OPS4J Pax Web - Extender - Whiteboard
(2.0.1.SNAPSHOT)
[ 119] [Active ] [ 1] peaberry - Dynamic services for
Google-Guice (1.2.0)
[ 120] [Active ] [ 1] rules-service (1.0.0.qualifier)
[ 121] [Active ] [ 1] Apache Shiro :: Core (1.1.0)
[ 122] [Active ] [ 1] Apache Shiro :: Web (1.1.0)
[ 123] [Active ] [ 1] slf4j-api (1.6.1)
[ 124] [Resolved ] [ 1] slf4j-simple (1.6.1)
[ 125] [Active ] [ 1] Spring AOP (3.0.5.RELEASE)
[ 126] [Active ] [ 1] Spring ASM (3.0.5.RELEASE)
[ 127] [Active ] [ 1] Spring Beans (3.0.5.RELEASE)
[ 128] [Active ] [ 1] Spring Context (3.0.5.RELEASE)
[ 129] [Active ] [ 1] Spring Core (3.0.5.RELEASE)
[ 130] [Active ] [ 1] Spring Expression Language (3.0.5.RELEASE)
[ 131] [Active ] [ 1] Spring JMS (3.0.5.RELEASE)
[ 132] [Active ] [ 1] spring-osgi-core (1.2.0)
[ 133] [Active ] [ 1] spring-osgi-extender (1.2.0)
[ 134] [Active ] [ 1] spring-osgi-io (1.2.0)
[ 135] [Active ] [ 1] Spring Transaction (3.0.5.RELEASE)
[ 136] [Active ] [ 1] Straemer (1.0.0.qualifier)
[ 137] [Active ] [ 1] user-service (1.0.0.qualifier)
[ 138] [Active ] [ 1] Vaadin (6.7.3)
[ 139] [Active ] [ 1] VaadinModuleService (1.0.0.qualifier)
[ 140] [Active ] [ 1] XmlSchema Core (2.0.2)
[ 141] [Active ] [ 1] ZooKeeper Bundle (3.3.1)
[ 142] [Active ] [ 1] base (1.0.0)
[ 143] [Active ] [ 1] referencetableui (1.0.0)
[ 144] [Active ] [ 1] referencedataapi (1.0.0)
[ 145] [Active ] [ 1] actormodelservice (1.0.0)
[ 146] [Active ] [ 1] accountingapi (1.0.0)
[ 147] [Active ] [ 1] rulesapi (1.0.0)
[ 148] [Active ] [ 1] accountingmodel (1.0.0)
[ 149] [Active ] [ 1] referencetablesapi (1.0.0)
[ 150] [Active ] [ 1] watering-hole (1.0.0)
[ 151] [Active ] [ 1] accountingui (1.0.0)
[ 152] [Active ] [ 1] rulesdroolsimplementation (1.0.0)
[ 153] [Active ] [ 1] accountingmodelold (1.0.0)
[ 154] [Active ] [ 1] accountingservice (1.0.0)
[ 155] [Active ] [ 1] actormodel (1.0.0)
[ 156] [Active ] [ 1] referencetableservice (1.0.0)
Once again thanks for your help
Kind regards
Ivanhoe
On Fri, Sep 21, 2012 at 4:17 PM, Holly Cummins <
holly.k.cummins@googlemail.com> wrote:
> Hi,
>
> Can you give us a console listing of all the bundles in your system?
> The list of required bundles is slightly different between 0.3 and
> 1.0.0, so that could be causing the issues you're seeing.
>
> Holly
> --
> Enterprise OSGi in Action - http://www.manning.com/cummins
>
> On Tue, Sep 18, 2012 at 7:03 PM, Ivanhoe Abrahams
> <iv...@gmail.com> wrote:
> > Hi all
> >
> > I have started moving my proof of concept aries project from version 0.3
> to
> > 1.0.0
> > However I now see the following exceptions
> >
> > ERROR: Bundle org.apache.aries.blueprint.core [65] EventDispatcher: Error
> > during dispatch. (java.lang.ClassCastException:
> > org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
> > org.
> > apache.aries.blueprint.NamespaceHandler)
> > java.lang.ClassCastException:
> > org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
> > org.apache.aries.blueprint.NamespaceHandler
> > at
> >
> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:113)
> > at
> >
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
> > at
> >
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:906)
> > at
> >
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
> > at
> > org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
> > at
> >
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
> >
> > ...................
> >
> > Later on in the log output I see
> >
> > ERROR: Bundle org.apache.aries.jpa.container [69] EventDispatcher: Error
> > during dispatch. (java.lang.NullPointerException)
> > java.lang.NullPointerException
> > at
> >
> org.apache.aries.util.internal.DefaultWorker.setupListener(DefaultWorker.java:99)
> > at
> >
> org.apache.aries.util.internal.DefaultWorker.getClassLoader(DefaultWorker.java:87)
> > at
> >
> org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:100)
> > at
> >
> org.apache.aries.jpa.container.unit.impl.PersistenceUnitInfoImpl.getClassLoader(PersistenceUnitInfoImpl.java:105)
> > at
> >
> org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:377)
> > at
> >
> org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314)
> > at
> >
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:161)
> > at
> >
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
> > at
> >
> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:329)
> > at
> >
> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:175)
> > at
> >
> org.apache.aries.jpa.container.impl.PersistenceBundleManager.modifiedBundle(PersistenceBundleManager.java:296)
> > at
> >
> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:495)
> > at
> >
> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:424)
> >
> >
> > These exceptions then result in my service which contains a
> persistence.xml
> > and a blueprint.xml file to fail with the following timeout exception
> >
> > 324028 [Blueprint Extender: 3] ERROR
> > org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to
> > start blueprint container for bundle accountingservice due to unresolved
> > dependencies [(&(&
> > (org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name
> =accountingservice-PersistenceUnit_JTA))(objectClass=javax.persistence.EntityManagerFactory))]
> > java.util.concurrent.TimeoutException
> > at
> >
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:302)
> > at
> >
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
> > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> > Source)
> >
> >
> >
> > Here is my blueprint.xml file of the service that fails with the timeout
> >
> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0"
> > xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
> > default-activation="eager" default-availability="optional">
> > <!--Export services defined in this module-->
> > <bean id="AccountingServiceImplementationBean"
> > class="com.bpi.accountingservice.AccountingServiceImplementation"
> > init-method="init">
> > <jpa:context property="entityManager"
> > unitname="accountingservice-PersistenceUnit_JTA"/>
> > <tx:transaction method="*" value="Required"/>
> > <property name="actorService" ref="actorServiceService"/>
> > </bean>
> > <service id="AccountingServiceImplementationService"
> > ref="AccountingServiceImplementationBean"
> > interface="com.bpi.accountingapi.AccountinService">
> > <service-properties>
> > <entry key="service.exported.interfaces" value="*"/>
> > <entry key="service.exported.configs" value="org.apache.cxf.ws"/>
> > <entry key="org.apache.cxf.ws.httpservice.context"
> > value="/AccountinService"/>
> > </service-properties>
> > </service>
> > <!--Import the services that this module uses-->
> > <reference id="actorServiceService"
> > interface="com.bpi.actormodel.ActorService"/>
> > <reference id="userService" interface="com.bpi.user.UserService"/>
> > </blueprint>
> >
> > I am running my proof of concept on
> > - windows 7
> > - java 1.6
> > - Apache Felix 4.0.2
> >
> > Funny thing is that when I check the bundles using the felix webconsole,
> all
> > bundles have started fine and are active.
> > This all worked fine in 0.3 version of aries.
> >
> > Any pointers will be appreciated.
> >
> > Kind
> > Regards
> >
> > Ivanhoe
>
Re: Moving to Aries 1.0.0
Posted by Christian Eugster <ch...@gmx.net>.
Hi,
this is the contents of my blog-assemply/target:
total 32624
drwxr-xr-x 5 ceugster staff 1768 21 Sep 16:19 .
drwxr-xr-x@ 4 ceugster staff 170 21 Sep 15:21 ..
-rw-r--r-- 1 ceugster staff 30 21 Sep 15:21 .plxarc
drwxr-xr-x 2 ceugster staff 170 21 Sep 15:21 META-INF
-rw-r--r-- 1 ceugster staff 203417 21 Sep 15:21 asm-all-3.2.jar
-rw-r--r-- 1 ceugster staff 1859 21 Sep 15:21 blogDB.sql
-rw-r--r-- 1 ceugster staff 43895 21 Sep 15:21 cm-3.2.0-v20070116.jar
-rw-r--r-- 1 ceugster staff 575389 21 Sep 15:21
commons-collections-3.2.1.jar
-rw-r--r-- 1 ceugster staff 279193 21 Sep 15:21 commons-lang-2.5.jar
-rw-r--r-- 1 ceugster staff 96221 21 Sep 15:21 commons-pool-1.5.4.jar
drwxr-xr-x 2 ceugster staff 102 21 Sep 15:21 configuration
-rw-r--r-- 1 ceugster staff 2512189 21 Sep 15:21 derby-10.5.3.0_1.jar
-rw-r--r-- 1 ceugster staff 37477 21 Sep 15:21
geronimo-j2ee-connector_1.5_spec-2.0.0.jar
-rw-r--r-- 1 ceugster staff 120194 21 Sep 15:21
geronimo-jpa_2.0_spec-1.1.jar
-rw-r--r-- 1 ceugster staff 16030 21 Sep 15:21
geronimo-jta_1.1_spec-1.1.1.jar
-rw-r--r-- 1 ceugster staff 70593 21 Sep 15:21
geronimo-servlet_2.5_spec-1.2.jar
-rw-r--r-- 1 ceugster staff 57705 21 Sep 15:21
geronimo-transaction-2.1.3.jar
drwxr-xr-x 3 ceugster staff 102 21 Sep 15:21
maven-shared-archive-resources
-rw-r--r-- 1 ceugster staff 4068849 21 Sep 15:21 openjpa-2.0.0.jar
-rw-r--r-- 1 ceugster staff 54161 21 Sep 15:21
org.apache.aries.application.api-1.0.0.jar
-rw-r--r-- 1 ceugster staff 10756 21 Sep 15:21
org.apache.aries.application.default.local.platform-1.0.0.jar
-rw-r--r-- 1 ceugster staff 25913 21 Sep 15:21
org.apache.aries.application.deployment.management-1.0.0.jar
-rw-r--r-- 1 ceugster staff 11720 21 Sep 15:21
org.apache.aries.application.install-1.0.0.jar
-rw-r--r-- 1 ceugster staff 26051 21 Sep 15:21
org.apache.aries.application.management-1.0.0.jar
-rw-r--r-- 1 ceugster staff 68134 21 Sep 15:21
org.apache.aries.application.modeller-1.0.0.jar
-rw-r--r-- 1 ceugster staff 11314 21 Sep 15:21
org.apache.aries.application.resolver.noop-1.0.0.jar
-rw-r--r-- 1 ceugster staff 55991 21 Sep 15:21
org.apache.aries.application.resolver.obr-1.0.0.jar
-rw-r--r-- 1 ceugster staff 16617 21 Sep 15:21
org.apache.aries.application.runtime-1.0.0.jar
-rw-r--r-- 1 ceugster staff 48255 21 Sep 15:21
org.apache.aries.application.utils-1.0.0.jar
-rw-r--r-- 1 ceugster staff 437187 21 Sep 15:21
org.apache.aries.blueprint-1.0.0.jar
-rw-r--r-- 1 ceugster staff 109570 21 Sep 15:21
org.apache.aries.jndi-1.0.0.jar
-rw-r--r-- 1 ceugster staff 15829 21 Sep 15:21
org.apache.aries.jpa.api-1.0.0.jar
-rw-r--r-- 1 ceugster staff 20636 21 Sep 15:21
org.apache.aries.jpa.blueprint.aries-1.0.0.jar
-rw-r--r-- 1 ceugster staff 110918 21 Sep 15:21
org.apache.aries.jpa.container-1.0.0.jar
-rw-r--r-- 1 ceugster staff 42879 21 Sep 15:21
org.apache.aries.jpa.container.context-1.0.0.jar
-rw-r--r-- 1 ceugster staff 89265 21 Sep 15:21
org.apache.aries.proxy-1.0.0.jar
-rw-r--r-- 1 ceugster staff 9555 21 Sep 15:21
org.apache.aries.samples.blog.datasource-1.0.0.jar
-rw-r--r-- 1 ceugster staff 48295 21 Sep 15:21
org.apache.aries.transaction.blueprint-1.0.0.jar
-rw-r--r-- 1 ceugster staff 168969 21 Sep 15:21
org.apache.aries.transaction.manager-1.0.0.jar
-rw-r--r-- 1 ceugster staff 21356 21 Sep 15:21
org.apache.aries.transaction.wrappers-1.0.0.jar
-rw-r--r-- 1 ceugster staff 108826 21 Sep 15:21
org.apache.aries.util-1.0.0.jar
-rw-r--r-- 1 ceugster staff 153005 21 Sep 15:21
org.apache.felix.bundlerepository-1.6.4.jar
-rw-r--r-- 1 ceugster staff 71899 21 Sep 15:21
org.apache.felix.fileinstall-3.1.4.jar
-rw-r--r-- 1 ceugster staff 212543 21 Sep 15:21
org.apache.servicemix.bundles.serp-1.13.1_2.jar
-rw-r--r-- 1 ceugster staff 1362240 21 Sep 15:21
org.eclipse.osgi-3.7.0.v20110613.jar
-rw-r--r-- 1 ceugster staff 91138 21 Sep 15:21
pax-logging-api-1.5.0.jar
-rw-r--r-- 1 ceugster staff 541463 21 Sep 15:21
pax-logging-service-1.5.0.jar
-rw-r--r-- 1 ceugster staff 112655 21 Sep 15:21
pax-web-extender-war-0.8.1.jar
-rw-r--r-- 1 ceugster staff 2225198 21 Sep 15:21
pax-web-jetty-bundle-0.8.1.jar
-rw-r--r-- 1 ceugster staff 2170895 21 Sep 15:21 pax-web-jsp-0.8.1.jar
-rw-r--r-- 1 ceugster staff 63704 21 Sep 15:21
services-3.1.200-v20070605.jar
-rw-r--r-- 1 ceugster staff 0 21 Sep 16:19 tmp.txt
Christian
Am 21.09.12 16:17, schrieb Holly Cummins:
> Hi,
>
> Can you give us a console listing of all the bundles in your system?
> The list of required bundles is slightly different between 0.3 and
> 1.0.0, so that could be causing the issues you're seeing.
>
> Holly
> --
> Enterprise OSGi in Action - http://www.manning.com/cummins
>
> On Tue, Sep 18, 2012 at 7:03 PM, Ivanhoe Abrahams
> <iv...@gmail.com> wrote:
>> Hi all
>>
>> I have started moving my proof of concept aries project from version 0.3 to
>> 1.0.0
>> However I now see the following exceptions
>>
>> ERROR: Bundle org.apache.aries.blueprint.core [65] EventDispatcher: Error
>> during dispatch. (java.lang.ClassCastException:
>> org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
>> org.
>> apache.aries.blueprint.NamespaceHandler)
>> java.lang.ClassCastException:
>> org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
>> org.apache.aries.blueprint.NamespaceHandler
>> at
>> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:113)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:906)
>> at
>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
>> at
>> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
>>
>> ...................
>>
>> Later on in the log output I see
>>
>> ERROR: Bundle org.apache.aries.jpa.container [69] EventDispatcher: Error
>> during dispatch. (java.lang.NullPointerException)
>> java.lang.NullPointerException
>> at
>> org.apache.aries.util.internal.DefaultWorker.setupListener(DefaultWorker.java:99)
>> at
>> org.apache.aries.util.internal.DefaultWorker.getClassLoader(DefaultWorker.java:87)
>> at
>> org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:100)
>> at
>> org.apache.aries.jpa.container.unit.impl.PersistenceUnitInfoImpl.getClassLoader(PersistenceUnitInfoImpl.java:105)
>> at
>> org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:377)
>> at
>> org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314)
>> at
>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:161)
>> at
>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
>> at
>> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:329)
>> at
>> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:175)
>> at
>> org.apache.aries.jpa.container.impl.PersistenceBundleManager.modifiedBundle(PersistenceBundleManager.java:296)
>> at
>> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:495)
>> at
>> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:424)
>>
>>
>> These exceptions then result in my service which contains a persistence.xml
>> and a blueprint.xml file to fail with the following timeout exception
>>
>> 324028 [Blueprint Extender: 3] ERROR
>> org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to
>> start blueprint container for bundle accountingservice due to unresolved
>> dependencies [(&(&
>> (org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=accountingservice-PersistenceUnit_JTA))(objectClass=javax.persistence.EntityManagerFactory))]
>> java.util.concurrent.TimeoutException
>> at
>> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:302)
>> at
>> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
>> Source)
>>
>>
>>
>> Here is my blueprint.xml file of the service that fails with the timeout
>>
>> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0"
>> xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
>> default-activation="eager" default-availability="optional">
>> <!--Export services defined in this module-->
>> <bean id="AccountingServiceImplementationBean"
>> class="com.bpi.accountingservice.AccountingServiceImplementation"
>> init-method="init">
>> <jpa:context property="entityManager"
>> unitname="accountingservice-PersistenceUnit_JTA"/>
>> <tx:transaction method="*" value="Required"/>
>> <property name="actorService" ref="actorServiceService"/>
>> </bean>
>> <service id="AccountingServiceImplementationService"
>> ref="AccountingServiceImplementationBean"
>> interface="com.bpi.accountingapi.AccountinService">
>> <service-properties>
>> <entry key="service.exported.interfaces" value="*"/>
>> <entry key="service.exported.configs" value="org.apache.cxf.ws"/>
>> <entry key="org.apache.cxf.ws.httpservice.context"
>> value="/AccountinService"/>
>> </service-properties>
>> </service>
>> <!--Import the services that this module uses-->
>> <reference id="actorServiceService"
>> interface="com.bpi.actormodel.ActorService"/>
>> <reference id="userService" interface="com.bpi.user.UserService"/>
>> </blueprint>
>>
>> I am running my proof of concept on
>> - windows 7
>> - java 1.6
>> - Apache Felix 4.0.2
>>
>> Funny thing is that when I check the bundles using the felix webconsole, all
>> bundles have started fine and are active.
>> This all worked fine in 0.3 version of aries.
>>
>> Any pointers will be appreciated.
>>
>> Kind
>> Regards
>>
>> Ivanhoe
Re: Moving to Aries 1.0.0
Posted by Holly Cummins <ho...@googlemail.com>.
Hi,
Can you give us a console listing of all the bundles in your system?
The list of required bundles is slightly different between 0.3 and
1.0.0, so that could be causing the issues you're seeing.
Holly
--
Enterprise OSGi in Action - http://www.manning.com/cummins
On Tue, Sep 18, 2012 at 7:03 PM, Ivanhoe Abrahams
<iv...@gmail.com> wrote:
> Hi all
>
> I have started moving my proof of concept aries project from version 0.3 to
> 1.0.0
> However I now see the following exceptions
>
> ERROR: Bundle org.apache.aries.blueprint.core [65] EventDispatcher: Error
> during dispatch. (java.lang.ClassCastException:
> org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
> org.
> apache.aries.blueprint.NamespaceHandler)
> java.lang.ClassCastException:
> org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast to
> org.apache.aries.blueprint.NamespaceHandler
> at
> org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:113)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:906)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
> at
> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
>
> ...................
>
> Later on in the log output I see
>
> ERROR: Bundle org.apache.aries.jpa.container [69] EventDispatcher: Error
> during dispatch. (java.lang.NullPointerException)
> java.lang.NullPointerException
> at
> org.apache.aries.util.internal.DefaultWorker.setupListener(DefaultWorker.java:99)
> at
> org.apache.aries.util.internal.DefaultWorker.getClassLoader(DefaultWorker.java:87)
> at
> org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:100)
> at
> org.apache.aries.jpa.container.unit.impl.PersistenceUnitInfoImpl.getClassLoader(PersistenceUnitInfoImpl.java:105)
> at
> org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:377)
> at
> org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:161)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
> at
> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:329)
> at
> org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:175)
> at
> org.apache.aries.jpa.container.impl.PersistenceBundleManager.modifiedBundle(PersistenceBundleManager.java:296)
> at
> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:495)
> at
> org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:424)
>
>
> These exceptions then result in my service which contains a persistence.xml
> and a blueprint.xml file to fail with the following timeout exception
>
> 324028 [Blueprint Extender: 3] ERROR
> org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to
> start blueprint container for bundle accountingservice due to unresolved
> dependencies [(&(&
> (org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=accountingservice-PersistenceUnit_JTA))(objectClass=javax.persistence.EntityManagerFactory))]
> java.util.concurrent.TimeoutException
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:302)
> at
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
>
>
>
> Here is my blueprint.xml file of the service that fails with the timeout
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0"
> xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
> default-activation="eager" default-availability="optional">
> <!--Export services defined in this module-->
> <bean id="AccountingServiceImplementationBean"
> class="com.bpi.accountingservice.AccountingServiceImplementation"
> init-method="init">
> <jpa:context property="entityManager"
> unitname="accountingservice-PersistenceUnit_JTA"/>
> <tx:transaction method="*" value="Required"/>
> <property name="actorService" ref="actorServiceService"/>
> </bean>
> <service id="AccountingServiceImplementationService"
> ref="AccountingServiceImplementationBean"
> interface="com.bpi.accountingapi.AccountinService">
> <service-properties>
> <entry key="service.exported.interfaces" value="*"/>
> <entry key="service.exported.configs" value="org.apache.cxf.ws"/>
> <entry key="org.apache.cxf.ws.httpservice.context"
> value="/AccountinService"/>
> </service-properties>
> </service>
> <!--Import the services that this module uses-->
> <reference id="actorServiceService"
> interface="com.bpi.actormodel.ActorService"/>
> <reference id="userService" interface="com.bpi.user.UserService"/>
> </blueprint>
>
> I am running my proof of concept on
> - windows 7
> - java 1.6
> - Apache Felix 4.0.2
>
> Funny thing is that when I check the bundles using the felix webconsole, all
> bundles have started fine and are active.
> This all worked fine in 0.3 version of aries.
>
> Any pointers will be appreciated.
>
> Kind
> Regards
>
> Ivanhoe