Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15108

"Failed while installing JPA 2.0" during importing multi-module maven project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.3.0.Alpha2
    • 4.1.0.Beta2, 4.2.0.Beta1
    • maven
    • None
    • Hide

      1. unpack jboss-eap-6.1.0.GA-quickstarts
      2. create ejb-in-ear/ejb/src/main/resources/META-INF/persistence.xml

      e.g.

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence xmlns="http://java.sun.com/xml/ns/persistence"
      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"
      version="2.0">
      <persistence-unit name="messageDatabase">
      <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
      <properties>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      </properties>
      </persistence-unit>
      </persistence>

      3. Import the ejb-in-ear project
      4. Notice the error

      """
      Failed while installing JPA 2.0.
      org.osgi.service.prefs.BackingStoreException: Resource '/jboss-as-ejb-in-ear/ejb/.settings' does not exist.
      """

      Show
      1. unpack jboss-eap-6.1.0.GA-quickstarts 2. create ejb-in-ear/ejb/src/main/resources/META-INF/persistence.xml e.g. <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" 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 " version="2.0"> <persistence-unit name="messageDatabase"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties> </persistence-unit> </persistence> 3. Import the ejb-in-ear project 4. Notice the error """ Failed while installing JPA 2.0. org.osgi.service.prefs.BackingStoreException: Resource '/jboss-as-ejb-in-ear/ejb/.settings' does not exist. """

      "Failed while installing JPA 2.0." occurs when importing a multi-module maven project.

      """
      Failed while installing JPA 2.0.
      org.osgi.service.prefs.BackingStoreException: Resource '/jboss-as-ejb-in-ear/ejb/.settings' does not exist.
      """

      The error goes away after subsequent import, as, presumably, the error doesn't occur after the .settings file already exists.

            fbricon@redhat.com Fred Bricon
            maschmid@redhat.com Marek Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: