wildfly-10

How to work with MQTT in Wildfly

為{幸葍}努か 提交于 2019-12-06 15:09:52
I am working on a platform to monitor and control devices which use MQTT for the communication layer. I use REST endpoints for the Angular2 based SPA Web. The backend is developed in JEE using WildFly which support out of the box the MQTT protocol through is JMS Broker(Active MQ). I am new in JEE and don’t know a lot of things: - I have never used the JMS System - I can’t find any information o tutorial to point me in the right way to get MQTT messages through a JMS Application. Can you help me to build a very basic App on WildWfly which demonstrates how to consume/produce JMS Messages through

Wildfly 10.1 Consuming All Cores

╄→尐↘猪︶ㄣ 提交于 2019-12-06 12:55:51
We have recently upgraded our banking application from java 1.6 to 1.8 and jboss 4.x to wildfly 10.1. We have observed that java consuming all the cores (10), available on the machine. Can someone tell what is the reason, normally with jboss 4.x max CPU utilisation was up to 4 cores. Do i need to configure anything for Garbage collection? Below is the result of (added on process consuming high cpu) ps -eLo pid,lwp,nlwp,ruser,pcpu,stime,etime,args|grep 3630 Below is the hex for each LWP consuming high cpu Now i have checked thread dump For LWP 7914 "default task-7" #182 prio=5 os_prio=0 tid

adding jars as deployment in WildFly 10

大兔子大兔子 提交于 2019-12-06 01:38:55
问题 Is there a way, we can deploy jars as a library/deployment in WildFly 10 like we can do it in weblogic server?. OR can we place the jars in any folder of server and define those dependencies as provided ? 回答1: What I got the way to deploy jar s on WildFly 10 server rather than making part of the war file is define below: 1) Put all your jars in wildfly\modules\system\layers\base\com\abcProject\main and place a file named module.xml with the following content: <?xml version="1.0" encoding="UTF

How to configure same context applications to use different machines with ModCluster and Wildfly10

天涯浪子 提交于 2019-12-05 06:48:36
问题 I'm trying to use ModCluster to load balance some servers. We have one single EAR that need to be load balanced by different DNSs. We have this scenario. We need to maintain the same context 'system1' because of backward compatibility 4 servers for urla.com.br/system1/ 2 servers for urlb.com.br/system1/ Using Wildfly 10.1.0 in domain mode, they are separated by two server groups: URLA and URLB . They share the same profile (URL-HA) and socket bindings (URL-HA-SOCKET). I have an Apache with

How to get javax.servlet.Filter called before Keycloak Authentication

跟風遠走 提交于 2019-12-05 01:42:51
We have developed a REST API using the resteasy. (deployed in wildfly 10) Basically these REST APIs are called internally from another application and end points are secured with keycloak. But one endpoint is exposed to outside party (that endpoint is also secured with keycloak). But since the outside party can't provide the Keycloak Autherization code, we have done an implementation where client is registerred with application generated auth_key and client will call the endpoint with that auth_key. Then in the a web filter (a javax.servlet.Filter), using tha auth_key we get the relevant

How to prevent HTTP 404 during deployment of ear in Wildfly/Jboss

这一生的挚爱 提交于 2019-12-04 13:58:32
We're using WildFly 10 as our application server and deploy via Docker (deployment in WF is ordinary hotdeployment). We're not using WildFly's clustering mechanisms but simply have load-balancers (HAProxys) in front. The problem is that WF opens its HTTP port while the EAR deployment is still in progress. This (of course?) leads to HTTP 404 errors which we don't want to handle specifically in the LBs. This could lead to false negatives... Is there a way to allow HTTP connections only after the EAR has started successfully? Alternatively is it possible to replace the "404 because nothing is

How do I undeploy all artifacts from WildFly?

这一生的挚爱 提交于 2019-12-04 10:07:46
I am developing a web application and deploying (with IntelliJ) to WildFly 10.1. I recently renamed my webapp module, which results in renaming my war file from foo.war to bar.war . Every time I start up, I get this error: 12:24:15,899 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."foo_war_exploded.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."foo_war_exploded.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "foo_war_exploded.war" at org.jboss.as.server

JMS Bridge Between WildFly 10 Artemis and ActiveMQ 5.14 (ONCE_AND_ONLY_ONCE Quality of Service)

时间秒杀一切 提交于 2019-12-04 04:46:49
问题 I'm trying to set up a JMS Bridge between Artemis (Running in WildFly 10) and ActiveMQ 5.14 In general the process seems to work smoothly, but unfortunately I'm getting stuck on the XA configuration that is necessary to get ONCE_AND_ONLY_ONCE QoS to work. Although messages do arrive on the ActiveMQ side, I get the following error in the WildFly log: 11:25:57,920 WARN [org.apache.activemq.artemis.jms.bridge] (Thread-97) AMQ342009: JMS Bridge failed to send + acknowledge batch, closing JMS

JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge

邮差的信 提交于 2019-12-04 04:16:43
问题 When I want to access EJB on remote wildfly server from a different server, i get following error. Error: Authentication failed: all available authentication mechanisms failed: JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge [Caused by java.io.FileNotFoundException: /../wildfly/standalone-/tmp/auth/X.challenge (No such file or directory)] DIGEST-MD5: Server rejected authentication If i access EJB within the server, i don't get any auth error. I use

Wildfly Failed to Load Module for Oracle Driver

眉间皱痕 提交于 2019-12-04 03:46:21
问题 I'm attempting to add an Oracle DB datasource to Wildfly 10. Here's what I have: <wildfly-home>\modules\com\oracle\ojdbc6\main\ module.xml ojdbc6.jar module.xml <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:Wildfly:module:1.0" name="com.oracle.ojdbc6"> <resources> <resource-root path="ojdbc6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.resource.api"/> <module name="javax.transaction.api"/> <!-- See * below --> </dependencies> </module> * I have