Questions tagged [tomee-7]

Apache TomEE 7 is the Java Enterprise Edition (JEE7) of Apache Tomcat that combines several Java enterprise projects. Use this tag to mark questions which clearly relate to TomEE versions >= 7.0.0-M1.

Definition

From Apache TomEE's current JEE7 information website:

The latest release of Apache TomEE 7.1.2, which is based on Apache Tomcat 8.5.50 ...

Apache TomEE 7.1.2 can be downloaded at the official download page.

It combines several software components of different projects of the Apache foundation:

  • Apache Tomcat
  • Apache OpenEJB
  • Apache OpenWebBeans
  • Apache OpenJPA
  • Apache MyFaces
  • Apache ActiveMQ
  • Apache CXF
  • Apache Derby
144 questions
98
votes
11 answers

How to use Tomcat 8.5.x and TomEE 7.x with Eclipse?

I need to setup a Tomcat 8.5.x server version in Eclipse. When I try to create a server using Eclipse GUI, I get in Eclipse Luna as choice the latest version "Apache Tomcat v8.0". When I select it and I browse to my Tomcat 8.5.x server, I get this…
user5796595
9
votes
1 answer

How to test a Java EE7 Websocket

I have implemented a WebSocket using the api provided with Java EE 7. Additionally I have implemented a client that requests my WebSocket without any problems. To be sure this remains working when performing some code changes I want to implement…
J. Su.
  • 451
  • 1
  • 6
  • 18
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
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
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…
5
votes
3 answers

How to override 'org.apache.cxf.stax.maxChildElements' property value inside a TomEE container?

I've got a JAX-WS web service endpoint configured purely via annotations running in TomEE 7 environment. Basically, the method being called has to return a List of all node names contained in a graph data structure. The response of such a…
MWiesner
  • 8,868
  • 11
  • 36
  • 70
4
votes
3 answers

@Inject fails to initialize object

I am using tomee server to run my javaEE app. I have written a filter which injects an object. However the object does not seem to get instantiated : Following is my code : Filter.java @Priority(value = 2) @Provider @Singleton public class Filter…
Suraj Menon
  • 1,486
  • 3
  • 28
  • 50
4
votes
1 answer

Transactions inside tasks of ManagedScheduledExecutorService on TomEE 7.0.0?

Context I want to schedule recurring background tasks using ManagedScheduledExecutorService. I get my Runnables/Callables via an Instance, so I have injection capabilities available inside my tasks. My application runs on TomEE 7.0.0-SNAPSHOT…
Schroenser
  • 289
  • 1
  • 7
3
votes
1 answer

Apache TomEE external ActiveMQ resource not rolling back in distributed transaction

I am trying to achieve a distributed transaction in Apache TomEE. In words, the flow is: A message reader (i.e. a message driven bean) reads from a queue (1) and processes one message triggering: one or more inserts/updates on a database…
Ramden
  • 87
  • 2
  • 10
3
votes
2 answers

Why is TomEE not able to create JMS connection factory resource?

I am facing an issue, while trying to create a javax.jms.ConnectionFactory resource in TomEE server. i am using tomee.xml file to do write the resource entries. I am able to create javax.jms.Queue and Topic but not this. Getting an error while TomEE…
Jishnu S
  • 71
  • 7
3
votes
2 answers

Managed Executor Service in TomEE

I have a server with 48 CPUs hosting a Java EE 7 REST API on TomEE+ 7.0.2. Some of the APIs are in need of making use of as many CPUs as possible as they run parallelized algorithms. The parallelized portion do not require any database or other…
Daniel
  • 176
  • 1
  • 8
3
votes
1 answer

How can I specify the path in tomee-maven-plugin such that both deploy and undeploy works?

I'm trying to build a pom.xml to handle the deployment and undeployment to a remote TomEE (PluME 7.0.3) server. However, I cannot figure out the correct value to use in the path configuration tag. Here's a working plugin configuration for deploying…
stef77
  • 1,000
  • 5
  • 19
3
votes
0 answers

TomEE pluME with JSF 2.2 ConfigurationException

When I start tomEE to deploy my project. I get errors. I am using JSF 2.2, apache-tomee-7.0.0-M3-plume, and Primefaces latest version. I searched but I didn't find any solution. TomEE Errors com.sun.faces.config.ConfigurationException: **Factory…
3
votes
2 answers

How to enable Bean Validation with Jax RS in TomEE 7.0.0-M1?

I'm aware I must be missing some really basic point. The following resource method: @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) public TestObject getObj(@QueryParam("m") String m, @Min(30)…
kosta
  • 296
  • 2
  • 6
  • 15
2
votes
4 answers

Tomcat start not recognised by IDE

I am using Netbeans 11 to deploy a WAR file. When using RUN, the IDE starts Tomcat, which shows the startup message: INFO - Starting ProtocolHandler [http-nio-8080] INFO - Starting ProtocolHandler [ajp-nio-8009] INFO - Server startup in 815…
user1156544
  • 1,725
  • 2
  • 25
  • 51
1
2 3
9 10