wildfly

Cannot deploy Hibernate OGM (MongoDB) app to Wildfly

时光毁灭记忆、已成空白 提交于 2019-12-25 13:18:32
问题 I develop a simple app for learning purposes. I used Wildfly 8 (and moved to 9) as my application server, Hibernate as JPA provider and MySQL as DB. The deployment worked smoothly with no problems. Since I wanted to learn how to use MongoDB and Hibernate OGM I read several tutorials and did exactly as instructed: download and extract to modules folder Change persistence.xml to use hibernate.ogm properties Change entities' ids to use String and generated uuid's Add jboss-deployment-structure

Load jboss-ejb3.xml file instead ejb-jar.xml in wildfly

▼魔方 西西 提交于 2019-12-25 12:54:32
问题 I am added some custom configuration in jboss-ejb3.xml file for wildfly. So instead of loading configuration from ejb-jar.xml, it should load from jboss-ejb3.xml file. But some how it loads ejb-jar.xml file. is it any configuration required in standalon.xnl file to load this? Ref- https://docs.jboss.org/author/display/WFLY8/Deployment+Descriptors+used+In+WildFly The JBoss EJB deployment descriptor, this can be used to override settings from ejb-jar.xml, and to set WildFly specific settings 来源

java.lang.NoSuchMethodError: org.glassfish.jersey.client.ClientRequest.getLengthLong()J

半城伤御伤魂 提交于 2019-12-25 08:08:11
问题 I am using arquillian to do integration tests against a Restful java API, these tests are executed using @RunAsClient annotation, the application is deployed on Wildfly 9. The application tests were working but suddenly brake. I am getting this error: javax.ws.rs.ProcessingException: org.glassfish.jersey.client.ClientRequest.getLengthLong()J that seems to be caused by this one: Caused by: java.lang.NoSuchMethodError: org.glassfish.jersey.client.ClientRequest.getLengthLong()J A piece of code:

How to connect to remote WildFly using JMC?

ぃ、小莉子 提交于 2019-12-25 07:37:32
问题 I have a Linux server where I'm running WildFly 10. I work on a Windows machine and I want to profile the remote application server. I've checked that port 9990 is enabled for access via http by accessing http://<ip>:9990/console and via JMX access from the JConsole client that comes in WildFly. For the latter, I downloaded WildFly to my machine, went to %WILDFLY_PATH%\bin\jconsole.bat , accesed through service:jmx:http-remoting-jmx://<ip>:9990 and used my credentials, it works properly. Now

WAR outside the EAR, not able to reference JAR inside EAR. In wildfly 8

会有一股神秘感。 提交于 2019-12-25 06:47:00
问题 I am migrating to Wildfly 8.2 from JBoss 5.1, I am deploying a Web Service using the resteasy and some EAR which has the code to get the requested data from the DB. Both the EAR which has multiple (6) JARs, but when I call the Web Service, it is not able to find the EAR and refer it's JARs 14:57:48,183 INFO [stdout] (default task-4) InitialContextFactory not defined - using default: org.jnp.interfaces.NamingContextFactory 14:57:48,184 ERROR [stderr] (default task-4) javax.naming

SSL Cert. Not found EAP

大憨熊 提交于 2019-12-25 05:13:37
问题 My Scenario: I have 2 different keystores(A.jks and B.jks) which are used for SSL connections to two different servers. These keystores work from the command line when doing "smoke-tests". Using an EAP server, if the call to web-service A (Using A.jks) happens before web-service B(Using B.jks), then web-service A is successful and web-service B is unsuccessful - resulting with SSLHandshakeException . This error also happens when the order is reversed..ie. call to web-service B (Using B.jks)

ClassNotFound: Xerces SAXParserFactoryImpl when running in Wildfly 8.2

左心房为你撑大大i 提交于 2019-12-25 05:00:31
问题 I am running Wildfly 8.2.0 and doing some XML Config file parsing. The idea is that I'll be able to use my bundled xercesImpl.jar to provide the JAXP SAXParserFactoryImpl. When running the logic outside of Wildfly, I am successfully able to parse with the SAXParserFactoryImpl. This factory is found by setting the system property: System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); SAXParserFactory factory = javax.xml.parsers

Wrong dependencies with EJB in JBoss Wildfly

随声附和 提交于 2019-12-25 04:29:11
问题 i wrote a TimerHelper class which can receive Callables from other classes and tries to execute them. If an exception occurs, it waits some time and tries again. So other classes can export tasks that have to be done, but not exactly at the moment. @Startup @Singleton public class TimerHelper{ private static final Logger LOGGER = Logger.getLogger(TimerHelper.class.getName()); private Callable<Void> task; private int failureCounter = 0; public TimerHelper(){ } @Resource private

Authentication between Mule/Anypoint JMS and JBoss/Wildfly9?

最后都变了- 提交于 2019-12-25 03:54:58
问题 I'm struggling with a small proof of concept for a feature we need for a bigger project. On my local machine I have a Wildfly 9 installation (with a user, password, and group configured). I can send messages via HornetQ from a small Java program, and I can fiddle with <security-enabled> and the user/password and see that it works, or not, as I expect. Great! However, I also have a simple Mule flow that attempts to send a message via a JMS outbound endpoint -- but this always fails with "

System.out.println not printing to console

久未见 提交于 2019-12-25 03:29:06
问题 I have a Spring web app running on Wildfly 8.* and for some reason it won't print to the console. I see all the console logs and stack traces fine but the System messages just don't appear. The problem might be with my log4j setup so I'll post that config; <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> <log4j:configuration debug="true" xmlns