0 Replies Latest reply on Sep 26, 2005 11:21 AM by Rahul Dev

    Embeddable JBoss with Eclipse

    Rahul Dev Newbie

      Hi,

      I hope I have posted the question in the right Forum. This is about the problem with running Embeddable JBoss within Eclipse.

      I am trying to run the "archive" example. It works fine with ant build file you have provided, but gives problems while running within Eclipse.

      NOTE: I am trying to run the code directly from eclipse, hence I am avoiding creating tutorial.ejb3. I also have persistence.xml and conf dir in the class path.

      Exception occurs at this code:
      -> deployer.create();

      I get the following exception :

      DEBUG 25-09 02:14:33,625 (KernelFactory.java:assembleNewKernel:68) -Starting JBoss Kernel construction...
      DEBUG 25-09 02:14:36,500 (KernelFactory.java:assembleNewKernel:94) -Completed JBoss Kernel construction. Duration: 2860 milliseconds
      INFO 25-09 02:14:43,609 (LocalTxDataSource.java:bindConnectionFactory:102) -Bound datasource to JNDI name 'java:/DefaultDS'
      INFO 25-09 02:14:50,890 (JaccHelper.java:initialiseJacc:46) -Initialising JACC Context for deployment: resources
      java.lang.RuntimeException: java.util.zip.ZipException: The system cannot find the path specified
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:40)
      at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:37)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:286)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:264)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:251)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:390)
      at org.jboss.tutorial.archive.Main.main(Main.java:35)
      Caused by: java.util.zip.ZipException: The system cannot find the path specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.(Unknown Source)
      at java.util.zip.ZipFile.(Unknown Source)
      at org.jboss.util.file.JarArchiveBrowser.(JarArchiveBrowser.java:35)
      ... 6 more


      Any idea what I am doing wrong here?
      Thanks in advance