tomee

OpenAM / OpenSSO HttpServletRequest.login(user, pass) fails with “Invalid transport string”. What does this mean?

可紊 提交于 2019-12-12 02:40:09
问题 I have two tomcat servers, one with OpenAM 12, one with the main web applications. Known: HTML pages authenticate without issue, programmatic login using the OpenAM java SDK works from within a servlet. What fails is a call to HttpServletRequest.login(username, password) This is the entry I have within the TomEE+ server: <Realm className="com.sun.identity.agents.tomcat.v6.AmTomcatRealm" debug="99"/> Here is the error I see within the AM J2EEAgent debug log: amRealm:01/29/2014 02:29:47:497 PM

java.lang.NoClassDefFoundError: javax/persistence/Converter Exception using hibernate with tomee and maven

倖福魔咒の 提交于 2019-12-11 19:23:18
问题 I have the following exception: org.apache.openejb.OpenEJBException: Creating application failed: /home/mmarnc/apache-tomee-webprofile-1.7.1/webapps/name_vorname: javax/persistence/Converter at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:896) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:623) at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1248) at org.apache.tomee.catalina

create EJB Provider javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType

别说谁变了你拦得住时间么 提交于 2019-12-11 15:18:33
问题 Im trying to run a simple JPA web page, in my tests I am using ejb. Maven clean install runs the tests without problem but only running the tests by itself gibes me an error javax.ejb.EJBException: No EJBContainer provider available Provider named org.apache.openejb.OpenEjbContainer$Provider threw unexpected exception at create EJBContainer: java.lang.NoSuchMethodError java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType; I

The validators (@Validated @Valid) do not work with Spring and TomEE

谁说胖子不能爱 提交于 2019-12-11 15:01:25
问题 Validators do not work with Spring and TomEE without Maven or Grade. I created an elementary project. When I enter incorrect data, the validator simply does nothing (no error, no log, nothing neite). Nothing valid. It does not validate the parameters of the ret services. It does not validate on the created DTO. I tried in many ways. I'm going crazy help me, please. import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull;

Failed to configure custom ActiveMQ broker in TomEE

时间秒杀一切 提交于 2019-12-11 12:42:33
问题 Until now I used the default ActiveMQ configuration in TomEE. Now I would like to turn on scheduler support, so I added these things to tomee.xml: <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter"> BrokerXmlConfig = broker:(tcp://127.0.0.1:61616)?usekahadb=true&persistent=true&schedulerSupport=true </Resource> <Resource id="MyJmsConnectionFactory" type="javax.jms.ConnectionFactory"> ResourceAdapter = MyJmsResourceAdapter </Resource> But I get these error messages: Database

Problems with CDI in setup for functional testing with TomEE (or OpenEJB), Jetty and Selenium

≡放荡痞女 提交于 2019-12-11 08:45:24
问题 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/functional-testing-with-openejb,-jetty-and-selenium.html. This setup is very good, because I can start selenium test by the IDE or Maven, and use the same code to start a Server for development. I saw this setup working using an old version of Jetty (6.2) and with an unknown EJB container (called

JPA persistence.xml I want it to connect to MariaDB but it always connects to hsqldb

只愿长相守 提交于 2019-12-11 07:52:48
问题 I have a java webapp, persistence.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd" version="2.2"> <persistence-unit name="my-persistence-unit"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <exclude-unlisted-classes>false<

How to inject FacesContext with JSF 2.3 and TomEE?

余生长醉 提交于 2019-12-11 07:33:08
问题 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 failed org.apache.webbeans.exception.WebBeansDeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [javax.faces.context.FacesContext] is not found with the qualifiers Qualifiers: [@javax.enterprise.inject.Default()] Am

Getting SQLException: Driver:org.hsqldb.jdbcDriver returned null for URL in tomee

穿精又带淫゛_ 提交于 2019-12-11 03:14:55
问题 I am getting following exception in tomee deployed application. [EL Severe]: 2014-07-11 09:18:34.811--ServerSession(860687693)--Thread(Thread[http-bio-8081-exec-3,5,main])--Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Driver:org.hsqldb.jdbcDriver@7078c2bb returned null for URL:"jdbc:mysql://localhost:3306/testDB" Error Code: 0 at org

Making @Schedule run only once in a clustered environment

与世无争的帅哥 提交于 2019-12-10 14:59:25
问题 I have two tomee instances clustered. Each one have a method annotated like @Schedule(dayOfWeek = "*") public void runMeDaily() {...} I'd like to run this method only once a day. Not twice a day (one on each instance) I could use a flag as described here Run @Scheduled task only on one WebLogic cluster node? or just elect some node, but I wonder if there's a more elegant way to do that. This question is somewhat related to EJB3.1 @Schedule in clustered environment but I am not using JBOSS.