On 25/09/2012 09:07, Alex Kaiser wrote:
Hi,

HI Alex,

I am grappling with an error running openjpa 2.2.0 with spring
3.2.1.RELEASE and spring data jpa 1.1.2.RELEASE, all from the maven
repository.

...guess you are referring to Spring 3.1.2.RELEASE, isn't it?

Any help would be very much appreciated as I can find nothing on this
problem on the web.

when running the unit tests I get the following error

Please take a look at [1]: I build this for a blog post about Spring advanced support for Quartz, but as you may notice, it's basically coherent with your environment.

If this doesn't help, please point to your sources or, if not possible, provide your Spring XML conf file and your persistence.xml

Regards.

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0':
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'entityManagerFactory' defined in class path resource
[jpa/jpa.context.xml]: Invocation of init method failed; nested exception
is <openjpa-2.2.0-r422266:1244990 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: "jpa " is not valid
Specification. The correct format is <name> [<major>[.<minor>]] where
<name> is the name of the Specification, <major> is the integer major
version number and <minor> is a string.

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)

... stack trace omitted ...

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [jpa/jpa.context.xml]: Invocation of init method failed; nested
exception is <openjpa-2.2.0-r422266:1244990 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: "jpa " is not valid
Specification. The correct format is <name> [<major>[.<minor>]] where
<name> is the name of the Specification, <major> is the integer major
version number and <minor> is a string.

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)

... stack trace omitted ...

Caused by: <openjpa-2.2.0-r422266:1244990 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: "jpa " is not valid
Specification. The correct format is <name> [<major>[.<minor>]] where
<name> is the name of the Specification, <major> is the integer major
version number and <minor> is a string.

at org.apache.openjpa.conf.Specification.<init>(Specification.java:64)
at
org.apache.openjpa.conf.SpecificationPlugin.setString(SpecificationPlugin.java:61)
at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.setSpecification(OpenJPAConfigurationImpl.java:658)

... stack trace omitted ...

Alexander

--
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply via email to