wildfly

Allow the RSA v1.5 Key Transport Algorithm for WildFly / JBossWS / CXF / WSS4J stack

夙愿已清 提交于 2019-12-10 10:57:58
问题 In response to a security advisory (see http://cxf.apache.org/note-on-cve-2011-1096.html) regarding the RSA v1.5 key transport algorithm, both CXF and WSS4J projects have disallowed use of all related algorithms by default. They have however supplied a configuration tag "ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM" which should re-allow these algorithms (see https://ws.apache.org/wss4j/config.html) Our problem is getting these frameworks (JBossWS / CXF / WSS4J) to accept/use this configuration

JavaEE Wildfly EJB not injected, war-only project

怎甘沉沦 提交于 2019-12-10 10:55:58
问题 I'm new to JavaEE and I created a "hello world" project, using Hibernate as JPA provider, build using gradle and deployed to Wildfly . I want to use @Stateless bean for database-aware class, that will do all operations on DB, and then inject it to all "JAX-RS" classes, that contain REST endpoints. Database class: @Stateless public class DatabaseManager { @PersistenceContext EntityManager entityManager; public DatabaseManager() { } public String sayHello() { // do some db-stuff return "EHLO";

JMS 2.0 QueueBrowser on Wildfly does not return messages

谁说胖子不能爱 提交于 2019-12-10 10:54:49
问题 I have 2 simple EJB beans. The first one is a timer method that is called every second. In this method I add 10 random messages to a TestQueue. @Singleton @Startup public class Timer { @Inject private JMSContext context; @Resource(mappedName = "java:/jms/queue/TestQueue") private Queue queue; @Schedule(hour = "*", minute = "*", second = "*/1", persistent = false) @AccessTimeout(unit = TimeUnit.DAYS, value = 1) public void addToQueue() { for(int i = 0; i<30; i++) context.createProducer().send

Wildfly 8.0.0.Final JTA transaction issues

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 10:06:55
问题 Since we use a lot of @ApplicationScoped beans with transaction but we do not want to use EJBs (ApplicationScoped bean does not work with stateless beans), we create our own transaction interceptor such as: @Resource UserTransaction tx; @Resource(mappedName="java:jboss/TransactionSynchronizationRegistry") TransactionSynchronizationRegistry tsr; @AroundInvoke public Object manageTransaction(InvocationContext context) throws Exception { Object result; if (Status.STATUS_NO_TRANSACTION == tsr

Wildfly/JBoss deployment startup order

牧云@^-^@ 提交于 2019-12-10 09:22:25
问题 We use a service orientated architecture approach where we have some core services used by other services. On startup, our services usually load up a cache of data from the core services so that it's available when a request comes in or scheduled tasks run. I'm using Wildfly 8.2.0 and have Project A which depends on Project B (both are .war's). Project A needs to wait for Project B to be loaded in order to start up. Here is jboss-deployment-structure.xml in project B: <?xml version='1.0'

Required ports for JMS using HornetQ (JBoss) to expose on docker container

断了今生、忘了曾经 提交于 2019-12-10 04:22:34
问题 I'm using Docker to link JMS server container to another JMS client container. But when I run the server in the docker container, the client can not connect to the server correctly. I exposed port 443 on docker (Is there any other port which JMS uses?) I can successfully create destication, but not the JMS context: String PROVIDER_URL = "https-remoting://MYDOMAIN:443"; ... /** PASSED **/ Destination destination = (Destination) namingContext.lookup(destinationString); /** HAS ERROR **/

Spring Security Kerberos chained with basic

ぐ巨炮叔叔 提交于 2019-12-10 04:15:05
问题 I have a hopefully quick question about Spring Security. I am looking for a solution to integrate security into our application which provides SSO but HTTP basic as well. One of the automated pieces of our system can only support basic authentication and we are pretty locked into it. Currently we are targeting to use Kerberos for our SSO solution and then also support basic (for very restricted usage). All of this will protect RESTful web services that run through resteasy. Does anyone see

Keycloak - Infinispan Redis cache store

怎甘沉沦 提交于 2019-12-10 03:56:03
问题 Currently setting up a keycloak cluster in standalone-ha mode, to be able to run on docker swarm. In keycloak, the user sessions are cached in an embedded infinispan store and infinispan can be configured to be a distributed cache across the cluster. I have also set the owner to be 2, but the problem is that.. during scale-down, there is a possibility for the user-sessions to be lost, If both the owners containing the cache are killed during scale-down. I have also read about Infinispan Redis

WildFly running, project deployed, but 404

北城以北 提交于 2019-12-10 02:31:04
问题 i cant understand why for the project it return 404 or cant connect to the host, since the wildfly start page open perfectly My web.xml <?xml version="1.0"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>HelloWorld</display-name> <!-- <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome

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

对着背影说爱祢 提交于 2019-12-09 23:16:06
问题 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