undertow

Register new undertow SessionManager

北城以北 提交于 2019-12-04 15:13:48
I have wildfly 8.1 server running. I have my own SessionManager implementing io.undertow.server.session.SessionManager. And i want to configure the system to use my session manager. Where and how should i configure/add new settings for my session manager? public class StartupBeanExtension implements Extension, ServletExtension { @Override public void handleDeployment(DeploymentInfo deployment, ServletContext context) { boolean sessionPersistenceEnabled = Boolean.parseBoolean(BeanUtils.getBean(PropertyResolver.class).getValue("UAM.SessionPersistenceEnabled")); if (sessionPersistenceEnabled) {

Wildfly / Undertow : Multiple aliases for one host

天涯浪子 提交于 2019-12-04 09:07:52
In standalone/configuration/standalone-full.xml , I've declared the following host, that works <host name="webhost" alias="gateway.example.com" /> When I try to add another alias, I'm given Error 404. <host name="webhost" alias="gateway.example.com www.gateway.example.com"/> The DOCUMENTATION says list of aliases is whitespace separated. There was a bug in documentation. It is comma separated list of hosts not white space separated. example would be <host name="default-host" alias="localhost, some.host" > I also fixed documentation to to address this 来源: https://stackoverflow.com/questions

If a web server is non-blocking, does this mean it is handling IO the same as node.js?

浪子不回头ぞ 提交于 2019-12-04 03:11:46
I will soon be using a server named Undertow. The website says: Undertow is a flexible performant web server written in java, providing both blocking and non-blocking API’s based on NIO If Undertow allows non-blocking, is that the same as node.js? I don't mean the languages or anything like that. I have a separate project where I thought node.js would have been a good choice, but if I can use a single product for multiple projects it would be helpful. EDIT: I found this question. Java NIO non-blocking mode vs node.js asychronous operation And I am starting to think I have confused things.

SpringBoot中教你手把手配置 https

我怕爱的太早我们不能终老 提交于 2019-12-03 15:45:20
升级 https 记录 1、去阿里云购买证书(免费版),并提交审核资料 购买的证书 2、下载证书 下载证书 3、查看上图页面的第三步 JKS证书安装 4、在证书目录下执行阿里云提供的命令,密码都填 pfx-password.txt 中的内容(三次),会生成 your-name.jks 文件。 生成 jks 证书 此处我已改名为 any.jks 5、将 any.jks 复制到 spring boot 应用的 resources 目录下 移动证书 6、在 application.yml 中配置证书及端口,密码填写第四步中的密码 image.png 此配置会使 Undertow 容器监听 443 端口,那么只有在域名前添加 https:// 才能访问网站内容,添加 http:// 则不行,所以需要让 Undertow 容器监听 80 端口,并将 80 端口的所有请求重定向到 443 端口,即完成 http 到 https 的跳转。 7、添加 SslConfig.java ,配置 Undertow 监听 80 端口。 @Configuration public class SslConfig { @Bean public EmbeddedServletContainerFactory servletContainer() {

Upgrad to Wildfly 8.2 with error

匿名 (未验证) 提交于 2019-12-03 09:21:58
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I upgraded from Wildfly 8.1 to 8.2. My first JSF request resulted in this error, where this worked before. What is the culprit? Does one need to update any dependencies? JDK 8 required? 16 : 39 : 36 , 127 ERROR [ io . undertow . request ] ( default task - 1 ) L : 80 UT005023 : Exception handling request to / ccms / splitter . xhtml : java . lang . IllegalStateException at com . sun . faces . context . FacesContextImpl . assertNotReleased ( FacesContextImpl . java : 705 ) [ jsf - impl - 2.2 . 8 - jbossorg - 1.jar :] at com . sun .

Is there any way to restrict access by configuring in WildFly?

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any way to restrict access by configuring in WildFly. I would like to know whether we can add a list of IPs that can only access the server? Is there any way to blacklist IPs in server level? I am checking a feature like this: http://boseca.blogspot.in/2010/12/programmatically-addremove-ip-security.html 回答1: You can also implement the IP filter on JBOSS level by adding a filter-ref and expression filter as shown below <subsystem xmlns="urn:jboss:domain:undertow:3.0" statistics-enabled="true" instance-id="instanceid"> <buffer-cache

error: No validator could be found for type: java.time.LocalDate

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the @Past annotation. @Past(message = "A data deve estar no passado.") private LocalDate dataAbertura; But, when the validation occurs I get the following exception: 21:46:12,424 ERROR [io.undertow.request] (default task-35) UT005023: Exception handling request to /financeiro/clientes/pessoafisica: javax.servlet.ServletException: javax.validation.UnexpectedTypeException: HV000030: No validator could be found for type: java.time

Register new undertow SessionManager

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have wildfly 8.1 server running. I have my own SessionManager implementing io.undertow.server.session.SessionManager. And i want to configure the system to use my session manager. Where and how should i configure/add new settings for my session manager? 回答1: public class StartupBeanExtension implements Extension, ServletExtension { @Override public void handleDeployment(DeploymentInfo deployment, ServletContext context) { boolean sessionPersistenceEnabled = Boolean.parseBoolean(BeanUtils.getBean(PropertyResolver.class).getValue("UAM

Enabling HTTPS in Undertow

痞子三分冷 提交于 2019-12-03 06:25:42
问题 We have a working Apache mod_ssl configuration. I want to enable HTTPS support for Undertow, so that it listens for both http and https, thus obviating the need for Apache. I've looked into Undertow's javadocs. The Undertow.Builder class has two addHttpsListener methods with the following signatures: public Builder addHttpsListener(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers); public Builder addHttpsListener(int port, String host, SSLContext sslContext) { So

Spring Security on Wildfly / Undertow: error executing the filter chain

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working in order to integrate Spring Security SAML Extension with Spring Boot . I developed a complete sample application, all the source code is published on GitHub: spring-boot-saml-integration on GitHub By running the WebApp as Spring Boot application (through Spring Tool Set, by using an embedded Application Server), it works fine. Unfortunately, the auth process doesn't work on Undertow/WildFly (and I must use it as production AS). By logging, I can see that the IdP performs the AuthN process and the instructions of my custom