wildfly

How to set deployment order of two ears in Wildfly

↘锁芯ラ 提交于 2019-12-03 12:37:02
问题 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

How to set up messaging subsystem using CLI in Wildfly

扶醉桌前 提交于 2019-12-03 12:13:25
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. Here's the script to add messaging. This adds the messaging subsystem, and makes it look like the subsystem when running standalone-full.xml. /extension=org.jboss.as.messaging:add() batch /subsystem

Cached connection manager in jboss/wildfly

允我心安 提交于 2019-12-03 12:07:07
I have defined a datasource for JBoss AS 7.4, with min/max pool sizes, tracing of idle connections etc. I am confused about the datasource use-ccm property. What does it do? Why use it? I thought the datasource itself manages the connection pool. BalusC What does it do? It's just a useful debugging tool to detect connection leaks in manually managed transactions (BMT) by inspecting its logging. When turned on in debug mode, it will log all connections acquired and released by application code, along with the queries. This can be used to trackback connection leaks in application code. The JBoss

WFLYCTL0412: Required services that are not installed:

萝らか妹 提交于 2019-12-03 10:34:12
I'm trying to add a datasource in Wildfly 10.0, but when i test connection this the error message that throws: Unexpected HTTP response: 500 Request { "address" => [ ("subsystem" => "datasources"), ("data-source" => "PostgreCrawlazo") ], "operation" => "test-connection-in-pool" } Response Internal Server Error { "outcome" => "failed", "failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0042: failed to match pool. Check JndiName: java:/crawlazo", "rolled-back" => true, "response-headers" => {"process-state" => "reload-required"} } The error from the server log: 2016-09-01

Upgrad to Wildfly 8.2 with error

匿名 (未验证) 提交于 2019-12-03 09:21:58
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I upgraded from Wildfly 8.1 to 8.2. My first JSF request resulted in this error, where this worked before. What is the culprit? Does one need to update any dependencies? JDK 8 required? 16 : 39 : 36 , 127 ERROR [ io . undertow . request ] ( default task - 1 ) L : 80 UT005023 : Exception handling request to / ccms / splitter . xhtml : java . lang . IllegalStateException at com . sun . faces . context . FacesContextImpl . assertNotReleased ( FacesContextImpl . java : 705 ) [ jsf - impl - 2.2 . 8 - jbossorg - 1.jar :] at com . sun .

Hosting multiple domains with WildFly (Undertow)

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: For example I have two domains ( app1.com , app2.com ) and two ears ( app1.ear , app2.ear ). Each EAR file consists of ejb.jar and web.war. Also each WAR has context root: /app1 or /app2 . So if I start WildFly I will have two applications running on localhost:8080/app1 and localhost:8080/app2 . How I can bind app1.com to localhost:8080/app1 and app2.com to localhost:8080/app2 ? As I understand, I should modify Undertow subsystem configuration in standalone.xml. I tried: <server name = "default-server" > <http-listener name =

Wildfly remotely access administration console doesnt work

[亡魂溺海] 提交于 2019-12-03 06:51:09
问题 I am new to WildFly/JBOSS. I am using WildFly 8.2.0. I have installed it as a service on Linux using an installation script from http://sukharevd.net/wildfly-8-installation.html. Everything works fine. I connect to my Linux remotely using SSH. It doesnt have GUI. So I need to be able to remotely connect to administration console. I cannot connect and it shows the following message: "An automatic redirect to the Administration Console is not currently available. This is most likely due to the

How to deploy war file in root(/) context to Wildfly ver 9.0.1

纵然是瞬间 提交于 2019-12-03 05:49:17
I am newbie for Wildfly till now I was working on tomcat to deploy my applications. Now just for add on features of Wildfly we want to move on to this. I am using Windows Os, I have done with the basic implementation of wildfly to start service etc. but Unable to deploy the ROOT.war in place of Welcome page. I have studied and gone through lot of links, I added jboss-web.xml in my project WEB-INF folder with following settings as I got in links. But I am still unable to deploy the ROOT.war in standalone deployment. Each times it goes to failed. Not getting what I have done Wrong. `<?xml

Uploading large files error to wildfly

旧时模样 提交于 2019-12-03 05:38:24
问题 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

JTA分布式事务实践

喜夏-厌秋 提交于 2019-12-03 05:25:08
最近一直在研究怎么实现分布式事务,花了不少时间,测试工程启停测试了无数次,最终实现的时候其实也就是写一些配置文件,对于工程代码没什么影响。目前研究还不是很深入,对于全面崩溃恢复如何实现和测试还不清楚。本文先介绍基础的实现。 当业务需要在一个事务中操作多个不同的资源,例如多个 数据库 ,消息队列,缓存等,那么就需要使用分布式事务了。在 Java 中一般建议使用 JTA ,这样开发人员就不用关心什么叫 XA 协议,什么是两阶段提交协议。要使用 JTA 需要容器的支持,例如使用 JBOSS,WebSphere ;或者使用第三方组件例如 JOTM 、 Atomikos 。 JBOSS AS 现在改名叫 Wildfly 了,以便和 JBOSS EAP 区分,后文我也改叫 Wildfly 。 JOTM 看起来是个死项目,我不打算使用。 由于目前开发框架基于 spring +JPA 设计,所以本文的配置主要是在 spring 中。其实用 EJB 的话配置更简单,但需要容器支持。 一、Wildfly 中配置 JTA 1、 配置数据库驱动( oracle ) a) 首先按照以下路径新增目录: wildfly-9.0.0.CR1\modules\system\layers\base\com\oracle\ojdbc14\main b) 把驱动文件 ojdbc14.jar 复制到此目录下 c) 在