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
0
votes
1 answer

mvn wildfly-swarm:run error

I created a wildfly-swarm test project using jboss forge, but when I generate project I encounter the error: 2017-05-17 15:35:00,528 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address:…
Eriel Miquilino
  • 433
  • 4
  • 7
0
votes
1 answer

why when I create a new class in a new package in Swarm it does not work?

I use Swarm 2017.3.X and 2017.5.0. When I add a new class in a new package I get NoClassDefFoundError caused by java.lang.ClassNotFoundException on runtime. Why? org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError ... Caused…
Andreas Panagiotidis
  • 2,763
  • 35
  • 32
0
votes
0 answers

How does Classloading in Wildfly Swarm works? NoClassDefFoundError during request

i have an microservice wildfly swarm. it has some generated code from google protobuf with in. but if i start from command line with java -jar ..... and call the server from browser, i get the following exception. if i start it from eclipse, no…
manuel
  • 1,127
  • 1
  • 8
  • 15
0
votes
1 answer

I'm having problems using @BeanParam annotation

I'm using JAX-RS annotations and I'm having problems with @BeanParam. I'm using Wildfly-Swarm and Maven. The next lines are part of my error: 2017-05-02 09:57:39,513 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying…
Ángel
  • 41
  • 7
0
votes
0 answers

Wildfly Swarm Restfull API not working when called from outside localhost

I am starting with Wildfly Swarm and I built this API to be used from an app developed with Ionic 2, the API works fine when testing it on my own PC and also with Postman. When I try to run the app on an actual device, it just won't get any response…
Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
0
votes
1 answer

Connecting Cassandra by Hibernate in Wildfly

After days of erros I hope anyone can help me out. I want to connect a cassandra (3.9) by Hibernate (5.1) to Wildfly Swarm (10.1.0). I followed the instruction from How to package Hibernate OGM applications for WildFly 10 and added all required…
0
votes
2 answers

REST APIs With Wildfly Swarm CORSFilter

I have developed REST APIs With Wildfly Swarm and I would like to introduce CORS filter and my requirement is all the header/values should be configurable in external resources . I already implemented CORSFilter but with hard-coded header values ,…
Sachin
  • 221
  • 2
  • 4
  • 12
0
votes
0 answers

ClassNotFoundException during wildfly-swarm startup

I am getting an issue while trying to run Wildfly Swarm. Following is the error. org.jboss.modules.ModuleLoadException: Error loading module from modules/org/jboss/shrinkwrap/descriptors/impl/module.xml at…
JHermit
  • 190
  • 9
0
votes
0 answers

WildFly Swarm with Ghost4J throws NoClassDefFoundError: IOUtils

I'm trying to use Ghost4J in a demo project and included the library in my pom.xml. Everytime Ghost4J tries to access IOUtils of org.apache.commons.io a NoClassDefFoundError is thrown although commons-io.jar is included in the fatjar generated by…
Chris
  • 1
  • 1
0
votes
1 answer

WildFly Swarm does not generate swarm-jar in Multi-Module Maven Project

I have a multi maven project setup, below you can find my poms and my Main class: Maven Project Structure: Parent -- pom.xml -- web ----- pom.xml Parent pom: ... web
kevcodez
  • 1,261
  • 12
  • 27
0
votes
1 answer

how can i enable access-log for my application with wildfly-swarm?

I have created a RestApplication with wildfly-swarm. the application logging works well with the log4j2. But i do not know, how can i any enable the access-log for my application. i could not use jboss-web.xml with valves, because it will not be…
shan
  • 112
  • 1
  • 9
0
votes
1 answer

How to change default datasource name in wildfly-swarm

How to set default Data source name (say MyDS). Swarm is always taking "ExampleDS" as defaultDatasource. with earlier versions it used to be something like this container.fraction(new PostgreSQLJPAFraction() .inhibitDefaultDatasource() …
ravthiru
  • 8,878
  • 2
  • 43
  • 52
0
votes
1 answer

WildFly Swarm + War + local Jar dependencies in Gradle - NullPointerException

I am trying to build a web application server using WildFly Swarm and the application has to be able to run another Java program inside (I don't want to run it as an external process). I am trying to include the external program as .jar dependency…
0
votes
1 answer

Wildfly Swarm jar execution fails on startup

I am able to create the wildfly swarm jar for my project, but while executing i am getting below error:[using gradle and swarm plugin version 2016.10.0] 2016-11-03 16:02:11,548 ERROR [org.jboss.msc.service.fail] (MSC service thread 1 -7)…
0
votes
1 answer

Wildfly Swarm write to external database

Is there any way to bypass the internal h2 database and connect wildfly swarm to an external database so that changes aren't lost after restarting the application server? I read several tutorials, but the use of container is already deprecated. I…
GC268DM
  • 403
  • 7
  • 15
1 2 3
12
13