Questions tagged [wildfly]
2145 questions
1
votes
2
answer
634
Views
Convert Jboss (WildFly) cli output to json in Ansible
I'm struggling to automate my deployment processes to WildFly over its cli. The cli itself don't work idempotent, so if I want to add using ansible for example some server properties it just threw an error in case it already exist (official cli documentation gives only 3 methods add, read, remove ht...
0
votes
0
answer
4
Views
How to set environments automatic?
i want to set my environments automatically when i bind a Service with my application. For Example:
Now i have to set my environments for the datasource manuell, but i want to set it automatically, how does it work ?
thorntail:
datasources:
data-sources:
FleetDS:
driver-name: postgresql
connection-u...
0
votes
0
answer
7
Views
Omnifaces CDN resource handler ignoring HTTPS
I am experiencing this weird behavior when trying to load a script stored on another server but the one where the system is running.
Other server is secured, and certificates are valid.
I can normally call the URL specified in my web descriptor.
This is my web descriptor entry:
org.omnifaces.CDN_RES...
1
votes
2
answer
54
Views
ClassNotFoundException for commons-lang3 when deploying WAR to Wildfly 14
We're developing an application which uses:
Wildfly 14
Java EE 7
The code compiles successfully and the WARs are packaged. However upon deploying the WARs into Wildfly I get the following exception:
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils from [Module \'depl...
1
votes
0
answer
59
Views
Getting SSLHandshakeException error after several hours of successful API calls
I have created web-service to make payments via PayPal payment provider.
The *.war file is deployed on Test environment, where it is running on WildFly (8.2.1.Final) server. After each deploy, I can make successful calls to PayPal side. But after several hours I'm starting to get javax.net.ssl.SSL...
1
votes
1
answer
107
Views
How can you configure WildFly to print runtime exceptions?
The environment is a Java program deployed in WildFly 11.0.0.Final and a terminal window that started standalone.sh and remains open showing the output.
Explicit output such as PrintStream#println and Throwable#printStackTrace is printed as expected, but when runtime exceptions such as ArrayIndexOu...
1
votes
2
answer
1.9k
Views
Managed bean with a parameterized bean class must be @Dependent: class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
After adding tika parser in my application I am getting the following error in my Spring Application. I am running the application on wildfly 10.1.1 final.
11:11:30,371 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit.'MyApp.war'.W...
1
votes
0
answer
62
Views
Wildfly Custom form authentication configuration
How to add custom authenticator in Wildfly? In JBoss 4.2 it was like below:
In \jboss-as\server\production\deploy\jboss-web.deployer\META-INF\jboss-service.xml, add the following in :
MY-CUSTOM-AUTH
com.test.MyCustomAuthenticator
How to add the custom authenticator in wildfly 10
Thanks in Advance!
1
votes
0
answer
159
Views
javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository
We are migrating JBOSS from 4.0.3SP1 to Wildfly 10.1.0. Our applications are bundled in separate sars which contain standard as well as Dynamic beans.
We are getting 'javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository' exception caused by 'ja...
1
votes
0
answer
206
Views
Sentry with library sentry-java on WildFly10
I try to connect via sentry-java library on WildFly but I don't know what add to standalone.xml. When I add file log4j.properties to my project it works but I don't have any log in my console.log
log4j.properies file:
# Enable the Console and Sentry appenders
log4j.rootLogger=INFO, Console, Sentry
#...
1
votes
0
answer
43
Views
Facing java.lang.IllegalAccessError for a base abstract class when trying to inject its implementation in wildfly 10
We are receiving the following exceptions in one of our code :
java.lang.IllegalAccessError: tried to access class base.BaseMessage from class message.beans.TerminalPowerCommandProducer$Proxy$_$$_WeldSubclass
Our class structure is as follows :
The Base Message creator class with default message pro...
1
votes
2
answer
815
Views
Table not found with H2
My Java EE application cannot find tables. I am using WildFly (as the application server) and H2 (as the DB, in the embedded mode).
The error is:
org.h2.jdbc.JdbcSQLException: Table 'MY_TABLE' not found
Look at my table creation:
create table 'MY_TABLE' (
-- ...
);
See how my entity is defined:
@Ent...
1
votes
0
answer
174
Views
j_security_check form authentication with angular 4 application
We have a J2EE based application running on wildfly 8.1. We need to configure form authentication in web.xml for UI which is written in angular4. We have a angular4 app with LoginComponent which accepts j_username and j_password.
How to map angular 4's LoginComponent's LoginPage in web.xml for FormA...
1
votes
0
answer
418
Views
How to force HTTPS on Wildfly 11?
I have an application that communicates with a Wildfly 11 server. Right now everything works with HTTP but I want to use only HTTPS. I would like to know
how to disable http completely and only use https
how to redirect http to https
Is there a preferred approach between the 2?
What files do I need...
1
votes
1
answer
156
Views
Wildfly, WAR and virtual hosts
currently I have a problem with the following situation:
In Wildfly, virtual hosts are defined in the standalone.xml file.
To bind a deployed .war-Artifact to a virtual host, the virtual host is placed in the jboss-web.xml of the .war-Artifact.
which leads to the fact that the .war-Artifacts depend...
1
votes
0
answer
140
Views
Infinispan configuration with Wilfdfly-Swarm
I have a project on Wildfly-Swarm. I need to use query cache, so I put Infinispan dependency on my POM.
org.wildfly.swarm
infinispan
I setup Infinispan on my persistence.xml
ENABLE_SELECTIVE
...
It's work well, the cache works. But I read the documentation of Infinispan Wildfly-Swarm fraction (...
1
votes
0
answer
486
Views
javax.enterprise.resource.webcontainer.jsf.context java.lang.NoClassDefFoundError
I am working on a JSF project using PrimeFaces 6.0 and WildFly 8.2. Occasionally I recieve the following error:
03:58:59,238 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-14) java.lang.NoClassDefFoundError: at/bibliothek/web/NewCustomerBean$1
at at.bibliothek.web.NewCusto...
1
votes
0
answer
77
Views
Injecting JOOQ Context using CDI and JNDI
I try to use jooq on an PostgreSQL Database. The Web-App is built on the JSF Framework using CDI for dependency injection. The server is WildFly 11.
I use the jooq codegen to generate pojos and daos.
Following the instructions on http://awolski.com/integrating-jooq-easy/
I should be able to inject...
1
votes
0
answer
108
Views
Spring web-flux with Wildfly Swarm
My current microservice is build on wildfly swarm. To create reactive API i plan to use Spring WebFlux.
How can I inject the spring Http handler into swarm undertow fraction ?
Is this possible, or do i need to re-write my application on spring boot?
1
votes
0
answer
31
Views
Dependency caused MalformedParameterizedTypeException
I't trying to deploy WAR package in Wildfly 11. Using these POM dependencies I get errors during startup:
org.glassfish
javax.faces
2.3.3
provided
javax
javaee-web-api
8.0
provided
org.jboss.weld.servlet
weld-servlet
2.4.5.Final
jar
com.sun.el
el-ri
1.0
provided
commons-logging
commons-logging
1.2
j...
1
votes
1
answer
79
Views
find number of running execution of job on wildfly
I use jdbc job repository on wildfly. when I kill wildfly process some job execution remain in started state. When I restated wildfly i get running executions by BatchRuntime.getJobOperator().getRunningExecutions and give mentioned job executions. When I use in memory repository it's worked fine.
I...
1
votes
1
answer
483
Views
Cant inject EntityManager with @PersistenceContext [Error injecting persistence unit into CDI managed bean.]
I have Dao object that i want to inject EntityManager into :
@Transactional
public class ConfigEntryDao implements IDao {
//THIS IS WHAT I WANT TO DO!
@PersistenceContext(unitName = XChangeUtil.JPA.JPA_PU_NAME)
private EntityManager entityManager;
//ONLY THIS ONE WORKS!
//private EntityManagerFactor...
1
votes
1
answer
869
Views
Jboss EAP 7 JSESSIONID instance-id not appended
It seems the instance-id in JSESSIONID is added when using standalone-ha.xml and not with standalone.xml, at least in my case:
# Standalone (instance-id not appended)
[[email protected] bin]$ ./standalone.sh -Djboss.instance.id=node1 -Djboss.node.name=node1
[[email protected] bin]$ curl -I http://127.0.0.1:8080/cluster...
1
votes
1
answer
567
Views
Spring 5.0.3 dependencies issue
after upgrading to spring 5.0.3 I have the following issue:
09:25:29,141 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 175) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./chatservice: org.jboss.msc.service.StartException in service jbos...
1
votes
0
answer
779
Views
Keycloak role-ldap-mapper sync
I am struggling with the keycloak role-ldap-mapper. We have an Active Directory Service internally where Users can ask for roles. Roles are assigned/removed by another tool and saved into the memberOf Attribute in AD.
Keycloak imports the roles correctly at the users first login, but somehow when th...
1
votes
2
answer
235
Views
Deltaspike alternative TransactionStrategy issue
In my wildfly swarm application I would like to use deltaspike with the data module, JPA and JTA.
I have defined my beans.xml as this to use EnvironmentAwareTransactionStrategy as TransactionStrategy.
org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy
However when I run m...
1
votes
0
answer
94
Views
Select configuration profile in an arquillian wildfly swarm test case
Is it possible to select a different project-XXXX.yml file to configure a swarm in an arquillian test case ?
I've tried with @CreateSwarm annotation an something like:
@CreateSwarm
static Swarm createSwarm() {
Swarm s = new Swarm();
s.setArgs('-SXXXX');
return s;
}
But this doesn't work. I've also t...
1
votes
0
answer
34
Views
How to format the wildfly/Jboss startup time in the log?
The log of Wildfly shows the startup time in the format like started in 100000ms. The format I expected is ‘started in x minutes y seconds’, because ms unit is too long for a enterprise application. How to configure that?
1
votes
1
answer
201
Views
Dynamically load class in other WARs inside wildfly 11
Here I am again seeking enlightment. The situation is as follows:
We have a task engine running in Wildfly 11 that depends heavilly in dynamic loading through reflection. Don't need to say that we have an abstract 'base' class for everything. It depends on database registration that uses simple Clas...
1
votes
0
answer
214
Views
Wildfly - The server didn't respond in time
I'm using Wildfly 10 and resteasy implementation.
Communication between 2 jbosses is broken after 200 seconds request
I have defined time-out in web.xml for 30 minutes
Probable cause: * returned an error response with a status: 504 and a response message: 504 Gateway Time-out
The server didn't respo...
1
votes
0
answer
133
Views
Spring + WildFly+ IBM MQ Cofiguration
I have Spring Web-aplication, deployed on WildFly 10 server. I need to add the ability to send and receive messages to/from IBM MQ server (now version 7.5, but the version will be updated soon to 9).
I read a lot of documentation, how to configure WildFly(JBoss) or spring application, but there is s...
1
votes
0
answer
232
Views
Wildfly run timeout altough the server is launched
Here is the configuration I used in order to use test integration in maven :
[...]
org.wildfly.plugins
wildfly-maven-plugin
1.2.0.Final
${wildfly.home}
${wildfly.home}/modules
localhost
XXX
XXX
-b=0.0.0.0
-bmanagement=0.0.0.0
${wildfly.home}/standalone
localhost
-server
-Xms8192m
-Xmx8192m
standalo...
1
votes
1
answer
723
Views
Wildfly Undertow File Mimetypes
I want Undertow to serve static files like .jpg, .png, .js, .css, .txt etc...
I edited the undertow subsystem in standalone.xml:
I hav some files in my '/resource' folder '1.jpg', '2.png', 'js.js', 'c.css' in:
http://localhost:8080/resource/1.jpg --> shows nothing in browser
http://localhost:8080/...
1
votes
0
answer
70
Views
Custom CDI Extension not always detected
In my project, my WAR has a dependency on a custom submodule which contains a custom CDI extension. The extension must prepare specific beans for injection. It works fine... except when it does not. Sometimes the extension is loaded and beans injected, sometime the extension is not (extension not ev...
1
votes
0
answer
130
Views
WildFly error serving files (unable to find or serve resource from library)
I'm maintaining a Java web application, it's running on wildFly 9.0.2.
Since about a month I noticed some new warning messages in the console while running the application locally. It wasn't happening in our production environments even after a deploy, so I thought it was a local problem, like antiv...
1
votes
1
answer
488
Views
Not able to upload file with more than 1MB size in WildFly 10?
I know it may look simple, but I am supposed to upload an XML file which is 12 MB. It doesn't upload onto the server (accessing through domain name www.xyz.com)! but when I login to remote server and access using localhost I am able to upload a file which is more than 1MB, whereas from DNS I am able...
1
votes
0
answer
192
Views
Overrided wildfly default logging with logback doesn't log to console
I overrided default WildFly logging by putting in META-INF dir jboss-deployment-structure.xml with following content:
and also put logback.xml with following content:
%-4relative [%thread] %-5level %logger{35} - %msg %n
scriptgenTool.log
TRACE
%d %logger{0}: %msg%n%ex{full}
false
archive/scriptgenT...
1
votes
0
answer
67
Views
JCache Infinspan creates immortals on entry update
While using JCache (Infinispan) on Wildfly 10.1 I stumbled against the following issue. I created a new cache (test-cache) where I used CreatedExpiryPolicy with a duration of 5 minutes.
After playing around with the cache I noticed that if I put the same key twice the cache entry will be converted...
1
votes
0
answer
405
Views
Failed to connect to remote host in wildfly11
We are using AWS windows wildfly 11 application .
We are able to access the application without any issues with VPN connection. But we are getting the errors with the URL without VPN.
We are able to access the application but not able to login without VPN connection, we are getting below error i.e...
1
votes
0
answer
34
Views
Java EE/wildfly spending a lot of time outside of core application
I am trying to profile my application and figure out why it is slow and if there are any ways to improve the performance.
So, I've tested the profiler JProfile and connected it to the correct JVM.
When I look at the call tree I see that my code is in the minority when it comes to execution time.
So...