wildfly

Wildfly 9.0.1.Final: EAR deployment failed

左心房为你撑大大i 提交于 2019-12-31 05:47:05
问题 I am trying to deploy my struts based web application on Wildfly 9.0.1.Final. I am deploying as an .ear file that contains .war/.jar(EJB) files. But it gives me an error during deployment. Error Stacktrace: Failed to define class AuditMDB in Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link AuditMDB (Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass

Java EE 7 Portable solution for Integration and Unit testing

谁说胖子不能爱 提交于 2019-12-31 04:23:05
问题 I am trying to find a portable solution to test my Java EE 7 application. It is especially tricky when to test the EJB and their injections. For example: @org.junit.Test public void testIsValidCredentials() throws Exception { System.out.println("isValidCredentials"); String username = ""; String password = ""; Map properties = new HashMap(); properties.put(EJBContainer.MODULES, new File[] {new File("target/classes")}); EJBContainer container = javax.ejb.embeddable.EJBContainer

Use CXF libraries in Wildfly deployment with Maven artifact provided

房东的猫 提交于 2019-12-29 07:03:42
问题 Im trying to deploy a project containing an JAX-WS Interface to a wildfly 8.2 server. The project is packed as a war. Within that project I would like to use interceptors. import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; public class ReplyToHeaderInInterceptor extends AbstractSoapInterceptor { /*code*/} I'm using Maven with the "provided" tag, in order to not receiving the following error: Apache CXF library (cxf-rt-bindings-soap-3.1.1.jar) detected in ws endpoint

Use CXF libraries in Wildfly deployment with Maven artifact provided

百般思念 提交于 2019-12-29 07:03:33
问题 Im trying to deploy a project containing an JAX-WS Interface to a wildfly 8.2 server. The project is packed as a war. Within that project I would like to use interceptors. import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; public class ReplyToHeaderInInterceptor extends AbstractSoapInterceptor { /*code*/} I'm using Maven with the "provided" tag, in order to not receiving the following error: Apache CXF library (cxf-rt-bindings-soap-3.1.1.jar) detected in ws endpoint

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,

How do I Install JBoss AS / WildFly Server in Eclipse for Java EE

送分小仙女□ 提交于 2019-12-27 17:21:08
问题 When I went to the "new server wizard" I can't find the category for JBoss AS. When I clicked "Download new server adapter" I don't get any JBoss AS adapter in the list. 回答1: Install the most recent JBoss Tools. Go to Help > Install New Software . Set Work with to the following URL depending on Eclipse version: 4.7 (Oxygen): http://download.jboss.org/jbosstools/oxygen/development/updates/ 4.6 (Neon): https://download.jboss.org/jbosstools/neon/stable/updates/ 4.5 (Mars): http://download.jboss

How do I Install JBoss AS / WildFly Server in Eclipse for Java EE

有些话、适合烂在心里 提交于 2019-12-27 17:20:32
问题 When I went to the "new server wizard" I can't find the category for JBoss AS. When I clicked "Download new server adapter" I don't get any JBoss AS adapter in the list. 回答1: Install the most recent JBoss Tools. Go to Help > Install New Software . Set Work with to the following URL depending on Eclipse version: 4.7 (Oxygen): http://download.jboss.org/jbosstools/oxygen/development/updates/ 4.6 (Neon): https://download.jboss.org/jbosstools/neon/stable/updates/ 4.5 (Mars): http://download.jboss

Wildfly 9 console - changed its look and feel

♀尐吖头ヾ 提交于 2019-12-25 18:26:26
问题 Something happened and WF console changed to this look and feel, can you please advise? Previously: http://www.mastertheboss.com/images/stories/wildfly9/ds-templates1.png 回答1: Need to read release notes: http://wildfly.org/news/2015/06/10/WildFly9-CR2-Released/ WildFly 9 CR2 is released! I’m happy to announce the WildFly 9.0.0.CR2 release! This release addresses a number issues discovered during the CR1 cycle, and also includes a major UX update to the console . 回答2: If you like to have the

Deployment of Resource Adapter on Wildfly WFLYJCA0046 / IJ020066

 ̄綄美尐妖づ 提交于 2019-12-25 16:45:08
问题 Based on the Trading Connector example from the JEE 7 Tutorials, I've tried to create my own Resource adapter. It worked fine with glassfish. I'm trying to deploy my .EAR to a wildfly 10. It doesn't work, and is throwing the message below. I am kinda lost on where to start looking, as the only mention of the error code is in the source code of wildfly itself and I'd rather not read all the Wildfly code now (but I'm at it). The Resource Adapter is part of a .ear file, in that ear file I have