wildfly

Keycloak user federator

自闭症网瘾萝莉.ら 提交于 2020-01-05 10:31:15
问题 I'm trying to put my new custom Federator in Keycloak so I've compiled my jar filed created using mvn clean install into standalone/configuration/providers following this guide. I then restarted the Wildfly 8 server but it doesn't seem to register my customer Federation provider. Is there a reason why this isn't working? 回答1: Add a file META-INF/services/org.keycloak.models.UserFederationProviderFactory containing the full classname of your custom provider factory . For example be.abc.def

Wildfly 8.1.0 shutting down automatically

眉间皱痕 提交于 2020-01-05 09:04:14
问题 I have a multi-threaded application that is built as a web-application (.war file). The structure of the web-application is, the ServletContextListener starts the threads, and shuts them down when the server is brought down. This application works charm in JBoss-5.1.0 production server. If the same war file is deployed in the Wildfly-8.1.0, as expected the ServletContextListener brings up all the threads, the threads also runs, but after somewhere around 90-100 minutes the Wildfly starts

Creating security domain using wildfly-maven-plugin has no effect

放肆的年华 提交于 2020-01-05 00:45:09
问题 I found this which uses /subsystem in its command, so I tried it with a different subsystem command (I use one to create a security domain), it builds successfully, but has no effect in standalone.xml. <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.1.0.Alpha1</version> <configuration> <execute-commands> <commands> <command>/subsystem=security/security-domain=secureD:add(cache-type=default)</command> <command>reload</command> <command>

JAX-RS Request interceptor missing dependencies

你说的曾经没有我的故事 提交于 2020-01-04 06:28:59
问题 Here's the intereceptor code, which is the only difference in whether I get these errors. package com.lm.infrastructure; import java.io.IOException; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.container.PreMatching; import javax.ws.rs.ext.Provider; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Provider @PreMatching class RequestLogger implements ContainerRequestFilter { @Override public void filter(

JTDS module under WildFly (JBoss)

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 05:52:09
问题 I am busy upgrading from JBoss 7.1.1 to Wildfly 8.0.0.Beta1. I was using the JTDS database driver under JBoss without problems, but it is not working under WildFly. I have creates the /net/sourceforge/jtds/main/ folder structure under modules in my WildFly installation and added the module.xml file, but Wildfly doesn't seem to be picking it up. I have also tried the /modules/system/layers/base/ folder as this is a new one under WildFly, but that doesn't work either and I have downloaded the

Session sharing on WildFly is not working

喜你入骨 提交于 2020-01-04 03:17:08
问题 I just migrated from JBoss EAP to WildFly and I am facing some issues with session sharing. Previously in JBoss EAP, in my web.xml I added the below configuration: <session-config> <cookie-config> <path>/</path> </cookie-config> </session-config> And both the applications were generating the same session id. But in WildFly the problem is, application 1 will write session as for example 123 in the path / , and if I open application 2 it will override the session as say 456 . Now if I refresh

log4j.properties doesn't work correctly on wildfly

允我心安 提交于 2020-01-04 02:42:26
问题 I have a log4j.properties file in the classpath. It was found at the location APP/XX.jar/log4j.properties. And I noticed that in the ear file I can also find log4j-1.2.17.jar in lib folder. But whatever I wrote in the log4j.properties file, they were ignored. Like: log4j.rootCategory=WARN Or something like this: log4j.rootCategory=INFO, A1 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.logger.org.springframework=WARN But all of the loggings will still be printed on the server. Did I

“JBAS016069: Error injecting persistence unit into CDI managed bean.” When deploying WAR with dependency to EJB-JAR

放肆的年华 提交于 2020-01-03 17:42:53
问题 I have the following setup: EJB-JAR: Contains some entities and DAOs. Holds the persistence.xml for the EntityManager used in the DAOs. Test-WAR: Contains a servlet that injects one of the DAOs of the EJB-JAR (either using @Inject or @EJB). The Problem: I am currently deploying the applications to Wildfly 8.x When I deploy the jar with a singleton that is started after deployment, I'm able to use the DAOs as intended. I'm getting results from the DB ... But when I try to deploy the war with a

SSL redirection from Apache to Wildfly

半世苍凉 提交于 2020-01-03 17:07:22
问题 I have two projects running on Wildfly-8 and I have two SSL certificates for each of them and one IP. I figured out that I should have one IP for one SSL certificate. But I needed to use these two SSL for one IP. I couldn't find a way to do it with Wildfly but there was a way to do it with Apache Server. So,I installed Apache Server up to Wildfly. I listen https port(443) on Apache and redirect it to Wildfly's http port(I used 8080). It works without any problem. What I wonder is; 1. Is

Hibernate 4 Wildfly 8 logging not working

蓝咒 提交于 2020-01-03 16:12:21
问题 How do I get hibernate 4 to log via logback? I have a war deployed to wildfly 8 final, and I am using slf4j with logback. The logging setup is working 100% in the application with both the console appender and file appender working as intended. Here is what I did to get slf4j + logback working: Excluded the logging subsystem with jboss-deployment-structure.xml in WEB-INF: <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <exclude-subsystems> <subsystem name=