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.

286 questions
0
votes
1 answer

fails to upload file to embedded OpenEJB

I'm running a set of integration tests of a jax-rs service using embedded openejb. One of these require to receive a binary file. See the method below: @POST @Path("signOff") @Consumes(MediaType.MULTIPART_FORM_DATA) public void signOffDeliveries( …
Runar Halse
  • 3,528
  • 10
  • 39
  • 59
0
votes
1 answer

Instrumented (by cobertura) @Decorator bean could not validated by OpenEJB for unit testing

In order to get code coverage report, i instrument the @Decorator bean by cobertura maven plugin. When running my unit test in OpenEJB container. The container reports some error during start up (new initial context). Caused by:…
0
votes
1 answer

How to setup precompiled jsps with Tomee/Openejb?

I am having this error: Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to load servlet class: org.apache.jsp.versionMessage_jsp: org.apache.jsp.versionMessage_jsp at…
mutya
  • 51
  • 6
0
votes
2 answers

Openejb with JPA - able to retrieve but cannot insert into database

I am using openejb as my standalone container to run my unit testcases, in all the test in all the tests i was able to retrieve the values but not able to insert or update. Even if i try entitymanager.merge(obj), it is selecting the value correctly…
user1996206
  • 98
  • 1
  • 10
0
votes
1 answer

Maven, JUnit, OpenEJB, ApplicationComposer leads to java.lang.NoSuchMethodError

While executin the test (test looks like this: http://tomee.apache.org/examples-trunk/application-composer/README.html), I always get: java.lang.NoSuchMethodError: org.apache.openejb.jee.ManagedBean.(Ljava/lang/String;Ljava/lang/String;Z)V …
0
votes
1 answer

Why is my Glassfish3.1.2.2/MyFaces2.1.9/JSF-managed performing better than TomEE1.5+/CDI-managed?

I just migrated my web app from JSF managed beans to CDI managed beans, and I specifically wanted Tomcat or TomEE Plus to be the container of choice, because of the great things I heard about 'OpenWebBeans'. After deploying, configuring, and testing…
Howard
  • 792
  • 8
  • 43
0
votes
1 answer

Accessing EJB 3.1 from the client using the JNDI on port no 3700 glashfish Server

I am using netbeans IDE 7.1.2 and I have created an EJB 3.1 Stateless Bean and implemented remote as well as local interfaces both and deployed it to the glassfish server 3.2.1 successfully...here is the…
0
votes
1 answer

Tomee / OpenEJB migration from JBoss

I am newby to TomEE+. I just try to deploy my existings EJB (large application with about 100 jars) from JBoss, just copying in webapps. It seems to work but when I start my client, It tries to call my ejb and fails due to bad port : Client…
Rod
  • 21
  • 1
0
votes
1 answer

How to instantiate an EJB object in a non-EJB class?

I am using Maven framework to build my project and EJB 3.0 is the EJB specification. I have an EJB interface A and its corresponding EJB class B that implements A. The body of class B is shown below: @Stateless @TransactionAttribute(value =…
San
  • 31
  • 1
  • 13
0
votes
1 answer

Getting "java.lang.IllegalStateException: Cannot convert value of type" exception when setting up datasource in openejb

I'm using OpenEJB 4.0.0, Spring 3.1.0.RELEASE, and JUnit 4.8.1. I'm trying to use OpenEJB to setup a datasource, which I do like so … final Properties props = loadMyProjectProps(); final String dsJndiName =…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
1 answer

Error executing TommEE 1.0 with JSF 2.0

I'm trying use apache-tomee-1.0.0 with my JSF 2.0 web app... but I can't do it :(. My problem is when I run the server logs this error: 30-ago-2012 18:49:39 org.apache.catalina.core.StandardContext listenerStart GRAVE: Excepción enviando evento…
elo
  • 1
  • 3
0
votes
2 answers

EntityManager injection not working with Tomcat + OpenEJB

I'm using NetBeans IDE 7.1, Apache Tomcat 6.0.26, OpenEJB 3.0 and JSF 2.0. First I insert openejb.war into folder: Apache Tomcat 6.0.26\webapps. Looks like the Tomcat server works OK, because after running the project the Tomcat server logs: Apache…
elo
  • 1
  • 3
0
votes
0 answers

Which version of openEJB to use with hibernate-entitymanager

I have been trying to get the setup for using openEJB for unit testing on a project right. I copied most of the config from an existing project, which uses hibernate-entitymanager version 3.3.2.GA , the new project however uses version 3.4.0.GA. My…
Ren
  • 93
  • 1
  • 13
0
votes
0 answers

No tx on thread CMP OpenEJB4 JUnit Hibernate

I keep getting the following exception, java.lang.IllegalStateException: No tx on thread at org.apache.geronimo.transaction.manager.TransactionManagerImpl.getActiveTransactionImpl(TransactionManagerImpl.java:201) at…
Vishal
  • 1,169
  • 2
  • 12
  • 20
0
votes
1 answer

jar file got extra ".jar" extension in lib folder

I am facing a weird issue. I don't know whether it is an "apache-tomcat-5.5.25 with Openejb" issue or Eclipse. I have one Maven project. I do maven clean and maven install. After that I add that project into "apache-tomcat-5.5.25 with Openejb"…
Mahendra Athneria
  • 1,203
  • 3
  • 16
  • 32
1 2 3
19
20