wildfly

Wildfly 8.1 ClassNotFound org.apache.http.conn.ClientConnectionManager

Deadly 提交于 2019-12-01 13:33:05
I'm having a heck of a time getting a pooling connection manager to work for Resteasy clients. Deploying on Wildfly 8.1. import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.conn.PoolingClientConnectionManager; import org.jboss.resteasy.client.jaxrs.ResteasyClient; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine; ... PoolingClientConnectionManager cm = new PoolingClientConnectionManager(); cm.setMaxTotal(200); cm.setDefaultMaxPerRoute(20);

Wildfly to Wildfly EJB client without remote-outbound-connections

我的未来我决定 提交于 2019-12-01 13:31:38
I'd like to be able to have two Wildfly (or JBoss 7) instances where one of the servers talks to EJBs on the other server. The tricky part is that according to documentation , remote-outbound-connections with outbound-socket-bindings need to be created. This is a big hassle for our Operations team, especially when we want to scale out. Is there any way for a Wildfly instance to call EJB's on another Wildfly instance by programmatically specifying the remote host? I've been able to have Tomcat 7 invoke Wildfly EJB's. I added a Maven dependency on org.jboss.as:jboss-as-ejb-client-bom:7.5.0.Final

Standalone JBoss EJB Client application - how to get JNDI connection - “distinct name”

丶灬走出姿态 提交于 2019-12-01 13:17:05
问题 There is a plethora of frustratingly incorrect (better description - "close but no cigar") information concerning remote access to JBoss EJBs from a standalone application. I've been beating my head against this wall for over a day with no success. I'm trying to port an EJB from WebLogic to JBoss, which is called by a standalone application running on another server. I've been here, here, and several other places chasing down various "solutions" to my problem without success. I've tried

Eclipse - maven - what goal should I execute to actually deploy to Wildfly from maven (achieve the same result as the “run on server” eclipse command)

十年热恋 提交于 2019-12-01 12:55:59
New to maven - I have an eclipse project that I can Right click > Run as... > Run on server and it runs successfully on my local Wildfly installation. Is there a way to RClick> Run as... and choose an appropriate maven goal to achieve the same effect (ie package as a war, copy to the servers dir (re)staring the server) ? Do I need to use a "wildfly maven plugin" ? Similar question for tomcat: maven deploy goal failing I am on eclipse Luna Java EE pack, maven 3.1 (the one that comes with eclipse) and using Wildfly 8.1.0.Final Related: One click build and deploy using Eclipse/Maven/JBoss AS 7

Is @Dependent scope not default in Wildfly?

会有一股神秘感。 提交于 2019-12-01 12:41:53
问题 I have some troubles with injecting POJOs via @Inject using Wildfly. The documentation clearly states: @Dependent - The default scope if none is specified; it means that an object exists to serve exactly one client (bean) and has the same lifecycle as that client (bean). However, when I have two classes: @Singleton @Startup public class A{ @Inject private B b; } public class B{ public B(){} } I keep getting: Unsatisfied dependencies for type B with qualifiers @Default at injection point

ClassCastException in between equal classes Wildfly 10

大兔子大兔子 提交于 2019-12-01 11:30:40
I am Creating a RESTful application and I am having trouble making a conversion for a new connection. My application server is Wildfly 10.0. DataSource and Driver in standalone-full.xml: <datasource jndi-name="java:jboss/datasources/PostgreDS" pool-name="PostgreDS" enabled="true" use-java-context="true"> <connection-url>jdbc:postgresql://192.168.0.112:5432/bdns</connection-url> <driver>postgresql</driver> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> <pool> <min-pool-size>10</min-pool-size> <max-pool-size>40</max-pool-size> <prefill>true</prefill> </pool> <security>

Wildfly and JAAS login module

拜拜、爱过 提交于 2019-12-01 10:57:00
问题 I'm playing with Wildfly-9.0.1.Final and JAAS but I'm not having so much fun.. I implemented my custom login module: public class MongoLoginModule implements LoginModule { @Inject protected MongoDB mongoDb; protected Subject subject; protected Principal identity; protected boolean loginOk; private CallbackHandler callbackHandler; private Map sharedState; private Map options; private Logger log = LoggerFactory.getLogger(MongoLoginModule.class); public boolean abort() throws LoginException {

JBoss+eclipes之HelloWorld

懵懂的女人 提交于 2019-12-01 10:21:19
网上罕有教程,文档看不太懂。鄙人摸索成功以记之。 创建新的EJB项目:【File】--【New】--【Other】-- 【EJB】--【EJB project】 此处可见我的JBoss服务器使用的是WildFly 16.0. 需要特别注意的是这里WildFly 版本与本教程方法一般 可行,JBoss用户可以尝试,是否可行未知。 上面所示需要勾选,这里会生成一个配置文件,当然在HelloWorld项目中影响不大,但是在复杂度稍微高一点的项目中,我们会需要修改项目配置文件以达到我们的目标。 项目目录结构如下图所示: 首先我们右键项目,选择【New】--【Other】--【EJB】--【Session Bean】 双击,新建Session Bean: 如图所示,填写名称后勾选 【remote】,点击【Next】【Finish】。 我们会发现在项目ejbMoudule中生成了Hello.java 和HelloRemote.java两个文件,其中HelloRemote是Interface文件,Hello是class文件。为了实现HelloWorld 我们加些代码在里面。 1 package com.amb.ejb; 2 3 import javax.ejb.Remote; 4 5 @Remote 6 public interface HelloRemote { 7 String

Eclipse - maven - what goal should I execute to actually deploy to Wildfly from maven (achieve the same result as the “run on server” eclipse command)

ⅰ亾dé卋堺 提交于 2019-12-01 09:50:36
问题 New to maven - I have an eclipse project that I can Right click > Run as... > Run on server and it runs successfully on my local Wildfly installation. Is there a way to RClick> Run as... and choose an appropriate maven goal to achieve the same effect (ie package as a war, copy to the servers dir (re)staring the server) ? Do I need to use a "wildfly maven plugin" ? Similar question for tomcat: maven deploy goal failing I am on eclipse Luna Java EE pack, maven 3.1 (the one that comes with

Received object of type org.postgresql.util.PGobject

只愿长相守 提交于 2019-12-01 09:01:31
I can insert geometry data into database from my code, but I can only query the data using an SQL editor, like PGAdmin III. I can't retrieve geometry data back to my code. Every attempt ends up with: "Received object of type org.postgresql.util.PGobject". Even running a simple query to test if two geometry values are equal, I get this error. 2017-09-11 19:04:47,771 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-37) /welcomePrimefaces.xhtml @46,106 actionListener="#{controlador.testar()}": java.lang.IllegalStateException: Received object of type org.postgresql.util