[arquillian-issues] [JBoss JIRA] Closed: (ARQ-431) ClassNotFoundException on Websphere

Gerhard Poul (JIRA) jira-events at lists.jboss.org
Sun May 1 07:17:18 EDT 2011


     [ https://issues.jboss.org/browse/ARQ-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Poul closed ARQ-431.
----------------------------



resolution verified by reporter.

> ClassNotFoundException on Websphere
> -----------------------------------
>
>                 Key: ARQ-431
>                 URL: https://issues.jboss.org/browse/ARQ-431
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Test Protocol SPIs and Implementation
>    Affects Versions: 1.0.0.Alpha5
>            Reporter: Yves Langisch
>            Assignee: Gerhard Poul
>
> I'm trying to make the TemperatureConverterTest running as an EAR on my WAS but I always get a ClassNotFoundException for the test class on the server side (test class is not missing in the jar). Relevant snippet from the test class:
> ...
>     @Inject
>     private TemperatureConverter converter;
>     @Deployment
>     public static EnterpriseArchive createTestArchive() {
>         return ShrinkWrap.create(EnterpriseArchive.class, "testConverter.ear")
>                 .addAsModule(
>                         ShrinkWrap.create(JavaArchive.class, "test.jar").
>                                 addClass(TemperatureConverterTest.class).
>                                 addClass(TemperatureConverter.class));
>     }
> ...
> ServletTestRunner fails on loading the class:
> Class<?> testClass = SecurityActions.getThreadContextClassLoader().loadClass(className);
> Looking into the deployed ear I cannot see any reason for this behavior. The strange is that after adding a @EJB (and the relevant ejb classes) to my test the classloader is able to resolve the test class:
> ...
>     @EJB
>     private MyEjbLocal instanceVariable;
> ... 

--
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