wildfly-8

how to configure ssl in wildfly 8.2.0 server?

给你一囗甜甜゛ 提交于 2019-11-29 15:42:14
问题 I want secure connection for my web application. So, i want to configure ssl for my wildfly 8.2.0 server. I have created and stored .keystore file in standalone/configuration folder. $ keytool -genkey -alias foo -keyalg RSA -keystore foo.keystore -validity 10950 Enter keystore password: secret Have to add : <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"> <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect

WildFly - getting resource from WAR

喜欢而已 提交于 2019-11-29 14:46:55
I am using the following method to get a resource from WAR file in WildFly: this.getClass().getResource(relativePath) It works when the application is deployed as exploded WAR. It used to work with compressed WAR, too. Yesterday, I did a clean and rebuild of project in Eclipse, and it just stopped working. When I check the resource root: logger.info(this.getClass().getResource("/").toExternalForm()); I get this: file:/C:/JBoss/wildfly8.1.0.CR1/modules/system/layers/base/org/jboss/as/ejb3/main/timers/ So, no wonder it doesn't work. It probably has something to do with JBoss module loading, but

ContainerResponseFilter not working

我怕爱的太早我们不能终老 提交于 2019-11-29 10:32:05
In wildfly 8.1 with REST services, I wanted to implement CORS ContainerRequestFilter and ContainerResponseFilter. My request filter is working properly but ContainerResponseFilter never gets loaded nor called package org.test.rest; import java.io.IOException; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; import javax.ws.rs.container.PreMatching; import javax.ws.rs.ext.Provider; @Provider @PreMatching // <-- EDIT : This was my mistake ! DO NOT ADD THIS public class

How can I serve static resources from outside a war on WildFly

感情迁移 提交于 2019-11-29 10:06:07
I may be wrong, but to my understanding, the following must be possible in WildFly: It must be possible to put a link into my JSF views (i. e. the xhtml files) to a resource (pdf, image, other xhtml file) that is already on the WildFly server. I can do the same thing in php and an apache server. Where would I need to put those resources and how can I access them from my views? E. g. put a link in the view to a pdf file that opens the pdf file in a new tab. Thanks a lot for tips and hints!! EDIT standalone.xml <server name="default-server"> <http-listener name="default" socket-binding="http"

Database connections not closed after idle-timeout in wildfly Datasource

大憨熊 提交于 2019-11-29 09:52:39
I have an application running under wildfly 8.1 The database connections used in the applications are taken from a Datasource defined in standalone.xml file. Problem: I don't know why but the Connection from the Pool never goes Idle and are released. Eventually the Pool gets filled will all active Connection and application starts throwing javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/bo/datasource At the same time when I look at the database, most of the Connections are shown to be idle. (Configuration and result output below) I have been at this for a

Wildfly fails to deploy application (FileNotFoundException - Access is Denied)

爷,独闯天下 提交于 2019-11-29 09:28:27
Wildfly 8.2.0.Final JDK 8 Update 60 Eclipse Mars Update 1 JBoss Tools 4.3.0.Final Windows 10 Recently I upgraded the following things: from Windows 7 to Windows 10 from Eclipse Mars to Eclipse Mars Update 1 from JBoss Tools 4.3.0.Beta1 to JBoss Tools 4.3.0.Final and now when I try to deploy my application in Eclipse it doesn't work anymore (sometimes it works, but most of the time it doesn't work). Everything was working fine before the upgrades, but now I get this stack trace when I deploy the application (where you read "Acesso negado" below it means "Access is Denied" ): 13:18:12,452 SEVERE

How to use jars from Wildfly correctly in Maven?

天大地大妈咪最大 提交于 2019-11-28 23:31:53
I'm working on a project to deploy to Wildfly, and I'm using Maven to build it. This is a complex project with multiple war/jar/ear files, so there's a parent pom.xml with the following in it: ... <dependencyManagement> <dependencies> <dependency> <groupId>org.wildfly.bom</groupId> <artifactId>jboss-javaee-7.0-with-all</artifactId> <version>8.1.0.Final</version> <type>pom</type> <scope>import</scope> </dependency> ... </dependencies> </dependencyManagement> ... Unfortunately, the above BOM does not include various jar files that I know are in the default Wildfly 8.1.0.Final distribution. In

WildFly JNDI lookup for local EJB deployed in a WAR

馋奶兔 提交于 2019-11-28 14:14:32
I'm using WildFly 8.1.0 Final release. My application is a JavaEE web app deployed in a WAR (there is no EJB module .ear). I want to programmatically invoke local EJB with his name using JNDI. The EJB are just annotated with @Stateless (there is no Local or Remote interfaces) I try below function: private <E extends DomainObject> CrudService<E> lookUp(Class<E> cl) { try { final Hashtable jndiProperties = new Hashtable(); jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); final Context context = new InitialContext(jndiProperties); // The app name is the application

Using the WildFly application server with NetBeans IDE

一世执手 提交于 2019-11-28 13:48:43
I was accustomed to using GlassFish server all the times. I'm migrating a Java EE application from GlassFish (4.0) to WildFly 8.1.0 final. I tried using WildFly 8.1.0 final on NetBeans 8.0 using this plugin for the server, since there was no built-in plugin for the server. Unlike GlassFish, the application is however, not deployed on saving project data even though the deploy on save option on the IDE is enabled. The application leads to very strange/unknown/unusual problems. For example, this question is full of (merely) some of those problems. I upgraded NetBeans to 8.0.1 (with JSF to 2.2.8

How to define Context Path in Wildfly?

只谈情不闲聊 提交于 2019-11-28 12:04:45
I've used the following code to set the Context Path in tomcat where I can access my application directly using localhost:8080 by overriding the tomcat's default path. <Context path="" docBase="G:\bitbucket\projectpath\project\build\libs\project-1.0" workDir="G:\bitbucket\projectpath\project\build\libs\project-1.0\work" debug="0" reloadable="false" autoDeploy="true" unpackWARs="true" crossContext="true"/> Now I'm going to use wildfly-8.2.0 as runtime environment. I tried by directly pasting the .war file into G:\wildfly-8.2.0.Final\standalone\deployments and I can access my project in browser