Questions tagged [openejb]
Apache OpenEJB is an embeddable and lightweight EJB 3.0 implementation that can be used as a standalone server or embedded into Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or application. OpenEJB is included in Apache Geronimo, IBM WebSphere Application Server CE, Apache TomEE and Apple's WebObjects.
280
questions
1
vote
1answer
37 views
Error when adding java agent in VM arguments while using OpenJPA
I found solution for my problem with OpenJPA here: Using TomEE and open JPA, i get the following error: SEVERE: JAVA AGENT NOT INSTALLED, but adding VM parameter as in question answer or documentation ...
0
votes
0answers
30 views
TomEE and Hibernate 5 No TransactionManagerLookup specified
I am trying to test an EJB using TomEE embedded EJBContainer.
public class EmbeddedEJBTest {
protected EJBContainer container;
protected Context ctx;
@BeforeClass
public void setUp()...
0
votes
0answers
21 views
Why I can't find my bean in initialcontext?
I want to test my javaee project.
here is structure simplified
-src
- main
- java
- socnet
- services
- AuthService.java
- test
- java
- AuthTest.java
...
0
votes
0answers
93 views
EJB 2.0 deployment in TomEE 8 is not generating Stubs
My client is moving away from WebSphere and onto TomEE server. In that regard, I am trying to migrate an existing and old J2EE application that consists of JSPs, Servlets and EJBs. The EJB version is ...
1
vote
1answer
240 views
How to cure ASM issues with TomEE 8.x, Hibernate 5.4 and Java 8?
According to this page, TomEE 8.0 is compatible with Java 8: http://tomee.apache.org/master/docs/java-compatibility.html
However, I am getting some issue setting up a project with TomEE and Hibernate ...
1
vote
1answer
606 views
Cannot start Apache TomEE server - Deployment not found: openejb/Deployer
I am trying to make a simple demo with java servlets. When I run a TomEE server on localhost it fails with the errors:
java.lang.Exception: deployment not found: openejb/Deployer
at org....
2
votes
1answer
210 views
Tomee+Microprofile UnsatisfiedResolutionException
everybody!
Could you give me advice about such an issue.
I have a simple test project in order to test using Microprofile config.
Field of my test class I test:
@Inject
@ConfigProperty(name = "...
1
vote
1answer
180 views
OpenEJB 8 usage
I'm seeking to upgrade an existing EJB-based (EJB lite-based?) application to Java 11, using an embedded EJB container. I would try TomEE Embedded Server 8, however I can't find its GA release or ...
1
vote
0answers
72 views
RequestScope introduces Classloader leak on TomEE 8 / OpenJDK 11
By tracing down a classloader leak in my TomEE webapp I created a minimalistic app (one JSF Page, one class) and realized, that this already creates a classloader leak.
Leaks are introduced for ...
0
votes
1answer
255 views
TomEE Embedded: Resource defined in resources.xml not available within webapp
I'm currently trying to run a simple webapp on TomEE Embedded (TomEE Version 7.0.5).
According to the docs, I can start the TomEE and deploy the classpath as a webapp like this. I've set the document ...
0
votes
1answer
339 views
How to test EJBs in Spring Boot - openejb cannot handle multi-release JARs because of module-info
I am currently upgrading one application from Spring Boot 1.X to 2.X. One of the tests in the application is testing Stateless remote EJB using OpenEJB under the @SpringBootTest. Since the support for ...
1
vote
1answer
279 views
Multiple applications sharing common EJB JAR in TomEE
I have an EJB jar DetailsLookup.jar which needs to be shared by two consumer applications - VehicleMake.war and VehicleModel.war
I have placed the EJB jar file under <catalina_base>/lib and ...
1
vote
0answers
103 views
Resources auto linking to TomEE EJB beans
I am developing JMS based module which consume message from IBM MQ and persist the data. My app is running in TomEE 8.0.0-M2. While starting my application I notice that Auto-linking resource-ref '...
0
votes
1answer
215 views
TomEE: calling a remote EJB from different machines
I have two TomEE instances (currently different containers) and I want to get Remote EJB working between them. However, I'm having issues doing this.
First I enabled remote EJB support on the TomEE ...
0
votes
0answers
169 views
persistence.xml not found when deploying EAR into OpenEJB with Arquillian
I'm trying to run an integration test with Arquillian using OpenEJB embedded as environment, but the deployment fails due to missing persistence.xml.
This is being run in a module ("services") of a ...
2
votes
1answer
329 views
IllegalArgumentException: No handler can be found for the key 'javax.security.auth.Subject.container'
I am basically following this tutorial:
https://www.ibm.com/developerworks/java/library/j-javaee8-security-api-4/index.html?ca=drs-
My development environment: TomEE 8.0 M1 Plume
pom.xml
<...
0
votes
1answer
89 views
TomEE custom property provider
I am running my application in TomEE 8. I want to read some property from my DB and pass it to application.
I saw one example from https://rmannibucau.wordpress.com/2014/08/06/tomee-and-more-...
0
votes
1answer
70 views
OpenEJBRuntimeException: No port address registry in cucumber java test
When I launch cucumber test I get this error :
org.apache.openejb.OpenEJBRuntimeException: No port address registry, it generally means you either didn't activate cxf or don't use tomee+
Any help ...
0
votes
1answer
85 views
Making JAX-RS 2 calls from openejb?
We are running Websphere 9 and openejb 4.7.2 as our application servers. Websphere both hosts REST services and calls REST services.
We would now like to call and host services in openejb. We are ...
0
votes
0answers
157 views
Basic questions on openejb with TOMEE
I am a newbee to openEJB and would want to understand a few things about it to overcome a problem I face when deploying one application onto TOMEE.
From what I understand, openEJB is a lightweight ...
4
votes
0answers
68 views
EJB timer reliability
I use an openejb @Resource TimerService (which injects org.apache.openejb.core.timer.TimerServiceImpl I think) to set a recurring task to each second.
timerService.createCalendarTimer(new ...
1
vote
0answers
46 views
Using XDoclet to generate openejb-jar.xml,result is empty
Here is my annotations in my managerBean:
/**
* @ejb:bean name="TestManagerBean" type="Stateless"
* transaction-type="Container" view-type="remote"
* @ejb:interface generate="none"
* ...
0
votes
1answer
412 views
EJB context in javax.transaction.Synchronization.beforeCompletion versus javax.ejb.BeforeCompletion
In TomEE when a ejb is registering a Synchronization in the transaction synchronization registry, there is no ejb context in beforeCompletion. When using bean javax.ejb.BeforeCompletion there is. What ...
0
votes
2answers
612 views
How to embed OpenEJB in existing Tomcat installation
I have a current install of Tomcat 8. I'd like to add EJB support to it. But when I searched online for how to embed OpenEJB into Tomcat, I only found TomEE results and nothing about plain Tomcat. I'd ...
1
vote
0answers
109 views
EJB TimerService thread priority
I use OpenEJB timerService.createCalendarTimer() to schedule tasks, similar to this example
My problem is that with time, the accuracy of the timer deteriorates and "checkOnTheDaughters" is not ...
0
votes
1answer
2k views
Remote EJB lookup using OpenEJB in Tomee
Am trying to use example given here
http://openejb.apache.org/hello-world.html
With OpenEJB I am able to output HelloWorld
I am trying same in Apache Tomee
I have Remote EJB bean like this
@...
0
votes
1answer
2k views
OpenEJBException in apache tomee 7.0.3
I am using apache tomee 7.0.3 as server container and using OpenJPA. While starting the server getting below excption. Please anybody can help me.
Exception :
WARNING: File error: <Deployments ...
3
votes
1answer
2k views
JAXRS includes abstract method as candidate for request
In my webproject using tomee, openejb and jackson (among a few other things like hibernate, most important dependencies are listed below) I've got a problem that I just can't fix.
Having a structure ...
1
vote
1answer
764 views
Problems with CDI in setup for functional testing with TomEE (or OpenEJB), Jetty and Selenium
I'm trying to setup programatically an environment with Jetty, OpenEJB and WebApps to development and run Selenium tests. Something very similar described in this article: http://tomee.apache.org/...
5
votes
1answer
86 views
Several instances of a @Singleton OpenEJB bean present
I have a class which looks like this:
@Singleton
public class MySingletonImpl implements MySingleton{
@Override
public void init(){
...
}
@Override
public void test(){
...
2
votes
3answers
3k views
Tomee Installation process?
SPEC : jdk1.8 ,TOMEE702, win10
Question : How/What/which to install and use TOMEE for open-ejb3.X ?
url : http://tomee.apache.org/download-ng.html
I could not find any easy install-able for all of ...
1
vote
1answer
362 views
OpenEJB - exclude single beans
I'm testing my application using junit and OpenEJB container to provide context for my beans. It's finding all beans from classpath and starting them. Unfortunatelly there are some beans I would like ...
0
votes
0answers
299 views
Spring boot with shared JavaEE entities jar
I got a problem where I'm not able to find a solution.
We got a shared library with all entities which are setup to use with JavaEE 6 entities (Websphere). So mapping is based on the JavaEE 6 jpa ...
0
votes
1answer
203 views
OpenEJB NoClassDefFoundError
I have such dependencies in maven project. And use OpenEJB for test EJB beans
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>...
0
votes
1answer
20 views
configurate the persistance entities
enter image description here
I'm using Java Persistence API for an already existing project and as shown in the picture there is a relative employe to each assure depending on his id.Before i have ...
14
votes
2answers
1k views
Building a standalone executeable JAR with OpenEJB
I am building a CLI tool, which integrates with several EJB modules. For this reason, I need to build a fat jar, which is then executed as a standalone application.
However, executing this fat jar ...
1
vote
1answer
954 views
TomEE multiple hosts with the same app deployment issues
I am trying to set up TomEE (7.0.2) with multiple virtual hosts for development and testing environments, the same applications will usually be deployed to all hosts. I discovered from this post how ...
0
votes
1answer
334 views
Arquillian Entities with schema
I am setting up Arquillian with OpenEJB. I want to test a webservice with access to a database. I was able to setup everything with my own bean and entity for testing purposes.
Now I am adding all ...
1
vote
0answers
64 views
testing role-based (cxf) jaxrs service with openejb application-composer
I have a service:
@RolesAllowed({ROLE_ADMIN, ROLE_USER})
@Stateless
@Path("test")
public class TestServiceImpl implements TestService
And a TestNG test with the following
@Listeners({...
0
votes
0answers
118 views
JMS Message Driven Beans
What is the practical (real world) usage of below Annotations for MDB (Message Driven Beans)
I am wondering if any real enterprise application would ever use these annotations as topic/queue names ...
1
vote
1answer
125 views
Arquillian TomEE tests performance
I'm using Arquillian and TomEE embedded adapter to test a WAR.
In my pom.xml I have the following entry
<dependency>
<groupId>org.apache.openejb</groupId>
<...
1
vote
1answer
374 views
Eclipse Memory Analyser : java.lang.OutOfMemoryError: Java heap space
I'm having a problem with my application. When i try to open a page, the application raise an error of java.lang.OutOfMemoryError: Java heap space.
We are using Struts2 as framework, Tomcat 6 as ...
1
vote
1answer
176 views
TomEE and legacy Entity Beans
I'm trying to migrate a legacy web application currently running on a deprecated environment based on JBoss (older than 2001).
The project seems to use entity beans since trying to deploy its jars on ...
0
votes
1answer
78 views
ActiveMQ initializer in OpenEJB/TomEE
I need to start a queue in OpenEJB in a "paused" state so no messages are processed by the consumer until some related data is available. I can programmatically pause the queue as shown here, so if ...
0
votes
1answer
1k views
Class loading exception [org.hibernate.boot.registry.classloading.spi.ClassLoadingException]
I am getting following exception when starting the tomEE server, hibernate and openejb version that I am using is 5.2 and 7.0.1 respectively.
In persistence.xml, I have given all the entries for ...
1
vote
0answers
344 views
OpenEJB unit test exclude or include package
I'm using OpenEJB to unit test EJBs which basically works fine.
The Maven module however contains a lot of EJBs of which one of them fails under test which cannot easily be fixed, so I would like to ...
2
votes
2answers
6k views
TomEE throws An invalid Lifecycle transition
I'm doing a major refactor of a web application using the maven multi-module approach.
At the get-go there was only 1 module.
I've slowly been breaking out functionality and creating a dependency ...
0
votes
1answer
2k views
JNDI LOOKUP Error Tomee OpenEJB NameNotFoundException
Hi i am Working with openEJB in Tomee jaxrs(1.7.4) server, i have a Web project and a EJB project running on the same TomEE sever.
I have deployed the EJB project in the webapps folder of the TomEE ...
0
votes
1answer
365 views
example stand alone application using EJB-MDB, eclipse, jetty server?
how to develop one example application using EJB-MDB, eclipse, jetty server?
I have created two java class. and i have .jar file, where I have to deploy .jar file in jetty server? after that what I ...
3
votes
1answer
210 views
OpenEJB Logger configuration when running tests from TestNG in Intellij IDEA
I have a problem configuring the logs output when running tests from IntelliJ.
Every change I make does not seem to have an effect.
I run the test using @Module annotation via ApplicationComposer.
...