Questions tagged [wildfly]

WildFly, formerly known as JBoss Application Server, is an open source (LGPL) application server that implements the latest enterprise Java standards.

WildFly is written in Java and as such is usable on any operating system that supports Java.

WildFly was originally developed by JBoss Inc. which was acquired by Red Hat in 2006. It is licensed under the terms of the GNU Lesser General Public License. WildFly is free and open source software.

The renaming to WildFly was done to reduce confusion. The renaming only affects the JBoss Application Server project. The JBoss Community or the Red Hat JBoss product line (with JBoss Enterprise Application Platform) all retain their names. See also the tag.

For further information, visit the WildFly website.

6512 questions
2
votes
3 answers

The import javax.persistence cannot be resolved after deleting Server Runtime Environment

I had a working java project, I decided to remove all the Server Runtime Environments in my eclipse. since i am getting many errors like : The import javax.persistence cannot be resolved , Entity cannot be resolved to a type ... can I restore the…
majd hwas
  • 95
  • 2
  • 2
  • 10
2
votes
1 answer

Shiro / CDI inject security principal works on Glassfish but not on Wildfly

I'm porting some code from Glassfish 4.1 to Wildfly 10 and am having problems somewhere between Shiro / CDI and java.security.Principal. import java.security.Principal; import javax.enterprise.context.SessionScoped; import…
Barney
  • 2,786
  • 2
  • 32
  • 34
2
votes
2 answers

Wildfly server doesn't start under Windows environment

I am using Wildfly 9 under both Ubuntu an Windows servers. Sometimes, I need to restart the servers but after I stop the server, I cannot start it again. There is a red message box saying Server start failed. The detailed message is: WFLYCTL0158:…
iso_9001_
  • 2,655
  • 6
  • 31
  • 47
2
votes
1 answer

What is the connection pool jar does Wildfly 9 use?

There are many database connection pool implementation available for java, for example; commons-dbcp , commons-dbcp2 ( newer version) , Hikari cp , tomcat jdbc connection pool and c3p0. Wildfly lets the application to be configured the connection…
Abhiram mishra
  • 1,597
  • 2
  • 14
  • 34
2
votes
1 answer

update custom configuration file in Docker

I am new to Docker. My requirement is to create a docker file which should install Wildfly server, add war file to Wildfly, add custom property file (which contains db connection strings which will read by application) My Docker file FROM…
Bharath Dasararaju
  • 505
  • 1
  • 4
  • 9
2
votes
2 answers

How to load resource files in jboss war - wildfly9.xV

I have resources in my java project under resources folder. When i use following ways [2] to load the resource it is working . But when i deploy my war in wildfly 9.x it says cannot find the file.avsc file. It gives the class path as[1]; How can i…
Ratha
  • 9,434
  • 17
  • 85
  • 163
2
votes
0 answers

How to exclude WEB-INF/libs from being deployed in wildfly

I am installing a war file in a Wildfly. The package contains EJB and WS. The dependencies are located in myWar.war/WEB-INF/lib. My EJBs (annotated with @Stateless) located in myWar.war/WEB-INF/classes are correctly scanned by wildfly and…
loonis
  • 1,317
  • 16
  • 19
2
votes
2 answers

How to manage state in JAX-RS?

How do I configure JAX-RS 2 implementation (RESTEasy 3) to send the state of the application to the client? In JSF I am able to do it using the STATE_SAVING_METHOD parameter. Is there a standard way of doing it using JAX-RS?
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
2
votes
1 answer

Hibernate @ManyToMany not possible due to invalid types

My target is it to store a recipe entity which can have multiple ingredients whereby multiple ingredients can be used in different recipes. (Step 2: Ingredients should not be saved twice.) But Hibernate cannot even save at least the recipe with…
Bevor
  • 8,396
  • 15
  • 77
  • 141
2
votes
2 answers

ClassCastException in between equal classes Wildfly 10

I am Creating a RESTful application and I am having trouble making a conversion for a new connection. My application server is Wildfly 10.0. DataSource and Driver in standalone-full.xml:
2
votes
0 answers

JPA 2.1 EntityGraph Partial Entity Fetch

I'm new to the JPA arena, and am having problems fetching too much of an entity. I would like to fetch an instance of order, as well as fetching only the ids from the set of OrderItems (Order.items) for example. Currently I can fetch order, and all…
David
  • 21
  • 2
2
votes
2 answers

CDI Dynamic Bean Instances

Working with Wildfly / JBoss Weld / CDI 1.1. Lets say you have a database. Can be anything, MySQL, MongoDB. Could be a REST service. From that database, you get a list of Animals. [ "Cat", "Dog", "Giraffe", "Tiger", "Chicken" ] You do not…
user2362840
  • 183
  • 7
2
votes
1 answer

Could not find any META-INF/persistence.xml file in the classpath (wildfly, maven)

I was trying to run a simple EJB example using WildFly and Maven, but stuck on the stage, where I supposed to create a persistence unit. So, I've created a PostgreSQL database, configured Wildfly datasource and written a persistence.xml file. But It…
Dain_Torson
  • 17
  • 1
  • 6
2
votes
1 answer

ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory

Environment used: WildFly 9.0.2.Final EJB 3.0 Ant Eclipse Test.jsp is invoking getDbConnection method of Test.java class. Test.jsp <%@page import="com.testmodule.pojo.Test"%> <% try{ System.out.println(" Going to call getDbConnection…
Kamal Vijay
  • 47
  • 1
  • 13
2
votes
0 answers

View Expired Exception is thrown when using Ajax Poll in JSF 2.2

I am using Primefaces Poll to make continuous ajax calls like this. polll.xhtml :
Gans
  • 129
  • 2
  • 11