Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36ECB11417 for ; Fri, 10 May 2013 09:22:47 +0000 (UTC) Received: (qmail 29828 invoked by uid 500); 10 May 2013 09:22:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 29768 invoked by uid 500); 10 May 2013 09:22:45 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 29754 invoked by uid 99); 10 May 2013 09:22:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 09:22:45 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 09:22:41 +0000 Received: by mail-ie0-f176.google.com with SMTP id at1so7487025iec.35 for ; Fri, 10 May 2013 02:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=UxXAzfZWdNIn6zJk6/SYEMA5WjFURDHDKLyXHUnrGNs=; b=JjcyZxUF6OaAoTyeyGEpXGiglLhMymNH7hwdbibzsakvolulHpYZ1EQYaTsh2zf7n1 XounmMeRwm1LuMe2UubvnysLI2vvafkb1XcujEPo/hBvZjC8GIpsgKAVWW91scMI+cok 4aTJ1TEfO4KosjMepYac1jWb2lG29vFFRHUmnS3GCJEmI++Jo21STyKXDk+xtuHH1DMD tWst8iRhrqsK7gplQBKw/m/OjLst6ZRK2zo6qyB5DmOyvi/S0Jr8+8V6Al9K369zEmOJ IpD7IcNcDzUGLeCCVTismYqhPkwfQeg9pCezJcpOGQ6YdcSQIo+VwNSEttSWknXZbPtV ToLQ== X-Received: by 10.50.45.230 with SMTP id q6mr1320073igm.39.1368177741290; Fri, 10 May 2013 02:22:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.25.67 with HTTP; Fri, 10 May 2013 02:22:01 -0700 (PDT) In-Reply-To: <1368174884343-5732251.post@n5.nabble.com> References: <1368174884343-5732251.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 10 May 2013 11:22:01 +0200 Message-ID: Subject: Re: JPA FAB fails to start To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi You should use the JBoss Fuse forums for your questions about that product https://community.jboss.org/en/jbossfuse On Fri, May 10, 2013 at 10:34 AM, lmanchanda75 wrote: > Hi, > > I am working on a simple JPA app on Jboss Fuse 6.0, which is using openJPA > as a provider, attempts to connect to postgres. It installs, but when > starting it fails with the following error. I am attaching the pom.xml, > blueprint.xml and persistence.xml being used for the project. I see some > similarity of my issue with - http://fusesource.com/issues/browse/ENTESB-320 > > > 09:25:26,497 | INFO | hat-015-thread-1 | faultManagementLifecycleStrategy | > 130 - org.apache.camel.camel-core - 2.10.0.redhat-60015 | StatisticsLevel at > All so enabling load performance statistics 09:25:26,503 | INFO | > hat-015-thread-1 | BlueprintCamelContext | 130 - org.apache.camel.camel-core > - 2.10.0.redhat-60015 | Total 1 routes, of which 1 is started. 09:25:26,504 > | INFO | hat-015-thread-1 | BlueprintCamelContext | 130 - > org.apache.camel.camel-core - 2.10.0.redhat-60015 | Apache Camel > 2.10.0.redhat-60015 (CamelContext: cbr-example-context) started in 0.681 > seconds 09:25:27,026 | INFO | NAPSHOT-thread-1 | ManagementStrategyFactory | > 130 - org.apache.camel.camel-core - 2.10.0.redhat-60015 | JMX enabled. > 09:25:27,046 | WARN | NAPSHOT-thread-1 | BeanRecipe | 8 - > org.apache.aries.blueprint.core - 1.0.1.redhat-60015 | Object to be > destroyed is not an instance of UnwrapperedBeanHolder, type: null > 09:25:27,046 | INFO | NAPSHOT-thread-1 | BlueprintCamelContext | 130 - > org.apache.camel.camel-core - 2.10.0.redhat-60015 | Apache Camel > 2.10.0.redhat-60015 (CamelContext: blueprintContext) is shutting down > 09:25:27,048 | INFO | NAPSHOT-thread-1 | BlueprintCamelContext | 130 - > org.apache.camel.camel-core - 2.10.0.redhat-60015 | Apache Camel > 2.10.0.redhat-60015 (CamelContext: blueprintContext) is shutdown in 0.001 > seconds. Uptime not started. 09:25:27,048 | ERROR | NAPSHOT-thread-1 | > BlueprintContainerImpl | 8 - org.apache.aries.blueprint.core - > 1.0.1.redhat-60015 | Unable to start blueprint container for bundle > com.mycompany.test-blueprint > org.osgi.service.blueprint.container.ComponentDefinitionException: Error > setting property: PropertyDescriptor class org.apache.camel.component.jpa.JpaComponent.getEntityManagerFactory(), > setter: [class > org.apache.camel.component.jpa.JpaComponent.setEntityManagerFactory(interface > javax.persistence.EntityManagerFactory)] at > org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43] > at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43] at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:667)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:270)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:233)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[13:org.apache.aries.util:1.0.1.redhat-60015] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[13:org.apache.aries.util:1.0.1.redhat-60015] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[13:org.apache.aries.util:1.0.1.redhat-60015] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[13:org.apache.aries.util:1.0.1.redhat-60015] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[13:org.apache.aries.util:1.0.1.redhat-60015] > at > org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4580)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.Felix$4.run(Felix.java:2115)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.Felix$4.run(Felix.java:2115)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > org.apache.felix.framework.Felix$5.run(Felix.java:2159)[org.apache.felix.framework-4.0.3.redhat-60015.jar:] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43] > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43] > at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43] at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_43] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_43] > at java.lang.Thread.run(Thread.java:662)[:1.6.0_43] Caused by: > org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to > convert to javax.persistence.EntityManagerFactory at > org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper.convert(ReferenceRecipe.java:304)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.AggregateConverter.convert(AggregateConverter.java:145)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BlueprintRepository.convert(BlueprintRepository.java:402)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.convert(ReflectionUtils.java:394)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:628)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:378)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:939)[8:org.apache.aries.blueprint.core:1.0.1.redhat-60015] > ... 32 more > > > > Pom.xml looks like - > > <?xml version="1.0" encoding="UTF-8"?> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > > 4.0.0 > > com.mycompany > test-blueprint > > jar > 0.0.1-SNAPSHOT > > A Camel Blueprint Route > http://www.myorganization.org > > > UTF-8 > > UTF-8 > > > > > > fusesource.m2 > FuseSource Community Release Repository > > http://repo.fusesource.com/nexus/content/repositories/releases > > false > > > true > > > > fusesource.ea > FuseSource Community Early Access Release > Repository > http://repo.fusesource.com/nexus/content/groups/ea > > false > > > true > > > > > > > > fusesource.m2 > FuseSource Community Release Repository > > http://repo.fusesource.com/nexus/content/repositories/releases > > false > > > true > > > > fusesource.ea > FuseSource Community Early Access Release > Repository > http://repo.fusesource.com/nexus/content/groups/ea > > false > > > true > > > > > > > > > > > org.apache.camel > camel-blueprint > 2.10.0.redhat-60015 > provided > > > > > > javax.persistence > persistence-api > 1.0.2 > > > > org.apache.camel > camel-jpa > 2.10.0.redhat-60015 > provided > > > > org.apache.openjpa > openjpa > 2.2.2 > > > > > postgresql > postgresql > 9.1-901.jdbc4 > > > > > > > > > > org.slf4j > slf4j-api > 1.6.6 > provided > > > org.slf4j > slf4j-log4j12 > 1.6.6 > provided > > > org.slf4j > jcl-over-slf4j > 1.6.6 > test > > > log4j > log4j > 1.2.17 > test > > > > > > > > > install > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.5.1 > > 1.6 > 1.6 > > > > > > > > org.apache.maven.plugins > maven-jar-plugin > > > true > > META-INF/persistence.xml > > > > > > > > > > > > > > > > blueprint.xml looks like - > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:camel="http://camel.apache.org/schema/blueprint" > xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.1.0" > xsi:schemaLocation=" > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd > http://camel.apache.org/schema/blueprint > http://camel.apache.org/schema/blueprint/camel-blueprint.xsd > http://aries.apache.org/xmlns/jpa/v1.1.0 > http://aries.apache.org/schemas/jpa/jpa_110.xsd"> > > > > > > > xmlns="http://camel.apache.org/schema/blueprint"> > > > > > > > > > > interface="javax.transaction.TransactionManager"/> > > class="org.springframework.transaction.jta.JtaTransactionManager"> > > > > > > > > > > destroy-method="close"> > > > > > > > > > > > > > > > > > > > > > persistence.xml looks like - > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> > > > > > > org.apache.openjpa.persistence.PersistenceProviderImpl > > > osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/postgresds > > osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/postgresds) > com.mycompany.test_blueprint.PurchaseOrder > true > > > > value="buildSchema(ForeignKeys=true)"/> > > > > > > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/JPA-FAB-fails-to-start-tp5732251.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen