Questions tagged [wildfly]

1

votes
3

answer
2.5k

Views

Extract JSESSIONID in REST after login

I'm working on system which will allow users to create workspaces.After workspace creation user may login by providing username, password and workspace. And i need jsessionid generated after login to create connection between workspace and jsessionid. Login goes thru REST. @POST @Path("login") @Pro...
Nem
1

votes
1

answer
989

Views

Cross origin requests fails while using HTTP

In my AngularJs Application, I get a cross-origin-error when Angular enters a rest interface (using chrome and IE11) What you see in the chrome console: XMLHttpRequest cannot load localhost:9080/user/api/whoami. Cross origin requests are only supported for protocol schemes: http, data, chrome, chr...
Shansn
0

votes
0

answer
7

Views

Deploy to Wildfly a JAR in EAR/lib

I have installed Eclipse, Jboss Tools and Wildfly. I also created an EAR, EJB and WAR projects as Maven projects. I need to add a JAR to the EAR/lib folder, so I added to the EAR pom.xml: org.apache.commons commons-collections4 4.1 But when I publish to Wildfly the EAR/lib folder is empty. What is m...
ps0604
0

votes
0

answer
10

Views

Spring-mvc 5: How to load an externalized properties file using @PropertySource(“#{systemProperties[…]}”)

I’m working a rest api and the project structure is a maven multi modules project organized by layer (repository, service and so on) and my project will be hosted on wildfly 13. My working environment is windows 10 (64bits). I configured my repository module to load an externalized properties fil...
Manucci
1

votes
0

answer
16

Views

HTTP Digest authentication failing with '400 Bad Request' after a while

I have a problem with HTTP digest authentication on a Java client. I'm running a Web Service (SOAP) client on Wildfly, but the same problem occurs if I use URL.openConnection(), ie. the failing part is the underlying sun.net.www.protocol.http.HttpURLConnection and its authentication handling. I'm se...
Icosidodecahedron
0

votes
0

answer
4

Views

Wildfly 15 as Service on next boot server is not running

I Installed Wildfly 15 final version on Redhat 7.6 version, followed these step which is mentioned in this link https://jboss-books.gitbooks.io/wildfly/content/instalacao/instalando-como-servico-linux.html cp /opt/wildfly/docs/contrib/scripts/init.d/wildfly.conf /etc/default cp /opt/wildfly/docs/con...
Asif Bhutto
1

votes
1

answer
1.4k

Views

How to setup different clusters in common IP

I have many wildfly-8.2 nodes that has IP address 10.4.0.X. I need to group them in 2 different clusters. Unfortunately I received message from nodes that doesn't included in a cluster. Each cluster receives messages from all nodes since they are all under 10.4.0. Here is my mod_cluster configuratio...
1

votes
1

answer
2.2k

Views

Wildfly disabling logging subsystem

in my web application i need to use my logging framework. The framework is loaded by each webapplication like a jar dependency. In order to disable jboss logging subsystem i tried to create a jboss-deployment-structure.xml file copied in: (firt try)- webapplication.war\WEB-INF\ (second try) - webap...
Alex
1

votes
1

answer
635

Views

A way to get a list of web services deployed on wildfly

I am looking for a way with which I can get a list of all the web services deployed on wildfly, I looked around but I cannot find anything that fits the bill. Thanks in advance.
Sadiq Ali
1

votes
1

answer
1.7k

Views

How to configure a JNDI DataSource with Spring Boot & WildFly 11.0

I want to configure a JNDI DataSource with Spring Boot & WildFly 11.0. I am currently using Postgres DB and have the datasource config under application.properties. I know that a jndi can be created using the following in application.properties. What am I struggling is with how do I tie this up wit...
Sambhav
1

votes
1

answer
493

Views

Update to Spring 5.1 - java.lang.NoClassDefFoundError: org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor

I get the following stacktrace while deploying when trying to update to Spring 5.1 from 4.3. Server is WildFly 14. Runtime is JDK 11. Compiler target is 1.8. I tried cleaning dependecies, but nothing help. Further below is dependency:tree output. 22:23:51,323 ERROR [org.jboss.msc.service.fail] (MSC...
Robert Niestroj
1

votes
0

answer
13

Views

Why is the WildFly console log hijacking my WAR's log4j log?

I have 7 different WARs deployed to the same WildFly / JBoss server. Each WAR is identical in core design and Log4j configuration. Each WAR generates its own log file via its own individual custom log4j.xml. Each log is written to an individual folders. 1 of the 7 deployed WARs keeps getting the l...
JoshDM
1

votes
2

answer
1.4k

Views

Servlet character encoding issue with JPA

Ok, I have spent three seven hours googling and testing and I give up, I have to ask for help. I used to develop in Linux and everything was easy, now I use windows and such easy thing like setting correct locale does not work. I created simple JSP with form: Name: Email: And Servlet: String name...
Leos Literak
1

votes
1

answer
1.1k

Views

Wildfly “Lazy-Inits” Filters, can I change that?

I think I 've found a difference in the implementation of Filter initialization between Jetty and Wildfly. I 've a web application using Tapestry, Spring and Hibernate. I 'm trying to migrate it from Jetty to Wildfly. My web.xml has two filters: Firstly the OpenSessionInViewFilter (which requires th...
Nicolas Barrera
1

votes
4

answer
5k

Views

Wildfly 8.0.0 mysql problems with datasource

I've got a small problem with my standalone.xml. I made an order mysql in modules/system/layers/base/com. Inside this folder there is the folder main and inside that there is my mysql-Connector v.5.1.28 and the module.xml. But when I run a project in Eclipse it doesn't open up the browser.If I open...
pulse
1

votes
2

answer
5.6k

Views

Paths not handled by services throwing javax.ws.rs.NotFoundException

I am porting a REST layer to Wildfly/RESTEasy from Tomcat/Jersey. I have only begun to stub out the REST layer but it works. The only problem I am having so far is when I call an unhanded resource path that starts the root api path. For example: http://localhost:8080/tmoi-0.0.1/api2/account matche...
Nathaniel Johnson
1

votes
1

answer
8.3k

Views

producing EntityManager throws __FIRST_PHASE__ is missing

Here's my error ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "test.war")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"t...
xenoterracide
1

votes
1

answer
4k

Views

Error when running add-user.bat for Wildfly server

I'm trying to access the Administration console for Wildfly, but first it says I must run the 'add-user.bat' file in [server installation directory]/bin/ Which I do but then get an error saying, well, look: When I simply try and run the file by double clicking it I get: I'm running Windows 8.1 64b...
Tiwaz89
1

votes
1

answer
1.8k

Views

JEE7 @Transactional annotation not always fires

For several days I'm trying to manage with JPA transactions after moving to WildFly 8 server and JEE7 and I cannot understand why in some cases @Transactional (javax.transaction.Transactional) annotation doesn't intercept method annotated with it. I cannot see any rule why sometimes it works and som...
robson
1

votes
2

answer
620

Views

WildFly 8 patching

With all the hype on WildFly, we were really looking forward to it. There remains one questions though. I can find a lot of information on patching and how to apply a patch, but where do you actually get the patch from? Is it only for EAP customers?
Gerrie
1

votes
2

answer
1.2k

Views

JBOSS latest version

I am going to start a new enterprise application. Which version I wanted to use? Is it EAP 6.2.0 GA(EAP built from AS 7.3) or JBoss AS 7.1.0.Final or Wildfly 8.1.0.Final? I am very confused about these versions. when do i have to download EAP 6.2.0? Also, why wildfly is not avaialbe on http://jbossa...
mac
1

votes
2

answer
3.4k

Views

Wildfly 8 Session Problems in multi-virtual-host configurations

This is my setup scenario: EAR application with 2 ejbs, 4 war applications One standalone war application, absolute with no dependency on the ear artifacts. Scenario for the standalone war: virtual-host: config-service, at context-root, alias config.mydomain.com Uses jsf templates, such that the use...
maress
1

votes
1

answer
3.8k

Views

Disable Jboss wildlfy welcome content

I am running wildfly using domain.sh and am unable to disable the Wildfly welcome content even after deploying a ROOT.war with joss-web.xml having context-root / context-root
Dave
1

votes
2

answer
607

Views

Unidirectional @OneToMany association fails equality test in JPA

I have set up a unidirectional OneToMany relationship like the example in section 2.10.5.1 of the JPA 2.1 spec: @Entity public class Client implements Serializable { ... @OneToMany private List activeServiceOrders; public void setActiveServiceOrders( List activeServiceOrders ) { this.activeServiceO...
Renan
1

votes
3

answer
3k

Views

Standalone example on jberet (jsr352)

Is there anyway to use jberet as standalone module to execute Batch Jobs? All the time getting samples on using along with WildFly. Surprised to see it looks for container to load implementations while trying some samples. Any insights on why/why not would be helpful
Nageswara Rao
1

votes
1

answer
486

Views

Call remote ejb on wildfly 8.0 without jboss dependencies in classpath

I'm running a very simple remote ejb on a Wildfly 8.0 server. I'm trying to call the ejb from a standalone client. I've downloaded the wildly quickstart from https://github.com/wildfly/quickstart/tree/master/ejb-remote and it runs fine. However, I don't want any dependencies to jboss in my client. T...
jorgen.ringen
1

votes
1

answer
1.4k

Views

Is it possible to run SSL and non-SSL web applications on same standalone Wildfly?

Is it possible to run SSL and non-SSL web applications on same standalone Wildfly? I am using Wildfly 8.1.0 (Undertow) and I am having troubles at configuring this scenario... For example, I know how to configure either HTTP or HTTPS themselves, but whenever I try to run a configuration for both, th...
Deim0s
1

votes
1

answer
902

Views

Using classes from org.hibernate in WildFly

I'm migrating a Java EE application from GlassFish (4.0) to Wildfly (8.1.0 final). There is a requirement to use a native Hibernate package from hibernate-core (4.3.6 final) which is org.hibernate.annotations.Type. For example, @Type(type="org.jadira.usertype.dateandtime.joda.PersistentDateTime") pr...
Tiny
1

votes
1

answer
5.3k

Views

Wildfly 8, mod_cluster & apache integration

I am having problems getting mod_cluster 1.2 to work with Apache. I want the configuration to allow Apache to proxy my traffic to the apps server so that myserver.com:9191 (apache) routes traffic to myserver.com:9090 (jboss) Symptoms: When I start Wildfly the console produces the following error eve...
Marshall
1

votes
1

answer
4k

Views

Missing org.apache.commons.dbcp package in Maven project

When I try to type command to deploy my servlet: mvn clean package wildfly:deploy I got error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project wildfly-helloworld: Compilation failure: Compilation failure: [ERROR] /data/helloworld...
Robin
1

votes
1

answer
235

Views

Wildfly JAX-RS questiona about Produces

I tried official samples. And trying to use: curl http://localhost:8080/wildfly-helloworld-rs/rest/ -H 'accept:application/xml' curl http://localhost:8080/wildfly-helloworld-rs/rest/ -H 'accept:application/json' Both request return me xml representation: Hello World! I even tried to add this: @GET @...
Suvitruf
1

votes
1

answer
3.2k

Views

Wildfly 8.1 ClassNotFound org.apache.http.conn.ClientConnectionManager

I'm having a heck of a time getting a pooling connection manager to work for Resteasy clients. Deploying on Wildfly 8.1. import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.conn.PoolingClientConnectionManager; import org.jboss.r...
Matt
1

votes
1

answer
1.7k

Views

Simple RESTful endpoint using wildfly

I am running a javaee web application from the ground up using wildfly and simply want to expose some RESTful web services. My wildfly application server is running with the defaults it shipped with and I am not using any database entities although I do have a persisitance.xml to make wildfly happy...
Mike Meding
1

votes
1

answer
1.7k

Views

Is it possible to detect JBoss/WildFly PID?

When running in Domain mode, there are several JBoss JVMs running. Is it possible to detect which is the PID related to one server instance ? I need to monitor a specific server through JConsole, but I'm not able to figure out which one is it.
user2824073
1

votes
3

answer
2.2k

Views

Websocket issue on wildfly cluster

I am using richfaces a4j:push in my Spring-JSF integrated application. I am able to push messages to the browser using websocket in my non cluster environment on wildfly 8.0.0. When I deploy the application on wildfly8.0.0 on redhat enterprise 7.0 with httpd clustering the push messages are not work...
Sam
1

votes
1

answer
1.1k

Views

Browser access to the Infinispan Cache Lifespan for Security Cache is not expiring

For my application I have a combination of a REST service; and a web site. Both of which are within the same web app. To secure both I added this security domain to my standalone.xml. (MyAuthClass is a basic authentication extension that reaches out to a third party system for authentication) ... I...
TheNorthWes
1

votes
1

answer
1.4k

Views

How to deploy a Java web application with Travis CI to an OpenShift WildFly server?

I want to deploy my web app from GitHub with Travis CI to my WildFly application server on OpenShift. I followed the How to Build and Deploy OpenShift Java Projects using Travis CI tutorial but my index.html page from my Java EE 7 web app does not show up. Instead of the index.html page I get OpenSh...
Benny Neugebauer
1

votes
1

answer
2.1k

Views

Unable to authenticate cluster user: HORNETQ.CLUSTER.ADMIN.USER

I am getting following error in WildFly-8.2.0.Final domain mode. This error comes when I start second node. ERROR [org.hornetq.core.server] (default I/O-1) HQ224018: Failed to create session: HornetQClusterSecurityException[errorType=CLUSTER_SECURITY_EXCEPTION message=HQ119099: Unable to authenticat...
1

votes
1

answer
650

Views

Infinispan cache store by value and not by reference

How to configure Infinispan in wildfly's config files (standalone.xml or domain.xml) so that cached objects are always serialized (stored by value and not by reference). From the documentation of Infinispan storeAsBinary setting can be enabled, so that objects are stored to cache by value and not by...
klemenp
1

votes
1

answer
2.6k

Views

How to specify a new path variable in standalone.xml in Wildfly 8.2

I would like to set a new path for some logging handlers that is different from ${jboss.server.log.dir}. This article: General configuration concepts - WildFly 8 talks about how to create the XML node, but where do I place it within standalone.xml?? I've tried many place in standalone.xml, but all...
Jason Holmberg

View additional questions