0 Replies Latest reply on Oct 20, 2006 9:19 AM by steveo

    Embeddable EJB3 - ZipException

    steveo

      I'm trying to set up a JUnit test in IDEA, to test an EJB3 instance, using EJB3_Embeddable_ALPHA_9, but am getting the following error:

      java.lang.RuntimeException: java.util.zip.ZipException: The system cannot find the file specified
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:55)
      at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:52)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:370)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:440)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:273)
      at test.java.com.sms.sentinel.DataCaptureServiceTest.startupEmbeddedJboss(DataCaptureServiceTest.java:49)
      at test.java.com.sms.sentinel.DataCaptureServiceTest.setUp(DataCaptureServiceTest.java:36)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at junit.textui.TestRunner.doRun(TestRunner.java:116)
      at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69)
      at junit.textui.TestRunner.doRun(TestRunner.java:109)
      at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
      at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.util.zip.ZipException: The system cannot find the file specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.(ZipFile.java:203)
      at java.util.zip.ZipFile.(ZipFile.java:234)
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:50)
      ... 28 more

      java.lang.RuntimeException: java.lang.RuntimeException: java.util.zip.ZipException: The system cannot find the file specified
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:279)
      at test.java.com.sms.sentinel.DataCaptureServiceTest.startupEmbeddedJboss(DataCaptureServiceTest.java:49)
      at test.java.com.sms.sentinel.DataCaptureServiceTest.setUp(DataCaptureServiceTest.java:36)
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.lang.RuntimeException: java.util.zip.ZipException: The system cannot find the file specified
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:55)
      at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:52)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:370)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:440)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:273)
      ... 22 more
      Caused by: java.util.zip.ZipException: The system cannot find the file specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.(ZipFile.java:203)
      at java.util.zip.ZipFile.(ZipFile.java:234)
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:50)
      ... 28 more


      Process finished with exit code -1


      The IDEA command, including classpath, is:
      C:\_jdk\1.5.0_8\bin\java -Didea.launcher.port=7544 "-Didea.launcher.bin.path=C:\Software\IntelliJ IDEA 6.0\bin" -Dfile.encoding=windows-1252 -classpath "C:\_jdk\1.5.0_8\jre\lib\charsets.jar;C:\_jdk\1.5.0_8\jre\lib\deploy.jar;C:\_jdk\1.5.0_8\jre\lib\javaws.jar;C:\_jdk\1.5.0_8\jre\lib\jce.jar;C:\_jdk\1.5.0_8\jre\lib\jsse.jar;C:\_jdk\1.5.0_8\jre\lib\plugin.jar;C:\_jdk\1.5.0_8\jre\lib\rt.jar;C:\_jdk\1.5.0_8\jre\lib\ext\dnsns.jar;C:\_jdk\1.5.0_8\jre\lib\ext\localedata.jar;C:\_jdk\1.5.0_8\jre\lib\ext\sunjce_provider.jar;C:\_jdk\1.5.0_8\jre\lib\ext\sunpkcs11.jar;C:\_workspace\svn_root\Sentinel\SentinelApplication\classes;C:\Software\Repository\struts\struts\1.2.8\struts-1.2.8.jar;C:\_workspace\svn_root\Sentinel\SentinelService\classes;C:\Software\Repository\jboss\scheduler-plugin\4.03\scheduler-plugin-4.03.jar;C:\Software\Repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\Software\Repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar;C:\Software\Repository\javax\servlet\jstl\1.1.2\jstl-1.1.2.jar;C:\Software\Repository\taglibs\standard\1.1.2\standard-1.1.2.jar;C:\Software\Repository\jboss\jboss-annotations-ejb3\4.03\jboss-annotations-ejb3-4.03.jar;C:\Software\Repository\jboss\jboss-ejb3x\4.03\jboss-ejb3x-4.03.jar;C:\Software\Repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar;C:\Software\Repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar;C:\Software\Repository\jdom\jdom\1.0\jdom-1.0.jar;C:\Software\Repository\javax\mail\mail\1.4\mail-1.4.jar;C:\Software\Repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar;C:\Software\Repository\javax\servlet\servlet-api\2.4\servlet-api-2.4.jar;C:\Software\Repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar;C:\Software\Repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Software\Repository\jaf\activation\1.1\activation-1.1.jar;C:\Software\Repository\novell\jldap\early-2006\jldap-early-2006.jar;C:\Software\Repository\jboss\jboss-EJB-3.0_Embeddable\jboss-ejb3-all\ALPHA_9\jboss-ejb3-all.jar;C:\Software\Repository\jboss\jboss-EJB-3.0_Embeddable\thirdparty-all\ALPHA_9\thirdparty-all.jar;C:\_workspace\svn_root\Sentinel\SentinelService\src\test\resources\conf;C:\Software\Repository\jboss\jboss-EJB-3.0_Embeddable\hibernate-all\ALPHA_9\hibernate-all.jar;C:\temp\jboss em alpha 9\jboss-EJB-3.0_Embeddable_ALPHA_9\lib\jcainflow.jar;C:\temp\jboss em alpha 9\jboss-EJB-3.0_Embeddable_ALPHA_9\lib\jms-ra.jar;C:\temp\jboss em alpha 9\jboss-EJB-3.0_Embeddable_ALPHA_9\optional-lib\junit.jar;C:\temp\jboss em alpha 9\jboss-EJB-3.0_Embeddable_ALPHA_9\optional-lib\ehcache-1.2.jar;C:\_workspace\svn_root\Sentinel\SentinelService_sar\classes;C:\Software\IntelliJ IDEA 6.0\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\DOCUME~1\STEVEO~1\LOCALS~1\Temp\idea_junit8575.tmp

      Can anybody assist?