WildFly, formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java, and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms. WildFly is free and open-source software, subject to the requirements of the GNU Lesser General Public License (LGPL), version 2.1.
Questions tagged [wildfly-9]
279 questions
4
votes
3 answers
Disable servlet at build/package/deploy, enable at run-time?
Lets say I have a simple "Hello world" type servlet, configured with the annotation @WebServlet("/hello").
I want to disable it for build/deployment, so it will not be possible to "call" the servlet. How would I do that?
Then, through a…

Some programmer dude
- 400,186
- 35
- 402
- 621
4
votes
1 answer
java.io.IOException: UT010029: Stream is closed
How to Resove below Error:
ERROR [com.test.filter.AuthenticationFilter] (default task-6) displayUpdateUser:Error occurred while displaying the Update User page.: java.io.IOException: UT010029: Stream is closed
at…

Thamaraikkannan
- 41
- 1
- 1
- 2
4
votes
1 answer
make wildfly listen on port 443 not 8443
so I have added a SSL certificate to my wildfly 9 and it's working, but I want to configure my standalone.xml to listen to https on port 443 not on port 8443 as the default configuration, so when I update the value ${jboss.https.port:8443} to…

majd hwas
- 95
- 2
- 2
- 10
4
votes
4 answers
Netbeans does not create ApplicationConfig.java when I create new RESTful web service
I have an enterprise application I have been developing in Netbeans, and I'm now trying to add some RESTful web services to the -war module. The problem I'm having is that when I use the Netbeans feature to create the web services, no…

Duncan
- 507
- 3
- 14
4
votes
2 answers
WildFly9 JASPI Module Isolated from Application
I'm trying to create a custom JASPI ServerAuthModule totally isolated from my EAR application. It depends on a legacy version of spring framework 2.5.5. I'm running WildFly 9.0.2.Final.
I defined a proper security domain:
…

Ricardo Gusmão
- 104
- 7
4
votes
2 answers
@Produces collection in JAXRS / RestEasy
I found some strange behaviour that I cannot understand.
I have tested 4 similar examples:
1
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response produce() {
List books = Arrays
.asList(new Book[] {
…

swch
- 1,432
- 4
- 21
- 37
4
votes
2 answers
Best way to specify fields returned by a Service
We're using Java EE 7 with WildFly 9 to develop the custom backend for a mobile/web application. The backend is a classic 3-tier system, with communication logic (JAX-RS), business logic (Session EJBs) and persistence layer (Hibernate).
The business…

Flavio Ferrara
- 1,644
- 12
- 18
4
votes
1 answer
Wildfly 9.0.2 Error while deploying app
While deploying I see in form message Cannot upload deployment: Unable to parse response with content-type text/html and in the command-line full error:
15:18:28,849 ERROR [io.undertow.request] (XNIO-1 task-2) Undertow request failed
…

Rafcik
- 362
- 7
- 18
4
votes
0 answers
Securing webapp with DIGEST on WildFly
I want to secure my webapp running on a WildFly 9 server.
I have a SQL database with 2 tables users(login, password) and roles(login, role).
First, I configured a BASIC authentication like this :
standalone.xml:

cheb1k4
- 2,316
- 7
- 26
- 39
3
votes
0 answers
Unable to get managed connection ERROR in Wildfly and MS SQL Server
We have installed SQL Server 2017 and Java 1.8.0_261-b12 in our production environment. We are using Wildfly 9.01 and JTDS driver to access the database.
We have defined datasource/database connection pool configuration in standalone.xml like…

vishal patel
- 79
- 8
3
votes
0 answers
How can I ensure the configuration of in wildfly 9?
My configuration is below in standalone.xml:
…

vishal patel
- 79
- 8
3
votes
0 answers
RestEasy Mock unit test with CDI
I've a simple RestEasy WebServie which will take a dependency.
When I test by publishing into Wildfly server everything is working fine. But I tried to mock it using JUnit. But, it's throwing null pointer exception as the dependency isn't…

Ravi MCA
- 2,491
- 4
- 20
- 30
3
votes
2 answers
Widlfly 9 : java.security.ProviderException: Could not derive key
I get below error on trying to invoke https rest service:
Caused by: java.security.ProviderException: Could not derive key
sun.security.ec.ECDHKeyAgreement.engineGenerateSecret(ECDHKeyAgreement.java:133)
…

Deepak Chaudhary
- 152
- 1
- 11
3
votes
1 answer
Custom web app authentication with WildFly
I need to create a custom web app authentication for my Java EE application running on a WildFly 9 server. I have found few information about how to do it in the undertow website documentation.
What I have done so far is to create a…

cheb1k4
- 2,316
- 7
- 26
- 39
3
votes
0 answers
Deleting all messages in JMS queue in Widlfy 9
I am trying to remove messages from JMS queue on Wildfly 9.0.2 (JBoss) using JMX, see following code:
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
try {
String name =…

miran
- 1,419
- 1
- 12
- 26