wildfly

PicketLink protection stops JSF 2.2 resource contract from being loaded

半腔热情 提交于 2019-12-11 13:10:46
问题 I have a JSF 2.2 webapp with a contract and several pages, located directly in the WebContent folder. The contract consists of an image, a template file template.xhtml and a css file global.css . So far everything is working as expected. Now I want to use PicketLink for user authentication and authorization and have followed a tutorial (http://www.ocpsoft.org/security/simple-java-ee-jsf-login-page-with-jboss-picketlink-security/), but when accessing my pages the image and css files are unable

Run Rscript from Spring MVC with Wildfly 9

旧时模样 提交于 2019-12-11 12:57:12
问题 I am trying to run Rscript from JAVA code. I am able to do so. Now I am trying to run same JAVA code from a Spring MVC project and using Wildfly 9 to run the project. For the first time when I am trying to execute JAVA code (to run Rscript) is working fine and giving correct result, but on running 2nd time it is giving error and Wildfly stops running. Below is the error that I am getting: A fatal error has been detected by the Java Runtime Environment: Internal Error (0xc0000029), pid=6768,

WildFly - EJB invocations from a remote client - Operation failed with status WAITING

Deadly 提交于 2019-12-11 11:29:18
问题 Following is my code to invoke an ejb, but it wait for the connection and get failed. I changed the port to 4447 but no luck. private DataGridService lookupRemoteEJB() throws NamingException { Context context = null; try { Properties clientProperties = new Properties(); clientProperties.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false"); clientProperties.put("remote.connections", "default"); clientProperties.put("remote.connection.default.port", "4447");

Build issues RXTX library on Wildfly 10.0

北城余情 提交于 2019-12-11 11:07:11
问题 I have a simple java application using the RXTX library and it is working fine.No links errors and no builds errors. I made another web dynamic application (JAVA EE) using the same library but when i try to deployed it on a Wildfly 10.0 i have this error : java.lang.NoClassDefFoundError: gnu/io/CommPortIdentifier Which i know means that either the library is not found or loaded multiple times. Here is the library : and here is the hierarchy of my application : As you can see for the Eclipse

How to access JDK tools.jar javac from application deployed in JBoss 7 or WildFly

十年热恋 提交于 2019-12-11 10:35:42
问题 I am deploying an application that tries to use javac and finally fails with java.lang.NoClassDefFoundError: com/sun/tools/javac/Main How should I make javac from tools.jar available to the application deployed in JBoss 7 or WildFly ? 回答1: Here is the process I followed to create a JBoss module for javac : mkdir -p modules/com/sun/tools/javac/main ln -s /usr/java/latest/lib/tools.jar modules/com/sun/tools/javac/main/tools.jar Create modules/com/sun/tools/javac/main/module.xml with content: <

Tomcat 8.5 Wildfly 15 Java 8 OutOfMemoryError and very slow startup

前提是你 提交于 2019-12-11 10:24:40
问题 After enabling @Autowrid , Maven project with Spring 4, in approximately: 800 ManegedBeans Spring, 900 Services, 1000 @Component and 1000 @Repository , the startup application trhow an OutOfMemoryError . I increased the parameters -Xms1024m -Xmx4g in Tomcat and Wildfly, in the application I added the default-lazy-init = "false" parameter in applicationContext.xml and at a great cost the application is starting. I would like to know if there is any advantage in removing @Autowired private

How to reduce the time taken for Wildfly to deploy?

佐手、 提交于 2019-12-11 10:19:42
问题 During deployment of my Web application, there is delay/pause of more than 2 minutes due to which the deployment is failing (because of timeout) The below line is the last line that is printed after which it takes considerable time for the next log to print. WFLYSRV0049: WildFly FUll 9.0.2.Final (WildFly Core 1.0.2.Final) starting I understand that by increasing the timeout I can avoid the timeout exception but, is there a way I can reduce the time taken by the application to get deployed?

Wildfly 8 host EJB 3.x application problems

女生的网名这么多〃 提交于 2019-12-11 09:35:59
问题 I use Wildfly 8, SDK 1.7, and Intellij IDE and try to make basic ejb server. I made the project which contains two child modules: interface and server. Interface: package testing; ... @Remote public interface Test { public void sayHi(); } Server: package srv; ... import testing.Test; @Stateless public class TestBean implements Test { @Override public void sayHi() { System.out.println("Hi"); } } The dependencies are javax.ejb.jar for both modules and jboss-client + my interface for server one.

error in simple RESTtful web service implementation

[亡魂溺海] 提交于 2019-12-11 08:08:46
问题 Softwares used : Java Version : "1.7.0_21" Eclipse Version : Kepler Application Server : wildfly-8.1.0.Final(with RESTeasy bundle) My try : I want to implement REST web service. My resources is university. package com.nagarro.university; import javax.ws.rs.ApplicationPath; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Application; import javax.ws.rs.core.MediaType; @ApplicationPath("

Is it possible to deploy an application with WildFly as a bundle?

浪子不回头ぞ 提交于 2019-12-11 08:07:25
问题 Is it possible to deploy an application with WildFly as a bundle? I am able to do this with embedded Glassfish. 回答1: If you want to embed JBoss/Wildfly with your app, you should review Wildfly Swarm. That's a way to generate an application that contains the server embedded. It's very similar to Spring Boot, but you can use Java EE APIs. 回答2: As you can see in JBoss documentation there has been something for OSGi, rather than there is... To me it looks like this has died before wildfly was