-
Bug
-
Resolution: Done
-
Major
-
1.0.16.Final, 1.1.0.Beta4
-
None
------------------------------------------------------------------------------- Test set: org.jboss.narayana.quickstart.jca.model.CustomerDAOTest ------------------------------------------------------------------------------- Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.32 sec <<< FAILURE! org.jboss.narayana.quickstart.jca.model.CustomerDAOTest Time elapsed: 0.063 sec <<< ERROR! java.io.IOException: Could not delete C:\Users\hudson\AppData\Local\Temp\2\iron.jacamar\tmp\jdbc-xa.rar\ironjacamar-jdbc.jar at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1520) at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515) at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515) at com.github.fungal.impl.KernelImpl.shutdown(KernelImpl.java:850) at org.jboss.jca.embedded.EmbeddedJCA.shutdown(EmbeddedJCA.java:158) at org.jboss.narayana.quickstart.jca.common.AbstractTest.afterClass(AbstractTest.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
It works fine on Linux. However, it fails on both Windows 7 and Windows 2008 server.
This simple test class also fails during shutdown with the same error:
public class SimpleTest { private static final String JDBC_RAR_FILE_PATH = "src/main/resources/jdbc-xa.rar"; private static Embedded EMBEDDED; @Test public void test() throws Throwable { EMBEDDED = EmbeddedFactory.create(); EMBEDDED.startup(); EMBEDDED.deploy(getURL(JDBC_RAR_FILE_PATH)); System.out.println("Test..."); EMBEDDED.undeploy(getURL(JDBC_RAR_FILE_PATH)); EMBEDDED.shutdown(); } private static URL getURL(final String path) throws MalformedURLException { final File f = new File(path); return f.toURI().toURL(); } }
- blocks
-
JBTM-1479 Create a quickstart to show how to use IronJacamar and JBTM inside tomcat
- Closed