wildfly-8

WildFly management - list/detect REST endpoints deployed in WildFly

℡╲_俬逩灬. 提交于 2020-01-01 08:54:59
问题 Is there a way (e.g. from a WildFly management console) to list all REST endpoints deployed in WildFly? Or to list them in a log while a server is starting? 回答1: Using the RegistryStatsResource With RESTEasy (that is shipped with WildFly), you could add the following to your web.xml : <context-param> <param-name>resteasy.resources</param-name> <param-value>org.jboss.resteasy.plugins.stats.RegistryStatsResource</param-value> </context-param> And then request the following URL: http://[hostname

WildFly management - list/detect REST endpoints deployed in WildFly

ε祈祈猫儿з 提交于 2020-01-01 08:54:03
问题 Is there a way (e.g. from a WildFly management console) to list all REST endpoints deployed in WildFly? Or to list them in a log while a server is starting? 回答1: Using the RegistryStatsResource With RESTEasy (that is shipped with WildFly), you could add the following to your web.xml : <context-param> <param-name>resteasy.resources</param-name> <param-value>org.jboss.resteasy.plugins.stats.RegistryStatsResource</param-value> </context-param> And then request the following URL: http://[hostname

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException in REST with Spring

强颜欢笑 提交于 2019-12-30 07:13:25
问题 I am trying to create REST service using Spring.When I try to access that service it returns proper data but shows - Exception handling request to /RESTServ/user/2: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) [spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException in REST with Spring

删除回忆录丶 提交于 2019-12-30 07:12:05
问题 I am trying to create REST service using Spring.When I try to access that service it returns proper data but shows - Exception handling request to /RESTServ/user/2: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) [spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 06:49:10
问题 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!!

Using the WildFly application server with NetBeans IDE

丶灬走出姿态 提交于 2019-12-29 01:39:30
问题 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,

JMSContext NullPointer Exception - wildfly 8.2.0 default queue

此生再无相见时 提交于 2019-12-25 04:53:23
问题 I am trying to send messages to my default queue in wildfly and when i invoke "sendMessage()" the JMSContext is giving me a null pointer exception. what can i fix ? public class SendMsg { @Resource(lookup = "java:/ConnectionFactory") ConnectionFactory connectionFactory; JMSContext context=connectionFactory.createContext(); @Resource(mappedName="java:/jms/queue/test") Queue queue; public void sendMessage(String message) { System.out.println("fancy beans"); context.createProducer().send(queue,

Oracle BLOB exception during deployment/starting up war on Wildfly8

早过忘川 提交于 2019-12-25 03:11:51
问题 I have following exception during start-up of war java /w spring app Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFactoryBean#0' defined in "/content/service.war/WEB-INF/classes/META-INF/spring/applicationContext-service.xml": Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn't retrieve job because the BLOB couldn't be

Web Service on OpenShift

好久不见. 提交于 2019-12-24 17:25:38
问题 I have deployed a web service on OpenShift by annotating a class with @WebService and a public method with @WebMethod. Then, I deployed the class in a WildFly8 container and the server started the service. In order to be able to access the WSDL file I had to create a file "jboss-web.xml" inside the WEB-INF folder and change the context-root. Now I am able to access the WSDL file, but not the service itself. The problem is in this line of the wsdl file: <wsdl:service name="PlotterService">

@InterceptorBinding / CDI/ EJB 3.2 - problems with injection

匆匆过客 提交于 2019-12-24 17:00:14
问题 My dev environment is: WildFly 8.1, CDI, EJB 3.2, JDK 1.7. App is packed as an ear archive (one ejb + one war) because probably it gonna have other web modules in the future. I'm struggling with a custom @InterceptorBinding type used inside my EJB stateless bean. @Inherited @InterceptorBinding @Target({ TYPE, METHOD }) @Retention(RUNTIME) @Documented public @interface DetectIntegrityConstraintsViolation { } @javax.annotation.ManagedBean // make it a CDI bean. @Interceptor itself should be