tomee

JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

为君一笑 提交于 2019-12-24 13:22:27
问题 I try to make a simple app using a rest service, eclipseLink and mysql. I want to make this run on a TomEE server (apache-tomee-plume-1.7.4). I deploy the app with eclipse. The deployment seems to be ok When I go to http://localhost:8080/eleve/ I'm getting : javax.servlet.ServletException: Error processing webservice request org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:98) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) java.io.IOException:

What are the recommended JSF dependencies with TomEE1.7.x?

断了今生、忘了曾经 提交于 2019-12-24 00:44:25
问题 I've been developing a JSF2.0 (I'm not really sure about the JSF version) application on TomEE 1.7.3 (JavaEE6 based). In my Maven pom.xml, I had too many dependencies which I've copied from many examples, but I reduced them to minimum requirements. Bellow is the "dependencies" part of my pom.xml: <dependencies> <!-- JavaEE6 --> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> <!-- /JavaEE6 --> <!-- OmniFaces for JSF, @Eager,

TomEE on eclipse, How to call a remote EJB from a JSF Managed bean?

我的未来我决定 提交于 2019-12-23 05:25:30
问题 I want to have JSF 2.0 page in one instance of TomEE server calling a Remote EJB running under a different TomEE server, (both obviously running on different ports). This is what I have done in eclipse... AppEJB - is a EJB project that contains all the ejb code. AppEJBInterfaces - This project contains all the remote interfaces, the idea is that this jar will be added to the class path of the web application project containing JSF front end. AppWeb - is the Dynamic Web Application project

Logger, convert from @Inject to producer

喜夏-厌秋 提交于 2019-12-23 02:45:25
问题 I am having trouble implementing a Login interface like the example Simple CRUD Web Application with JSF 2.1, PrimeFaces 3.5, EJB 3.1, JPA (ORM) / EclipseLink, JAAS , MySQL On TomEE's mailing list, I have been told that the LoginController.java I am using tries to inject Logger, but Logger injection is not managed by CDI. I have been told to use a producer instead. Not knowing what it is, I searched on the internet and I found this example But I am still not confortable with it, so please

TomEE :- Caused by: java.lang.RuntimeException at org.apache.xbean.asm5.MethodVisitor.visitTypeAnnotation(Unknown Source)

房东的猫 提交于 2019-12-21 12:08:41
问题 I have a spring mvc web application (maven). It runs on JDK 1.7 perfectly , but the error occurred when i try with 1.8. Similar question asked here. Where they moved back to 1.7. But i want to run on 1.8. How can i do that ? i also hear ASM 5 can run it (Not sure). Where do i suppose to change dispatcher servlet or web.xml or spring version ? java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost

p:datatable filter: cannot validate component with empty value

吃可爱长大的小学妹 提交于 2019-12-20 06:15:31
问题 Is there a way to filter a p:datatable column by clicking on the text inside and making this text the filter ? In other words, if I click on a session ID, I would like the datatable to filter this column by the clicked ID, as if I had entered it manually in the filter above ? I am using Primefaces 6 UPDATE This is my complete Datatable with the suggested solution: <p:dataTable id="tablealltx" var="transaction" value="#{pastTxModel.txList}" paginator="true" rows="20" sortBy="#{transaction

Arquillian integration test code coverage issue with Jacoco

对着背影说爱祢 提交于 2019-12-20 05:19:17
问题 I am doing integration testing using arquillian and tomee remote plugin. it is working good. But my code coverage is not working. I am using Jacoco plugin for code coverage. Getting Exception in my Java class java.lang.instrument.IllegalClassFormatException: Error while instrumenting com/demo/EmpService How to do code coverage in remote container using Jacoco ? Note: I have passed javaagent ( argLine ) to server catalina opts in integration phase. I am injecting my bean in test class and

@SessionScoped CDI bean is a different Instance when injected

吃可爱长大的小学妹 提交于 2019-12-19 09:05:25
问题 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 { private static final long serialVersionUID = 4873651498076344849L; private String version; public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public void changeVersion() { this.version = "Version

why EntityManager is null?

江枫思渺然 提交于 2019-12-18 23:39:08
问题 In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class ("Entity Class from database..." and "Session Beans From Entity Class..."). At SessionBean (for example UserFacade) i want to get EntityManager: @Stateless public class UserFacade extends AbstractFacade<User> { @PersistenceContext(unitName = "CollDocPU") private EntityManager em; @Override protected EntityManager getEntityManager() { return em; } } but when i get it by above way I

why EntityManager is null?

帅比萌擦擦* 提交于 2019-12-18 23:39:08
问题 In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class ("Entity Class from database..." and "Session Beans From Entity Class..."). At SessionBean (for example UserFacade) i want to get EntityManager: @Stateless public class UserFacade extends AbstractFacade<User> { @PersistenceContext(unitName = "CollDocPU") private EntityManager em; @Override protected EntityManager getEntityManager() { return em; } } but when i get it by above way I