[arquillian-issues] [JBoss JIRA] Commented: (ARQ-524) Embedded OSGi container cannot find test class

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Fri Jul 22 08:41:24 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615880#comment-12615880 ] 

Thomas Diesler commented on ARQ-524:
------------------------------------

Although the test bundle is installed in Equinox, the test class cannot be loaded dynamically from the arq bundle.

The same error condition would occur if the test bundle cannot be resolved for some reason. Not sure if every framework reports an resolver error for a dynamic class load.


> Embedded OSGi container cannot find test class
> ----------------------------------------------
>
>                 Key: ARQ-524
>                 URL: https://issues.jboss.org/browse/ARQ-524
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: OSGi Containers
>            Reporter: Thomas Diesler
>            Assignee: Thomas Diesler
>             Fix For: 1.0.0.Final
>
>
> 14:35:14,390 ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (main) Failed: org.jboss.test.osgi.example.simple.SimpleBundleTestCase.testBundleInjection: java.lang.ClassNotFoundException: org.jboss.test.osgi.example.simple.SimpleBundleTestCase
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
> 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
> 	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
> 	at org.jboss.arquillian.osgi.ArquillianBundleActivator$1.loadTestClass(ArquillianBundleActivator.java:65)
> 	at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:148)
> 	at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodEmbedded(JMXTestRunner.java:117)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list