wildfly

Upgrade JSF / Mojarra in JBoss AS / EAP / WildFly

爱⌒轻易说出口 提交于 2019-12-24 05:12:09
问题 How do I upgrade Mojarra in JBoss server and tell it use the given Mojarra 2.x JARs instead of JBoss own jboss-jsf-api_2.1_spec-2.0.1.Final.jar as indicated in startup log? If that's relevant, I am currently using JBoss AS 7.1. 回答1: The below procedure applies to JBoss AS 7.2+ , JBoss EAP 6.1+ , and JBoss WildFly 8+ and assumes that you've full control over the server installation and configuration. This upgrades the server-wide default JSF version: Download the individual Mojarra API and

How to distribute an event to all nodes in a (Wildfly) cluster?

岁酱吖の 提交于 2019-12-24 03:08:25
问题 I would like to notify all nodes in a cluster when the state of a longer running process in my JavaEE 7 WebApp changes, so that every node can in turn notify their clients via WebSocket about that change. I am working with Wildfly 10 in a clustered environment. What JavaEE 7 API / Programming model or Wildfly Service would be todays best practice to achieve that ? 回答1: If you want to stay within JavaEE ecosystem, then JMS topic is the way to go. Topics are like broadcast channels - every

Getting out of memory error when restarting WildFly on OpenShift

╄→гoц情女王★ 提交于 2019-12-24 02:57:15
问题 I have a issue with WildFly AS on OpenShift. When i try to deploy WAR on server i keep getting following exception. 2014-12-20 04:31:33,072 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-7) JBAS010406: Registered connection factory java:/JmsXA 2014-12-20 04:31:33,444 ERROR [org.hornetq.core.client] (Thread-0 (HornetQ-client-global-threads-32821528)) HQ214017: Caught unexpected Throwable: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0

How to manage state in JAX-RS?

送分小仙女□ 提交于 2019-12-24 01:46:54
问题 How do I configure JAX-RS 2 implementation (RESTEasy 3) to send the state of the application to the client? In JSF I am able to do it using the STATE_SAVING_METHOD parameter. Is there a standard way of doing it using JAX-RS? <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> Just an example to illustrate my problem, I would like to configure the JAX-RS provider to return the cart variable state to the client, in that way

Is it posible to connect wildfly with RabbitMQ (amqp)?

雨燕双飞 提交于 2019-12-24 01:13:21
问题 I'm working in a proof of concept and I'm not able to listen messages from wildfly. Does anyone knows is this is possible? I have been trying for a lot of days :C 回答1: You could use RabbitMQ JMS Client in your application running on Wildfly. You just have to produce a the RabbitMQ JMS ConnectionFactory and Destination objects, manually with a CDI producer (if your app is JEE), or via JNDI bindings configuration as of 1.7.0 version of RabbitMQ JMS Client. For Wildfly JNDI bindings

Kerberos sql server datasource in Wildfly 8.2

a 夏天 提交于 2019-12-24 00:35:24
问题 I have a problem setting up integrated authentication with Kerberos towards a MS Sql Server on Wildfly 8.2.0. Here's what I've done so far: Managed to get it going on Wildfly 9.0.2, simply because Wildfly 9 contains the "new" login module class org.jboss.security.negotiation.KerberosLoginModule. A security domain configured like this: <login-module code="org.jboss.security.negotiation.KerberosLoginModule" flag="required" module="org.jboss.security.negotiation"> <module-option name="storeKey"

How can I do a 301 redirect from http to https in Wildfly 8.2?

一世执手 提交于 2019-12-23 23:51:42
问题 My web.xml has the following security constraint: <security-constraint> <web-resource-collection> <web-resource-name>App</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> This configuration redirects all http URLs to https via 302 redirects. Is there a way to accomplish the same except via 301 redirects in Wildfly 8.2? 回答1: One way I can

Use custom JRE for Wildfly 10

帅比萌擦擦* 提交于 2019-12-23 16:53:30
问题 Can I choose a custom JRE for a Wildfly Application Server with a property like standalone.bat -Djava.jre=<path> For my project, it is important that I can't change the value of parameter JAVA_HOME 回答1: You can set the JAVA_HOME used by WildFly. For Linux/UNIX, check the standalone.conf file: # Specify the location of the Java home directory. If set then $JAVA will # be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". # #JAVA_HOME="/opt/java/jdk" For Windows, check the standalone

Getting “404 - Not found” error with Wildfly and springboot

徘徊边缘 提交于 2019-12-23 16:18:21
问题 Hello i am trying to learn wildfly and springboot with a very simple application using eclipse. The project name is springboot-test. All the classes including the main method class are in the same package. Main method class is called 'App' which has the following code: @SpringBootApplication @RestController public class App { @Autowired private Student student; public static void main(String[] args) { SpringApplication.run(App.class, args); } @RequestMapping("/index") public String sayHello()

org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument resolvedBean must not be null

懵懂的女人 提交于 2019-12-23 12:29:10
问题 Injecting EJBs into entity listeners is available, since JPA 2.1. WildFly 9.0.2 final however, fails with the following exception. 15:41:12,125 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 149) MSC000001: Failed to start service jboss.persistenceunit."Test.ear/Test-ejb.jar#Test-ejbPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."Test.ear/Test-ejb.jar#Test-ejbPU": javax.persistence.PersistenceException: [PersistenceUnit: Test-ejbPU] Unable to