[
https://issues.jboss.org/browse/AS7-4253?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-4253 at 7/10/12 3:45 AM:
--------------------------------------------------------------
Done. working test project attached
{code}
Running demo.experimental.IsolatedTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.743 sec
{code}
{code}
09:26:10,710 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "interfaces-osgi-0.0.1-SNAPSHOT.jar"
09:26:10,826 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011006: OSGi
Framework - 2.0.0.CR5
09:26:11,068 INFO [org.jboss.osgi.repository] (MSC service thread 1-4) JBOSGI020400:
Resource added: URLResource[org.apache.felix.eventadmin:1.2.6]
09:26:11,134 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: org.apache.felix.log:1.0.0
09:26:11,147 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: jboss-osgi-logging:1.0.0
09:26:11,171 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT
09:26:11,172 INFO [org.jboss.osgi.framework] (MSC service thread 1-1) JBOSGI011001:
Bundle installed: osgi.enterprise:4.2.0.201003190513
09:26:11,173 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011001:
Bundle installed: org.apache.felix.configadmin:1.2.8
09:26:11,364 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011011:
Starting bundles for start level: 1
09:26:11,390 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002:
Bundle started: org.apache.felix.log:1.0.0
09:26:11,452 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002:
Bundle started: org.apache.felix.configadmin:1.2.8
09:26:11,470 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002:
Bundle started: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT
09:26:11,494 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002:
Bundle started: jboss-osgi-logging:1.0.0
09:26:11,510 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: demo.experimental.interfaces-osgi:0.0.1.SNAPSHOT
09:26:11,530 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011000: OSGi
Framework started
09:26:11,650 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002:
Bundle started: demo.experimental.interfaces-osgi:0.0.1.SNAPSHOT
09:26:11,888 INFO [org.jboss.as.server] (management-handler-thread - 1) JBAS018559:
Deployed "interfaces-osgi-0.0.1-SNAPSHOT.jar"
09:26:12,856 INFO [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900:
Content added at location
/home/tdiesler/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/content/a8/5a9dca8c0699394106a49880b8984987194709/content
09:26:12,861 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876:
Starting deployment of "application-ear-0.0.1-SNAPSHOT.ear"
09:26:12,875 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876:
Starting deployment of "ejb-definition-0.0.1-SNAPSHOT.jar"
09:26:12,916 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: ejb-definition-0.0.1-SNAPSHOT.jar:0.0.0
09:26:13,024 INFO
[org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC
service thread 1-4) JNDI bindings for session bean named CalculatorBean in deployment unit
subdeployment "ejb-definition-0.0.1-SNAPSHOT.jar" of deployment
"application-ear-0.0.1-SNAPSHOT.ear" are as follows:
java:global/application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT/CalculatorBean!demo.experimental.interfaces.RemoteCalculator
java:app/ejb-definition-0.0.1-SNAPSHOT/CalculatorBean!demo.experimental.interfaces.RemoteCalculator
java:module/CalculatorBean!demo.experimental.interfaces.RemoteCalculator
java:jboss/exported/application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT/CalculatorBean!demo.experimental.interfaces.RemoteCalculator
java:global/application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT/CalculatorBean
java:app/ejb-definition-0.0.1-SNAPSHOT/CalculatorBean
java:module/CalculatorBean
09:26:13,171 INFO [org.jboss.osgi.framework] (MSC service thread 1-1) JBOSGI011002:
Bundle started: ejb-definition-0.0.1-SNAPSHOT.jar:0.0.0
09:26:13,337 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018559:
Deployed "application-ear-0.0.1-SNAPSHOT.ear"
09:26:13,427 INFO [org.jboss.as.repository] (management-handler-thread - 4) JBAS014900:
Content added at location
/home/tdiesler/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/content/8c/2fef02a7a18809b999dca054c15cece2fa0a5f/content
09:26:13,434 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
Starting deployment of "ejb-accessor-osgi-0.0.1-SNAPSHOT.jar"
09:26:13,449 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011001:
Bundle installed: demo.experimental.ejb-accessor-osgi:0.0.1.SNAPSHOT
09:26:13,494 INFO [stdout] (MSC service thread 1-4) MBEANSERVER FOUND
09:26:13,494 INFO [stdout] (MSC service thread 1-4) ************************ REGISTER
**********************
09:26:13,504 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011002:
Bundle started: demo.experimental.ejb-accessor-osgi:0.0.1.SNAPSHOT
09:26:13,585 INFO [org.jboss.as.server] (management-handler-thread - 4) JBAS018559:
Deployed "ejb-accessor-osgi-0.0.1-SNAPSHOT.jar"
09:26:13,642 INFO [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900:
Content added at location
/home/tdiesler/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/content/52/e80de9d95bfca178c21cfa0d539cd93e541267/content
09:26:13,647 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
Starting deployment of "cascaded-accessor-osgi-0.0.1-SNAPSHOT.jar"
09:26:13,672 INFO [org.jboss.osgi.framework] (MSC service thread 1-1) JBOSGI011001:
Bundle installed: demo.experimental.cascaded-accessor-osgi:0.0.1.SNAPSHOT
09:26:13,703 INFO [stdout] (MSC service thread 1-4) MBEANSERVER FOUND
09:26:13,703 INFO [stdout] (MSC service thread 1-4) ************************ REGISTER
CASCADED **********************
09:26:13,706 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011002:
Bundle started: demo.experimental.cascaded-accessor-osgi:0.0.1.SNAPSHOT
09:26:13,788 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018559:
Deployed "cascaded-accessor-osgi-0.0.1-SNAPSHOT.jar"
09:26:14,061 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,062 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,062 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,062 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,079 INFO [org.jboss.ejb.client] (pool-3-thread-1) JBoss EJB Client version
1.0.10.Final
09:26:14,084 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,160 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,160 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,160 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,161 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,161 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,230 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,230 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,230 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,231 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,231 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,237 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,237 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,237 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,238 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,238 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,291 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,291 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,291 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.cascaded-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from
Service Module Loader
09:26:14,292 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,292 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,298 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,299 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,299 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.cascaded-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from
Service Module Loader
09:26:14,299 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,300 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,379 INFO [stdout] (pool-3-thread-1) Setting TCCL to
org.jboss.osgi.framework.internal.HostBundleClassLoader@541748428
09:26:14,379 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,379 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,380 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,380 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,380 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,381 INFO [stdout] (pool-3-thread-1) Restoring original TCCL
org.jboss.osgi.framework.internal.HostBundleClassLoader@1548171171
09:26:14,385 INFO [stdout] (pool-3-thread-1) Setting TCCL to
org.jboss.osgi.framework.internal.HostBundleClassLoader@541748428
09:26:14,386 INFO [stdout] (pool-3-thread-1) Start lookup
09:26:14,386 INFO [stdout] (pool-3-thread-1) Bundle Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,387 INFO [stdout] (pool-3-thread-1) Context Classloader: HostBundleClassLoader
for Module "deployment.ejb-accessor-osgi-0.0.1-SNAPSHOT.jar:main" from Service
Module Loader
09:26:14,387 INFO [stdout] (pool-3-thread-1) doing lookup
for:ejb:application-ear-0.0.1-SNAPSHOT/ejb-definition-0.0.1-SNAPSHOT//CalculatorBean!demo.experimental.interfaces.RemoteCalculator
09:26:14,387 INFO [stdout] (pool-3-thread-1) lookup succeeded, calling remote bean
09:26:14,388 INFO [stdout] (pool-3-thread-1) Restoring original TCCL
org.jboss.osgi.framework.internal.HostBundleClassLoader@1548171171
{code}
was (Author: thomas.diesler):
Attached a working setup
TCCL used by EJBNamingContext is wrong when callstack passes through
multiple OSGi modules
------------------------------------------------------------------------------------------
Key: AS7-4253
URL:
https://issues.jboss.org/browse/AS7-4253
Project: Application Server 7
Issue Type: Bug
Components: EJB, OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.2.0.Alpha1
Attachments: as4253.zip, call-remote-ejb-with-cascaded-osgi-modules.zip,
isolated-test-case.zip
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira