wildfly-9

Accessing Multiple web applications on Jboss7 or Wildfly

寵の児 提交于 2020-07-05 05:04:13
问题 I know we can deploy multiple web applications on JBoss 7 or Wildfly. But how can we access different web application with a different port? Where do we set that port for a web application? For example, application1 is accessible on x.x.x.x:8080 application2 is accessible on x.x.x.x:30000 application3 is accessible on x.x.x.x:35000 回答1: In your standalone you have to set up a different server and host for each application. <subsystem xmlns="urn:jboss:domain:undertow:1.2"> <server name=

Accessing Multiple web applications on Jboss7 or Wildfly

自作多情 提交于 2020-07-05 05:04:00
问题 I know we can deploy multiple web applications on JBoss 7 or Wildfly. But how can we access different web application with a different port? Where do we set that port for a web application? For example, application1 is accessible on x.x.x.x:8080 application2 is accessible on x.x.x.x:30000 application3 is accessible on x.x.x.x:35000 回答1: In your standalone you have to set up a different server and host for each application. <subsystem xmlns="urn:jboss:domain:undertow:1.2"> <server name=

Different behaviour on JAX-RS json (java.util.Date) serialization

倖福魔咒の 提交于 2020-06-16 18:50:27
问题 I'm migrating my application (Jee7) from Wildfly 9.0.1 to Wildfly 16.0.0. I noticed different Responses from JAX-RS json (java.util.Date) deserialization on both wildfly version. Is it a bug or Jee spec changed? Is there a way to globally fix it for entire application? Example classes: @ApplicationPath("/rest") public class RestConfig extends Application { } @Path("/test") public class TestResource { @GET @Produces(MediaType.APPLICATION_JSON) public TestEntity get() { return new TestEntity

Compile dynamically java class web project

末鹿安然 提交于 2020-01-15 08:53:29
问题 I'm developing a web application where I can import a java code, compile and then execute it. This class might have some imports from another libraries, which I added to my classpath. Running it as a desktop application, it works, but running under wildfly 9.0.2 it doesn't find my classpath libs and so, I have errors to compile my code. Do I have to change any setting on wildfly configuration? I tried my code with and without maven. I'm using this lib to compile my code, and like I said, it

Wildfly: Why I get only “Forbidden” if I call my Web application?

自古美人都是妖i 提交于 2020-01-02 02:28:07
问题 Yesterday our web application ran fine on WildFly 9. Since this morning I get only a "Forbidden" in the web browser. We don't use JAAS. There is also no difference if I set the following value to false in the standalone.xml : ... <subsystem xmlns="urn:jboss:domain:ejb3:3.0"> ... <default-missing-method-permissions-deny-access value="true"/> ... </subsystem> ... What can be the reasons that WildFly only shows the "Forbidden" page? EDIT If I set the log level for package org.jboss.security to

Infinispan Jgroups Crashes after war deploying

社会主义新天地 提交于 2019-12-29 09:52:17
问题 I'm working on Wildfly 9 with Infinispan 7.2.3. I'm facing up to a strange problem related to distributed cache: On the application server i have N deployed wars exposing REST services Each service code has the common duty to check if a CacheManager si already present on JNDI, if yes, it uses it otherwise i creates a new one and the bind it to the JNDI. So every war works with a unique CacheManager instance. The Infinispan CacheManager is configured in distributed mode. The infinispan and

java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class

白昼怎懂夜的黑 提交于 2019-12-24 16:40:29
问题 When I deploy my war file in wildfly9.0 I get following error; Any clue? Hibernate version=5.0.1.Final Hibernate validator version =5.2.1.Final 09:57:34,368 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.persistenceunit."test2dbwar.war#test2dbwar-persistence-unit": org.jboss.msc.service.StartException in service jboss.persistenceunit."test2dbwar.war#test2dbwar-persistence-unit": java.lang.ClassCastException: sun.reflect.generics

Best way to specify fields returned by a Service

偶尔善良 提交于 2019-12-23 11:57:35
问题 We're using Java EE 7 with WildFly 9 to develop the custom backend for a mobile/web application. The backend is a classic 3-tier system, with communication logic (JAX-RS), business logic (Session EJBs) and persistence layer (Hibernate). The business logic layer is composed by a set of services, each defined by an interface and an EJB implementation. Let's suppose public interface IPostService { List<PostDTO> getAllPosts(); } and @Stateless public class PostService implements IPostService {

OmniFaces graphicImage method throws IllegalArgumentException

醉酒当歌 提交于 2019-12-12 05:09:21
问题 as already covered in this SO post I was successfully creating an h:outputLink with of:graphicImageURL('imageBean.getFirstImage(Long id, boolean thumbnail)') . This works fine on my local machine. However, when I deploy it on one of my production servers (two instances of the software, both sharing the exact same Java Code, runs perfectly fine on Server A but not on Server B), it throws the following exception: Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun

JGROUPS Transport remoting start error using Infinispan

喜夏-厌秋 提交于 2019-12-12 03:37:00
问题 In my use case I developed N webapplications, each of which uses Infinispan shared cache and JGroups as transport layer. When a webapplication starts up, it creates a cachemanager object and registers it into the JNDI of the application server. The next started webcapplication check the JNDI and if it finds a cachemanager already binded by another webapplication it uses it with a simple lookup calls. This way the first webapplication instantiating the distributed cache manager should be the