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
<[email protected]> 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