wildfly

Arquillian wildfly8.2 embedded : JBAS014670: Failed initializing module org.jboss.as.logging

二次信任 提交于 2019-12-06 06:29:55
I'm trying to set up a project that uses arquillian to do some kind of integration testing. I already went through some tutorials but can't get my test running. The exception I get is: Cannot not load JBoss LogManager. The LogManager has likely been accessed prior to this initialization. Jul 14, 2015 10:30:37 AM org.jboss.msc.service.ServiceContainerImpl <clinit> INFO: JBoss MSC version 1.2.2.Final Jul 14, 2015 10:30:37 AM org.jboss.as.server.ApplicationServerService start INFO: JBAS015899: WildFly 8.2.0.Final "Tweek" starting Jul 14, 2015 10:30:38 AM org.jboss.as.controller

How do I connect a STOMP client to Wildfly?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 06:21:21
问题 I would like to expose my WildFly server to STOMP clients but I have not found any recent samples. As I understand it all communication in recent WildFly versions goes through a single socket (listening to 8080 by default). Do I need to change any configuration or is it supported out of the box? Any pointers are appreciated. 回答1: It's true WildFly only listens on port 8080 by default (plus port 9990 for management), using HTTP protocol upgrade to switch to different protocols. However, you

Using bootstrap 3 glypicons with webjars and jsf2.2

一个人想着一个人 提交于 2019-12-06 06:13:17
问题 I'm trying to make a simple page with bootstrap and glypicons in jsf 2.2. I've included webjar's bootstrap dependency (and opening the jar I can see the fonts file are present). When deploying the app to wildfly, bootstrap css works correctly, but icons shown are horrible (like a default font or something). Looking at the network tab in the browser, I only see 404 errors: http://localhost:8080/proto/javax.faces.resource/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.woff 404 http:/

Datasource configuration in wildfly 10

依然范特西╮ 提交于 2019-12-06 06:11:31
问题 I am trying to configure a PostgreSQL datasource in Wildfly 10 Application Server on Mac OS. I am doing what the instructions prescribe. I have created an order: /wildfly-10.1.0.Final/modules/system/layers/base/org/postgresql/main. In this order I have put the JDBC driver: postgresql-9.3-1104.jdbc4.jar and I have created a module.xml file: <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.3" name="org.postgresql“> <resources> <resource-root path="postgresql-9.3-1104

Is it possible to use a datasource deployment descriptor with a driver module in Wildfly?

和自甴很熟 提交于 2019-12-06 05:35:25
问题 I can´t configure my datasource by using a "*-ds.xml" deployment descriptor with the database driver installed as module. The datasource *-ds.xml file is only valid if I deploy the database driver directly as jar. I think that If you choose to install the driver as a module you will have to configure the datasource in the standalone.xml directly. I would like the solution driver module + deployment descriptor. 回答1: For your module to be visible to your application, you need to import the

WildFly Postgres DataSource remote connection-url ignored

两盒软妹~` 提交于 2019-12-06 05:32:41
I am running into some configuration troubles in setting up a Keycloak server in standalone clustered mode. Despite configuring the datasource to use a postgres database on {REMOTE_IP} , it is failing to start the server complaining that it cannot connect to localhost:5432 . I've been searching all over but I'm befuddled why the DataSource would try to connect to localhost when the connection-url is set to a remote host. Is there any mistake in my configuration? How can I figure out why PG is trying to connect to localhost instead of {REMOTE_IP} My setup is 1 Postgres database server and 2

Java EE 7 CDI - Injection doesn't work, sending NullPointerException

浪尽此生 提交于 2019-12-06 05:23:05
问题 I have a problem with my injection, it's the first time I try it. I'm working with Wildfly and Java EE 7. I've got a NullPointerException when trying to access Authenticator instance in LoginController . I use maven, my beans.xml is found under src/main/webapp/META-INF but I'v tried to put it in src/main/webapp/WEB-INF/classes without success. Here is my code : The class to inject : @Stateless public class Authenticator { @Inject HashGenerator hashGenerator; @Inject UserPersistance

Clustered WildFly 10 domain messaging

為{幸葍}努か 提交于 2019-12-06 04:50:19
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 from a producer instance in as-node-1, consumers in all the nodes should receive the message. This is

Wildfly Custom auth-method

十年热恋 提交于 2019-12-06 04:48:44
问题 How do you add a custom authenticator in Wildfly? I used to do this in JBoss 4.2: In <JBoss> \jboss-as\server\production\deploy\jboss-web.deployer\META-INF\jboss-service.xml, add the following in : <java:property> <java:key>MY-CUSTOM-AUTH</java:key> <java:value>com.test.MyCustomAuthenticator</java:value> </java:property> In <JBoss> \jboss-as\server\production\deploy\jboss-portal-ha.sar\portal-server.war\WEB-INF\web.xml, modify : ... <login-config> <auth-method>MY-CUSTOM-AUTH</auth-method> ...

WildFly 8.1: Server is not connected. Deploy is not available

早过忘川 提交于 2019-12-06 04:18:53
问题 I'm running WildFly 8.1 in IntelliJ 14. The server starts and is accessible at localhost:8080 . The artefact is deployed and the web site can be opened. BUT As soon as I redeploy , I get: Server is not connected. Deploy is not available Nothing is written to server.log Ideas? 回答1: Make sure that your IP in stanalone.xml set to 127.0.0.1 :). This one works:). 回答2: I fixed the problem: You need to run exactly the same jdk on Wildfly and IntelliJ. Since I use MacOS and used the apple 1.6 jdk for