wildfly

Error in starting Wildfly 8.0 server with JDK 1.8

自闭症网瘾萝莉.ら 提交于 2019-12-06 14:16:17
I get this error when I start the server. I tried everything but still not sure what the cause is . Please help Thanks java.lang.IllegalArgumentException: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE" at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:119) at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:338) at org.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:291)

How to deploy a EAR app as zipped from Eclipse into Wildfly using JBoss Tools plugin?

梦想的初衷 提交于 2019-12-06 14:06:52
My operating system is Windows 7 64-bit. I am using Eclipse Luna. I have JBoss Tools 4.2.3.Final plugin. I am using Wildfly 8.2.1.Final in Standalone mode. I have a EAR app named TestApp . To publish it to Wildfly from Eclipse, in the Servers view, I right click on the Wildfly server to open the pop-up menu and click on Publish option. When I publish it to Wildfly from Eclipse, it is deployed as exploded in standalone\deployments directory i.e. a sub-directory named TestApp.ear is created in standalone\deployments directory which has all the files. What I want is when I publish it to Wildfly

Unable to find contextual data of type: java.ws.rs.container.ContainerRequest (Wildfly error)

烂漫一生 提交于 2019-12-06 13:19:48
I am using wildfly 9.0.1.Final I am deploying a REST application which has an endpoint defined like this: @GET @Path("/view/products") @Produces(MediaType.APPLICATION_JSON) @CORSEnabled @Protected public String getConfiguredProducts( @Context ContainerRequestContext request) { if (request != null) { Integer companyId = (Integer) request.getProperty("company"); if (companyId != null) { //do stuff } } // ... more staff } When the application runs, the context is injected, i.e. 'request' is non null. When I try though to retrieve the property I get back the error: executing GET /complaints/view

How to use JPA - EntityGraph to load only a subset of entity @Basic attributes?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 13:16:05
I found this documentation about entity-graphs... after read it, it gave me the idea that you can used entity-graphs to retrieve only a subset of @Basic fields of a given entity (Until now, I have used entity-graphs to retrieve relationships EAGERLY, i.e, for example, load an Employee[including all its attributes] and its associated Department[including all its attributes])... So, I decided to try this using a small test: @Entity @Table(name = "employee") @NamedEntityGraphs({ @NamedEntityGraph( name = "OnlyName", attributeNodes = @NamedAttributeNode(value = "name") ) }) public class Employee

How to run 2 (or more) Wildfly instances on the same machine?

穿精又带淫゛_ 提交于 2019-12-06 13:06:27
I want to simulate 2 servers by running 2 independent instances of Wildfly. This is useful when you don't want to deploy all WARs on the same instance and then only be able to shut them down and start them together. I'm using Eclipse with the JBoss plugin where in the Servers view I want to have 2 Wildfly servers that I can stop and run separately and simultaneously. How do I do that? It's possible to duplicate your Wildfly installation folder, but that takes up more space and you would need to update both for every change. Instead it's possible to share the root folder and just create 2

Wildfly 10.1 Consuming All Cores

╄→尐↘猪︶ㄣ 提交于 2019-12-06 12:55:51
We have recently upgraded our banking application from java 1.6 to 1.8 and jboss 4.x to wildfly 10.1. We have observed that java consuming all the cores (10), available on the machine. Can someone tell what is the reason, normally with jboss 4.x max CPU utilisation was up to 4 cores. Do i need to configure anything for Garbage collection? Below is the result of (added on process consuming high cpu) ps -eLo pid,lwp,nlwp,ruser,pcpu,stime,etime,args|grep 3630 Below is the hex for each LWP consuming high cpu Now i have checked thread dump For LWP 7914 "default task-7" #182 prio=5 os_prio=0 tid

Allow the RSA v1.5 Key Transport Algorithm for WildFly / JBossWS / CXF / WSS4J stack

为君一笑 提交于 2019-12-06 11:58:43
In response to a security advisory (see http://cxf.apache.org/note-on-cve-2011-1096.html ) regarding the RSA v1.5 key transport algorithm, both CXF and WSS4J projects have disallowed use of all related algorithms by default. They have however supplied a configuration tag "ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM" which should re-allow these algorithms (see https://ws.apache.org/wss4j/config.html ) Our problem is getting these frameworks (JBossWS / CXF / WSS4J) to accept/use this configuration setting. We have tried using: jboss-webservice.xml custom CXF interceptor (setting the param after CXF

JavaEE Wildfly EJB not injected, war-only project

╄→尐↘猪︶ㄣ 提交于 2019-12-06 11:23:13
I'm new to JavaEE and I created a "hello world" project, using Hibernate as JPA provider, build using gradle and deployed to Wildfly . I want to use @Stateless bean for database-aware class, that will do all operations on DB, and then inject it to all "JAX-RS" classes, that contain REST endpoints. Database class: @Stateless public class DatabaseManager { @PersistenceContext EntityManager entityManager; public DatabaseManager() { } public String sayHello() { // do some db-stuff return "EHLO"; } } REST class: @Path("/") @SessionScoped public class RestMainEndpoint implements Serializable { @EJB

JSR 352: Wildfly9 / JBeret - How to call a batch job that it is not contained at the same deployment file level

点点圈 提交于 2019-12-06 11:10:24
I have a WAR application that includes a JAR library. The JAR library contains the Batch Job and the Batch Artifacts ( META-INF/batch-jobs/... ). The WAR app includes this jar as a library and defines a JAX-RS Service that allows to clients to invoke the batch job calling the JobOperator Interface... When i run this deployment, the JSR 352 implementation (JBeret) keeps complaining that the Job cannot be found anyware when the JobOperator Interface is called... However, if the Batch Job and the Batch Artifacts are included as classes of the WAR deployment, everything runs smoothly... So, what

Retrieve Keycloak user data using received access token

六月ゝ 毕业季﹏ 提交于 2019-12-06 10:55:34
问题 I am developing a WildFly-Backend (in Java) that accepts HTTP requests (from a custom Frontend) that are signed with the user's Keycloak bearer access token through the "Authorization" HTTP header. The Backend connection itself is already secured with the Keycloak adapter for WildFly, but internally, I want to check who the user is (user groups, name, etc.) and return verying responses. I figured that it would be possible to just send this data from the Frontend, but then people could easily