openejb

How to EJB 3.1 Deployment in Tomcat 5.5.x [duplicate]

瘦欲@ 提交于 2019-11-28 10:53:39
问题 This question already has answers here : How to deploy EJB based application on Tomcat (4 answers) Closed 3 years ago . I have hosting plan which supports i) Tomcat - 5.5.xSupport ii) JDK - 1.6.x Support iii) JSP/servlet - 2.0 Support Am I able to deploy EJB 3.1 on this setup? I've heard that Tomcat does not support EJBs, but hopefully there is a workaround. Any advice is appreciated. 回答1: Apache TomEE was previously the openEJB project if i am not mistaken. You can use the openEJB libraries

How to configure OpenEJB logging?

怎甘沉沦 提交于 2019-11-28 03:27:34
问题 How can I configure OpenEJB logging format? This is what what I see now in logs: [...] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running com.XXX.FooTest Apache OpenEJB 3.1.3 build: 20101015-05:42 http://openejb.apache.org/ INFO - openejb.home = /code/XXX INFO - openejb.base = /code/XXX INFO - Configuring Service(id=Default Security Serv... [...] I would like to disable INFO messages, and change formatting of others. Changes in log4j.properties have no effect.

How to use TomEE with Hibernate

和自甴很熟 提交于 2019-11-27 08:28:50
I have created very simple app with persistence context (hibernate as provider) to read some value from database. I use Eclipse with Maven. First, I get Caused by: org.apache.openejb.OpenEJBException: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider: and according to this topic http://openejb.979440.n4.nabble.com/problem-with-hibernate-persistence-provider-td980429.html I excluded hibernate-jpa-2.0-api. Now, my dependencies look <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version

How to use TomEE with Hibernate

拟墨画扇 提交于 2019-11-26 17:45:40
问题 I have created very simple app with persistence context (hibernate as provider) to read some value from database. I use Eclipse with Maven. First, I get Caused by: org.apache.openejb.OpenEJBException: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider: and according to this topic http://openejb.979440.n4.nabble.com/problem-with-hibernate-persistence-provider-td980429.html I excluded hibernate-jpa-2.0-api. Now, my