Hello,
in my company's new project we've decided to go with OpenWebBeans +
Deltaspike JPA module to have @Transactional and automatic producing and
closing of EntityManager. I created very small simple "proof of concept"
project for presentation to the chief of our department. I used in the
presentation Hibernate 4.2.0.Final, openwebbeans 1.2.1 and deltaspike 0.5.
This project was deployed on Apache Tomcat 7.0.47. Everything worked great.
Then I was tasked with moving this small project to EclipseLink because it
is standard in my company. Version of eclipselink is 2.5.1. I got into
several problems, first I got errors during deployment:
org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery getBeanClasses
WARNING: Ignoring class
[org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy]
because it could not be loaded: java.lang.NoClassDefFoundError:
javax/transaction/SystemException

So I added dependency to javax.transaction(jta.jar) version 1.1 and problem
was solved. Does this means that Deltaspike JPA module has dependency to
JTA? Why the previous example with Hibernate worked out of the box?

The project is now working with Eclipselink and Deltaspike, without
problem, only concern I have is one warning message in tomcat's log during
deployment:
XII 14, 2013 2:03:48 ODP. org.apache.webbeans.xml.WebBeansXMLConfigurator
configureInterceptorsElement
WARNING: Interceptor class :
org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor is
already defined

I don't know what this error could possibly mean, I followed all steps
defined in offical documentation http://deltaspike.apache.org/jpa.html when
it comes to configuration(beans.xml etc.)
The project is on my github account:
https://github.com/JakubJecminek/CDIExperiments

I would be very thnakful for any help(explentation). Currenly project is
working, but I would like to know what the error means, If I am not using
deltaspike JPA module incorrectly.

With regards,

Jakub Ječmínek

Reply via email to