[
https://issues.jboss.org/browse/WFLY-10996?page=com.atlassian.jira.plugin...
]
Scott Marlow commented on WFLY-10996:
-------------------------------------
I'm trying to recreate the "java.lang.ClassNotFoundException:
org.wildfly.transaction.client.ContextTransactionManager from [Module
\"org.jboss.ironjacamar.impl\" version 1.4.11.Final from local module"
error locally. So far, I haven't recreated it. I am using the WildFly master branch.
I made a minimal change to your persistence.xml, to workaround my h2 database, not having
the "just_another_entity" table. My updated persistence.xml is now using
create-drop:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<persistence
xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="jpa-war-persistence"
transaction-type="JTA">
<description>JPA War Persistence</description>
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<class>com.test.JustAnotherEntity</class>
<properties>
<property name="jboss.entity.manager.factory.jndi.name"
value="java:/ManagerFactory"/>
<property name="hibernate.cache.use_second_level_cache"
value="true"/>
<property name="hibernate.cache.use_query_cache"
value="true"/>
<property name="hibernate.id.new_generator_mappings"
value="false"/>
<property name="hibernate.integration.envers.enabled"
value="false"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
</properties>
</persistence-unit>
</persistence>
{code}
From your the information in the error log, it sounds like your
wildfly/modules/system/layers/base/org/jboss/ironjacamar/impl/main/module.xml file is
missing the org.wildfly.transaction.client, could you verify that you see the same in your
module.xml for this folder. It doesn't seem likely that this is the problem but
please check. My module.xml contains:
{code}
<module name="org.jboss.ironjacamar.impl"
xmlns="urn:jboss:module:1.5">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="ironjacamar-common-impl-1.4.11.Final.jar"/>
<resource-root path="ironjacamar-core-impl-1.4.11.Final.jar"/>
<resource-root
path="ironjacamar-deployers-common-1.4.11.Final.jar"/>
<resource-root path="ironjacamar-validator-1.4.11.Final.jar"/>
</resources>
<dependencies>
<module name="sun.jdk"/>
<!-- javax.security.auth.callback -->
<module name="javax.api"/>
<module name="javax.resource.api"/>
<module name="javax.security.auth.message.api"/>
<module name="javax.validation.api"/>
<module name="org.hibernate.validator"/>
<module name="org.jboss.as.naming"/>
<module name="org.jboss.as.transactions"/>
<module name="org.jboss.jboss-transaction-spi"/>
<module name="org.jboss.ironjacamar.api"/>
<module name="org.jboss.logging"/>
<module name="org.jboss.threads"/>
<!-- org.jboss.security -->
<module name="org.picketbox"/>
<module name="javax.xml.stream.api"/>
<!--jgroups -->
<module name="org.jgroups"/>
<module name="org.wildfly.transaction.client"/>
</dependencies>
</module>
{code}
Database queries result in NoClassDefFound for
org/wildfly/transaction/client/ContextTransactionManager
-------------------------------------------------------------------------------------------------------
Key: WFLY-10996
URL:
https://issues.jboss.org/browse/WFLY-10996
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 14.0.1.Final, 14.0.0.Final
Environment: CentOS 7/Mac OS
WildFly 14.0.0 / WildFly 14.0.1
Reporter: Rakesh K. Cherukuri
Assignee: Scott Marlow
Priority: Blocker
Attachments: error.log, jpa-war.tar.gz, pgsql.driver.tar.gz,
standalone-full.diff
Basically WildFly is unable to either build the persistence context or it fails to query
postgres db.
The changes are so minimal that it should basically work.
Attached:
# error.log - exception in the server log
# jpa-war.tar.gz - maven module that can be used to reproduce the issue
# pgsql.module.tar.gz - postgres driver module that can be unpacked under
modules/system/layers/base/org/postgresql
# standalone-full.diff - diff that can be applied to standalone-full.xml to define
required datasource
Note:
- Tested same steps with wildfly 13 and there its woking fine.
- Tested with latest postgres driver and issue exists with v14.0.0 (and v14.0.1).
Postgres driver is thus ruled out.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)