wildfly-8

Null Pointer Exception in RestEasy Asynchronous Request

核能气质少年 提交于 2019-12-11 03:08:08
问题 I was working in Resteasy where I've to make a asynchronous request to server. The real purpose is, I'll be submitting a form which will be converted into a .xlsx file which will take atleast 10 seconds to complete. So Asynchronous request is the best way here. I followed the procedures from the following link. https://docs.jboss.org/resteasy/docs/3.0.9.Final/userguide/html_single/#Asynchronous_HTTP_Request_Processing I'm making the ajax request like this. $.ajax({ url : 'rest/parentPath

Installing Apache MyFaces 2 on WildFly 8.2.0

☆樱花仙子☆ 提交于 2019-12-11 02:57:55
问题 I want to add apache myfaces 2.2.7 in WildFly 8.2.0 and use it as default implementation. Can anybode please let me know where can I found installer jar for apache myfaces ? I am following the link https://developer.jboss.org/wiki/StepsToAddMyFacesSupportToWildFly to add MyFaces support to WildFly. As I understand correctly, I need to download install-myfaces-2.2.7.jar and then rename it to cli. But where can I find this jar ? I couldn't find the jar on nexus respository as mentioned in the

Spring WebApplicationInitializer not working in wildfly 8.2.0 EAR Deployment

馋奶兔 提交于 2019-12-11 02:57:43
问题 I have very simple EAR with one spring mvc web app (war), all spring libraries are in myear.ear/lib folder. I'm not using web.xml instead i'm trying to use WebApplicationInitializer but Wildfly server is not detecting this and i'm getting 404 page. But if i have spring-mvc libs inside WEB-INF/lib then its working. Even I have put debug pointer at my WebApplicationInitializer implementation but it doesn't seem calling the onStartup method itself (and No error logged). Has anybody faced the

Updating XML with namespace with xmlstarlet 1.6.1

[亡魂溺海] 提交于 2019-12-11 02:46:46
问题 I am trying to update the host-slave.xml from a Wildfly Cluster configuration with xmlstarlet. I am using the following statement: xml ed -N my=urn:jboss:domain:2.2 -u "_:host/management/security-realms/security-realm[@name='UndertowRealm']/server-identities/ssl/keystore/@path" -v "test" Wildfly\wildfly-8.2.0.Final\WildFly-HOST\configuration\host-slave.xml The namespace definition in xml: <host name="172.16.1.11" xmlns="urn:jboss:domain:2.2" > The part of the xml I want to change: <security

Nashorn class not found in WildFly

百般思念 提交于 2019-12-11 01:58:36
问题 I need to access an internal class from nashorn inside a web application running in WildFly. The following code is working fine in my machine: public class NashornTest { public static void main(String[] args) throws ClassNotFoundException { Class<?> cls = Class.forName("jdk.nashorn.internal.objects.ScriptFunctionImpl"); System.out.println(cls); } } But the following servlet is throwing a ClassNotFoundException when I run inside WildFly: @WebServlet("/nashorn") public class NashornServlet

Upgrad to Wildfly 8.2 with error

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:19:59
问题 I upgraded from Wildfly 8.1 to 8.2. My first JSF request resulted in this error, where this worked before. What is the culprit? Does one need to update any dependencies? JDK 8 required? 16:39:36,127 ERROR [io.undertow.request] (default task-1) L:80 UT005023: Exception handling request to /ccms/splitter.xhtml: java.lang.IllegalStateException at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:705) [jsf-impl-2.2.8-jbossorg-1.jar:] at com.sun.faces.context

Wildfly/JBoss deployment startup order

牧云@^-^@ 提交于 2019-12-10 09:22:25
问题 We use a service orientated architecture approach where we have some core services used by other services. On startup, our services usually load up a cache of data from the core services so that it's available when a request comes in or scheduled tasks run. I'm using Wildfly 8.2.0 and have Project A which depends on Project B (both are .war's). Project A needs to wait for Project B to be loaded in order to start up. Here is jboss-deployment-structure.xml in project B: <?xml version='1.0'

Deploying Java @Schedule with Wildfly 8.1.0 Final

限于喜欢 提交于 2019-12-09 18:13:43
问题 I am trying to test the @Schedule annotation with the following code: import javax.ejb.Schedule; import javax.ejb.Singleton; import javax.ejb.Startup; @Singleton @Startup public class TimerTest { public TimerTest() { } @Schedule(second = "*", minute = "*", hour = "*") public void sayHello() { System.out.println("Hello"); } } However, when I deploy it to the standalone instance of wildfly 8.1.0 (final) I am getting the following error messages in the logs: 2014-09-23 08:38:03,076 ERROR [org

Stateless EJB implements interface injection failed

本秂侑毒 提交于 2019-12-09 03:26:26
问题 Wildfly 8.2.0 I have a Stateless EJB and an interface. @Local @Stateless public class Bean implements IBean{ ... } @Local public interface IBean { ... } But I get a WELD Error. If Bean doesn't implement the interface there is no errors. According to https://stackoverflow.com/a/13988450/2023524 and https://blogs.oracle.com/arungupta/entry/what_s_new_in_ejb there should be no error. Error: WELD-001408: Unsatisfied dependencies for type Bean with qualifiers @Default at injection point

Can't get Remote EJB to work with EJB Client API on Wildfly

断了今生、忘了曾经 提交于 2019-12-08 15:46:26
I'm currently struggling with getting remote EJB invocation to work on wildfly (8.x and 9.x). In detail it's about remote invocation from a standalone client application (not from another app server) using the EJB Client API approach. The remote naming approach works for me but isn't applicable in my scenario because I need to use client-side interceptors for passing context data to a server-side interceptor for the remote invocations. But for now I try to get remote invocations with the client API to work for a simple example. Therefore I tried the quickstart for remote ejb invocation which