wildfly

Deploying Java @Schedule with Wildfly 8.1.0 Final

限于喜欢 提交于 2019-12-09 18:13:43
问题 I am trying to test the @Schedule annotation with the following code: import javax.ejb.Schedule; import javax.ejb.Singleton; import javax.ejb.Startup; @Singleton @Startup public class TimerTest { public TimerTest() { } @Schedule(second = "*", minute = "*", hour = "*") public void sayHello() { System.out.println("Hello"); } } However, when I deploy it to the standalone instance of wildfly 8.1.0 (final) I am getting the following error messages in the logs: 2014-09-23 08:38:03,076 ERROR [org

What is the default Full GC interval in Java 8

无人久伴 提交于 2019-12-09 13:34:40
问题 We noticed a strange behavior on our production server (JavaEE, Wildfly 10). The Java VM do once per hour Full GC although there is still enough memory available. The VM start parameters are: -server -Xms4g -Xmx8g The following parameters are not activated: -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 So what is the default Full GC interval in Java 8 and how can I configure it to be dynamic? 回答1: You say that -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi

WildFly multiple domains and SSL certificates

时光毁灭记忆、已成空白 提交于 2019-12-09 12:16:06
问题 I have two different domains example1.com example2.com Each domain has its own SSL certificate. What I am trying to do now, is using both domains for the same WildFly instance, supporting SSL. The WildFly documentation states, that I can only reference a single certificate in a keystore. Thus, I can't just define a single <security-realm> with one keystore containing both certificates. Thus, I defined two different <security-realm> . One for each domain. <security-realm name="RealmExample1">

How to set up messaging subsystem using CLI in Wildfly

微笑、不失礼 提交于 2019-12-09 09:12:09
问题 Does anyone have an example script for setting up the messaging subsystem in Wildfly using CLI? The perfect example would be the CLI needed to take a server running the standalone.xml, and after running the CLI script it has the messaging subsystem as defined in the standalone-full.xml. The examples I've found so far all start with the assumption the messaging subsystem is already in place. 回答1: Here's the script to add messaging. This adds the messaging subsystem, and makes it look like the

JSF 1.2 on Wildfly 8 Final - weld-core-jsf is still referencing JSF 2.2 API

主宰稳场 提交于 2019-12-09 00:18:13
问题 I'm currently migrating a JSF-1.2 app to Wildfly 8 Final and am stuck :( First of all, I've read many post with related issues (e.g. https://community.jboss.org/message/845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1) but the proposed solution (excluding the weld subsystem) doesn't work for me. What I did: I followed the multi-jsf feature tutorial here and installed JSF 1.2 as a module for wildfly (to be exact, 3 modules). The next was that I added exclusions for javax.faces.api and com

JPA shared cache / second level cache in WildFly

佐手、 提交于 2019-12-08 20:36:32
问题 I'm using WildFly 8.1 so JPA 2.1 and Hibernate 4.3.5 I want to use JPA shared cache / second level cache in WildFly I follow the WildFly documentation: https://docs.jboss.org/author/display/WFLY8/JPA+Reference+Guide#JPAReferenceGuide-UsingtheInfinispansecondlevelcache here is my persitience.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns

Add new Datasource (mysql) wildfly

…衆ロ難τιáo~ 提交于 2019-12-08 20:31:49
问题 I'm trying to add new datasource mysql jdbc driver to my wildfly server I created folder wildfly.x.x.x/modules/system/layers/base/com/mysql/main I've got here jdbc jar file and module.xml <module xmlns="urn:jboss:module:1.3" name="com.mysql"> <resources> <resource-root path="mysql-connector-java-5.1.34-bin.jar"/> </resources> <dependencies> <module name="javax.api"/> </dependencies> </module> then added dataresource code into standalone-full.xml (under datareources tag) <datasource jndi-name=

UserTransaction.SetTransactionTimeout not working?

老子叫甜甜 提交于 2019-12-08 19:49:32
问题 In the following code I am trying to force a transaction timeout for a specific bean setting its transaction time shorter than the time it takes for the method to complete. The timeout is set for 3 seconds , and the time it takes for the method to complete is 5 seconds . I am using a portable solution which refers to a combination of BMT and setting the timeout with the setTransactionTimeout method. I would expect the transaction to be invalidated an throw me an Exception, but that is not

JAAS authentication in JMS using WildFly : javax.jms.JMSSecurityException: HQ119032: User: null doesnt have permission=SEND on address {2}

主宰稳场 提交于 2019-12-08 18:14:42
问题 Using WildFly 9.0.2 final, the <hornetq-server> section is defined in standalone-full.xml as follows. Sections like <address-settings> , <acceptors> and <connectors> are completely omitted as I did not change anything in them. <hornetq-server> <security-domain>ProjectRealm</security-domain> <security-enabled>true</security-enabled> <journal-file-size>102400</journal-file-size> <security-settings> <security-setting match="#"> <permission type="send" roles="ROLE_USER ROLE_ADMIN"/> <permission

org.h2.jdbc.JdbcSQLException: Schema “DBO” not found

一笑奈何 提交于 2019-12-08 16:03:23
问题 This is a follow up question of Hibernate version mismatch in WildFly 10.0. For completeness, restating the problem briefly. I have 2 projects, one is a normal java project (with maven): core , and the other is non-maven dynamic web project: webapi . The later acts as a rest layer on top of core . core uses hibernate without any problem. It defines the persistence.xml (inside src/META-INF/ ) as follows: <?xml version="1.0" encoding="utf-8"?> <persistence xmlns="http://java.sun.com/xml/ns