jboss

Grails 2 app wont deploy on JBOSS: BeanCreationException

半城伤御伤魂 提交于 2019-12-24 01:51:02
问题 After having upgraded one of my apps from Grails 1.3.7 to 2.1.0 and installed a couple of additional plugins the app will no longer deploy on JBOSS AS 5.1, which is used for production. The error I am getting from the JBOSS server log is the following: 13:39:10,263 ERROR [[/]] Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean

JBoss classloading problem

最后都变了- 提交于 2019-12-24 01:33:28
问题 I have a web application (war file) that works perfectly on tomcat. Now I need to put this same application to work on JBoss 4.2.2. There are other application running on the same JBoss instance. The problem is when I try to deploy the war application on JBoss. This is the exception I'm getting: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postmanTask' defined in file [/Users/lorenooliveira/dev/jboss-4.2.2.GA/server/default/./tmp/deploy

Alternative JSF implementation with JBoss 71

拜拜、爱过 提交于 2019-12-24 01:22:29
问题 I am trying to use icefaces 1.7.1 in a war application deployed on JBoss 7.0.0.Final Deployment is failing with an error "Could not compile stylesheet" in icefaces-comp.jar/META-INF/faces-config.xml. I assume this is because JBoss 7 is expecting me to use the JSF implementation that comes with JBoss 7. I can not change or upgrade the JSF implementation. JBoss 6 allowed legacy applications to add the following to web.xml so that the JSF implementation bundled with JBoss is ignored: <context

Startup hangs when using Spring Data repo inside CDI bean

北慕城南 提交于 2019-12-24 00:42:30
问题 I am facing the following issue - my application hangs on startup (no error is given), when trying to access the Spring Data repository from inside the CDI bean. This is my repo: import org.springframework.data.jpa.repository.JpaRepository; public interface ConfigValueRepository extends JpaRepository<ConfigValue, ConfigValueKey> { } where ConfigValueKey: import java.io.Serializable; class ConfigValueKey implements Serializable { private Long keyId; private Long node; } import javax.enterprise

“WFLYJCA0041: Failed to load module for driver [com.mysql]” on Jboss 7 with MySQL database

梦想与她 提交于 2019-12-24 00:40:08
问题 I am creating a web application for JBoss EAP 7 and trying to connect to MySQL 8.0 database. Am getting the error as [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 39) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "datasources"), ("jdbc-driver" => "mysql")]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.mysql]" My module.xml file in \jboss-eap-7.1.0\modules\system\layers\base\com\mysql\main is as follows: <?xml

Assign a pool to a specific stateless bean in JBoss EAP 6.1

ぃ、小莉子 提交于 2019-12-24 00:22:58
问题 I can see how one can control the size of the global pool for all the stateless session beans. However, I would like to be able to have a new pool that only applies to one type of stateless bean. This way, all my stateless beans but one would be pooled from the usual slsb-strict-max-pool , and one bean would have its own pool. Is it possible to do that in JBoss EAP 6.1? 回答1: Use @org.jboss.ejb3.annotation.Pool(value="myPoolName") annotation on the EJB referencing your custom pool as defined

Accessing Datasource from Outside A Web Container (through JNDI)

こ雲淡風輕ζ 提交于 2019-12-23 22:29:19
问题 I'm trying to access a data source that is defined within a web container (JBoss) from a fat client outside the container. I've decided to look up the data source through JNDI. Actually, my persistence framework (Ibatis) does this. When performing queries I always end up getting this error: java.lang.IllegalAccessException: Method=public abstract java.sql.Connection java.sql.Statement.getConnection() throws java.sql.SQLException does not return Serializable Stacktrace: org.jboss.resource

Browser cache files not getting updated after a new deployment in jboss server for a web application

雨燕双飞 提交于 2019-12-23 21:14:53
问题 I am using jboss Server 7.1.1 for deploying a java web application. For js, css, font files the browser cache is not getting updated with new changes. Every time we insist the clients to clear cache in their browsers to get the new changes to effect. is there any configuration which i can configure, so that when a new code is deployed i can guide all the request to be provided with the updated file ? by googling on this topic i find that, we can write custom methods to set e-tag value. is

JBoss-provided libraries in Maven-managed Java EE app

南笙酒味 提交于 2019-12-23 19:47:07
问题 It's actually pretty unlikely for me, but it seems that there is no direct answer over the net about importing JBoss-provided dependencies into Maven-managed Java EE application to be deployed within it. AFAIK there are 2 things somehow related to the problem, that is jboss-as-client artifact for external (in sense of JVM) JBoss clients and jboss-as-component-matrix artifact with huge <dependencyManagement> block defining version of the libraries that JBoss uses. The latter artifact is pretty

Unable to create oracle data source in Jboss EAP 7.0 server

江枫思渺然 提交于 2019-12-23 19:18:03
问题 I need to create an oracle data source in JBOSS EAP 7.0 server I deployed ojdbc6.jar from the JBOSS management CLI(Command Line Interface) using the below command deploy <PATH_TO_ORACLE_DRIVER_JAR> I could see the server log as below after the driver is deployed 01:25:53,338 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = ojdbc6.jar 01:25:53,747 INFO [org.jboss.as.server] (management-handler-thread - 6) WFLYSRV0010: