wildfly

camel cxf on wildfly

北城余情 提交于 2020-02-06 07:43:05
问题 I'v created a SOAP webservice and I'd like to expose it with camel-cxf on wildfly. When I want to deploy it I get the following error: Apache CXF library (cxf-core-3.2.0.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach

Wildfly does not have visibility of annotated JSF classes

六眼飞鱼酱① 提交于 2020-01-25 06:50:29
问题 I'm trying to migrate an old Glassfish JEE app over to a recent LTS of Wildfly, but I've hit on a confusing issue. The application implements JSF 2.0 and Primefaces 6, with the use of JSF/PF annotations for @ManagedBean etc. Some of these annotated classes are in a shared dependency and include Beans, Converters, and general JSF components. Some of these are eager, or otherwise only have an access point in the JSF XHTML, usually for a conditional display or render. With the application

Deploy keycloak custom spi deployment

大城市里の小女人 提交于 2020-01-24 16:25:08
问题 I try to create a custom spi, in my keycloak project, following the basic keycloack structure, I add custom provider interface which extends provider, custom provider factory and implement custom spi for them as keycloak documentation says, and they do in their source code, after that i create a custom implementation for my provider and provider factory, i create the file in META-INF/services as documentation says, and I am using ear aproach to deploy like in beercloak example, but when I try

Run a Java class from Spring startup

强颜欢笑 提交于 2020-01-24 14:07:10
问题 I am using Java8 and Spring4.3.1. I have a Java/Spring application hosting RESTfult services accessed by browser and mobile app clients. Second, I have written a Chat Server that listens for events ( socket.io ) from the clients. This Chat Server is running from the classes main method. The Chat Server class has a main method that I want to run, and allow to listen for events when my Spring application starts. Is this possible? If I run the main myself, it works, but I want it to start up

Why am I getting a WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped exception?

戏子无情 提交于 2020-01-24 13:53:26
问题 I've looked at other questions relating to this error on the site but most of them are either about SessionScope or are unanswered. The only possibly helpful one is No active contexts for scope type javax.enterprise.context.RequestScoped when invoking a bean from a thread but it's not in the context I have. I'm running a JAX-RS endpoint on Wildfly 10.1 (Java ee 7). Looks something like this: @Path("") public class ServerResource { @Inject Order order; @Resource ManagedExecutorService mes;

Keycloak - Custom SPI does not appear in list

北战南征 提交于 2020-01-23 03:32:13
问题 I made a custom SPI for my keycloak server and now I have to configure it on the Admin console. I added the SPI as a module, with manual installation, so I have it on modules/{package-name}/main, with the module.xml; I have also put the on standalone.xml, and the also in the keycloak-server subsystem. After all this configuration, I then go to the admin console to configure the custom user provider and it does not appear in the list. What can I do? 回答1: Found a way of doing this, it's to add

Authorization_code grant redirection issue

牧云@^-^@ 提交于 2020-01-19 04:12:46
问题 I have implemented authorization_code grant flow which works fine when my Auth Server is run locally. A client is getting redirected to auth server login page through /oauth/authorize end point. On successful login it is getting redirected to the redirect_uri provided in the /oauth/authorize call where it is getting the authorization_code . Very well. The problem is when the Auth Server is put behind proxy the last step where after successful login client is supposed to get the authorization

What's the difference between a module and a subsystem

╄→гoц情女王★ 提交于 2020-01-17 08:39:06
问题 In the context of JBoss and Wildfly, what's the difference between a module and a subsystem? 回答1: Jboss modules is a class loading system: JBoss Modules is a standalone implementation of a modular (non-hierarchical) class loading and execution environment for Java. In other words, rather than a single class loader which loads all JARs into a flat class path, each library becomes a module which only links against the exact modules it depends on, and nothing more. It implements a thread-safe,

Wildfly Maven plugin + hot deployment

China☆狼群 提交于 2020-01-17 03:51:04
问题 I have a Java Spring application, configured in Eclipse Mars and I am running Wildfly 9 from with in Eclipse. I am using the wildfly-maven-plugin to deploy to server. These are the steps I follow: Start the server from eclipse and do Maven build which also deploys the application to server. I can see whole lot of logs on server of "successful deployment"and I can access my application in browser. It creates a folder under "/standalone/data/content" but no war or exploded WAR under "standalone

wildfly 配置 pinpoint

ぃ、小莉子 提交于 2020-01-16 04:31:19
wildfly版本10,pinpoint版本1.8.4 set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.logmanager,com.navercorp.pinpoint.bootstrap,com.navercorp.pinpoint.common,com.navercorp.pinpoint.exception" set "JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager" set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:D:/soft/wildfly-10.0.0.Final2/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.3.Final.jar" set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:D:/soft/wildfly-10.0.0.Final2/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss