wildfly

Migration from Jboss7 to Wildfly: allow access to servlet only from specific IPs

本秂侑毒 提交于 2019-12-11 18:40:24
问题 I'm migrating an application from JBoss7 to Wildfly. On JBoss I was allowing the access to one of the servlet from specific IPs using the valve element in jboss-web.xml <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/test-war</context-root> <valve> <class-name>org.apache.catalina.valves.RemoteAddrValve</class-name> <param> <param-name>allow</param-name> <param-value>127\..*\..*\..*,0:0:0:0:0:0:0:1%0</param-value> </param> </valve> </jboss-web> I would like to reproduce this

Wildfly 14 CDI: WELD-001408 on 3rd part JAR after migration from JBoss 7

跟風遠走 提交于 2019-12-11 18:28:54
问题 We are migrating a few old systems written in Java 5, 6 and 7 to Java 8 and from JBoss 7 to Wildfly 14. After the migration, I get all the time this kind of error: WELD-001408: Unsatisfied dependencies for type InterfaceTypeConverterProvider with qualifiers @Named I understand that from CDI 1.2 things changed and the @Inject don't work as it used to be and it need some refactoring. I got many errors like this, some of them are classes in my own project that try to Inject other classes also

How to programmatically hot reload static resources like xhtml in wildfly server for libs present in exploded war

巧了我就是萌 提交于 2019-12-11 17:37:19
问题 I have exploded war file based on JSF in wildfly 10. I have multiple jar files with XHTML and CDI beans which are present inside the lib of exploded war. If I change the content in XHTML file present in source related to the jar present in lib means, the content needs to be reloaded without updating the jar file in lib folder and redeploying the war file. How to achieve this functionality? This is already available in netbeans / eclipse IDE as "Copy static resources". But this is not working

Set AutoCommit to false for Wildfly DataSource

爱⌒轻易说出口 提交于 2019-12-11 17:07:06
问题 I have tried to configure all sorts of datasources XA and non-XA, JTA and RESOURCE_LOCAL in Wildfly 14 for a local Postgresql DB. I am trying to deploy a JAR that uses a PersistenceUnitInfo and initialises a Datasource from the a InitialContext. The problem now is that I cannot turn off Auto Commit in the datasource. Previously I was setting the defaultAutoCommit property in jetty-jnfi for a BasicDataSource type to false but I can't seem to a corresponding option in Wildfly config. If not

Hibernate OneToMany relation is PersistentBag instead of List

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:55:44
问题 I am developing an application in javafx that connects via RMI with an EAR. This EAR connects to a SQLServer DB and maps POJOS using hibernate. These POJOS contain bidirectional OneToMany and ManyToOne relationships. As a consequence these relationships are mapped as List . Company.java @Entity @Table(name = "Company") public class Company implements Serializable{ /** * */ private static final long serialVersionUID = 1L; @Id @Column(name="id_company",nullable = false) @GeneratedValue(strategy

WildFly 10 Spring Boot war Deployment Error

老子叫甜甜 提交于 2019-12-11 16:15:32
问题 I cannot upload and deploy my Spring Boot WAR package application on WildFly 10 because of the following error: Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./NetonePrepaidBillingRestService" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./NetonePrepaidBillingRestService: java.lang.RuntimeException: java.lang.ClassCastException: org.apache.tomcat.websocket.server

Support multiple application servers through Maven

≡放荡痞女 提交于 2019-12-11 15:44:00
问题 We have a Java web application that is deployed on Wildfly. However, one client now wants to use WebSphere. We've found that the included jar files in the lib folder of our war file need to be a little different between Wildfly and WebSphere - WebSphere doesn't like having some of the libs that Wildfly is fine with (different libraries provided by the AS?). We would like to automate this as much as possible, although I assume there's probably going to be some manual fiddling in a pom.xml or

PostgreSQL queries not killed on app server shutdown

若如初见. 提交于 2019-12-11 15:18:40
问题 I have a WildFly which hosts an app which is calling some long running SQL queries (say queries or SP calls which take 10-20 mins or more). Previously this WildFly was pointing to SQL Server 2008, now to Postgres 11. Previously when I killed/rebooted WildFly, I had noticed that pretty quickly (if not instantaneously) the long-running SP/query calls that were triggered from the Java code (running in WildFly) were being killed too . Now... with Postgres I noticed that these long running queries

WildFly AS 8.0 Error: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.event.EnversIntegrator not a subtype

瘦欲@ 提交于 2019-12-11 14:49:08
问题 I come from a heavy .NET/IIS background and although I have worked with Java in the past, I am fairly new to large Java web applications so please bear with me. Due to my limited background, I will walk through the steps I took from the very start trying to get this app to deploy (in case my "fix" for another issue could have broken something else). I am having trouble deploying a Spring/Hibernate application to the WildFly application server. The application itself definitely works because

Primefaces push with dynamic paths is not working

戏子无情 提交于 2019-12-11 14:38:46
问题 I tried to implement the chat sample of primefaces-push, but it doesn't working. I run some tests and i figured out that using @PushEndpoint with fixed paths e.g. /channel , it works properly, however, using path params e.g. /channel/{userId} , the socket doesn't receive any message. I'm using: Wildfly 9.0.0-Final Primefaces 5.2 Atmosphere 2.3.3 web.xml: <servlet> <servlet-name>Push Servlet</servlet-name> <servlet-class>org.primefaces.push.PushServlet</servlet-class> <load-on-startup>1</load