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
5
votes
1 answer

EJB JAX-RS @Context HttpServletRequest NullPointerException - Why?

Consider the following service: @Path("/") @Stateless public class SomethingService { @Context final HttpServletRequest request @POST @Path("post/something/") @Produces("application/json; charset=UTF-8") public String…
Jack
  • 1,881
  • 24
  • 29
5
votes
2 answers

EJB testing with TomEE embedded EJBContainer api: java.lang.ClassFormatError exception

I would test my EJB with TomEE embedded EJBContainer. This is my JUnit test case skeleton: package com.xxx.indexer.scheduler.service; import java.util.Properties; import javax.ejb.embeddable.EJBContainer; import…
Demis Gallisto
  • 659
  • 1
  • 7
  • 12
4
votes
0 answers

Check a particular dependency in provided scope of tomee

I have a project which uses hazelcast and it suddenly started having consistency issues. It worked fine for 2 years in production and all of a sudden many users started reporting consistency issue in its distributed map. The hazelcast dependency has…
Rishabh Agarwal
  • 1,988
  • 1
  • 16
  • 33
4
votes
1 answer

How to inject FacesContext with JSF 2.3 and TomEE?

I've been trying to use JSF 2.3 with TomEE server and I'm having problems using the @Inject annotation with the FacesContext object. When I use it, i get the following exception while starting my TomEE server: SEVERE: CDI Beans module deployment…
4
votes
2 answers

JSF 2.3 Custom converter with generics

We now started to use JSF 2.3 on our existing JSF 2.2 project. On our custom converters we got warning Converter is a raw type. References to generic type Converter should be parameterized. Problem that we experiencing is when we tried to fix…
Znas Me
  • 190
  • 1
  • 15
4
votes
3 answers

@SessionScoped CDI bean is a different Instance when injected

My config is a bean that I inject in my code wherever I need it. However, when injected, I get a new instance of the bean instead of the one from the session. My bean: @Named @SessionScoped public class TestModel implements Serializable { …
Tim
  • 3,910
  • 8
  • 45
  • 80
4
votes
1 answer

Java EE Error: javax.enterprise.inject.UnsatisfiedResolutionException: Api type

I'm in the process of building a simple webapp modelled on the MVC architecture. I have a little JSP page with an HTML form. The form data gets forwarded to a servlet which then delegates to the Controller class. When clicking submit on the form I…
Irfaan
  • 95
  • 1
  • 1
  • 9
4
votes
1 answer

How to connect two VM (postgreSQL and tomee) using Vagrant?

I'm trying to build a virtual environment with Virtualbox and Vagrant. The goal is to be able to access from pc browser to an app running on virtual machine 'server', that interacts with virtual machine 'db'. I managed to create the virtual…
TrinitasXVII
  • 61
  • 1
  • 6
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
4
votes
0 answers

CDI Injection in Arquillian TomEE embedded test with web sockets

I'm writing some integration tests of my @ServerEndpoint, and after finally getting the endpoint to run, I now get a nullpointer in @OnOpen because injection fails. I've uploaded the code on github: https://github.com/runarhk/Websockets-Test The…
Runar Halse
  • 3,528
  • 10
  • 39
  • 59
4
votes
1 answer

How to Remove HSQLDB Datasource in Tomee?

Apologies if I am posting a duplicate , if so please point me to original question. I am running a tomee instance. I am configuring my data sources in context.xml and that are being pickup fine. But tomee also creates a HSQLDB datasource by default.…
er_suthar
  • 319
  • 1
  • 8
4
votes
1 answer

The TomEE issue on startup

Right after TomEE startup the issue comes: WARNING: Can't set TomEE ServerEndpointConfig$Configurator java.lang.NoSuchFieldException: defaultImpl at java.lang.Class.getDeclaredField(Class.java:2062) at…
Oleksii Kyslytsyn
  • 2,458
  • 2
  • 27
  • 43
4
votes
0 answers

Howto deploy a JSF 1.2 application to TomEE 1.7.1?

I tried to deploy an application with JSF 1.2 to TomEE 1.7.1 Web Profile and of course got exceptions because of the JSF 2.0-Libs in TomEE ... . According to the article Is it possible to deploy JSF MyFaces 1.1.5 applications to TomEE I removed the…
Frank Jung
  • 41
  • 2
4
votes
1 answer

Intellij idea 13.1 and TomEE - hot swapping not working

I'm working on a Java project that is deployed on TomEE Server (version: apache-tomee-jaxrs-1.6.0.2) & JetBrains IntelliJ IDEA 13.1.5 Ultimate edition. And I build everything with Gradle. When I'm in debug mode (remote debugger / application server…
yossico
  • 3,421
  • 5
  • 41
  • 76