wildfly

Database connections not closed after idle-timeout in wildfly Datasource

大憨熊 提交于 2019-11-29 09:52:39
I have an application running under wildfly 8.1 The database connections used in the applications are taken from a Datasource defined in standalone.xml file. Problem: I don't know why but the Connection from the Pool never goes Idle and are released. Eventually the Pool gets filled will all active Connection and application starts throwing javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/bo/datasource At the same time when I look at the database, most of the Connections are shown to be idle. (Configuration and result output below) I have been at this for a

Wildfly fails to deploy application (FileNotFoundException - Access is Denied)

爷,独闯天下 提交于 2019-11-29 09:28:27
Wildfly 8.2.0.Final JDK 8 Update 60 Eclipse Mars Update 1 JBoss Tools 4.3.0.Final Windows 10 Recently I upgraded the following things: from Windows 7 to Windows 10 from Eclipse Mars to Eclipse Mars Update 1 from JBoss Tools 4.3.0.Beta1 to JBoss Tools 4.3.0.Final and now when I try to deploy my application in Eclipse it doesn't work anymore (sometimes it works, but most of the time it doesn't work). Everything was working fine before the upgrades, but now I get this stack trace when I deploy the application (where you read "Acesso negado" below it means "Access is Denied" ): 13:18:12,452 SEVERE

How implement LDAP login in wildfly web app

守給你的承諾、 提交于 2019-11-29 08:09:20
How to implement LDAP authentication in a Java EE WildFly app? Are there any examples? I'm new to Java EE and need to write an app using LDAP and I'm stuck. I read a book about developing in WildFly but there was no information about LDAP there. Shiva The following step of operation will have to be performed for authenticating your application using LDAP (assuming that LDAP is already setup). Creating a new security domain in standalone.xml file. <security-domain name="LDAPAuth"> <authentication> <login-module code="LdapExtended" flag="required"> <module-option name="java.naming.factory

Logback on Jboss duplicates prefixes and new lines when logging

别等时光非礼了梦想. 提交于 2019-11-29 07:38:23
I'm working on java web project. I use Wildfly 10. I want to use it with logback. I did some configuration: pom.xml <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.24</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.1</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.2.1</version> </dependency> logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration debug="true"> <appender name="STDOUT" class="ch

How to log application auditing to separate file on Wildfly 8

可紊 提交于 2019-11-29 06:57:32
I have a Java EE application running on Wildfly 8 in which I want to enable audit logging. Using an InterceptorBinding and Interceptor I am able to catch all relevant API calls. What I want to do is to write these audit calls to a separate audit log file. I tried implementing this using logback, and with the help of the second answer in this stackoverflow question I finally managed to do this. The first reply, i.e. disabling the system logging, did not work. However, while this solution successfully writes my audit trace to a separate file, all other logging stopped being written to their

Arquillian: Wildfly embedded?

和自甴很熟 提交于 2019-11-29 05:57:59
Until now I had my integration tests running with Arquillian and an embedded Glassfish 4.x. As I suffer from bug ARQ-1458 , I tried migrating to Wildfly 8.0.0.Beta1. My deps in Maven are: <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>1.1.2.Final</version> <scope>import</scope> <type>pom</type> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-arquillian-container

Authentication/authorization in JAX-RS using interceptors and injection

夙愿已清 提交于 2019-11-29 02:24:43
I am developing a new application in JavaEE 7 using WildFly 8. I am using JAX-RS to provide a RESTful service interface for remote applications. Something like an HttpHeaders object can be injected in a resource method arguments using the @Context annotation. Since the object is based on request parameters (of course, the HTTP headers), I came up with the idea of creating my own injectable User object which is created based on the presence of a valid token in the request (something like an OAuth access token). So, I want to achieve something like this: @Path("/resources") public class

Eclipse Kepler and JBoss Wildfly hot deployment

白昼怎懂夜的黑 提交于 2019-11-29 02:11:12
问题 I am trying to use eclipse kepler for Java EE 7.I already installed JBoss Tools and added JBoss Wildfly successfully as a server. However my changes are not automatically deployed. Is there anyway the app can be deployed automatically just as when using glassfish? 回答1: Using Eclipse, click twice on your WildFly Server to edit the following properties: Publishing : choose "Automatically publish after a build event". I like to change the publishing interval to 1 second too. Application Reload

Wildfly 9.x startet with errors: Address already in use

人盡茶涼 提交于 2019-11-29 02:01:10
I'm new in Eclipse, JSF, Wildfly and so on. I get this stacktrace: 22:03:42,430 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: WFLYSRV0083: Failed to start the http-interface service at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:269) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss

Spring Boot Websockets in Wildfly

有些话、适合烂在心里 提交于 2019-11-29 01:09:42
Hi I need to deploy my Spring Boot app into Wildfly 8.1 and I'm getting the following exception: Caused by: java.lang.RuntimeException: java.lang.ClassCastException: org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to io.undertow.websockets.jsr.ServerWebSocketContainer at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:219) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService