wildfly-8

How to catch FailedLoginException in Picketbox/Undertow on Wildfly 8 to apply CORS

亡梦爱人 提交于 2019-12-06 00:43:51
With the help of a ContainerResponseFilter I am able to apply CORS headers to all outgoing Responses, and with an ExceptionMapper I can do the same on all Errors and Exceptions, except for any authentication related Exceptions that Picketbox/Undertow is supposed to throw in Wildfly. My ExceptionMapper never catches it no matter what I try, and as a result, the frontend can't read the 401 status since the response doesn't have the CORS headers appended (the XHR HTTP status code just becomes 0). I am using this PBKDF2 setup to authenticate against a MySQL database, and at first I thought that

Can a deployment stop itself?

大憨熊 提交于 2019-12-05 18:40:59
I'm currently searching for a way to stop a deployment on wildfly programmatically. Background: The application does some health checks in its startup phase using an MBean. If the app determines that the environment is not valid because some resources are missing, it needs to stop its own deployment. The way it was: The application was formerly running on JBoss 4 and simply stopped the whole app server calling the shutdown command using JMX. In case this command failed, it simply terminated the whole JVM using System.exit(1). Current problems: Calling shutdown() via JMX does not work on

Wildfly/JBoss deployment startup order

让人想犯罪 __ 提交于 2019-12-05 14:49:27
We use a service orientated architecture approach where we have some core services used by other services. On startup, our services usually load up a cache of data from the core services so that it's available when a request comes in or scheduled tasks run. I'm using Wildfly 8.2.0 and have Project A which depends on Project B (both are .war's). Project A needs to wait for Project B to be loaded in order to start up. Here is jboss-deployment-structure.xml in project B: <?xml version='1.0' encoding='UTF-8'?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> <deployment>

How to setup different clusters in common IP

断了今生、忘了曾经 提交于 2019-12-05 07:09:04
问题 I have many wildfly-8.2 nodes that has IP address 10.4.0.X. I need to group them in 2 different clusters. Unfortunately I received message from nodes that doesn't included in a cluster. Each cluster receives messages from all nodes since they are all under 10.4.0. Here is my mod_cluster configuration in Apache: # MOD_CLUSTER_ADDS <IfModule manager_module> Listen 10.4.0.1:10001 ManagerBalancerName testbalancer <VirtualHost 10.4.0.1:10001> <Location /> Order deny,allow Deny from all Allow from

How to view and edit Infinispan cached data remotely

北慕城南 提交于 2019-12-05 06:58:33
I have an Infinispan cache embedded in a WildFly 8.2 server. I added to standalone.xml inside <subsystem xmlns="urn:jboss:domain:infinispan:2.0"> : <cache-container name="mycache" default-cache="cachedb"> <transport lock-timeout="600000" /> <replicated-cache name="cachedb" batching="true" mode="SYNC" /> </cache-container> ...and injected the cache container like this: @Singleton @Startup public class CacheManager { @Resource(lookup = "java:jboss/infinispan/container/mycache") private CacheContainer container; . . . . } I can use the cache in my applications. However the requirement is to see

WildFly 8 Logging Levels

痴心易碎 提交于 2019-12-05 06:13:38
How do I modify the WildFly 8 logging levels, specifically server.log. Currently I suspect they default to INFO and would like to change it to Debug or Error. For reference I've been exploring these articles https://docs.jboss.org/author/display/WFLY8/Logging+Configuration https://docs.jboss.org/author/display/WFLY8/How+To And suspect this is correct; <subsystem xmlns="urn:jboss:domain:logging:2.0"> <console-handler name="CONSOLE"> <level name="DEBUG"/> <formatter> <named-formatter name="COLOR-PATTERN"/> By default the console-handler is set to INFO and the FILE handler does not have a level

Wildfly port offset not working with Arquillain

孤者浪人 提交于 2019-12-05 05:56:23
问题 Up until now I've been running my intergration tests using JBOSS AS 7 managed with Arquillian Testing framework. I have been setting the offset by 100 This has been working fine but now I want to transfer my integration tests to Wildfly AS managed but the same tests fail with the following error: arquillianBeforeSuite(com.aeroflex.teravm.selfinstall.core.ejb.SampleServiceIT) Time elapsed: 130.749 sec <<< FAILURE! org.jboss.arquillian.container.spi.client.container.LifecycleException: Could

How can i run wildfly 8 in port 80

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 00:54:38
问题 How can i run wildfly 8.2.1 in port 80? I can run wildfly in different ports by changing the offset as below. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}"> But unable to run in port 80. 回答1: Offset adds that value to all ports. So if you had http set to the default port 8080, an offset of 100 would set it to 8180. You want to set the socket for http. <socket-binding-group name="standard-sockets" default

Not able to deploy multiple war packages to different hosts listening to different ports on Wildfly 8.1.0 Final?

家住魔仙堡 提交于 2019-12-04 20:08:18
My use case involves deployment of two different packages (war files) on a single Wildfly server. In standalone-full.xml my socket-binding-group looks like this after addition of the extra socket as below <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> <socket-binding name="ajp" port="${jboss.ajp.port:8009}

JBPM 6.2. How to deploy a workflow directly from Eclipse instead of KIE workbench?

徘徊边缘 提交于 2019-12-04 19:13:48
I am using Eclipse Luna and WildFly 8.1 with JBPM 6.2. Currently, my Eclipse is configured so that I can start both the WildFly 8.1 server and the KIE workbench directly from within Eclipse. Previously, I had created an Evaluation.bpmn workflow from the KIE workbench and was able to succesfully deploy it and see the workflow logs in the database tables. However, is there a way to create a JBPM project in Eclipse and deploy and start the workflow directly from Eclipse? If so, how can I do it? This isn't deploying from eclipse. The best way is: Create a m2e project mentioned by @jl987 Create a