wildfly

Database connections not closed after idle-timeout in wildfly Datasource

十年热恋 提交于 2019-12-18 05:49:09
问题 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

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

僤鯓⒐⒋嵵緔 提交于 2019-12-18 05:46:11
问题 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

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

≯℡__Kan透↙ 提交于 2019-12-18 03:37:41
问题 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

<partial-response> XML shown as plain text after ajax redirect on security constraint in WildFly

六月ゝ 毕业季﹏ 提交于 2019-12-17 17:03:57
问题 I've got this weird problem with ajax redirect on a security constraint: When an ajax call is made (by clicking on a sortable p:dataTable column or when a p:poll triggers) on a role-secured page after my session timed out, a <partial-response><redirect-url=... XML from OmniFaces is shown on the screen. When I remove OmniFaces, the ajax calls seem to fail silently and I don't get the XML shown. Security is configured as following in web.xml: <security-constraint> <web-resource-collection> <web

Override logging in WildFly

有些话、适合烂在心里 提交于 2019-12-17 10:29:11
问题 I used tomcat and simply override default logging system. How to enable logging with logback on wildfly in my spring app? My Logback.xml owrking on tomcat <?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <filter class="ch.qos.logback.classic.filter.LevelFilter"> <level>ERROR</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n<

How to install one jar variant of JSF 2.3 (javax.faces.jar) on WildFly

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 06:14:35
问题 I want to use the JSF 2.3 on my application, but WildFly uses the 2 JAR variant for 2.2. Oracle said here https://javaserverfaces.java.net/2.3/download.html that won't release a 2.3 2 JAR variant. 回答1: Here's the manual procedure: Extract javax.faces.jar with a ZIP tool. You'll get 3 folders com , javax and META-INF . Pack com and META-INF folders into jsf-impl.jar with a ZIP tool. Then, delete all files/subfolders in META-INF except of MANIFEST.MF . Pack javax and META-INF folders into jsf

How to configure Wildfly to serve static content (like images)?

一个人想着一个人 提交于 2019-12-17 03:54:41
问题 I have a JavaEE application running on Wildfly 8.0.0 Final. The application uses a lot of images and I don't want to store them in the database, so they are written to the hard disk. How can I configure Wildfly/Undertow in order to serve these files (/var/images) on a certain URL, for example http://localhost:8080/myapplication/imagesFromDisk ? 回答1: Add another file handler and another location to the undertow subsystem in standalone.xml: <server name="default-server"> <http-listener name=

How to configure Wildfly to serve static content (like images)?

谁说我不能喝 提交于 2019-12-17 03:54:16
问题 I have a JavaEE application running on Wildfly 8.0.0 Final. The application uses a lot of images and I don't want to store them in the database, so they are written to the hard disk. How can I configure Wildfly/Undertow in order to serve these files (/var/images) on a certain URL, for example http://localhost:8080/myapplication/imagesFromDisk ? 回答1: Add another file handler and another location to the undertow subsystem in standalone.xml: <server name="default-server"> <http-listener name=

using javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL causes viewParam to be null

我怕爱的太早我们不能终老 提交于 2019-12-14 04:04:06
问题 I'm trying to switch an application from WildFly 13 (Java EE 7, JSF 2.2.15) to WildFly 16 (Java EE 8, JSF 2.3.9). Tried both PrimeFaces 6.2 and 7.0 In web.xml javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set. JSF 2.2 version working fine, switching to WildFly 16 this different behavior. A simple example follows: Instructions: access: http://localhost:8080/primefaces-test/?tipo=U&test=Bah click first button, click second button. after ajax the viewParam value in the bean is

CoAP and MQTT support in Wildfly 8.0.0.Final

巧了我就是萌 提交于 2019-12-14 02:35:34
问题 We have an enterprise solution deployed on Wildfly 8.0.0 server, we intend to support CoAP and MQTT also as communication protocol. We explored extensively but we couldn't find even any oblique reference to our problem case. Is it possible to add CoAP and MQTT support without destabilizing Wildfly setup ?? 回答1: I think theoretically it is possible to use a https://www.eclipse.org/californium/ within an EE server for CoAP. The main issue here is that Californium listens to an UDP port (and