wildfly

How to add context file from Wildfly to JHipster

淺唱寂寞╮ 提交于 2019-12-02 06:42:32
问题 The context root file from Wildfly AS looks like this (it must be put in a file name jboss-web.xml as explained here : <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>my-context</context-root> </jboss-web> This file and its content have to be copied into the WEB-INF folder of the WAR file. Of course I can manually add this file after the build and it works. But is there a way to do it automatically ? Is there in JHipster any folder that copies its content to the WEB-INF

f:websocket in JSF 2.3

天涯浪子 提交于 2019-12-02 06:25:43
I trying to get BalusC's JSF 2.3+ example ( How can server push asynchronous changes to a HTML page created by JSF? ) working using JBoss WildFly 12.0.0.Final I have added the JBoss JSF JAR: jboss-jsf-api_2.3_spec-2.3.3.SP1.jar However when I try and display my XHTML page which has: <h:form> <f:websocket channel="push"> <f:ajax event="updateNotifications" render=":panelGridSelect" /> </f:websocket> </h:form> I get: javax.faces.view.facelets.TagException: /enterProduct.xhtml @61,45 Tag Library supports namespace: http://xmlns.jcp.org/jsf/core , but no tag was defined for name: websocket In

Wildfly -9 javax.mail is not working

牧云@^-^@ 提交于 2019-12-02 05:57:42
问题 I am making use of Wildfly 9.0.0 Final and javax.mail api in my application. I am getting the following log: 2015-07-27 15:08:16,318 CONFIG [javax.mail] (default task-17) Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax

EJB remote client migration from JBoss AS 7.1 to Wildfly 8.1

◇◆丶佛笑我妖孽 提交于 2019-12-02 05:50:05
We developed a training application which contains a standalone java clients communicating with EJBs. The working setup included a JBoss AS 7.1 on Windows 7 and an application user created via /bin/add-user.bat. The client was coded like that: Properties jndiProps = new Properties(); jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); jndiProps.put("jboss.naming.client.ejb.context", true); jndiProps.put(Context.PROVIDER_URL, "remote://localhost:4447"); jndiProps.put

UserTransaction: javax.naming.NameNotFoundException after Migration to WildFly 8.2.0 and Java 8

爷,独闯天下 提交于 2019-12-02 05:39:12
After migrating to Java 8 and WildFly 8.2.0 I get this error on every Transaction UserTransaction: javax.naming.NameNotFoundException: UserTransaction [Root exception is java.lang.IllegalStateException: JBAS014237: Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction] at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202) at org.jboss.as.naming

Wildfly share session between EARs?

自古美人都是妖i 提交于 2019-12-02 03:45:49
I have 2 WAR applications in 2 independent EARs that I want to deploy in a single instance of Wildfly 10/JBoss 7 EAP. How can I share sessions/authentication between the 2 wars? Ex: EAR1: - WAR1 - EJB - libs EAR2: - WAR2 - libs To be clear, I would like the user to login and authenticate via WAR1, and have that session object available when he accesses WAR2 so that he does not need to log back into the system. How can I accomplish this? I cannot find documentation relating to what configuration is required to achieve this. If you only need single sign on and session sharing for apps within

How to dynamically change JMS queue MDB pool size in WildFly 10

[亡魂溺海] 提交于 2019-12-02 03:44:41
问题 I am working with WildFly 10.1 which ships with Artemis as the new JMS provider but I am unable to find how to dynamically change the number of consumer threads for a specific MDB. I have a queue, and a message listener (MDB) consuming messages from the queue, now I want to dynamically control the maximum number of consumers threads the domain must start. How can I do it using CLI? 回答1: As you want to do this configuration for a specific MDB you could firstly assign it to a dedicated pool.

JDK 8 support for Wildfly 8.1 OpenShift cartridge

。_饼干妹妹 提交于 2019-12-02 03:36:05
问题 Still no Java 8 (JDK) support for the OpenShift Wildfly 8.1 cartridge? Is this a limitation of the SELinux gear? Or can I just create a Java 8 JDK cartridge and a modified Wildfly 8 cartridge and combine them in the same gear? 回答1: As of june 3rd, there is JDK 8 support for wildfly. See https://www.openshift.com/content/support-for-jdk-8#comment-39656 As can be read here: https://community.jboss.org/people/fjuma/blog/2014/06/03/wildfly-810final-on-openshift--with-jdk-8-support new wildfly

How do I encrypt the bindCredential password in Wildfly?

旧街凉风 提交于 2019-12-02 03:29:19
问题 I am trying to configure an security domain in Wildfly (8.2.1) for binding to our Active Directory. I need to try to find a way to encrypt the bindCredential password. I am able to encrypt the data source passwords just fine using Picketbox. I only could find out to do this encryption for JBoss V6.x or before and the method employed doesn't seem to exist any longer in Wildfly. Has anyone done this and willing to share how it can be accomplished. Here is my security domain: <security-domain

JSON Serialization loop (infinite recursion) in Wildfly

本秂侑毒 提交于 2019-12-02 02:42:01
问题 I am developing a straightforward maven-based JavaEE application in IntelliJ IDEA, and obviously I would like to use Wildfly 8 for both development and production. I simply need to expose some entities through some RESTful web services. Those entities have bidirectional relationships, which leads to a loop when they are going to be serialized into JSON. Newer versions of Jackson are able to handle this kind of situation with a special annotation. To get that to work, I need to exclude Wildfly