[JBoss JIRA] (WFLY-10953) Spring Application fails to boot
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-10953?page=com.atlassian.jira.plugin... ]
Brian Stansberry resolved WFLY-10953.
-------------------------------------
Resolution: Explained
> Spring Application fails to boot
> --------------------------------
>
> Key: WFLY-10953
> URL: https://issues.jboss.org/browse/WFLY-10953
> Project: WildFly
> Issue Type: Bug
> Components: Class Loading
> Affects Versions: 13.0.0.Final, 14.0.0.Beta2
> Reporter: Giovanni Lovato
> Assignee: Jason Greene
> Priority: Major
>
> When a Spring {{@Service}} has a {{@Transactional}} method and an {{@Autowired}} constructor, the app fails to boot with this exception:
> {code}
> org.springframework.aop.framework.AopConfigException: Unable to instantiate proxy using Objenesis, and regular proxy instantiation via default constructor fails as well; nested exception is java.lang.NoSuchMethodException: com.example.demo.MessageService$$EnhancerBySpringCGLIB$$afee8fff.<init>()
> at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:82)
> at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:205)
> ... 44 more
> Caused by: java.lang.NoSuchMethodException: com.example.demo.MessageService$$EnhancerBySpringCGLIB$$afee8fff.<init>()
> at java.lang.Class.getConstructor0(Class.java:3302)
> at java.lang.Class.getDeclaredConstructor(Class.java:2512)
> at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:76)
> ... 45 more
> {code}
> Removing the {{@Transactional}} method or the injected repository from the service, makes the app start.
> Worth noting: the app runs fine in WildFly 12.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-10953) Spring Application fails to boot
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-10953?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-10953:
-----------------------------------------
I think that's a solution not a workaround. I don't see any indication of a WildFly bug here. I see Spring code doing class generation with no WildFly code involved, and for that to work jdk.unsupported needs to be visible to the deployment. WildFly should not be exposing jdk.unsupported to deployments by default, so if their code needs it they need to declare the dependency.
> Spring Application fails to boot
> --------------------------------
>
> Key: WFLY-10953
> URL: https://issues.jboss.org/browse/WFLY-10953
> Project: WildFly
> Issue Type: Bug
> Components: Class Loading
> Affects Versions: 13.0.0.Final, 14.0.0.Beta2
> Reporter: Giovanni Lovato
> Assignee: Jason Greene
> Priority: Major
>
> When a Spring {{@Service}} has a {{@Transactional}} method and an {{@Autowired}} constructor, the app fails to boot with this exception:
> {code}
> org.springframework.aop.framework.AopConfigException: Unable to instantiate proxy using Objenesis, and regular proxy instantiation via default constructor fails as well; nested exception is java.lang.NoSuchMethodException: com.example.demo.MessageService$$EnhancerBySpringCGLIB$$afee8fff.<init>()
> at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:82)
> at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:205)
> ... 44 more
> Caused by: java.lang.NoSuchMethodException: com.example.demo.MessageService$$EnhancerBySpringCGLIB$$afee8fff.<init>()
> at java.lang.Class.getConstructor0(Class.java:3302)
> at java.lang.Class.getDeclaredConstructor(Class.java:2512)
> at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:76)
> ... 45 more
> {code}
> Removing the {{@Transactional}} method or the injected repository from the service, makes the app start.
> Worth noting: the app runs fine in WildFly 12.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-11082) ClassCastExceptions and unexpected ServletContainerInitializer executions
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11082?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-11082:
-----------------------------------------
"ServiceLoader provide only one instance of SCI"
Looking at the reproducer I see two "createJar()" calls which means two addAsServiceProvider(ServletContainerInitializer.class, SCI.class). Both of those META-INF/services files are visible when the war starts which means two ServiceLoader calls. It doesn't matter that there's only one Impl1.class.
If there's something I missed that means one of the META-INF/services files should not be visible, please let reopen. Otherwise I don't see a bug here.
> ClassCastExceptions and unexpected ServletContainerInitializer executions
> -------------------------------------------------------------------------
>
> Key: WFLY-11082
> URL: https://issues.jboss.org/browse/WFLY-11082
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 14.0.1.Final
> Reporter: Alexander Kudrevatykh
> Assignee: Bartosz Baranowski
> Priority: Major
> Attachments: dependencies.zip
>
>
> I got unexpected ClassCastExceptions in setup as in attached test
> ServiceLoader provide only one instance of SCI, but wildlfy executes it twice
> More weird - wrong Set of classes passed to onStartup method - classes are not extends @HandlesTypes annotation (because they loaded with different classloaders)
> sorry for complex description, look for attached test
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-11082) ClassCastExceptions and unexpected ServletContainerInitializer executions
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11082?page=com.atlassian.jira.plugin... ]
Brian Stansberry resolved WFLY-11082.
-------------------------------------
Resolution: Rejected
> ClassCastExceptions and unexpected ServletContainerInitializer executions
> -------------------------------------------------------------------------
>
> Key: WFLY-11082
> URL: https://issues.jboss.org/browse/WFLY-11082
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 14.0.1.Final
> Reporter: Alexander Kudrevatykh
> Assignee: Bartosz Baranowski
> Priority: Major
> Attachments: dependencies.zip
>
>
> I got unexpected ClassCastExceptions in setup as in attached test
> ServiceLoader provide only one instance of SCI, but wildlfy executes it twice
> More weird - wrong Set of classes passed to onStartup method - classes are not extends @HandlesTypes annotation (because they loaded with different classloaders)
> sorry for complex description, look for attached test
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-11111) Cannot build Artemis with JDK 11
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11111?page=com.atlassian.jira.plugin... ]
Brian Stansberry resolved WFLY-11111.
-------------------------------------
Resolution: Migrated to another ITS
> Cannot build Artemis with JDK 11
> --------------------------------
>
> Key: WFLY-11111
> URL: https://issues.jboss.org/browse/WFLY-11111
> Project: WildFly
> Issue Type: Bug
> Components: JMS
> Affects Versions: 14.0.0.Final
> Reporter: Miroslav Novak
> Assignee: Martyn Taylor
> Priority: Major
>
> Artemis cannot be build with JDK 11:
> {code}
> $ java -version
> openjdk version "11" 2018-09-25
> OpenJDK Runtime Environment 18.9 (build 11+28)
> OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
> {code}
> Build fails with:
> {code}
> $ mvn clean install
> ...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building ActiveMQ Artemis Parent 2.7.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ artemis-pom ---
> [INFO] Deleting /home/mnovak/projects/activemq-artemis/target
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ artemis-pom ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java) @ artemis-pom ---
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] ActiveMQ Artemis Parent ............................ FAILURE [ 0.302 s]
> [INFO] ActiveMQ Artemis Commons ........................... SKIPPED
> [INFO] ActiveMQ Artemis Core Client ....................... SKIPPED
> [INFO] ActiveMQ Artemis Selector Implementation ........... SKIPPED
> [INFO] ActiveMQ Artemis JMS Client ........................ SKIPPED
> [INFO] ActiveMQ Artemis Native POM ........................ SKIPPED
> [INFO] ActiveMQ Artemis Journal ........................... SKIPPED
> [INFO] ActiveMQ Artemis JDBC Store ........................ SKIPPED
> [INFO] ActiveMQ Artemis Server ............................ SKIPPED
> [INFO] ActiveMQ Artemis Protocols ......................... SKIPPED
> [INFO] ActiveMQ Artemis AMQP Protocol ..................... SKIPPED
> [INFO] ActiveMQ Artemis STOMP Protocol .................... SKIPPED
> [INFO] ActiveMQ Artemis OpenWire Protocol ................. SKIPPED
> [INFO] ActiveMQ Artemis HQClient Protocol ................. SKIPPED
> [INFO] ActiveMQ Artemis HornetQ Protocol .................. SKIPPED
> [INFO] ActiveMQ Artemis MQTT Protocol ..................... SKIPPED
> [INFO] ActiveMQ Artemis DTO ............................... SKIPPED
> [INFO] ActiveMQ Artemis Service Extensions ................ SKIPPED
> [INFO] ActiveMQ Artemis JMS Server ........................ SKIPPED
> [INFO] ActiveMQ Artemis CDI Integration ................... SKIPPED
> [INFO] ActiveMQ Artemis Boot .............................. SKIPPED
> [INFO] ActiveMQ Artemis Tools ............................. SKIPPED
> [INFO] ActiveMQ Artemis CLI ............................... SKIPPED
> [INFO] ActiveMQ Artemis Web ............................... SKIPPED
> [INFO] ActiveMQ Artemis Web ............................... SKIPPED
> [INFO] ActiveMQ Artemis Core Client All ................... SKIPPED
> [INFO] ActiveMQ Artemis Client OSGi ....................... SKIPPED
> [INFO] ActiveMQ Artemis JUnit Rules ....................... SKIPPED
> [INFO] ActiveMQ Artemis JMS Client All .................... SKIPPED
> [INFO] ActiveMQ Artemis JMS Client OSGi ................... SKIPPED
> [INFO] ActiveMQ Artemis RAR POM ........................... SKIPPED
> [INFO] ActiveMQ Artemis REST Interface Implementation ..... SKIPPED
> [INFO] ActiveMQ Artemis Maven Plugin ...................... SKIPPED
> [INFO] ActiveMQ Artemis Server OSGi ....................... SKIPPED
> [INFO] ActiveMQ Artemis Cons .............................. SKIPPED
> [INFO] ActiveMQ Artemis HawtIO Branding ................... SKIPPED
> [INFO] ActiveMQ Artemis HawtIO Plugin ..................... SKIPPED
> [INFO] ActiveMQ Artemis Console ........................... SKIPPED
> [INFO] ActiveMQ Artemis Spring Integration ................ SKIPPED
> [INFO] Apache ActiveMQ Artemis Distribution ............... SKIPPED
> [INFO] ActiveMQ Artemis Tests POM ......................... SKIPPED
> [INFO] ActiveMQ Artemis Test Support ...................... SKIPPED
> [INFO] ActiveMQ Artemis Unit Tests ........................ SKIPPED
> [INFO] ActiveMQ Artemis Joram Tests ....................... SKIPPED
> [INFO] ActiveMQ Artemis timing Tests ...................... SKIPPED
> [INFO] ActiveMQ Artemis JMS Tests ......................... SKIPPED
> [INFO] ActiveMQ Artemis Features .......................... SKIPPED
> [INFO] ActiveMQ Artemis Integration Tests ................. SKIPPED
> [INFO] ActiveMQ Artemis Client Integration Tests .......... SKIPPED
> [INFO] ActiveMQ Artemis Compatibility Tests ............... SKIPPED
> [INFO] ActiveMQ Artemis soak Tests ........................ SKIPPED
> [INFO] ActiveMQ Artemis stress Tests ...................... SKIPPED
> [INFO] ActiveMQ Artemis performance Tests ................. SKIPPED
> [INFO] Smoke Tests ........................................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.290 s
> [INFO] Finished at: 2018-10-04T11:23:43+02:00
> [INFO] Final Memory: 33M/128M
> [INFO] ------------------------------------------------------------------------
> [WARNING] The requested profile "zip" could not be activated because it does not exist.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce (enforce-java) on project artemis-pom: Execution enforce-java of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce: java.lang.ExceptionInInitializerError: null
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/home/mnovak/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.4/maven-enforcer-plugin-1.4.jar
> [ERROR] urls[1] = file:/home/mnovak/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
> [ERROR] urls[2] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
> [ERROR] urls[3] = file:/home/mnovak/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
> [ERROR] urls[4] = file:/home/mnovak/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
> [ERROR] urls[5] = file:/home/mnovak/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
> [ERROR] urls[6] = file:/home/mnovak/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
> [ERROR] urls[7] = file:/home/mnovak/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
> [ERROR] urls[8] = file:/home/mnovak/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> [ERROR] urls[9] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
> [ERROR] urls[10] = file:/home/mnovak/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> [ERROR] urls[11] = file:/home/mnovak/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> [ERROR] urls[12] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
> [ERROR] urls[13] = file:/home/mnovak/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
> [ERROR] urls[14] = file:/home/mnovak/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.4/enforcer-api-1.4.jar
> [ERROR] urls[15] = file:/home/mnovak/.m2/repository/org/apache/maven/enforcer/enforcer-rules/1.4/enforcer-rules-1.4.jar
> [ERROR] urls[16] = file:/home/mnovak/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
> [ERROR] urls[17] = file:/home/mnovak/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
> [ERROR] urls[18] = file:/home/mnovak/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.2/maven-dependency-tree-2.2.jar
> [ERROR] urls[19] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
> [ERROR] urls[20] = file:/home/mnovak/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
> [ERROR] urls[21] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
> [ERROR] urls[22] = file:/home/mnovak/.m2/repository/org/apache/maven/plugin-testing/maven-plugin-testing-harness/1.3/maven-plugin-testing-harness-1.3.jar
> [ERROR] urls[23] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar
> [ERROR] urls[24] = file:/home/mnovak/.m2/repository/org/codehaus/plexus/plexus-io/2.0.4/plexus-io-2.0.4.jar
> [ERROR] urls[25] = file:/home/mnovak/.m2/repository/junit/junit/4.11/junit-4.11.jar
> [ERROR] urls[26] = file:/home/mnovak/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[project>org.apache.activemq:artemis-pom:2.7.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------: begin 0, end 3, length 2
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-11446) Bring consistency to use of TransactionSynchronizationRegistry in WildFly
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11446?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-11446:
-----------------------------------------
I think I cleaned these out as part of the fix related to this that we did for 15.0.1. Here's what my IDE shows as the current uses of ContextTransactionSynchronizationRegistry:
{code}
Class
ContextTransactionSynchronizationRegistry
Found usages (21 usages found)
Class static member access (12 usages found)
wildfly-transactions (8 usages found)
org.jboss.as.txn.service.internal.tsr (8 usages found)
JCAOrderedLastSynchronizationList (1 usage found)
registerInterposedSynchronization(Synchronization) (1 usage found)
64 int status = ContextTransactionSynchronizationRegistry.getInstance().getTransactionStatus();
TransactionSynchronizationRegistryWrapper (7 usages found)
registerInterposedSynchronization(Synchronization) (1 usage found)
66 final ContextTransactionSynchronizationRegistry tsr = ContextTransactionSynchronizationRegistry.getInstance();
getTransactionKey() (1 usage found)
84 return ContextTransactionSynchronizationRegistry.getInstance().getTransactionKey();
getTransactionStatus() (1 usage found)
89 return ContextTransactionSynchronizationRegistry.getInstance().getTransactionStatus();
getRollbackOnly() (1 usage found)
94 return ContextTransactionSynchronizationRegistry.getInstance().getRollbackOnly();
setRollbackOnly() (1 usage found)
99 ContextTransactionSynchronizationRegistry.getInstance().setRollbackOnly();
getResource(Object) (1 usage found)
104 return ContextTransactionSynchronizationRegistry.getInstance().getResource(key);
putResource(Object, Object) (1 usage found)
110 ContextTransactionSynchronizationRegistry.getInstance().putResource(key, value);
wildfly-ts-integ-basic (2 usages found)
org.jboss.as.test.integration.ejb.remote.client.api.tx (2 usages found)
EJBClientXidTransactionTestCase (1 usage found)
beforeTestClass() (1 usage found)
134 txSyncRegistry = ContextTransactionSynchronizationRegistry.getInstance();
HTTPEJBClientXidTransactionTestCase (1 usage found)
beforeTestClass() (1 usage found)
148 txSyncRegistry = ContextTransactionSynchronizationRegistry.getInstance();
Maven: org.wildfly.transaction:wildfly-transaction-client:1.1.3.Final (2 usages found)
org.wildfly.transaction.client.naming.txn (2 usages found)
TxnNamingContext (2 usages found)
lookupNative(Name) (1 usage found)
86 return ContextTransactionSynchronizationRegistry.getInstance();
listBindingsNative(Name) (1 usage found)
123 binding(TransactionSynchronizationRegistry.class, ContextTransactionSynchronizationRegistry.getInstance())
Field declaration (1 usage found)
Maven: org.wildfly.transaction:wildfly-transaction-client:1.1.3.Final (1 usage found)
org.wildfly.transaction.client (1 usage found)
ContextTransactionSynchronizationRegistry (1 usage found)
34 private static final ContextTransactionSynchronizationRegistry instance = new ContextTransactionSynchronizationRegistry();
Local variable declaration (1 usage found)
wildfly-transactions (1 usage found)
org.jboss.as.txn.service.internal.tsr (1 usage found)
TransactionSynchronizationRegistryWrapper (1 usage found)
registerInterposedSynchronization(Synchronization) (1 usage found)
66 final ContextTransactionSynchronizationRegistry tsr = ContextTransactionSynchronizationRegistry.getInstance();
Method return type (1 usage found)
Maven: org.wildfly.transaction:wildfly-transaction-client:1.1.3.Final (1 usage found)
org.wildfly.transaction.client (1 usage found)
ContextTransactionSynchronizationRegistry (1 usage found)
getInstance() (1 usage found)
39 public static ContextTransactionSynchronizationRegistry getInstance() {
New instance creation (1 usage found)
Maven: org.wildfly.transaction:wildfly-transaction-client:1.1.3.Final (1 usage found)
org.wildfly.transaction.client (1 usage found)
ContextTransactionSynchronizationRegistry (1 usage found)
34 private static final ContextTransactionSynchronizationRegistry instance = new ContextTransactionSynchronizationRegistry();
Usage in import (5 usages found)
wildfly-transactions (2 usages found)
org.jboss.as.txn.service.internal.tsr (2 usages found)
JCAOrderedLastSynchronizationList (1 usage found)
33 import org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry;
TransactionSynchronizationRegistryWrapper (1 usage found)
30 import org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry;
wildfly-ts-integ-basic (2 usages found)
org.jboss.as.test.integration.ejb.remote.client.api.tx (2 usages found)
EJBClientXidTransactionTestCase (1 usage found)
60 import org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry;
HTTPEJBClientXidTransactionTestCase (1 usage found)
58 import org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry;
Maven: org.wildfly.transaction:wildfly-transaction-client:1.1.3.Final (1 usage found)
org.wildfly.transaction.client.naming.txn (1 usage found)
TxnNamingContext (1 usage found)
37 import org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry;
{code}
So the transactions subsystem's own (valid) use, some testsuite stuff and then client library use.
> Bring consistency to use of TransactionSynchronizationRegistry in WildFly
> -------------------------------------------------------------------------
>
> Key: WFLY-11446
> URL: https://issues.jboss.org/browse/WFLY-11446
> Project: WildFly
> Issue Type: Enhancement
> Components: Transactions
> Affects Versions: 15.0.0.Beta1
> Reporter: Scott Marlow
> Assignee: Tom Jenkinson
> Priority: Major
>
> See [https://github.com/wildfly/wildfly/pull/11784#discussion_r237172364] discussion about JNDI lookup of "java:jboss/TransactionSynchronizationRegistry" returning org.jboss.as.txn.service.internal.tsr.TransactionSynchronizationRegistryWrapper but other internal code sites (like EJB3, JPA container, JCA container) are directly using the org.wildfly.transaction.client.ContextTransactionSynchronizationRegistry.
> My suggestion is that we consider taking steps to eliminate some of the duplicate classes, so that the same TSR is always used. I think some discussion is needed to get there, but wanted to have this tracking jira.
> Somewhat related is that Hibernate ORM 5.3 now has direct references to org.wildfly.transaction.client.ContextTransactionManager + org.wildfly.transaction.client.LocalUserTransaction. Just mentioning in case its helpful to know for whomever looks at this jira.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months
[JBoss JIRA] (WFLY-11781) Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11781?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-11781:
-----------------------------------------
This should be in WFCORE.
> Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
> ------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-11781
> URL: https://issues.jboss.org/browse/WFLY-11781
> Project: WildFly
> Issue Type: Feature Request
> Components: Security
> Affects Versions: 15.0.1.Final
> Reporter: indrajit ingawale
> Priority: Major
>
> It is requirement to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm .
> --------------------------------------
> <security-domain name="TestDomain" default-realm="TestAggRealm" permission-mapper="default-permission-mapper" pre-realm-principal-transformer="test-transformer" security-event-listener="local-audit">
> <realm name="TestAggRealm" role-decoder="from-roles-attribute"/>
> </security-domain>
> .
> .
> <aggregate-realm name="TestAggRealm" authentication-realm="TestLdapRealm" authorization-realm="Test_Auth_LdapRealm"/>
> --------------------------------------
> I think to achieve this there need to be something like "mid-realm-principal-transformer" in <aggregate-realm> only .
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 4 months