wildfly

JBoss AS / JBoss EAP / wildfly 区别

霸气de小男生 提交于 2019-11-29 00:35:44
JBoss AS 开源社区版本,发布比较频繁。JBoss 7 ,先后发布了 7.0.0, 7.0.1, 7.0.2, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.2.0, 其中 7.1.1 比较经典,7.2.0 是 JBoss EAP 6.1 的基础,但7.1.2, 7.1.3, 7.2.0 只是源代码打了 Tag,并没提供开放下载。 JBoss EAP(Enterprise Application Platform) 在开源版本上构建的企业版本,目前Redhat 已经将 JBoss EAP 放在 JBoss.org 开放下载,开发人无需注册 Redhat (之前是必须有 Redhat.com 账号才能下载 JBoss EAP)。商用请咨询 Redhat 客服。 Wildfly 是 JBoss AS 新的项目名称,从 8 开始,新的 JBoss AS 正式有一个名字,叫 WildFly, 目前已经发布 8 Beta 版本, 针对开发人员的 Java EE 7 功能已经完全实现。 来源: oschina 链接: https://my.oschina.net/u/159362/blog/192870

Setting up maximum of connections for web

痴心易碎 提交于 2019-11-28 23:47:47
问题 In JBoss7 we've restricted number of web connections by using this <connector name="https" scheme="https" protocol="HTTP/1.1" socket-binding="https" secure="true" max-connections="3000"> for urn:jboss:domain:web:1.0 subsystem which is replaced by urn:jboss:domain:undertow:1.2 in the wildfly. How to setup max-connections in wildfly? I went through the documentation and didn't find matching attribute. Thanks 回答1: Try add under filters definition <filters> <connection-limit name="limit

WildFly JNDI lookup for local EJB deployed in a WAR

馋奶兔 提交于 2019-11-28 14:14:32
I'm using WildFly 8.1.0 Final release. My application is a JavaEE web app deployed in a WAR (there is no EJB module .ear). I want to programmatically invoke local EJB with his name using JNDI. The EJB are just annotated with @Stateless (there is no Local or Remote interfaces) I try below function: private <E extends DomainObject> CrudService<E> lookUp(Class<E> cl) { try { final Hashtable jndiProperties = new Hashtable(); jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); final Context context = new InitialContext(jndiProperties); // The app name is the application

Using the WildFly application server with NetBeans IDE

一世执手 提交于 2019-11-28 13:48:43
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, this question is full of (merely) some of those problems. I upgraded NetBeans to 8.0.1 (with JSF to 2.2.8

Clustered Singleton using Wildfly?

隐身守侯 提交于 2019-11-28 12:52:24
I'm trying to create a simple clustered Singleton on Wildfly 8.2. I've configured 2 Wildfly instances, running in a standalone clustered configuration. My app is deployed to both, and I'm able to access it with no problem. My clustered EJB looks like this: @Named @Clustered @Singleton public class PeekPokeEJB implements PeekPoke { /** * Logger for this class */ private static final Logger logger = Logger .getLogger(PeekPokeEJB.class); private static final long serialVersionUID = 2332663907180293111L; private int value = -1; @Override public void poke() { if (logger.isDebugEnabled()) { logger

Tika-Parsers deployment issue on Wildfly

回眸只為那壹抹淺笑 提交于 2019-11-28 10:08:38
问题 As part of a web application i need to parse textual content of different incoming files. This should be quite simple using tika-parsers , but as soon as i try to deploy my webapp on Wildfly (tested V.8.2.1 and V.10.0.0.RC4) i run into problems. This is my maven dependency in a very basic webapp: <groupId>org.apache.tika</groupId> <artifactId>tika-parsers</artifactId> <version>1.11</version> This is the error i get during deployment (manual deployment or using arquillian for testing): Caused

Multithreading transactions hanging during persisting entity to postgresql via wildfly

╄→尐↘猪︶ㄣ 提交于 2019-11-28 09:40:41
问题 I've got a bean definition with an entityManager like this: @Stateless public class JPABean<T> { private static final Logger LOG = Logger.getLogger(JPABean.class); @PersistenceContext(unitName = "myPersistanceSettings") private EntityManager em; public void write(T o) { LOG.info("PERSISTING"); em.persist(o); LOG.info("FLASHING"); em.flush(); LOG.info("SUCCESS"); } My persistance.xml <persistence-unit name="eSystemJPA" transaction-type="JTA" > <provider>org.hibernate.ejb.HibernatePersistence<

NullPointerException when using PrimePush [duplicate]

被刻印的时光 ゝ 提交于 2019-11-28 08:34:50
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 2 years ago . When I try to initialize my eventBus I'm getting a NullPointerException: java.lang.NullPointerException at de.mrsfinster.web.livefeed.bean.FeedBean.init(FeedBean.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at

Eclipse: Can not find the tag library descriptor for “http://java.sun.com/jsf/core” using JBoss

回眸只為那壹抹淺笑 提交于 2019-11-28 08:01:47
问题 I know this question was asked a lot of times, since I searched for hours for a solution, but it was never answered (or at least not for my situation). I am using Wildfly 8.0 (ex JBoss), so I understand that I do not need to add jstl jars nor JSF jars since the implementation is already shipped with JBoss. Now even when telling eclipse to use the Wildfly runtime libraries, I get the above error. I checked and the jboss-jstl-api_1.2_spec-1.0.4.Final.jar is part of the library How can I get

How to disable WELD on WildFly

老子叫甜甜 提交于 2019-11-28 07:44:10
How to fully disable WELD on WildFly. I don't need it, because I use another DI framework. Exception 0 : javax.enterprise.inject.UnsatisfiedResolutionException: Unable to resolve a bean for 'org.springframework.data.mongodb.core.MongoOperations' with qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]. at org.springframework.data.mongodb.repository.cdi.MongoRepositoryExtension.createRepositoryBean(MongoRepositoryExtension.java:104) at org.springframework.data.mongodb.repository.cdi.MongoRepositoryExtension.afterBeanDiscovery(MongoRepositoryExtension.java:79) at sun