jboss7.x

EJB3.1 Timer cancel issue

三世轮回 提交于 2020-01-06 03:58:25
问题 I have a problem with EJB3.1 Timer service. I find this issue quite strange! I have a stateless session bean like below deployed on JBoss7.1.1 application server. import javax.annotation.Resource; import javax.ejb.Local; import javax.ejb.Remote; import javax.ejb.Stateless; import javax.ejb.Timeout; import javax.ejb.Timer; import javax.ejb.TimerService; import javax.interceptor.Interceptors; @Stateless @Local(HelloUserLocal.class) @Remote(HelloUserRemote.class) public class HelloUserBean

Shutdown JBoss 7 AS along with host-controller

泄露秘密 提交于 2020-01-05 04:40:12
问题 I use JBoss 7.1.1-FINAL AS. Its configured to startup in domain mode with default settings. I use the domain.sh file to start up the server which starts 4 java processes: Host-controller Process-controller server-one server-two In order to shutdown the server, i invoke the following command: ./jboss-cli.sh --connect controller=host:9999 /host=master:shutdown This brings down the 2 servers, server-one and server-two. I would like to know how to stop host-controller and process-controller.

JBOSS 7 - Spring ContextLoaderListener ClassNotFoundException

。_饼干妹妹 提交于 2020-01-04 13:20:47
问题 im trying to migrate my JBOSS 5.1 application to JBOSS 7.0.2. In admin console i select deployments -> add content and my .war and try to enable it. I already resolved some problems, but cant figure out this one: (in short, in long at the end) Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener from [Module "deployment.ZaprogsProject.war:main" from Servic e Module Loader] I copied to JBOSS7\standalone\lib\ the following files: spring-aop-3.0.5

JPA EntityManager not initialized in struts2 and JBOSS 7.1

自古美人都是妖i 提交于 2020-01-04 11:10:35
问题 I am starting struts2 based application with Jboss provided JPA libraries. I have configured data-source in standalone.xml I can see from the jboss administration console that the datasource is created. and the presistence.xml files are read and processed. But if I check the EntityManager instance in Action Class. It always says null. Here is my persistence.xml and Action class snippet <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns

The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid version could be found

允我心安 提交于 2020-01-04 09:04:58
问题 I hit into deployment error for Jboss AS 7.1.1 Final deployment as mentioned at Could not connect to remote://localhost:9999. The connection timed out Jboss 7.1.1 Final. I am trying to use latest version of Jboss Maven plugin '7.4.Final' from '7.1.1.Final'. When I made change in POM configuration I am getting following error for both versions of plug-in. I have confirmed that my .m2 has both of these plug-in versions available. Is POM meta data corrupt in my case, if so how do I clean it up

WELD-001408 Unsatisfied dependencies

随声附和 提交于 2020-01-03 17:06:18
问题 I have a very famous error, but I can't solve it. I'm trying to run arqullian test for my application. I've done everything according to the official documentation. The long search for solution to the problem given nothing. 16:49:42,713 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."test.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".WeldService: org.jboss.weld.exceptions

java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO jboss EAP 6

狂风中的少年 提交于 2020-01-03 13:57:03
问题 We are using the JBoss EAP 6; Everything works well till production environment. But Post deployment in production, we are getting the below error: java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO The error happening in one of the servlet where we are creating the Captcha. This is the line where this error is happening : ImageIO.write(bufferedImage, "png", baos); Here is the stack trace for the Error : Server:server-three] Caused by: java.lang

EJB injection into Restful service (NullPointerException)

柔情痞子 提交于 2020-01-03 04:14:10
问题 I' have a problem with injecting StoreBean into Restful service. I have reduecd code little bit to get a point. Here is the code(DataStoreBean): @Local(DataStore.class) @Stateless public class DataStoreBean implements DataStore { public String get() { return "works"; } } and here is code for RestEndpoint: @RequestScoped @Path("/DataStore") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public class DataStoreRestEndpoint { @EJB DataStoreBean dataStore; @GET @Path("

struts2 full hibernate plugin leaking jdbc connections?

自作多情 提交于 2020-01-02 22:02:04
问题 I am using struts2-fullhibernatecore-plugin-2.2.1-GA.jar for injecting session as, @SessionTarget protected Session hSession; @TransactionTarget protected Transaction hTransaction; i can see in jboss logs stacktraces that it's leaving the jdbc connections open (as unclosed). Stacktrace as: [org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager] (http-- 0.0.0.0-8080-203) IJ000100: Closing a connection for you. Please close them yourself: org.jboss.jca.adapters.jdbc.jdk6

JSF facelet app not working in jboss AS 7

断了今生、忘了曾经 提交于 2020-01-02 09:27:54
问题 I am trying to set up environment for Java/JSF app in my windows 7 machine. I am using eclipse juno with Jboss AS 7 downloaded from the eclipse market. Also I am using JDK 1.7. I created a very simple app containing just a h:outputLabel tag. Everything looks fine until deployed and run, but the tag doesn't render. What I mean to say is that I am getting a blank page. The jars I included for JSF are : jsf-api-2.1, jsf-impl-2.1.0-b03.jar,jsf-facelets-1.1.14.jar. And the usual commons and jstl