java.lang.NoSuchFieldError: _persistence_listener [message #664341] |
Fri, 08 April 2011 08:41  |
Eclipse User |
|
|
|
Hi all,
I have problem with my spring/jpa/eclipselink webapp. it works pefectly on my local machine, but when deployed to the server it ends up with error:
java.lang.NoSuchFieldError: _persistence_listener
both machines are 64bit gentoo linux with sun jdk 1.6.24, Tomcat 7.0_12 & mysql 5.1.
I use spring 3.0.5, jpa 2, eclipselink-2.2.0
jpa annotations are placed to the getters and spring's application context contains:
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName" value="Test"/>
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter" ref="jpaVendorAdapter"/>
<property name="jpaDialect">
<bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect" />
</property>
<property name="persistenceProvider">
<bean class="org.eclipse.persistence.jpa.PersistenceProvider" />
</property>
<property name="jpaProperties">
<props>
<prop key="eclipselink.weaving.internal">false</prop>
<prop key="eclipselink.ddl-generation">drop-and-create-tables</prop>
<prop key="eclipselink.ddl-generation.output-mode">database</prop>
</props>
</property>
</bean>
thanks in advance for any hint
marek
|
|
|
|
Re: java.lang.NoSuchFieldError: _persistence_listener [message #665068 is a reply to message #664684] |
Wed, 13 April 2011 03:44  |
Eclipse User |
|
|
|
Hi Chris,
thanks for your help, I already used the <prop key="eclipselink.weaving">false</prop> which solved the problem. But I'm still curious why the problem occurs on the server deployment only.
I'm new to the EclipseLink so the <prop key="eclipselink.weaving.internal">false</prop> was just a desperate attempt to solve the problem I found somewhere;-)
I'll definitely take a look on the static weaving as well.
Thanks again,
Marek
|
|
|
Powered by
FUDForum. Page generated in 0.03327 seconds