wildfly

Wildfly: Encrypt password and username for database

旧时模样 提交于 2019-12-04 20:41:17
I would like to hand over a webapplication to some people but these people should not allowed to has access to the database with some tools. Using the webapplicaton and in the background the database is ok. Wildfly has a config with these code: <xa-datasource jndi-name="java:jboss/datasources/ExampleXADS" pool-name="ExampleXADS"> <driver>h2</driver> <xa-datasource-property name="URL">jdbc:h2:mem:test</xa-datasource-property> <xa-pool> <min-pool-size>10</min-pool-size> <max-pool-size>20</max-pool-size> <prefill>true</prefill> </xa-pool> <security> <user-name>sa</user-name> <password>sa<

“experimental” status of JGroups Master/Slave backend for hibernate search and infinispan

喜夏-厌秋 提交于 2019-12-04 20:15:07
We use hibernate-search for fulltext indexing of our entities in wildfly 8.2 (using the hibernate/hibernate-search and infinspan libraries inlcuded with wildfly 8.2). Running as standalone node or in a domain with a dedicated hibernate search master and the org.hibernate.search.store.impl.FSDirectoryProvider this has been working fine for several years (and jboss versions). We would now like to deploy this system to a HA clustered environment with wildfly 8.2 running behind a load balancing proxy. We want to have a dynamically scalable cluster without a point of failure in the sense of a

Cached connection manager in jboss/wildfly

一曲冷凌霜 提交于 2019-12-04 19:49:34
问题 I have defined a datasource for JBoss AS 7.4, with min/max pool sizes, tracing of idle connections etc. I am confused about the datasource use-ccm property. What does it do? Why use it? I thought the datasource itself manages the connection pool. 回答1: What does it do? It's just a useful debugging tool to detect connection leaks in manually managed transactions (BMT) by inspecting its logging. When turned on in debug mode, it will log all connections acquired and released by application code,

How to force https on wildfly 8.1 in openshift?

北慕城南 提交于 2019-12-04 18:30:37
So I have this app running on openshift that uses the wildfly 8.1 cartridge. I would like to force all urls to go through https instead of http. Https is working fine, but I can also access the same pages using http. Which is what I want to disable. I've found this KB article: https://www.openshift.com/kb/kb-e1044-how-to-redirect-traffic-to-https but this doesn't describe the configuration for wildfly specifc. This is my standalone.xml config from wildfly on openshift: http://pastebin.com/hg7WY5Uj Fixed. Added the following to my web.xml: <security-constraint> <web-resource-collection> <web

Configuration GZip at Wildfly

蓝咒 提交于 2019-12-04 18:09:00
问题 I'm with a problem to configure the GZip in my Wildfly server used the following configuration on the server: <subsystem xmlns="urn:jboss:domain:undertow:1.2"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http"/> <host name="default-host" alias="localhost"> <location name="/" handler="welcome-content"/> <filter-ref name="gzipFilter" predicate="path-suffix['.css'] or path-suffix['.js'] or path-suffix['.xhtml']"/> <filter-ref name=

Retrieve Keycloak user data using received access token

限于喜欢 提交于 2019-12-04 17:23:35
I am developing a WildFly-Backend (in Java) that accepts HTTP requests (from a custom Frontend) that are signed with the user's Keycloak bearer access token through the "Authorization" HTTP header. The Backend connection itself is already secured with the Keycloak adapter for WildFly, but internally, I want to check who the user is (user groups, name, etc.) and return verying responses. I figured that it would be possible to just send this data from the Frontend, but then people could easily fake the request once they have an access token. Is there a way to retrieve things like user data while

Keycloak provider and user storage

丶灬走出姿态 提交于 2019-12-04 15:24:20
I have a running java ee application and now i want to integrate keycloak as authentication server. The only thing i have troubles is the user storage. I want to have all the user data in my java application. The problem now: If the user registers on the keycloak frontend, my java application doesn´t know that the user has registered, so i cannot create a new entity. I found out that keycloak is able to load some custom modules ( https://keycloak.github.io/docs/userguide/keycloak-server/html/providers.html ) but i haven´t found any examples. Is there any solution where keycloak notifys my java

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 throws “Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam” error

≯℡__Kan透↙ 提交于 2019-12-04 14:15:56
Im using wildfly 9.0 to deploy my war file. I have java LocalDateTime, Java Money types defined in my REST GET endpoints. When i deploy my war file, i get following error[1]. Based on this answer [2] I have written "ParamConverterProvider" implementations for both types. It was working fine( I haven't seen same issue again till now) and now i get same issue. Any clue? [1] Caused by: java.lang.RuntimeException: Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam(\"totalMoneyVolumeForPeriod\") on public javax.ws.rs.core.Response

PSQLException: Large Objects may not be used in auto-commit mode

♀尐吖头ヾ 提交于 2019-12-04 14:15:08
I am using WildFly 10, Java EE, JPA, and Hibernate. Recently I migrated my application from MySQL to PostgreSQL. While using MySQL, I would store images in my entities using: @Lob @Basic(fetch = FetchType.LAZY) private byte[] image; This worked great, and MySQL used a LONGBLOB to store the data. After switching to PostgreSQL, the column type is OID , and I receive this error when persisting the image: Caused by: org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode. at org.postgresql.largeobject.LargeObjectManager.createLO(LargeObjectManager.java:308) at org