wildfly

Wildfly and auto reconnect to the database

偶尔善良 提交于 2019-12-03 05:23:25
I've got a client, a server and a database. The client communicates with the server via a EJB remote interfaces. As the server - I use a Wildfly 8.2.0. As the database - I use a MySQL. The server communicates with the MySQL via a JPA/Hibernate. When I turn off the MySQL server - the Wildfly throws an exception, of course. But when I turn on the MySQL again - the Wildfly still throws the same ERROR . I've to turn off the Wildfly and turn it back that the Wildfly reconnect to the database. How to set auto reconnect in the Wildfly? I tried to set auto reconnect in a connection URL: jdbc:mysql:/

JBoss Wildfly - database login module

夙愿已清 提交于 2019-12-03 03:48:15
JBoss Wildfly 8.0.0-Final JSF 2.2.4 First I created login using the application-users.properties and application-roles.properties. Added user with add-user.bat Web.xml <security-constraint> <web-resource-collection> <web-resource-name>Admin Resource</web-resource-name> <url-pattern>/admin/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page

How to set deployment order of two ears in Wildfly

为君一笑 提交于 2019-12-03 03:05:44
I've some issue regarding the deployment order of two applications inside Wildfly 8.1. The problem is that some modules of app2.ear depends of modules from app1.ear , but app1.ear is deployed after app2.ear . I've tried to specify a dependency for app1 like this: <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <deployment> <dependencies> <module name="app2.ear" /> </dependencies> </deployment> </jboss-deployment-structure> But no luck, app1.ear fails to deploy with this error: {"JBAS014671: Failed services" ...

Spring Security on Wildfly: error while executing the filter chain

邮差的信 提交于 2019-12-03 02:29:02
问题 I'm trying to integrate Spring Security SAML Extension with Spring Boot . About the matter, I did develop a complete sample application. Its source code is available on GitHub: spring-boot-saml-integration on GitHub By running it as Spring Boot application (running against the SDK built-in Application Server), the WebApp works fine. Unfortunately, the same AuthN process doesn't work at all on Undertow/WildFly . According to the logs, the IdP actually performs the AuthN process: the

Permissions error when using cli in Jboss wildfly and docker

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have extended a docker images, and when building the dockerfile, I call the Wildfly CLI to add a datasource. Then, when I try to run the dockerfile, I get the below error: ========================================================================= appui-dev-local | appui-dev-local | JBoss Bootstrap Environment appui-dev-local | appui-dev-local | JBOSS_HOME: /opt/jboss/wildfly appui-dev-local | appui-dev-local | JAVA: /usr/lib/jvm/java/bin/java appui-dev-local | appui-dev-local | JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:

CORS: AngularJS + Resteasy 3 + Wildfly

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am developing an app using AngularJS and Resteasy. As expected I am facing the well known problem of XMLHttpRequest cannot load http://localhost:8080/..... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 403. As seen on other stack overflow posts [1] , I tried using Resteasy's CorsFilter from a Feature object, but I get: [ 33m02 : 06 : 57 , 883 WARN [ org . jboss . resteasy . core . ExceptionHandler ] (

Difference between security-realm and security-domain in WildFly

旧时模样 提交于 2019-12-02 22:58:01
What is the main difference between security-domain and security-realm in WildFly? standalone.xml <security-domain name="foo"> <authentication> <login-module code="..." flag="..."> </login-module> </authentication> </security-domain> and <security-realm name="foo"> <authentication> <local default-user="..." allowed-users="..." skip-group-loading="..."/> <properties path="..." relative-to="..."/> </authentication> <authorization> <properties path="..." relative-to="..."/> </authorization> </security-realm> Answer updated (2018-06-08) to reflect WildFly Elytron naming. WildFly Elytron is a new

Uploading large files error to wildfly

懵懂的女人 提交于 2019-12-02 18:57:45
I try to upload large files(400mb+) to wildfly 8.1 and i get an IOException but i dont encounter any exception with the same conditions when using jboss 7 server: Exception: Blocking request failed HttpServerExchange{ POST /ehub/contentstore/categories/maincategory/file/create}: java.lang.RuntimeException: java.io.IOException: Broken pipe at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287) at io.undertow.servlet.handlers.ServletInitialHandler

JBOSS gives org.apache.kafka.common.KafkaException: auth.conf cannot be read

一个人想着一个人 提交于 2019-12-02 16:35:14
问题 When I deploy war of my simple kafka project (which works fine as a jar ) in wildfly v 10 , i get some zookeeper connection exception[1].This occurs when kafka listener starts to connect with zookeeper [1]] 15:21:58,531 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 82) MSC000001: Failed to start service jboss.deployment.unit."ratha.war".component.KafkaServiceBean.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."ratha.war".component

Spring Security on Wildfly: error while executing the filter chain

試著忘記壹切 提交于 2019-12-02 16:01:44
I'm trying to integrate Spring Security SAML Extension with Spring Boot . About the matter, I did develop a complete sample application. Its source code is available on GitHub: spring-boot-saml-integration on GitHub By running it as Spring Boot application (running against the SDK built-in Application Server), the WebApp works fine. Unfortunately, the same AuthN process doesn't work at all on Undertow/WildFly . According to the logs, the IdP actually performs the AuthN process: the instructions of my custom UserDetails implementation are correctly executed. Despite the execution flow, Spring