jboss

JBoss 7 Classloader — Exclude Module Implementation

我怕爱的太早我们不能终老 提交于 2020-01-16 18:05:43
问题 I have a simple piece of code instantiating a JBoss Hot Rod client and this is deployed in an .ear file on Jboss 7 System.out.println("Attempting to RemoteCacheManager at: "+ipAddress); Configuration conf = new ConfigurationBuilder().addServer().host(ipAddress).port(11222).build(); RemoteCacheManager manager = new RemoteCacheManager(conf); RemoteCache defaultCache = manager.getCache(); System.out.println("SUCCESS OUT: Connected to RemoteCacheManager at: "+ipAddress); logger.info("SUCCESS:

Memory leak due to more number of instances of org.jboss.vfs.spi.JavaZipFileSystem

对着背影说爱祢 提交于 2020-01-16 11:08:05
问题 We are using JBoss eap 6.4. We are running into heap issues(out f memory error) when the application is deployed and accessed.Created a heap dump file to investigate more. Analyzed the heap dump file using Eclipse MAT tool. MAT tool is complaining abut the following leak. Problem Suspect 1 183 instances of "org.jboss.vfs.spi.JavaZipFileSystem", loaded by "org.jboss.modules.ModuleClassLoader @ 0xe0884088" occupy 24,507,432 (14.20%) bytes. Biggest instances: •org.jboss.vfs.spi.JavaZipFileSystem

timer ( cron:* * 10-18 * * ? ) rule consequences output duplicated

£可爱£侵袭症+ 提交于 2020-01-16 08:03:48
问题 I want to limit the rule run in a specfic time span ,the rule i wrote is as below rule "Event3" timer ( cron:* * 10-18 * * ? ) no-loop when $m : EventTest( originNumber == "123", originNumber : originNumber ) from entry-point "ATM Stream" or $m : EventTest( originNumber == "456",originNumber : originNumber ) from entry-point "ATM Stream" then System.out.println( $m.getOriginNumber() ); end when i insert a new fact into engine,every inserted fact before will duplicated triger the rule,how can

Infinispan, the versioned operation returning incorrect results

放肆的年华 提交于 2020-01-16 03:43:04
问题 We are planning to use Infinispan in client server mode. The architecture has many clients (client 1, client 2 and so on ) and a distributed infinispan network. We need to update the data in the cache periodically, say every5 hours . All clients could be able to update the data. If one of them (say client 1) is updating we need to prevent others doing the same job. Once the updating is complete all clients wait another 5 hour and, any of them will do the the updating again. Infinispan

JBOSS AS7 jax-rs jaas and annotations

做~自己de王妃 提交于 2020-01-16 00:46:35
问题 Hey I hope someone can help tried for last 2 days to figure out what I am doing wrong. I want a programmatic login to a JAX-RS api and to use @RolesAlowed annotations on my endpoints. I login fine and can see the principal set in the login endpoint also I get a JSESSIONID. But when I call the /info/ping endpoint that is annotated with @RolesAllowed("USER") it throws UnauthenticatedException. If I remove the annotation then the req.getUserPrincipal() is null event though the cookie set. Any

jBoss deployment of message-driven bean spec violation

人走茶凉 提交于 2020-01-15 18:14:22
问题 I have an java EE application which has one message-driven bean and it runs fine on JBoss 4, however when I configure the project for JBoss 6 and deploy on it, I get this error; WARN [org.jboss.ejb.deployers.EjbDeployer.verifier] EJB spec violation: ... The message driven bean must declare one onMessage() method. ... org.jboss.deployers.spi.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. But my bean HAS the onMessage method! It would not have worked

Failed to deploy maven project, no connector available

白昼怎懂夜的黑 提交于 2020-01-15 12:15:53
问题 I'm trying to deploy a maven project but I'm getting this error: ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.745 s [INFO] Finished at: 2014-07-14T00:52:07+04:00 [INFO] Final Memory: 12M/222M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin

Compare Enum EL Jboss [duplicate]

时光总嘲笑我的痴心妄想 提交于 2020-01-15 09:46:07
问题 This question already has answers here : How to reference constants in EL? (12 answers) Closed 2 years ago . I'm trying compare two enum values in JSTL. In my Tomcat works fine, but when I deploy the application in a Jboss doesn't work. Enum class: public enum Status { VALID, NOT_VALID, OTHER, ; public String getName() { return name(); } } Piece of JSP: ... <%@ page import="my.package.Status" %> ... <c:choose> <c:when test="${myVar.status.toString() == Status.VALIDAD.toString()}"> <c:set var=

No persistence provider found with JBoss AS 7

时光总嘲笑我的痴心妄想 提交于 2020-01-15 08:20:21
问题 I've just migrated from Tomcat to JBoss AS 7. So, I configured Mysql datasource in JBoss (adding module.xml with associated Jar, adding driver bloc into standalone.xml and configuring datasource through JBoss interface. No errors when deploying but impossible to get an entityManager (JPA with Hibernate in background). Indeed, when this code is executed: Persistence.createEntityManagerFactory("RoomManagement"); I obtain this error : javax.persistence.PersistenceException: No Persistence

How to get Spring to wire my JmsComponent

限于喜欢 提交于 2020-01-15 07:56:33
问题 I am writing an application using Akka, Akka-Camel and Spring for configuration. The application needs to act as a standalone JMS client against a variety of application servers, to which end it needs to set up the JMS connection factory using JNDI. I'm testing this with jBoss. I have the same problem with jBoss 5 and 6 (this seems to be a client-side Spring problem, not related to jBoss). I am configuring the Spring beans with this xml: <beans xmlns="http://www.springframework.org/schema