apache-tomee

How can I integrate Jersey with TomEE / openEJB

被刻印的时光 ゝ 提交于 2019-12-23 07:20:14
问题 I am upgrading a code that uses Jersey JAX-RS to run on an Apache TomEE server. Unfortunately it throws errors when I try to use Jersey with TomEE. I am using eclipse and have the JAX-RS project facet turned on. It points to the Jersey library. I have also moved the Jersey libraries into the /lib/ directory to try to solve the problem to no avail. The server throws the following error: May 14, 2012 6:26:44 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Provider classes

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

一笑奈何 提交于 2019-12-19 03:14:08
问题 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 javax.naming.NamingException; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import com.xxx.indexer.scheduler.AbstractTest; public class BookingAuditServiceImplTest extends AbstractTest { private static EJBContainer container

TomEE + CXF configuration reference

混江龙づ霸主 提交于 2019-12-12 15:48:31
问题 So I was trying to find any reference documentation or non-trivial examples for using the three. The 'best' I found was: TomEE/OpenEJB JAXRS refactoring Some tips for TomEE and JAXRS config The TomEE Documentation doesn't list Jax-RS at all, and I was only able to find some examples consisting of a single endpoint class Where can I find a comprehensive reference of configuration options? The main problem is that I'd know how to do most of the things I want when using standalone CXF, but I

persistencecontext makes queries empty

荒凉一梦 提交于 2019-12-12 02:24:52
问题 I recently changed my JPA design for that : persistence.xml <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="flightfaq" transaction-type="JTA"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name=

Example for CDI-SessionScoped LogIn with TomEE

拈花ヽ惹草 提交于 2019-12-11 14:06:48
问题 i'm currently fighting with TomEE, JSF and CDI (i think). Is there any example out there which has "@javax.enterprise.context.SessionScoped" annotation using TomEE 1.5.1 (or current snapshot)? I DONT want to use @ManagedBean or something else from javax.faces, just plain CDI. My problem is: when i change some @SessionScoped user session instance i end up in having a new sessionID (session fixation problem?!?). My Use-Case: I want to have a login on one page and have the possability to login

error starting tomee server from eclipse servers tab

不打扰是莪最后的温柔 提交于 2019-12-11 12:55:31
问题 My OS is win 7 ultimate 32 bit After installing JDK 7u9, eclipse Juno (4.2) SR1 for Java EE and finally adding into it the new server Apache TomEE 1.5.0 October 2nd, 2012 apache-tomee-1.5.0-webprofile.zip (using eclipse wizard to add new servers and choosing tomcat 7 profile and then the directory where it's installed) i'm getting the following console error ... ... ... nov 13, 2012 8:07:53 PM org.apache.tomee.catalina.OpenEJBContextConfig processAnnotationsFile SEVERE: OpenEJBContextConfig

Is it possible to deploy JSF MyFaces 1.1.5 applications to TomEE

自闭症网瘾萝莉.ら 提交于 2019-12-11 09:24:08
问题 With Tomcat7 i can deploy several application with misced use of MyFaces 1.x / 2.x In TomEE i run to many exceptions if i deploy Applications with MyFaces 1.x, because tomee has builtin myfaces2 support.. Any ideas, is there a possibility to switch of modules like in jboss? 回答1: Should work fine. Just delete the myfaces-*.jars from <tomcat-home>/lib/ and then include the desired MyFaces jars in each webapp. 来源: https://stackoverflow.com/questions/13515424/is-it-possible-to-deploy-jsf-myfaces

“No resource methods” when using JAX-RS on TomEE+

喜你入骨 提交于 2019-12-06 01:27:30
问题 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 com.tensorwrench.test.BaseResource Jun 30, 2012 5:09:59 PM org.apache.cxf.jaxrs.utils.ResourceUtils checkMethodDispatcher WARNING: No resource methods have been found for resource class com.tensorwrench.test.BaseResource Jun 30, 2012 5:09:59 PM org

JavaEE solution configuration best practices

こ雲淡風輕ζ 提交于 2019-12-03 09:03:18
问题 We build 3-tier enterprise solutions that typically consists of several webapp and ejbjar modules that all talk to a db and have several external integration points. Each module typically needs its own configurations that can change over the solution's life time. Deploying it becomes a nightmare because now we have 18 property files that must be remembered to copied over and configured also setting up data-sources, queues, memory requirements etc. I'm hopeful but not optimistic that there can

DDL generation and general persistence.xml settings (OpenJPA)

你离开我真会死。 提交于 2019-11-30 04:24:52
问题 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 any detailed tutorials for getting up and running with OpenJPA . Problem I'm having trouble converting persistence.xml to work with OpenJPA instead of EclipseLink . More specifically, the given persistence.xml doesn't specify: Entity classes. Are