jboss7.x

Jboss use JTS instead of JTA

巧了我就是萌 提交于 2020-03-05 01:34:27
问题 I have jacorb subsystem enabled in my jboss. But JTS is not enabled, I use only JTA. When an EJB remote call received by the jboss, instead of using JTA(com.arjuna.ats.internal.jta.transaction.arjunacore.jca.TransactionImporterImple) it gets JTS(com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple) and proceed with JTS. Since JTS is not enabled it failed with ORB is not initialized error. Can you please help me to identify why JTS is used instead of JTA. JBAS014134: EJB

Jboss use JTS instead of JTA

好久不见. 提交于 2020-03-05 01:34:07
问题 I have jacorb subsystem enabled in my jboss. But JTS is not enabled, I use only JTA. When an EJB remote call received by the jboss, instead of using JTA(com.arjuna.ats.internal.jta.transaction.arjunacore.jca.TransactionImporterImple) it gets JTS(com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple) and proceed with JTS. Since JTS is not enabled it failed with ORB is not initialized error. Can you please help me to identify why JTS is used instead of JTA. JBAS014134: EJB

ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedPreparedStatementJDK6 cannot be cast to OraclePreparedStatement

本秂侑毒 提交于 2020-02-25 09:40:08
问题 I'm working to migrate an application from Oracle Application Server to JBoss EAP 6.1. I have most things working but I am getting one error that I haven't been able to figure out: 13:27:29,743 ERROR [com.myproj.db.dao.myDao] (Thread-164) Get Prepared Statement: java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedPreparedStatementJDK6 cannot be cast to oracle.jdbc.internal.OraclePreparedStatement I have Oracle set up as a module in JBoss for connection pooling using ojdbc6

Spring Boot failed to load property source from location 'classpath:/application.xml'

╄→尐↘猪︶ㄣ 提交于 2020-02-05 03:53:32
问题 When I deploy a Spring Boot application packaged in an ear in Jboss 7.x EAP I get the following error: server.default-host./pepe: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./pepe: java.lang.RuntimeException: java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.xml' at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java

JBoss EAR deployment order

风流意气都作罢 提交于 2020-02-02 06:25:07
问题 I have 5 EARs that need to be deployed. One of them, local-configuration-ear-0.3.5-SNAPSHOT.ear , is a dependency of all the others, and they require it at deployment time, i.e. local-configuration-ear-0.3.5-SNAPSHOT.ear needs to be deployed first. All 5 of the EARs are located in the deployments folder. I read here that I can use jboss-deployment-structure.xml to manage the order of EAR deployment, but I ran into some issues. The file I made looks like this: <?xml version="1.0" encoding="UTF

Create DataSource using JBoss 7 JNDI and Spring

浪子不回头ぞ 提交于 2020-01-23 18:01:09
问题 I am first time making a webapp for Jboss server. For JBoss we have the jndi details, but I am wondering how to create the Datasource using it in spring application context. If anyone has an example to create the connection, please share it. 回答1: I will put this sample here. just to show another way to do it. <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:jboss/datasources/DSName</value> </property> </bean> 回答2: I found the

JBoss 7 Classloader — Exclude Module Implementation

我怕爱的太早我们不能终老 提交于 2020-01-16 18:05:43
问题 I have a simple piece of code instantiating a JBoss Hot Rod client and this is deployed in an .ear file on Jboss 7 System.out.println("Attempting to RemoteCacheManager at: "+ipAddress); Configuration conf = new ConfigurationBuilder().addServer().host(ipAddress).port(11222).build(); RemoteCacheManager manager = new RemoteCacheManager(conf); RemoteCache defaultCache = manager.getCache(); System.out.println("SUCCESS OUT: Connected to RemoteCacheManager at: "+ipAddress); logger.info("SUCCESS:

Connection is not associated with managed connection

让人想犯罪 __ 提交于 2020-01-16 08:38:55
问题 I'm migrating my application from java 7 to java 8 therefore migrating jboss 7.2 to wildfly 8. Hibernate 3.2.6ga is being used in my application. In the older version below code is running fine as conn value is not changing but with jdk8 and wildfly its causing issue. public static void methodName(final org.hibernate.Session session) throws java.sql.SQLException, Exception { StringBuilder queryString= null; PreparedStatement pstmt = null; Connection conn = null; try { queryString.append("sql

Setting context in a JPA connection — is this safe?

余生长醉 提交于 2020-01-13 11:09:18
问题 I need to set some context before every database operation (I have tried using Oracle's package-level variables, but due to some issues with package recompilation, I will experiment with DBMS_SESSION and/or DBMS_APPLICATION_INFO), so that we can get specific user info anywhere we need it (procedures, triggers, etc.), instead of having dozens of database connections identified as "JBoss". I have written a Java EE interceptor that intercepts calls to a @Stateless bean. It calls an Oracle

Setting context in a JPA connection — is this safe?

走远了吗. 提交于 2020-01-13 11:07:24
问题 I need to set some context before every database operation (I have tried using Oracle's package-level variables, but due to some issues with package recompilation, I will experiment with DBMS_SESSION and/or DBMS_APPLICATION_INFO), so that we can get specific user info anywhere we need it (procedures, triggers, etc.), instead of having dozens of database connections identified as "JBoss". I have written a Java EE interceptor that intercepts calls to a @Stateless bean. It calls an Oracle