wildfly

JAX-RS REST service + EJB on WildFly 10, always adds no-cache HTTP header in responses

江枫思渺然 提交于 2019-12-24 09:49:56
问题 I have wrote a stateless EJB that provides a rest service. I am working with the Wildfly 10 application server and developing with the Netbeans IDE. I have tried to cache the return values of few methods for few hours by adding a max-age header in the http-response of the service methods. Please consider this is a simplified version of my bean: @Stateless @DeclareRoles({"role1","role2"}) @RolesAllowed({"role1","role2"}) @Path("api-dummy") public class DummyApiREST { @EJB private StuffFacade

Wildfly 11 connection to remote Artemis ActiveMQ server configuration

杀马特。学长 韩版系。学妹 提交于 2019-12-24 09:33:44
问题 It appears that the netty-connector to the remote client is not happy! For now, I have active my running on my local machine with the standard 616161 port. I followed the directions at https://docs.jboss.org/author/display/WFLY/Connect+a+pooled-connection-factory+to+a+Remote+Artemis+Server Here is the error: 12:18:50,707 INFO [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 68) AMQ221007: Server is now live 12:18:50,707 INFO [org.apache.activemq.artemis.core.server]

Creating a connection with WildFly 10 and Jaybird 3.0 fails

拜拜、爱过 提交于 2019-12-24 09:12:24
问题 I have upgraded my Jaybird dependency in Wildfly 10 from Jaybird 2.2.11 to Jaybird 3.0.0-alpha-1. When I try to create a connection I now get the following stacktraces The first connection after startup (when testing in the admin console): 2016-08-27 10:50:45,354 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (External Management Request Threads -- 2) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to

(Transaction not rolling back) Spring-data, JTA, JPA, Wildfly10

假装没事ソ 提交于 2019-12-24 08:23:57
问题 I got this problem for a while and can't figure out what I am doing wrong. Here is the context: Spring 4.3.4.RELEASE Spring-data-jpa 1.10.6.RELEASE Hibernate 5.2.5.Final I'm using wildfly 10, starting via maven plugin configured datasource for JNDI lookup correctly using spring-data with @Repository on interfaces created entityManagerFactory as a spring bean (LocalContainerEntityManagerFactoryBean) as for transaction manager, I tried to use both 'tx:jta-transaction-manager' and spring bean

Spring boot deployment issue on jboss

旧时模样 提交于 2019-12-24 07:58:34
问题 After deploying spring boot project on jboss ,every things work great except my schdule task.i have annotated my main class with @enablescheduling and @component on my schedule method class and @scheduled on my method.but after running successfuly without error on jboss ,my schedule task does not fire.i really need a solution. Tnx every body Below is my config class and my schedule classes: @SpringBootApplicatio @Enablescheduling public class Application extends SpringBootServletInitializer {

Infinispan replicated cache not replicating objects for read

ε祈祈猫儿з 提交于 2019-12-24 07:43:57
问题 We are trying to install a replicated cache across two infinispan nodes running on Wildfly 11 inside of Openshift. When we write an object on one node it doesn't show up on the other node for reading. At boot the nodes connect in the cluster and can see each other as can be seen in the logs: 22:59:52,513 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (thread-2) ISPN000094: Received new cluster view for channel mychannel: [port-12-z73rp|13] (2) [port-12-z73rp, port-12-q10wf]

Infinispan replicated cache not replicating objects for read

纵饮孤独 提交于 2019-12-24 07:43:27
问题 We are trying to install a replicated cache across two infinispan nodes running on Wildfly 11 inside of Openshift. When we write an object on one node it doesn't show up on the other node for reading. At boot the nodes connect in the cluster and can see each other as can be seen in the logs: 22:59:52,513 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (thread-2) ISPN000094: Received new cluster view for channel mychannel: [port-12-z73rp|13] (2) [port-12-z73rp, port-12-q10wf]

Wildfly 10.1 stopd deployment after deploying

别说谁变了你拦得住时间么 提交于 2019-12-24 06:58:58
问题 I am deploying a WebApplication with several separate war and ear -files to a wildfly 10.1 server. What I do is this: I clean the deployments , data/content and tmp folder, then copy all necessary war and ear files into the deployments-folder. Then, I start the Server either in Debug-Mode via Spring Tool Suite 3.8.1 (basically Eclipse Neon ) or directly via standalone.sh . The server starts up normally, gets deploys all projects and publishes this message: [org.jboss.as] (Controller Boot

Wildfly xa transaction warning “No security domain defined for crash recovery”

故事扮演 提交于 2019-12-24 05:59:20
问题 I have a wildfly server 8 and in the log I get periodicaly those two warnings : 2014-06-10 12:01:19,255 WARN [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000904: No security domain defined for crash recovery: java:jboss/datasources/sevicesDS 2014-06-10 12:01:19,256 WARN [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000905: Subject for crash recovery was null: java:jboss/datasources/sevicesDS my datasource config: <xa-datasource

Upgrade JSF / Mojarra in JBoss AS / EAP / WildFly

◇◆丶佛笑我妖孽 提交于 2019-12-24 05:12:27
问题 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