wildfly

Wildfly throws “Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam” error

眉间皱痕 提交于 2019-12-06 10:04:49
问题 Im using wildfly 9.0 to deploy my war file. I have java LocalDateTime, Java Money types defined in my REST GET endpoints. When i deploy my war file, i get following error[1]. Based on this answer [2] I have written "ParamConverterProvider" implementations for both types. It was working fine( I haven't seen same issue again till now) and now i get same issue. Any clue? [1] Caused by: java.lang.RuntimeException: Unable to find a constructor that takes a String param or a valueOf() or fromString

How to lookup EJB into WildFly server to a client

六月ゝ 毕业季﹏ 提交于 2019-12-06 09:53:27
问题 I would like to know how to look up a EJB located into a WildFly server from a remote client using JNDI. Here is what I use to initialize the context jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); jndiProps.put(Context.PROVIDER_URL, "http-remoting://192.168.0.15:8080"); jndiProps.put("jboss.naming.client.ejb.context", true); Context ctx = new InitialContext(jndiProps); And this is the console output when I deploy the server: 21:08:29

PSQLException: Large Objects may not be used in auto-commit mode

独自空忆成欢 提交于 2019-12-06 08:50:42
问题 I am using WildFly 10, Java EE, JPA, and Hibernate. Recently I migrated my application from MySQL to PostgreSQL. While using MySQL, I would store images in my entities using: @Lob @Basic(fetch = FetchType.LAZY) private byte[] image; This worked great, and MySQL used a LONGBLOB to store the data. After switching to PostgreSQL, the column type is OID , and I receive this error when persisting the image: Caused by: org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit

Spring4 + Hibernate4 + JTA Write Operations Fail

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:36:30
I am migrating a legacy Spring 3, Hibernate 3, JTA on JBoss 5 application to the latest versions (Spring 4.1.0.RELEASE, Hibernate 4.3.6.Final, JBoss Wildfly 8.1). It seems that Spring 4.1.0.RELEASE and Hibernate 4.3.6.Final do NOT work together in supporting transactions for write operations with the LocalSessionFactoryBean and the HibernateTransactionManager as configured below. Read-only get operations appear to be working ok. To migrate, org.springframework.orm. hibernate3 .support.HibernateDaoSupport has been updated to org.springframework.orm. hibernate4 .support.HibernateDaoSupport. The

Use specific keystore for JMS

て烟熏妆下的殇ゞ 提交于 2019-12-06 08:04:40
问题 We have the requirement to use SSL client certificate for a JMS connection to an IBM MQ server. I already asked a question specifically for Websphere MQ but then I learned that this is mainly the job of JSSE and can be configured via Java System Properties (e.g. -Djavax.net.ssl.keyStore=<location of keyStore> ). But since there are already active keystores for other parts of the application within our WildFly 9 AS, I'm looking for a way to enable a specific keystore just for the JMS part -

Spatial Hibernate 5 On Wildfly 10

大兔子大兔子 提交于 2019-12-06 07:59:32
问题 I am using Wildfly 10 and developing an application using Spatial Hibernate 5 with PostGIS database. I am getting the below error in runtime. java.lang.IllegalStateException: Received object of type org.postgresql.util.PGobject Can anyone suggest some good tutorials as on how to use Spatial Hibernate with Wildfly 10? 回答1: I had the same problem and I just fixed it. It is basically a dependency issue. The problem is that you are loading the postgresql and/or postgis jars on your wildfly

Rule in undertow-handlers.conf to redirect HTTP to HTTPS

那年仲夏 提交于 2019-12-06 07:55:12
I have a Wildfly behind a load balancer, the connection between them is always HTTP. The connection between the client and the load balancer can be HTTP or HTTPS. The load balancer sets a header (X-Forwarded-Proto) to let the Wildfly know which protocol the client is using. I'm trying to write an Undertow rule to redirect to HTTPS taking into account all the conditions above. This is one of my more successful tries (this rule is written in the undertow-handlers.conf file and it's the only thing in that file): regex('/(.*)') and regex(pattern='http',value='%{i,X-Forwarded-Proto}',full-match

Right way to export\transfer WildFly 9 server options to other PC

99封情书 提交于 2019-12-06 07:21:47
问题 I need to export\transfer options (such as DataSource to MySQL) to other PC\server. How to do it correctly? I had tried to copy and rename standalone.xml and run it on other PC by following command: ./standalone.sh --server-config=standalone-(full)-myProject.xml Is it right way? And next problem - how export installed module (in WildFly) for MySQL correctly? I installed it like this (as module) at my machine http://hpehl.info/jdbc-driver-setup.html 回答1: I would strongly encourage you to use

微服务 WildFly Swarm 简介<十二>

自闭症网瘾萝莉.ら 提交于 2019-12-06 07:20:42
我们将看到的最后一个Java微服务框架是一个相对较新的场景,它利用了 JBoss WildFly 应用服务器中已试过且受信任的 JavaEE 功能。WildFly Swarm 是 WildFly 应用服务器的一个完整的拆下来的组件,可以被组装并形成一个利用 JavaEE API 的微服务应用程序,这些组件被称为片段大小的、可重用的组件。组装这些部分就像在 Java Maven(或Gradle) 构建文件中包含依赖项一样简单,而 WildFlyS 负责处理其余部分。 近15年来,应用服务器和 JavaEE 一直是企业 Java 应用程序的操纵者。WildFly(以前的 JBoss Application Server)是一个支持企业的开放源码应用服务器。许多企业大量投资于 JavaEE 技术(无论是开放源码的还是专有的供应商),从他们如何雇用软件人才,以及整体培训、工具和管理。JavaEE 始终能够通过提供 servlet/JSP、事务、组件模型、消息传递和一致性等功能来帮助开发人员构建分层应用程序。JavaEE 应用程序的部署被打包为 EAR ,它通常包含许多 WAR、JAR 和相关配置。一旦您有了Java存档文件(EAR/WAR),您就需要找到一个服务器,验证它是按照您期望的方式配置的,然后安装您的归档文件。您甚至可以利用动态部署和重新部署(虽然在生产中不建议这样做

Register new undertow SessionManager

谁说我不能喝 提交于 2019-12-06 07:06:35
问题 I have wildfly 8.1 server running. I have my own SessionManager implementing io.undertow.server.session.SessionManager. And i want to configure the system to use my session manager. Where and how should i configure/add new settings for my session manager? 回答1: public class StartupBeanExtension implements Extension, ServletExtension { @Override public void handleDeployment(DeploymentInfo deployment, ServletContext context) { boolean sessionPersistenceEnabled = Boolean.parseBoolean(BeanUtils