wildfly

ClassCastException in between equal classes Wildfly 10

孤街醉人 提交于 2019-12-01 07:58:00
问题 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: <datasource jndi-name="java:jboss/datasources/PostgreDS" pool-name="PostgreDS" enabled="true" use-java-context="true"> <connection-url>jdbc:postgresql://192.168.0.112:5432/bdns</connection-url> <driver>postgresql</driver> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> <pool> <min

Received object of type org.postgresql.util.PGobject

我只是一个虾纸丫 提交于 2019-12-01 06:13:56
问题 I can insert geometry data into database from my code, but I can only query the data using an SQL editor, like PGAdmin III. I can't retrieve geometry data back to my code. Every attempt ends up with: "Received object of type org.postgresql.util.PGobject". Even running a simple query to test if two geometry values are equal, I get this error. 2017-09-11 19:04:47,771 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-37) /welcomePrimefaces.xhtml @46,106 actionListener=

Wildfly 8.2/undertow read time out

不羁的心 提交于 2019-12-01 05:03:22
问题 I recently migrated my project from jboss4 to wildfly 8.2 with java1.8. I have a webservice call using SAAJ which runs fine in command line. But when its run from within wildfly8.2, it times out after 60 seconds. I read from jboss forums that read requests have a default timeout of 60 seconds. So i changed my configuration in standalone.xml to <ajp-listener name="ajp" socket-binding="ajp" max-parameters="10000"/> **<http-listener name="default" socket-binding="http" max-parameters="10000"

Wildfly's JAXWS implementation seems to ignore bindingProvider property com.sun.xml.ws.transport.https.client.SSLSocketFactory

与世无争的帅哥 提交于 2019-12-01 04:48:10
问题 My environment is a Maven Project and Wildfly (8.2.1) as Application Server. What I need is to connect wihin a incoming REST call to a third party server using SOAP. I need SSL Client Authentication; therefore, I have my own KeyStore and TrustStore. I create therefore my own SSLContext and need to let the WebService use this SSLContext. There is a problem with Wildfly and it's used implementation of JAXWS (Apache CXF?) - I described it here (but with another aproach to solve the problem;

How to change Wildfly server's IP address

喜欢而已 提交于 2019-12-01 03:29:18
I'm working on preparing a program that runs on Wildfly for deployment to a customer site, and I need to change the IP address that Wildfly launches on. How do I configure Wildfly to start up at, for example, 127.0.0.2 instead of 127.0.0.1? Update I'm running Wildfly as a service on Windows. Either you can bind the address through passing the arguments while starting the server like ./standalone.sh -c standalone-full.xml -b=127.0.0.2 https://sourcevirtues.wordpress.com/2013/12/09/set-wildfly-binding-address-and-shutdown-from-cli/ or it can be configured in host.xml file <interface name="public

WildFly -> Undertow -> mapping subdomain to war file not working

孤人 提交于 2019-12-01 03:10:29
问题 WildFly 8.1.0 Final Windows Server 2012 R2 I have two sub-domains pointing at this server, and I want requests to each sub-domain to trigger a different war file:- webapp.domain1.com -> WildFly Server -> myapp1.war test.domain2.net -> WildFly Server -> myapp2.war My standalone.xml file is currently configured as follows based on advice received on the JBoss Developer site:- <subsystem xmlns="urn:jboss:domain:undertow:1.1"> <buffer-cache name="default"/> <server name="default-server"> <http

java.lang.ClassNotFoundException: org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper

ⅰ亾dé卋堺 提交于 2019-12-01 03:04:26
问题 During the validation of entity (before insertion) on my Spring MVC app I get the following error : ... at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang

FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)

 ̄綄美尐妖づ 提交于 2019-12-01 00:37:47
I have a bean: import javax.faces.context.FacesContext; import javax.faces.view.ViewScoped; ... @Named @ViewScoped public class SimpleBean implements Serializable { private static final long serialVersionUID = 1L; @Inject protected FacesContext facesContext; ... } According to https://arjan-tijms.omnifaces.org/p/jsf-23.html#1316 this should work with 2.3 ... When deploying to Wildfly 14, this results in: 13:02:33,516 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 72) HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect 13:02:33,563 INFO [org.hibernate.envers.boot

In JBoss/WildFly should I enable JTA on data source to use with JPA?

China☆狼群 提交于 2019-11-30 23:41:39
In JBoss/WildFly, when configuring a data source, there is a JTA option, which is disabled by default: <datasource jta="false" jndi-name="java:/wt/testds" pool-name="testds" enabled="true" use-ccm="false"> ... </datasource> Now I want to associate this data source with JPA using JTA transaction type: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">

wildfly integration with keycloak 403 forbidden error

。_饼干妹妹 提交于 2019-11-30 23:28:37
I have an application integrated with keycloak. THe application runs on wildfly server. I use web.xml to authenticate keycloak(as Login config). Apart from that i use keycloak.json file, where i define the keycloak realm settings in application. When i invoke the application pages, the keycloak login pages opens, after entereing the credentials, it comes back to wildfly with 403 forbidden error. Previously, the same setup was working but now after enabling ssl, i'm facing this issue. Please help me in resolving the issue, does it require any other additional setup for ssl. If its the case that