Questions tagged [wildfly-swarm]

Swarm offers an innovative approach to packaging and running JavaEE applications by packaging them with just enough of the server runtime to "java -jar" your application.

See also:

191 questions
2
votes
1 answer

Wildfly Swarm + Maven filling up temp directory

I've recently started trying to convert an application to use wildfly swarm, I'm on Windows, using maven, and am using the wildfly swarm maven plugin to: create the uber jar, start it up for integration tests and stop at the end of the build. Here's…
Martin Cassidy
  • 686
  • 1
  • 9
  • 28
2
votes
1 answer

Arquillian tests with TestNG on wildfly-swarm

Is it possible to run arquillian tests through TestNG? Im trying this tutorial here, but it requires the Arquillian testRunner that i can only select with the @RunWith annotation from JUnit. My research showed that there is no equivalent…
tuberains
  • 191
  • 9
2
votes
0 answers

Memory heavy use in wildfly swarm

I have a problem using wildfly swarm for build micro service in java. My main problem is the excess use memory. When wildfly is deployed this consume almost 500 mb of memory. Someone have a possible solution for resolve it? thanks!
capablaza
  • 21
  • 1
2
votes
1 answer

How to run Arquillian tests with IntelliJ IDEA and Wildfly Swarm

I try to follow how-to guide at https://howto.wildfly-swarm.io/v/2017.5.0/test-in-container/ They wrote: Since Arquillian is simply an integration with JUnit, you can run your test by using Maven or your IDE: When I run the DatasourcesIT#testIt…
qwazer
  • 7,174
  • 7
  • 44
  • 69
2
votes
0 answers

Keycloak for preflight is invalid (redirect)

I'm having an error about preflight when I try to reach a rest api. error XMLHttpRequest cannot load http://localhost:8080/hello. Response for preflight is invalid (redirect) I made those filters which I need in order to access the api from…
Ced
  • 15,847
  • 14
  • 87
  • 146
2
votes
3 answers

Specify swagger.json url for swagger UI wildfly swarm

I have REST application with Wildfly Swarm and using default settings I have swagger.json on url /swagger or /swagger.json and ui for swagger on url /swagger-ui. But UI parsing petstore from example by default. How is it possible to configure…
Nikita
  • 1,465
  • 3
  • 15
  • 17
2
votes
1 answer

Java EE Servlet and REST path clashing

I am trying to write a Java web application that provides both HTML and REST interface. I would like to create a servlet that would provide the HTML interface using JSP, but data should also be accessible via REST. What I already have is something…
2
votes
1 answer

Multi module Maven project with wildfly-swarm-plugin

I'm trying to convert a multi-module project to wildfly-swarm. However I've no idea how to set it up properly. When I run mvn wildfly-swarm:run from core directory, it starts the server and an error says it doesn't find my persistence unit.…
Ced
  • 15,847
  • 14
  • 87
  • 146
2
votes
3 answers

Fail to start jax-rs service on wildfly-swarm

I have a JAX-RS service that works locally with wildfly-swarm 1.0.0.Beta8, but when I boot it on a remote machine, I get the following exception: ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service…
rü-
  • 2,129
  • 17
  • 37
1
vote
0 answers

How to config Swagger with Wildfly Swarm?

I am following https://wildfly-swarm.gitbooks.io/wildfly-swarm-users-guide/content/v/2017.3.3/advanced/swagger.html. But it is not working. My pom.xml org.wildfly.swarm
dacoten
  • 115
  • 2
  • 12
1
vote
1 answer

How to disable swagger-ui in production (Thorntail)?

I have an application built with Wildfly Swarm (now Thorntail) and I have integrated Swagger with my REST API's for documentation and also use it to test with Swagger-UI. I would like to know if it is possible to disable the Swagger-UI part when I…
Willyan
  • 123
  • 2
  • 7
1
vote
1 answer

Thorntail run goal

I've seen command mvn thorntail:run in the documentation, but I cannot find this run goal specified in the pom files of provided examples. Is there run goal at all? Also I have a problem running my applications this way on Windows since java…
Mike
  • 812
  • 9
  • 25
1
vote
0 answers

Access remote EJB from separate Wildfly Swarm

My goal: To access @Remote EJB from separate Wildfly Swarm server Current code: Bean on wildfly swarm: @Startup @Singleton public class Bean1 { @Inject private LoginFacade loginFacade; @PostConstruct void setup() { …
asm0dey
  • 2,841
  • 2
  • 20
  • 33
1
vote
2 answers

Setup max-threads parameter to the Thorntail JBeret fraction

I use JBeret Thorntail Fraction (thorntail version - 2.0.0.Final): What is the proper way to define max-threads number? When I set up yaml configuration: swarm: batch: thread-pools: default: max-threads: 20 Max thread count…
Andrii Bobrov
  • 79
  • 1
  • 6
1
vote
1 answer

Get access to yaml external file in Thorntail

I want to get access to external YAML file which I specify through command-line argument: java -jar target/app-thorntail.jar -s./test.yaml This file I need to use to get my custom properties tree by SnakeYaml.
Andrii Bobrov
  • 79
  • 1
  • 6
1 2
3
12 13