jboss7.x

How to clean HornetQ messaging journal before/after performing a test?

不打扰是莪最后的温柔 提交于 2020-01-02 06:57:12
问题 There's an Arquillian integration test using JMS HornetQ with persisted messages. Some test leave the messaging journal filled with unhandled messages that break other tests expecting no data. Is there a way of telling JMS to clean its messaging journal before or after executing a test? 回答1: This does not exist in the JMS API itself, but there's a method 'removeMessages(filter)' in the HornetQ QueueControl management object. This method can be found in the JMX Bean for the Queue, but I wouldn

JBoss AS7 Automatically Loading JPA

我只是一个虾纸丫 提交于 2020-01-02 04:51:09
问题 I have an application which uses JPA/Hibernate and Google Guice. Guice is bootstrapped in a ServletContextListener and it sets up the EntityManagerFactory itself. The application works fine on Tomcat 7, but when I deploy to JBoss AS7 it fails because JBoss decides to automatically setup JPA prior to invoking my ServletContextListener . How can I get JBoss to not initialize JPA automatically and instead wait for my ServletContextListener to do it? Update According to the link that James

ClassCastException when casting looked-up EJB view in AS7

ぐ巨炮叔叔 提交于 2020-01-02 01:59:29
问题 I have am deploying 2 EARs onto JBoss AS 7.1.0.Alpha1-SNAPSHOT (post 7.0.1.Final version). Both deploy fine. I have an EJB Singleton class packaged within a JAR, within one of the EARs: @Startup @Singleton // one of @Local(Store.class), @Remote(Store.class), @LocalBean @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) @Transactional(TransactionPropagation.SUPPORTS) public class StoreFront implements Store { ... public interface Store { ... When it deploys, it says the EJB is bound

JBoss AS 7 migration - java.lang.ClassNotFoundException: org.hibernate.validator.ClassValidator

房东的猫 提交于 2020-01-01 09:29:10
问题 I have an application running on JBoss AS 4.2.3 and am trying to migrate this to JBoss AS 7.0.2. I am also upgrading seam from 2.1.1 to 2.2.2. I have resolved a few of the class not found exceptions, but I am stuck on java.lang.ClassNotFoundException: org.hibernate.validator.ClassValidator My full stack trace is below. I'm not very clear on the new class loader in AS 7. Does Hibernate 4 work with seam 2.2.2? I have tried specifying the exports in jboss-deployment-structure.xml to use org

Port MBean from JBoss 4.x to JBoss 7

柔情痞子 提交于 2020-01-01 08:33:30
问题 we're currently in the process of porting some of our projects from JBoss 4.x to JBoss 7. So far everything seems to work fine, except for our MBeans, which we're commonly using to provide simple management operations. I've been searching for quite a while now, but either I'm incapable of comming up with the correct search term or I'm missing some piece of knowledge to bridge the gap between MBean definition in JBoss 4.x and JBoss 7. Thus, hopefully someone can provide a hint on what I might

Port MBean from JBoss 4.x to JBoss 7

拈花ヽ惹草 提交于 2020-01-01 08:33:10
问题 we're currently in the process of porting some of our projects from JBoss 4.x to JBoss 7. So far everything seems to work fine, except for our MBeans, which we're commonly using to provide simple management operations. I've been searching for quite a while now, but either I'm incapable of comming up with the correct search term or I'm missing some piece of knowledge to bridge the gap between MBean definition in JBoss 4.x and JBoss 7. Thus, hopefully someone can provide a hint on what I might

JBoss 7 Spring JPA + Hibernate Application: no transaction is in progress

泪湿孤枕 提交于 2020-01-01 06:56:11
问题 I'm trying to develop a simple Payroll Application with Spring 3.2 using JPA and Hibernate and the JPA Provider. I'm deploying it on the JBoss AS 7 Server. I keep getting the following error: 16:42:13,811 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PayrollApp].[payrollApp]] (http--127.0.0.1-8080-1) Servlet.service() for servlet payrollApp threw exception: javax.persistence.TransactionRequiredException: no transaction is in progress at org.hibernate.ejb

Jersey 2.1 + JBoss 7.1 NoSuchMethodError: getProperties

旧时模样 提交于 2020-01-01 05:19:09
问题 I am trying to run Jersey 2.1 REST service on JBoss 7.1 AS. I am getting the NoSuchMethodError: javax.ws.rs.core.Application.getProperties error during deployment: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/RESTService]] (MSC service thread 1-9) StandardWrapper.Throwable: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:271) [jersey-server-2

Can't add mysql driver to jboss

微笑、不失礼 提交于 2020-01-01 04:17:20
问题 Ok this is driving me crazy. Especially because there are already many similar questions out there. But no answer works for me. I have jboss 7.1.1 on my windows 7 machine (running it from eclipse normally) and want to use mysql. I did the following: 1 created directory jboss-as-7.1.1.Final\modules\com\mysql\main 2 Files there: module.xml and mysql-connector-java-5.1.26-bin.jar (downloaded from official mysql site) 3 Content of module.xml : <?xml version="1.0" encoding="UTF-8"?> <modulexmlns=

“HTTPS required” while logging in to Keycloak as admin

徘徊边缘 提交于 2019-12-31 21:34:50
问题 I am using Keycloak (version 1.0.4.Final) in JBOSS AS 7.1.1 server. The server is on Amazon AWS. I am able to start the jboss server with keycloak. i can see the keycloak default screen while hitting the URL - ServerIP:8080/auth But when i am clicking on the Administration Console link to go to the login screen. I am getting a page saying - HTTPS required The server is on AWS, changing to "ssl-required" : "none", in General Adapter Config has not helped. How to resolve this issue? Edit: I was