Hi Charles, The Aries website is edited through CMS in wiki syntax. We would be more than happy to accept contributed sections for our documentation from anyone. If you don't have committer access to the Aries site, then feel free to raise a JIRA for the doc and attach your contribution. I, or one of the other committers, will happily accept improvements to our rather sparse existing documentation.
Regards, Tim ---------------------------------------- > Date: Thu, 10 Feb 2011 11:47:45 +0100 > Subject: Re: GRACE_PERIOD for bundle persistence-jpa-aries !! > From: [email protected] > To: [email protected] > > Hi Timothy, > > How can I help you to improve Aries Documentation (wiki page, docbook, ....) ? > > Regards, > > Charles > > > On Thu, Feb 10, 2011 at 11:08 AM, Timothy Ward wrote: > > > > Hi Charles, > > I'm glad you found the problem here :). An empty "Meta-Persistence: " (note > > the trailing space) would also do in this case because > > META-INF/persistence.xml is the default location. > > > > Regards, > > > > Tim > > > > ---------------------------------------- > >> Date: Wed, 9 Feb 2011 14:57:49 +0100 > >> Subject: Re: GRACE_PERIOD for bundle persistence-jpa-aries !! > >> From: [email protected] > >> To: [email protected] > >> > >> Hi > >> > >> I have found the reason. The instruction Meta-Persistence: > >> META/persistence.xml was not defined in my bundle. > >> > >> Regards, > >> > >> Charles Moulliard > >> > >> Sr. Principal Solution Architect - FuseSource > >> Apache Committer > >> > >> Blog : http://cmoulliard.blogspot.com > >> Twitter : http://twitter.com/cmoulliard > >> Linkedin : http://www.linkedin.com/in/charlesmoulliard > >> Skype: cmoulliard > >> > >> > >> > >> On Wed, Feb 9, 2011 at 2:28 PM, Charles Moulliard wrote: > >> > Hi, > >> > > >> > I get the following error when deploying a JPA bundle on Apache Karaf > >> > and the status of the bundle is GracePeriod > >> > > >> > 4:20:13,385 | DEBUG | rint Extender: 3 | BlueprintContainerImpl > >> > | container.BlueprintContainerImpl 245 | 8 - > >> > org.apache.aries.blueprint - 0.3.0.SNAPSHOT | Running blueprint > >> > container for bundle persistence-jpa-aries in state > >> > WaitForInitialReferences > >> > 14:20:13,385 | INFO | rint Extender: 3 | BlueprintContainerImpl > >> > | container.BlueprintContainerImpl 305 | 8 - > >> > org.apache.aries.blueprint - 0.3.0.SNAPSHOT | Bundle > >> > persistence-jpa-aries is waiting for dependencies > >> > [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=ReportIncident))(objectClass=javax.persistence.EntityManagerFactory))] > >> > 14:20:13,385 | DEBUG | rint Extender: 3 | BlueprintEventDispatcher > >> > | ntainer.BlueprintEventDispatcher 123 | 8 - > >> > org.apache.aries.blueprint - 0.3.0.SNAPSHOT | Sending blueprint > >> > container event BlueprintEvent[type=GRACE_PERIOD, > >> > dependencies=[(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=ReportIncident))(objectClass=javax.persistence.EntityManagerFactory))]] > >> > for bundle persistence-jpa-aries > >> > > >> > The persistence.xml file containing the unit ReportIncident is > >> > packaged in META-INF directory while my blueprint config file in > >> > OSGI-INF. > >> > > >> > Here is the list of bundles deployed : > >> > > >> > [1908] [Active ] [ ] [ ] [ 60] Apache > >> > ServiceMix :: Bundles :: commons-dbcp (1.4.0.1-SNAPSHOT) > >> > [1909] [Active ] [ ] [ ] [ 60] Sun > >> > Microsystems' JDBC Driver for MySQL (5.1.9) > >> > [1910] [Active ] [ ] [ ] [ 60] Apache > >> > ServiceMix :: Bundles :: aspectj (1.6.8.1) > >> > [1911] [Active ] [ ] [ ] [ 60] OpenJPA > >> > Aggregate Jar (2.0.1) > >> > [1912] [Active ] [ ] [ ] [ 60] Apache > >> > ServiceMix :: Specs :: Java Persistence API 2.0 (1.6.0) > >> > [1913] [Active ] [ ] [ ] [ 60] Apache > >> > ServiceMix Bundles: serp-1.13.1 (1.13.1.2) > >> > [1914] [Active ] [ ] [ ] [ 60] Apache Aries Util > >> > (0.3.0) > >> > [1915] [Active ] [ ] [ ] [ 60] Apache Aries > >> > JNDI API (0.3.0) > >> > [1916] [Active ] [ ] [ ] [ 60] Apache Aries > >> > JNDI Core (0.3.0) > >> > [1917] [Active ] [ ] [ ] [ 60] Apache Aries > >> > JNDI RMI Handler (0.3.0) > >> > [1918] [Active ] [ ] [ ] [ 60] Apache Aries > >> > JNDI URL Handler (0.3.0) > >> > [1919] [Active ] [ ] [ ] [ 60] Apache Aries > >> > JNDI Support for Legacy Runtimes (0.3.0) > >> > [1920] [Active ] [Created ] [ ] [ 60] Apache Aries > >> > Transaction Blueprint (0.3.0) > >> > [1921] [Active ] [ ] [ ] [ 60] Apache Geronimo > >> > JSR-317 JPA 2.0 Spec API (1.1) > >> > [1922] [Active ] [Created ] [ ] [ 60] Aries JPA > >> > Container blueprint integration for Aries blueprint (0.3.0) > >> > [1923] [Active ] [ ] [ ] [ 60] Aries JPA > >> > Container (0.3.0) > >> > [1924] [Active ] [ ] [ ] [ 60] Aries JPA > >> > Container Managed Contexts (0.3.0) > >> > > >> > and the content of my bundle > >> > > >> > karaf@root> headers 1938 > >> > > >> > Reportincident :: Persistence JPA :: Aries (1938) > >> > ------------------------------------------------- > >> > Manifest-Version = 1.0 > >> > Bnd-LastModified = 1297241499732 > >> > Tool = Bnd-0.0.357 > >> > Built-By = charlesmoulliard > >> > Build-Jdk = 1.6.0_22 > >> > Created-By = Apache Maven Bundle Plugin > >> > > >> > Bundle-Name = Reportincident :: Persistence JPA :: Aries > >> > Bundle-SymbolicName = persistence-jpa-aries > >> > Bundle-Version = 1.0.0.SNAPSHOT > >> > Bundle-ManifestVersion = 2 > >> > > >> > Import-Package = > >> > com.mysql.jdbc, > >> > javax.persistence;resolution:=optional;version="[1.1.0,2.1.0)", > >> > > >> > javax.persistence.criteria;resolution:=optional;version="[1.1.0,2.1.0)", > >> > > >> > javax.persistence.metamodel;resolution:=optional;version="[1.1.0,2.1.0)", > >> > > >> > javax.persistence.spi;resolution:=optional;version="[1.1.0,2.1.0)", > >> > javax.sql;resolution:=optional, > >> > javax.transaction;resolution:=optional, > >> > org.apache.camel.dataformat.bindy.annotation;version=2.4, > >> > org.apache.camel.example.reportincident.dao, > >> > org.apache.camel.example.reportincident.model, > >> > org.apache.commons.dbcp;resolution:=optional;version="[1.2,1.5)", > >> > org.apache.commons.lang.builder;version=2.4, > >> > org.apache.commons.logging, > >> > org.apache.log4j, > >> > org.apache.openjpa.enhance, > >> > org.apache.openjpa.util > >> > Export-Package = > >> > org.apache.camel.example.reportincident.model; > >> > uses:="org.apache.commons.lang.builder, > >> > org.apache.camel.dataformat.bindy.annotation, > >> > org.apache.openjpa.util, > >> > org.apache.openjpa.enhance, > >> > javax.persistence", > >> > > >> > org.apache.camel.example.reportincident.dao;uses:=org.apache.camel.example.reportincident.model > >> > > >> > > >> > Where is the issue ? > >> > > >> > Regards, > >> > > >> > > >> > Charles Moulliard > >> > > >> > Sr. Principal Solution Architect - FuseSource > >> > Apache Committer > >> > > >> > Blog : http://cmoulliard.blogspot.com > >> > Twitter : http://twitter.com/cmoulliard > >> > Linkedin : http://www.linkedin.com/in/charlesmoulliard > >> > Skype: cmoulliard > >> > > >
