wildfly

JPA 2.1 Entity Graph returns duplicated results

怎甘沉沦 提交于 2019-11-30 20:32:52
I started using the new entity graph feature in JPA 2.1 to specify the Lazy collections that must be loaded. Consider following classes: @Entity @NamedQueries({ @NamedQuery(name="findWithFilterAttr","select a from A a where a.filterAttribute like :filter") }) @NamedEntityGraphs({ @NamedEntityGraph(name = "graph.childs", attributeNodes = @NamedAttributeNode("childs"))}) public class A{ @Id private long id; @OneToMany(mappedBy="parent") private List<B> childs; private String filterAttribute; } @Entity public class B{ @Id private long id; @ManyToOne private A parent; } When I execute the named

FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)

不羁的心 提交于 2019-11-30 19:49:56
问题 I have a bean: import javax.faces.context.FacesContext; import javax.faces.view.ViewScoped; ... @Named @ViewScoped public class SimpleBean implements Serializable { private static final long serialVersionUID = 1L; @Inject protected FacesContext facesContext; ... } According to https://arjan-tijms.omnifaces.org/p/jsf-23.html#1316 this should work with 2.3 ... When deploying to Wildfly 14, this results in: 13:02:33,516 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 72)

CentOS7 下安装 Nginx + MongoDB + Wildfly

感情迁移 提交于 2019-11-30 18:22:41
一. 准备 以下是本次安装用到的系统及软件版本: CentOS 7.0 Nginx 1.9.3 MongoDB 3.0.5 Wildfly 9.0.1 JDK 8u51 安装 Nginx 还需要到 Pcre 和 Zlib,它们的版本是: Pcre 8.37 Zlib 1.2.7 二. 安装操作系统 1. 安装界面语言 CentOS 7 的安装引导界面比较清晰,安装界面语言选择简体中文即可。 2. 安装信息摘要 在安装信息摘要界面有一个软件选择,里面定义了一些常用场景的软件包集合,这里我们选择基础设施服务器。 基础设施服务器 是没有可视化操作界面的,如果需要可视化操作界面,可以选择带 GUI 的服务器。 在安装目标位置中,可以根据需要自定义磁盘划分。 CentOS 7 默认划分磁盘建议的 boot 大小为 500M,如果自定义划分磁盘,建议也将 boot 设置为 500M。 系统网卡默认是禁用的,可以在 NETWORK & HOST NAME 中启用。 设置完成后,就可以继续安装了。 3. 安装过程 在安装过程中,需要设置 root 用户的密码。如果上一步骤中选择的是基础设施服务器,整个安装过程会很快结束,如果是选择带 GUI 的服务器,那么安装过程会稍慢一些,并且安装完成后会要求设置一个普通用户用于系统平常操作。 4. 安装编译器 在选择安装软件集合时,如果没有选择附加的软件包

wildfly integration with keycloak 403 forbidden error

蓝咒 提交于 2019-11-30 18:15:43
问题 I have an application integrated with keycloak. THe application runs on wildfly server. I use web.xml to authenticate keycloak(as Login config). Apart from that i use keycloak.json file, where i define the keycloak realm settings in application. When i invoke the application pages, the keycloak login pages opens, after entereing the credentials, it comes back to wildfly with 403 forbidden error. Previously, the same setup was working but now after enabling ssl, i'm facing this issue. Please

In JBoss/WildFly should I enable JTA on data source to use with JPA?

主宰稳场 提交于 2019-11-30 18:04:32
问题 In JBoss/WildFly, when configuring a data source, there is a JTA option, which is disabled by default: <datasource jta="false" jndi-name="java:/wt/testds" pool-name="testds" enabled="true" use-ccm="false"> ... </datasource> Now I want to associate this data source with JPA using JTA transaction type: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

JSF 1.2 on Wildfly 8 Final - weld-core-jsf is still referencing JSF 2.2 API

眉间皱痕 提交于 2019-11-30 15:46:06
I'm currently migrating a JSF-1.2 app to Wildfly 8 Final and am stuck :( First of all, I've read many post with related issues (e.g. https://community.jboss.org/message/845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1 ) but the proposed solution (excluding the weld subsystem) doesn't work for me. What I did: I followed the multi-jsf feature tutorial here and installed JSF 1.2 as a module for wildfly (to be exact, 3 modules). The next was that I added exclusions for javax.faces.api and com.sun.jsf-impl (main slots) as well as the corresponding dependencies to the 1.2 slots to my jboss

JBoss wildfly 8.x Provider “vfs” not installed when using java nio Paths

寵の児 提交于 2019-11-30 15:36:59
问题 I'm trying to export my spring application from glassfish 4 to JBoss wildfly 8.x or 9 alpha, but when my application starts in some part of my code throws the exception: Caused by: java.lang.RuntimeException: java.nio.file.FileSystemNotFoundException: Provider "vfs" not installed at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:218) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org

Wildfly caches roles after logout in a web application

谁都会走 提交于 2019-11-30 14:13:49
jboss-web.xml <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <security-domain flushOnSessionInvalidation="true">my-aktion </security-domain> <valve> <class-name>utils.MyAuthenticator</class-name> </valve> </jboss-web> standalone.xml <security-domain name="my-aktion" cache-type="default"> <authentication> <login-module code="utils.MyAuthenticator" flag="required"> <module-option name="dsJndiName" value="java:jboss/datasources/MySQLDS"/> <module-option name="principalsQuery" value="SELECT password FROM user WHERE username=?"/> <module-option name="rolesQuery" value="SELECT r.role, 'Roles'

JBoss wildfly 8.x Provider “vfs” not installed when using java nio Paths

浪子不回头ぞ 提交于 2019-11-30 14:11:47
I'm trying to export my spring application from glassfish 4 to JBoss wildfly 8.x or 9 alpha, but when my application starts in some part of my code throws the exception: Caused by: java.lang.RuntimeException: java.nio.file.FileSystemNotFoundException: Provider "vfs" not installed at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:218) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

How to run Wildfly 14 with java 11?

*爱你&永不变心* 提交于 2019-11-30 13:51:28
I'm using Wildfly 14 and Java 11 in its runtime configuration. When I start the server I get org.jboss.modules.ModuleNotFoundException: java.se at org.jboss.modules.Module.addPaths(Module.java:1266) at org.jboss.modules.Module.link(Module.java:1622) at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296) at org.jboss.modules.Main.main(Main.java:437) How do I run Wildfly 14 with java 11? There was some change in Java 11 where java.se must be read on the module path. In Wildfly's run configuration under VM arguments add