[arquillian-issues] [JBoss JIRA] Created: (ARQ-324) ShrinkWrap ClassLoader closes the InputStream for added resources, resulting in unreadable/closed stream errors.

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Tue Oct 26 14:52:54 EDT 2010


ShrinkWrap ClassLoader closes the InputStream for added resources, resulting in unreadable/closed stream errors.
----------------------------------------------------------------------------------------------------------------

                 Key: ARQ-324
                 URL: https://jira.jboss.org/browse/ARQ-324
             Project: Arquillian
          Issue Type: Bug
    Affects Versions: 1.0.0.Alpha4
         Environment: Weld 1.1.0.Beta1, Arqullian Alpha4, Seam XML Alpha3

            Reporter: Lincoln Baxter III


http://pastebin.com/3neHZ6BL

This can be reproduced using Weld 1.1.0.Beta1, Seam XML Alpha3 and Arqullian Alpha4-  create a test that attempts to add a Manifest Resources from disk to Beans.xml.

Seam XML will attempt to load the beans file and complain that the InputStream was closed.

@RunWith(Arquillian.class)
public class DefaultTimeZoneTest
{
   @Deployment
   public static JavaArchive createTestArchive()
   {
      return ShrinkWrap.create(JavaArchive.class, "test.jar")
               .addClass(DefaultTimeZoneProducer.class)
               .addClass(DefaultTimeZoneConfig.class)
               .addManifestResource("org/jboss/seam/international/test/timezone/user-timezone.xml", ArchivePaths.create("beans.xml"));
   }

   @Inject
   DateTimeZone timeZone;

   @Test
   public void testDefaultTimeZoneProducerDirect()
   {
      Assert.assertNotNull(timeZone);
   }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list