wildfly

How to configure deployment from Eclipse to Wildfly

一世执手 提交于 2019-12-08 05:01:01
问题 When I deploy app using jboss-as-maven-plugin mvn clean jboss-as:deploy application works. When I try to deploy from Eclipse using e.g. "Full publish", it doesn't. I've compared versions of application being deployed and seems that "Full publish" simply copied what has been specified in Properties > Deployment Assembly . Is it possible to use this plugin during "Full publish" ? I want to make use of hot deploy feature for jsp, but without properly configured automatic deployment from Eclipse

How to pass variable as attribute to xml configuration file in Wildfly with Docker

时光总嘲笑我的痴心妄想 提交于 2019-12-08 04:55:41
问题 I'm trying to pass values from docker-compose.yml file to Wildfly configuration dynamically. I want to have flexibility of mail configuration - just for quick change of addres, or username, or port.. In this case, I tried to do that by forwarding environment variables from docker-compose.yml, by dockerfile as arguments "-Dargumentname=$environmentvariable. Currently wildfly interupts on start with error: [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 45)

Wildfly JMS: MDB beans idle when messages exist

孤街醉人 提交于 2019-12-08 04:32:02
问题 I am using the bundled JMS implementation on Wildfly 8.1 (HornetQ) to OCR a large number of documents. I want to have a pool of 3 MDBs consuming the messages of a Queue with the documents to be OCRed. Each MDB starts a process with the Apache commons-exec and blocks until that process exits. In my test I have 50 JMS messages (each represents a document to be OCRed) which are loaded on the Queue at the beginning of the test. When the processing starts, at any given time I can see that there

How to pass variable as attribute to xml configuration file in Wildfly with Docker

╄→гoц情女王★ 提交于 2019-12-08 04:13:17
I'm trying to pass values from docker-compose.yml file to Wildfly configuration dynamically. I want to have flexibility of mail configuration - just for quick change of addres, or username, or port.. In this case, I tried to do that by forwarding environment variables from docker-compose.yml, by dockerfile as arguments "-Dargumentname=$environmentvariable. Currently wildfly interupts on start with error: [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 45) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "mail"), ("mail-session" => "default") ]) -

How configure Eclipse (Kepler) to use Wildfly

て烟熏妆下的殇ゞ 提交于 2019-12-08 02:58:41
问题 I have an Eclipse Dynamic Web Project that I have used with JBoss 7.1 but I now want to try the Wildfly release. I can define a new server as Wildfly but my Project's javax.servlet imports are unresolved because I do not have a server in the Build Path. (I originally had JBoss 7.1 but removed that in preparation for using Wildfly.) However, when I access my Project's Properties > Java Build Path > Libraries > Add Library > Server Runtime I have an empty list. I cannot see how to get Wildfly

Clustered WildFly 10 domain messaging

六月ゝ 毕业季﹏ 提交于 2019-12-08 01:57:05
问题 I have three machines located in different networks: as-master as-node-1 as-node-2 In as-master I have WildFly as domain host-master and the two nodes have WildFly as domain host-slave each starting an instance in the full-ha server group. From the as-master web console I can see the two nodes in the full-ha profile runtime and if I deploy a WAR it gets correctly started on both nodes. Now, what I'm trying to achieve is messaging between the two instances of the WAR, i.e. sending a message

How to run 2 (or more) Wildfly instances on the same machine?

∥☆過路亽.° 提交于 2019-12-08 00:22:52
问题 I want to simulate 2 servers by running 2 independent instances of Wildfly. This is useful when you don't want to deploy all WARs on the same instance and then only be able to shut them down and start them together. I'm using Eclipse with the JBoss plugin where in the Servers view I want to have 2 Wildfly servers that I can stop and run separately and simultaneously. How do I do that? 回答1: It's possible to duplicate your Wildfly installation folder, but that takes up more space and you would

Rule in undertow-handlers.conf to redirect HTTP to HTTPS

落爺英雄遲暮 提交于 2019-12-07 21:34:08
问题 I have a Wildfly behind a load balancer, the connection between them is always HTTP. The connection between the client and the load balancer can be HTTP or HTTPS. The load balancer sets a header (X-Forwarded-Proto) to let the Wildfly know which protocol the client is using. I'm trying to write an Undertow rule to redirect to HTTPS taking into account all the conditions above. This is one of my more successful tries (this rule is written in the undertow-handlers.conf file and it's the only

Error in starting Wildfly 8.0 server with JDK 1.8

跟風遠走 提交于 2019-12-07 19:05:45
问题 I get this error when I start the server. I tried everything but still not sure what the cause is . Please help Thanks java.lang.IllegalArgumentException: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE" at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:119) at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:338) at

How to setup MariaDB JNDI on Wildfly 10?

 ̄綄美尐妖づ 提交于 2019-12-07 17:04:05
问题 I'm trying to move my Tomcat web service to Wildfly 10. I thought it should be drag and drop into Wildfly's deployment folder and everything should be fine, but it seems not like that. This is my MariaDB datasource definition in standalone.xml : <datasource jndi-name="java:jboss/MariaDBDS" pool-name="MariaDBDS"> <connection-url>jdbc:mariadb://db_ip/db_name</connection-url> <driver>mariadb</driver> <security> <user-name>dbAcc</user-name> <password>dbPassword</password> </security> <validation>