wildfly-9

How to reduce the time taken for Wildfly to deploy?

佐手、 提交于 2019-12-11 10:19:42
问题 During deployment of my Web application, there is delay/pause of more than 2 minutes due to which the deployment is failing (because of timeout) The below line is the last line that is printed after which it takes considerable time for the next log to print. WFLYSRV0049: WildFly FUll 9.0.2.Final (WildFly Core 1.0.2.Final) starting I understand that by increasing the timeout I can avoid the timeout exception but, is there a way I can reduce the time taken by the application to get deployed?

make wildfly listen on port 443 not 8443

一笑奈何 提交于 2019-12-11 05:59:57
问题 so I have added a SSL certificate to my wildfly 9 and it's working, but I want to configure my standalone.xml to listen to https on port 443 not on port 8443 as the default configuration, so when I update the value ${jboss.https.port:8443} to ${jboss.https.port:443} it generate an error. this what I have in my standalone.xml : <server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https"/> <https-listener name="httpsServer" socket-binding="https"

Deleting all messages in JMS queue in Widlfy 9

北城以北 提交于 2019-12-10 19:20:46
问题 I am trying to remove messages from JMS queue on Wildfly 9.0.2 (JBoss) using JMX, see following code: MBeanServer server = ManagementFactory.getPlatformMBeanServer(); try { String name = "jboss.as.expr:subsystem=messaging,hornetq-server=default,jms-queue=MyQueue"; ObjectName objectName = new ObjectName(objectNameString); String result = (String) server.invoke(objectName, "removeMessages", new Object[]{null}, new String[]{"java.lang.String"}); return result; } catch

How to setup Log4j2 for an application deployed in WildFly 9?

家住魔仙堡 提交于 2019-12-10 17:12:40
问题 When I test my application with JUnit, it is printing the log as specified by layout pattern in log4j2.xml , but when I deploy my application in WildFly 9, I am no more getting the same format. Even the log level in Log4j2 is also not reflecting while deployed in server. JUnit log example: 2016-02-15 11:14:16,314 DEBUG [main] b.t.r.c.XAPool - a connection's state changed to IN_POOL, notifying a thread eventually waiting for a connection Server log example: 11:11:33,796 INFO [org.quartz.core

Deployment of third party jar in wildfly-9.0.2.Final

拥有回忆 提交于 2019-12-08 07:02:28
问题 In order to visible external jars to more than one application i usually placed external jars at $JBOSS_HOME/server/default/lib directoy in JBOSS 5.x.These jars were automaically up at startp of AS. How this will i do in wildfly-9.0.2.Final. @Sam Thankx for reply But still i am getting error , Kindly please see my scenario as following Structure There is jar archive named as test.jar is present in test.ear In test.jar there is EJB3 session bean java class. In this class there is import stmt

JPA native query returns Double or BigDecimal

柔情痞子 提交于 2019-12-07 17:40:42
问题 I have the simple code below: @PersistenceContext(name = "mycontext") private EntityManager entityManager; public void getAggregatePower() { String sqlString = "SELECT SUM(power) FROM mytable"; Object singleResult = entityManager.createNativeQuery(sqlString).getSingleResult(); System.out.println(singleResult.getClass().getName()); } When I run this in a real environment, the print instructions prints java.math.BigDecimal . But when I run this in my unit tests environment, the print

Wildfly throws “Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam” error

眉间皱痕 提交于 2019-12-06 10:04:49
问题 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

Wildfly: Why I get only “Forbidden” if I call my Web application?

廉价感情. 提交于 2019-12-05 04:02:39
Yesterday our web application ran fine on WildFly 9. Since this morning I get only a "Forbidden" in the web browser. We don't use JAAS. There is also no difference if I set the following value to false in the standalone.xml : ... <subsystem xmlns="urn:jboss:domain:ejb3:3.0"> ... <default-missing-method-permissions-deny-access value="true"/> ... </subsystem> ... What can be the reasons that WildFly only shows the "Forbidden" page? EDIT If I set the log level for package org.jboss.security to TRACE I get the following message in the log file while calling the page: 2016-01-27 12:58:15,354 TRACE

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

Infinispan Jgroups Crashes after war deploying

隐身守侯 提交于 2019-11-29 18:08:07
I'm working on Wildfly 9 with Infinispan 7.2.3. I'm facing up to a strange problem related to distributed cache: On the application server i have N deployed wars exposing REST services Each service code has the common duty to check if a CacheManager si already present on JNDI, if yes, it uses it otherwise i creates a new one and the bind it to the JNDI. So every war works with a unique CacheManager instance. The Infinispan CacheManager is configured in distributed mode. The infinispan and jgroups are provided from the application server. After a re-deploy operation (undploy and deploy) of all