wildfly

Cannot deploy ear on WildFly 8 due to failures when processing its structure

元气小坏坏 提交于 2019-11-28 04:36:36
问题 I'm having the following error on Wildfly when trying to deploy an EAR that currently works on Glassfish 4: 09:04:08,976 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"planoa.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"planoa.ear\".STRUCTURE: JBAS018733:

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

狂风中的少年 提交于 2019-11-28 01:59:11
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-resource-name>Pages</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth

How implement LDAP login in wildfly web app

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 01:54:04
问题 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. 回答1: 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">

How to log application auditing to separate file on Wildfly 8

不问归期 提交于 2019-11-28 00:55:49
问题 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

Wildfly/WebSocket/Apache : WebSocket is already in CLOSING or CLOSED state

眉间皱痕 提交于 2019-11-28 00:29:14
I was able to successfully run the websocket in my local machine with the following apache configuration, ProxyRequests off ProxyPreserveHost on <Location /chat> ProxyPass ws://localhost:8080/chat ProxyPassReverse ws://localhost:8080/chat </Location> I am using mod_proxy_wstunnel for Apache/2.4.7 (Ubuntu) and using Wildfly 9.0.1. When I moved the deployment to my production server(AWS) with the same configuration mentioned I get following response instead, WebSocket is already in CLOSING or CLOSED state. The Weird thing is I was actually able to connect to WebSocket from within the hosted

Arquillian: Wildfly embedded?

强颜欢笑 提交于 2019-11-27 23:30:56
问题 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> <

Wildfly: How to use JAXWS-RI instead of Apache CXF (WebService client only)

戏子无情 提交于 2019-11-27 22:52:54
问题 My environment is a Maven Project and Wildfly (8.2.1) as Application Server. What I need is to connect wihin a incoming REST call to a third party server using SOAP. I need SSL Client Authentication; therefore, I have my own KeyStore and TrustStore. I create therefore my own SSLContext and need to let the WebService use this SSLContext. All looks like this: // Build SSL context with own KeyManager / TrustManager SSLContext sc = SSLContext.getInstance("TLS"); KeyManagerFactory kmf =

Dump HTTP requests in WildFly 8

旧时模样 提交于 2019-11-27 20:07:48
To debug HTTP requests during development, I would like my WildFly 8 application server to dump HTTP requests, including request method and headers, to a log file . server.log would be fine. In the sources of WildFly's HTTP subsystem, I found RequestDumpingHandler and the corresponding logging category io.undertow.request.dump However, I cannot figure out, how to install that header so that it is applied for all requests served by my application (a WAR with some static resources and JAX-RS handler). The corresponding documentation page ( Undertow web subsystem configuration ) doesn't really

WildFly + Hibernate

Deadly 提交于 2019-11-27 19:01:23
问题 I've been struggling for days with configuring Hibernate and run it on WildFly. Here is my code: META-INF/persistence.xml <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="blog" transaction-type="JTA"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

Logback on Jboss duplicates prefixes and new lines when logging

倖福魔咒の 提交于 2019-11-27 18:29:02
问题 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 <