jboss

Connect JMS queue using JNDI with Spring Boot

微笑、不失礼 提交于 2021-02-06 13:48:05
问题 I had a hard time figuring out how to implement a Spring Boot JMS Listener, listening to an ActiveMQ queue within a JBoss application server. Therefore I choose to post a question and answer it with my final solution, hoping it could save some of you a few hours. 回答1: ActiveMQ is supported by Spring Boot autoconfiguration, but since it was inside the JBoss server Spring Boot was failing to connect ActiveMQ. In fact you need to define connectionFactory and jmsListenerContainerFactory beans

Deploying servlets webapp in embedded undertow

耗尽温柔 提交于 2021-02-06 11:26:10
问题 Is there any easy way to deploy a servlets web application with undertow embbeded? For example, with jetty, I can deploy like this: Server server = new Server(8080); WebAppContext context = new WebAppContext(); context.setContextPath("/"); context.setDescriptor("src/main/webapp/web.xml"); context.setResourceBase("src/main/webapp/"); server.setHandler(context); server.start(); Is there a similar way of doing this with undertow? I saw a example here: https://github.com/undertow-io/undertow/blob

Deploying servlets webapp in embedded undertow

﹥>﹥吖頭↗ 提交于 2021-02-06 11:25:46
问题 Is there any easy way to deploy a servlets web application with undertow embbeded? For example, with jetty, I can deploy like this: Server server = new Server(8080); WebAppContext context = new WebAppContext(); context.setContextPath("/"); context.setDescriptor("src/main/webapp/web.xml"); context.setResourceBase("src/main/webapp/"); server.setHandler(context); server.start(); Is there a similar way of doing this with undertow? I saw a example here: https://github.com/undertow-io/undertow/blob

Deploying servlets webapp in embedded undertow

ε祈祈猫儿з 提交于 2021-02-06 11:24:07
问题 Is there any easy way to deploy a servlets web application with undertow embbeded? For example, with jetty, I can deploy like this: Server server = new Server(8080); WebAppContext context = new WebAppContext(); context.setContextPath("/"); context.setDescriptor("src/main/webapp/web.xml"); context.setResourceBase("src/main/webapp/"); server.setHandler(context); server.start(); Is there a similar way of doing this with undertow? I saw a example here: https://github.com/undertow-io/undertow/blob

Unable to add SQL Server DataSource in JBoss EAP 7.2

霸气de小男生 提交于 2021-01-29 07:48:28
问题 I am trying to add an SQL Server datasource in JBoss EAP 7.2 through the management console. However, the Test Connection operation is failing. Below are the version details: JBoss EAP - 7.2 MSSQL Driver Jar - mssql-jdbc-6.1.0.jre8.jar Module.xml: <module name="com.microsoft.sqlserver" xmlns="urn:jboss:module:1.3"> <resources> <resource-root path="mssql-jdbc-6.1.0.jre8.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> <module name="javax

Unable to install WildFly/ JBoss Server in Eclipse IDE Photon Release Candidate 3 (4.8.0RC3)

一世执手 提交于 2021-01-29 07:13:35
问题 I was trying to install WildFly/JBoss Server in Eclipse IDE Photon Release Candidate 3 (4.8.0RC3) but I'm getting an error . I have attached the screenshot for the same. Would somebody help me out here in this issue? 回答1: I've had the same problem. In Eclipse -> Help -> Eclipse Marketplace, search for "TM Terminal". Uninstall it, restart Eclipse and try to define a new server again. It will now install Wildfly, at least for me it worked. 来源: https://stackoverflow.com/questions/52699510/unable

Http requests redirected to https

时间秒杀一切 提交于 2021-01-29 05:25:20
问题 Goal: I want all requests made to http://mydomain to be redirected to https://mydomain. Today I have an Apache web server which handles all incoming requests made to http://mydomain and redirects them to http://localhost:8080 (JBoss application server). I'm using proxypass for my virtual host in the Apache configuration. What do I need to do to achieve my goal? 回答1: The Apache Foundation recommended approach is to have a dummy VirtualHost on port 80 with: <VirtualHost *:80> ServerName www

Read large message file (*.msg) stuck in HornetQ

帅比萌擦擦* 提交于 2021-01-29 05:10:56
问题 I am working on a app which has a lot of asynchronous messages hosted by HornetQ 2.3.21. By some process my message size goes more than 2GB and the message starts failing with this message on the server: HQ212017: error adding packet: java.lang.IllegalStateException: Maximum size of 2gb exceeded at org.jboss.netty.buffer.DynamicChannelBuffer.ensureWritableBytes(DynamicChannelBuffer.java:82) [netty-3.6.9.Final-redhat-1.jar:3.6.9.Final-redhat-1] at org.jboss.netty.buffer.DynamicChannelBuffer

CXF JCA Connector in JBOSS 7.1 (or 6.1) not supported?

懵懂的女人 提交于 2021-01-29 04:08:24
问题 we are migrating our application from JBoss 5 to JBoss 6 and there is one thing I can't figure out. We are using Apache CXF-JCA resource adapter (CXF-JCA home page). They say it is implementig JCA 1.5 specs and that seems to be a problem. Because JBoss is implementing JCA specs version 1.6 CXF's deployment fails because of following: Caused by: org.jboss.jca.validator.ValidatorException: Severity: ERROR Section: 19.4.2 Description: A ResourceAdapter must implement a "public boolean equals

Java JBoss Fatal error: cannot find the required native library named JLinkNativeLibrary

帅比萌擦擦* 提交于 2021-01-29 02:30:46
问题 I'm trying to work with Wolfram Mathematica Kernel from Java Web Application using JBoss. Here is a Main Class. public class Main { static KernelLink ml; static KernelLink ml2; public Main(){ String path = "-linkmode launch -linkname 'C:/Program Files/Wolfram Research/Mathematica/9.0/MathKernel.exe'"; try { ml = MathLinkFactory.createKernelLink(path);// подключаем ядро ml.setComplexClass(MyComplex.class); System.out.println(ml.getComplexClass()); ml.discardAnswer(); ml.evaluate("<<hexagon.m")