wildfly

WildFly not logging after deploying app with Logback

大兔子大兔子 提交于 2020-01-15 06:16:25
问题 I have spring boot application with Logback configured in logback.xml . This app is deployed as *.war to WildFly 8.2.1 (standalone mode) and has excluded WildFly's logging. During deployment WildFly logs all messages to console until logback for my application is configured. Last message is like "ch.qos.logback.classic.joran.JoranConfigurator@5ab89105 - Registering current configuration as safe fallback point" . After it, my app continues logging into file, but all messages from WildFly are

WildFly not logging after deploying app with Logback

别说谁变了你拦得住时间么 提交于 2020-01-15 06:13:29
问题 I have spring boot application with Logback configured in logback.xml . This app is deployed as *.war to WildFly 8.2.1 (standalone mode) and has excluded WildFly's logging. During deployment WildFly logs all messages to console until logback for my application is configured. Last message is like "ch.qos.logback.classic.joran.JoranConfigurator@5ab89105 - Registering current configuration as safe fallback point" . After it, my app continues logging into file, but all messages from WildFly are

Glassfish/Wildfly not failing if @Resource cannot be resolved?

吃可爱长大的小学妹 提交于 2020-01-15 04:50:12
问题 I am experimenting with @Resource in a servlet to see if we can use it to inject configuration parameters easily (this is servlet 3.0 webapp in Glassfish 4.1.1). I was told in https://stackoverflow.com/a/45715196/53897 that the behavior I saw of a @Resource String userName being null when used if it could not be resolved if the env-entries in web.xml were not present, to be wrong according to the specification, but that the behavior of WildFly was the same. Question is: Is this a known bug?

Security domain not found in WildFly Elytron

我与影子孤独终老i 提交于 2020-01-15 04:23:26
问题 In Wildfly 14.0.1, I have configured a security realm ProxyRealm in the console, I have used the CLI to configure a security domain ProxyDomain that uses the ProxyRealm , and then I have even created an Undertow application security domain ProxyDomain that uses Elytron's ProxyDomain . I have a simple ear with only one jar that contains an EJB, and to that ear META-INF folder I have added a jboss-app.xml with the following content: <?xml version="1.0" encoding="UTF-8"?> <jboss-app> <security

Spring eureka dashboard returns XML on wildfly

試著忘記壹切 提交于 2020-01-14 13:38:49
问题 I am trying to deploy my eureka-service at wildfly, but when i try to access the dashboard i get the following xml as response: <com.netflix.eureka.util.StatusInfo> <generalStats> <environment>test</environment> <num-of-cpus>4</num-of-cpus> <total-avail-memory>3525mb</total-avail-memory> <current-memory-usage>736mb (20%)</current-memory-usage> <server-uptime>00:01</server-uptime> </generalStats> <applicationStats> <registered-replicas>http://localhost:8761/eureka/</registered-replicas>

org.jboss.as.server.deployment.DeploymentUnitProcessingException: Apache CXF library detected in ws endpoint deployment

邮差的信 提交于 2020-01-14 13:07:07
问题 I am using Eclipse Juno and WildFly 8.2 and try to deploy soap web services with ws-security. This is my ref site. https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Authenticationandauthorization Deployment is ok! But the problem seems to be the client of Eclipse. I made some jsp codes with eclipse ide <%@ page import="javax.xml.ws.BindingProvider"%> <%@ page import="javax.xml.namespace.QName"%> <%@ page import="java.net.URL"%> <%@ page import="javax.xml.ws.Service"%> <%@

org.jboss.as.server.deployment.DeploymentUnitProcessingException: Apache CXF library detected in ws endpoint deployment

喜欢而已 提交于 2020-01-14 13:06:31
问题 I am using Eclipse Juno and WildFly 8.2 and try to deploy soap web services with ws-security. This is my ref site. https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Authenticationandauthorization Deployment is ok! But the problem seems to be the client of Eclipse. I made some jsp codes with eclipse ide <%@ page import="javax.xml.ws.BindingProvider"%> <%@ page import="javax.xml.namespace.QName"%> <%@ page import="java.net.URL"%> <%@ page import="javax.xml.ws.Service"%> <%@

Deploy Spring Boot to Wildfly 10

ぃ、小莉子 提交于 2020-01-14 08:29:08
问题 Has anyone try to deploy an springboot application to wildfly 10 succesfully? i have look for examples but i only found for wildfly 8.2 This is my application class: @SpringBootApplication @EnableEurekaServer @EnableDiscoveryClient public class ServereurekaApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(ServereurekaApplication.class, args); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder

Wildfly 10.1 Consuming All Cores

╄→尐↘猪︶ㄣ 提交于 2020-01-13 19:48:11
问题 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

Add CORS headers to response of j_security_check

眉间皱痕 提交于 2020-01-13 05:01:07
问题 I'm building a REST API with jax-rs and WildFly 10 . Some of the endpoints are secured. I'm using FORM based authentication. In my javascript code, I check the response of the AJAX request, and if it is set to 401 Unauthorized , I then present a login form to the user. When he fills it in, I POST the details to j_security_check . Running on localhost this all works fine, but when the webserver and the REST server are on different machines, the browser denies the AJAX request due to cross