wildfly-8

WebSocket handshake: Unexpected response code: 404

天涯浪子 提交于 2020-02-20 07:02:40
问题 Am writing my first websocket program and am getting "WebSocket handshake: Unexpected response code: 404", error while loading the webpage. I am using JDK 1.7 and jboss 8 (wildfly8.0). Could anyone please assist? window.onload = init; var socket = new WebSocket("ws://localhost:8080/WebsocketHome/actions"); socket.onmessage = onMessage; and head in html <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="websocket.js" type="text/javascript"><

Wildfly DuplicateServiceException

扶醉桌前 提交于 2020-01-21 04:19:26
问题 I have created simple EAR application using Maven archetype: wildfly-javaee7-webapp-ear-blank-archetype/8.2.0.Final http://s17.postimg.org/cy8zbpiu7/Zrzut_ekranu_z_2015_02_13_23_15_10.png My log from starting wildFly: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 23:08:04,244 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final 23:08:04,690 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final 23:08:04,787 INFO [org

How to disable Apache JServ protocol service

回眸只為那壹抹淺笑 提交于 2020-01-17 05:42:09
问题 The Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application server that sits behind the web server. Since, It's not recommended to have AJP services publicly accessible on the internet. If AJP is misconfigured it could allow an attacker to access to internal resources. Therefore, I want to enable this service only on my production system not on Development system or QA system. Please let me know, How should i disable this

Connection is not associated with managed connection

让人想犯罪 __ 提交于 2020-01-16 08:38:55
问题 I'm migrating my application from java 7 to java 8 therefore migrating jboss 7.2 to wildfly 8. Hibernate 3.2.6ga is being used in my application. In the older version below code is running fine as conn value is not changing but with jdk8 and wildfly its causing issue. public static void methodName(final org.hibernate.Session session) throws java.sql.SQLException, Exception { StringBuilder queryString= null; PreparedStatement pstmt = null; Connection conn = null; try { queryString.append("sql

wildfly-maven-plugin deployment over SSL works once then “connection error”

岁酱吖の 提交于 2020-01-06 06:32:53
问题 I'm getting a weird behavior after securing Wildfly Admin console to use HTTPS, and configuring my pom.xml to deploy over https. (I tried on versions 8.2.1 and 10.1.0, standalone mode). I can only (re)deploy once successfully. After that, I get the error below, and I have to restart the server to (re)deploy again: Change in pom.xml: <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.0.2.Final</version> <configuration> <protocol>https

wildfly-maven-plugin deployment over SSL works once then “connection error”

心不动则不痛 提交于 2020-01-06 06:32:47
问题 I'm getting a weird behavior after securing Wildfly Admin console to use HTTPS, and configuring my pom.xml to deploy over https. (I tried on versions 8.2.1 and 10.1.0, standalone mode). I can only (re)deploy once successfully. After that, I get the error below, and I have to restart the server to (re)deploy again: Change in pom.xml: <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.0.2.Final</version> <configuration> <protocol>https

Wildfly 8.1.0 shutting down automatically

眉间皱痕 提交于 2020-01-05 09:04:14
问题 I have a multi-threaded application that is built as a web-application (.war file). The structure of the web-application is, the ServletContextListener starts the threads, and shuts them down when the server is brought down. This application works charm in JBoss-5.1.0 production server. If the same war file is deployed in the Wildfly-8.1.0, as expected the ServletContextListener brings up all the threads, the threads also runs, but after somewhere around 90-100 minutes the Wildfly starts

Creating security domain using wildfly-maven-plugin has no effect

放肆的年华 提交于 2020-01-05 00:45:09
问题 I found this which uses /subsystem in its command, so I tried it with a different subsystem command (I use one to create a security domain), it builds successfully, but has no effect in standalone.xml. <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.1.0.Alpha1</version> <configuration> <execute-commands> <commands> <command>/subsystem=security/security-domain=secureD:add(cache-type=default)</command> <command>reload</command> <command>

SSL redirection from Apache to Wildfly

半世苍凉 提交于 2020-01-03 17:07:22
问题 I have two projects running on Wildfly-8 and I have two SSL certificates for each of them and one IP. I figured out that I should have one IP for one SSL certificate. But I needed to use these two SSL for one IP. I couldn't find a way to do it with Wildfly but there was a way to do it with Apache Server. So,I installed Apache Server up to Wildfly. I listen https port(443) on Apache and redirect it to Wildfly's http port(I used 8080). It works without any problem. What I wonder is; 1. Is

Unable to fill pool (no buffer space available)

偶尔善良 提交于 2020-01-01 08:57:07
问题 I'm using Wildfly 8.2 and fire a series of DB requests when a certain web page is opened. All queries are invoked thru JPA Criteria API, return results as expected - and - none of them delivers a warning, error or exception. It all runs in Parallel Plesk. Now, I noticed that within 2 to 3 days the following error appears and the site becomes unresponsive. I restart and I wait approx another 3 days till it happens again (depending on the number of requests I have). I checked the tcpsndbuf on