Questions tagged [apache-tomee]

Apache TomEE is the Java Enterprise Edition of Apache Tomcat that combines several Java enterprise projects.

Definition

From Wikipedia:

Apache TomEE (pronounced "Tommy") is the Java Enterprise Edition of Apache Tomcat (Tomcat + Java EE = TomEE) that combines several Java enterprise projects

Components

  • Apache Tomcat
  • Apache OpenEJB
  • Apache OpenWebBeans
  • Apache OpenJPA
  • Apache MyFaces
  • Apache ActiveMQ
  • Apache CXF
  • Apache Derby
955 questions
9
votes
3 answers

why EntityManager is null?

In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class ("Entity Class from database..." and "Session Beans From Entity Class..."). At SessionBean (for example UserFacade) i want to get…
kuba44
  • 1,838
  • 9
  • 34
  • 62
9
votes
3 answers

How to use TomEE with Hibernate

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:…
LancerX
  • 1,211
  • 7
  • 23
  • 40
8
votes
1 answer

Custom exception mapping for bean validation on TomEE 7?

Context We use a javax.ws.rs.ext.ExceptionMapper annotated as @javax.ws.rs.ext.Provider to handle all exceptions. Internally this ExceptionMapper is distinguishing between different types of exceptions to determine what information to…
Schroenser
  • 289
  • 1
  • 7
8
votes
2 answers

Gradle -> How to omit some jars from WEB-INF/lib

I have a subproject with a war spec that looks like this: war { from('resources') { include '*.properties' into 'WEB-INF/classes/' } webXml = file('src/main/webapp/WEB-INF/web.xml') } Works great. Creates a single,…
Robert Christian
  • 18,218
  • 20
  • 74
  • 89
8
votes
2 answers

DDL generation and general persistence.xml settings (OpenJPA)

Summary I'm trying to run a Java web application JPA 2.0 example. The example application was written to run in Glassfish, using EclipseLink as JPA provider. I would like to convert it to run in TomEE with OpenJPA as the JPA provider, but I can't…
Alex Averbuch
  • 3,245
  • 5
  • 33
  • 44
7
votes
2 answers

TomEE :- Caused by: java.lang.RuntimeException at org.apache.xbean.asm5.MethodVisitor.visitTypeAnnotation(Unknown Source)

I have a spring mvc web application (maven). It runs on JDK 1.7 perfectly , but the error occurred when i try with 1.8. Similar question asked here. Where they moved back to 1.7. But i want to run on 1.8. How can i do that ? i also hear ASM 5 can…
parlad
  • 1,143
  • 4
  • 23
  • 42
7
votes
2 answers

Hazelcast threads prevent TomEE from stopping

Context We want to use Hazelcast as our JCache implementation inside TomEE. As we don't need insane performance, at the moment, we want to run the Hazelcast node as part of our application. We use Hazelcast 3.7 and TomEE 7.0.1. Problem When stopping…
Schroenser
  • 289
  • 1
  • 7
7
votes
1 answer

Tomcat 8 (and 9) coerce behaviour, null strings are incorrectly set as empty strings

I have just migrated to Tomcat 8. I used to work with system property org.apache.el.parser.COERCE_TO_ZERO=false so empty strings, numbers, booleans etc. are treated as null. In Tomcat 8, EL 3.0, it is supposed to be the default but it is in fact…
cocorossello
  • 1,289
  • 1
  • 17
  • 30
7
votes
1 answer

"No resource methods" when using JAX-RS on TomEE+

Using stock TomEE+, I cannot get a simple JAX-RS resource to work. I constantly get an error of: Jun 30, 2012 5:09:59 PM org.apache.cxf.jaxrs.utils.ResourceUtils checkMethodDispatcher WARNING: No resource methods have been found for resource class…
Nialscorva
  • 2,924
  • 2
  • 15
  • 16
7
votes
1 answer

What is the workflow for application startup and configuration when using Apache TomEE

I understand that Apache TomEE is a regular Tomcat installation with openejb as a web app. I am trying to understand how all this bootstraps. I will try and ask a few directed questions: Is it important to have an application startup order ? Should…
Parag
  • 12,093
  • 16
  • 57
  • 75
6
votes
1 answer

Unable to enlist connection in transaction: enlistResource returns 'false'

All of sudden I got the following error continuously for a select query. Unable to enlist connection in transaction: enlistResource returns 'false' This appears to be thrown from DBCP…
yottabrain
  • 2,387
  • 5
  • 23
  • 37
6
votes
1 answer

How to use Jackson as JSON provider for JAX-RS-Client instead of Johnzon in TomEE 7?

I use TomEE 7.0.1 with Jackson 2 as JAX-RS JSON provider (configured in openejb-jar.xml). Posting json to jax-rs services works perfectly well and uses the jackson annotations. But using JAX-RS client (or cxf webclient) always uses Johnzon even if…
6
votes
3 answers

Making @Schedule run only once in a clustered environment

I have two tomee instances clustered. Each one have a method annotated like @Schedule(dayOfWeek = "*") public void runMeDaily() {...} I'd like to run this method only once a day. Not twice a day (one on each instance) I could use a flag as…
Leo
  • 6,480
  • 4
  • 37
  • 52
6
votes
0 answers

Why does injected UriInfo use a different hostname than injected HttpServletRequest?

I'm learning JAX-RS, and like the idea of returning URLs to other relevant actions in a response. Using Apache TomEE JAX-RS 1.5.1, for some reason the URLs provided by an injected UriInfo instance are always using "localhost" as the host name. I…
GargantuChet
  • 5,691
  • 1
  • 30
  • 41
6
votes
1 answer

Maven with automated testing using TestNG, JSFUnit 2 and Arquillian

im currently trying to make a JSFUnit-Test with Arquillian and TestNG, but the JSFServerSession and JSFClientSession-object is NULL. Is there a working EXAMPLE for having JSFUnit and TestNG? Or is something else wrong here? My testing-class: package…
FibreFoX
  • 2,858
  • 1
  • 19
  • 41
1
2
3
63 64