3 Replies Latest reply on Feb 27, 2004 2:19 PM by brickpaul

    Trouble importing library in JbuilderX for servlet.

    brickpaul

      Urgent:
      I'm using JbuilderX Enterprise with Jboss3.2.3

      When I try to import library classes12.jar for XADatasources through Jbuilder I get the following error:

      21:21:51,493 ERROR [Engine] SingleSignOnContextConfig[/WebModule1] Exception processing JAR at resource path /WEB-INF/lib/classes12.jar

      javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/classes12.jar
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanJar(SingleSignOnContextConfig.java:1074)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:999)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)

      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)

      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy6.deploy(Unknown Source)

      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)

      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)

      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)

      at $Proxy0.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:394)

      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy4.start(Unknown Source)

      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)

      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:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy5.deploy(Unknown Source)

      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)

      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)

      at org.jboss.Main.boot(Main.java:150)

      at org.jboss.Main$1.run(Main.java:395)

      at java.lang.Thread.run(Thread.java:534)

      21:21:51,556 ERROR [Engine] ----- Root Cause -----

      java.io.IOException: The system cannot find the path specified
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)

      at java.io.File.checkAndCreate(File.java:1314)

      at java.io.File.createTempFile(File.java:1402)

      at java.io.File.createTempFile(File.java:1439)

      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)

      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)

      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)

      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)

      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanJar(SingleSignOnContextConfig.java:1043)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:999)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)

      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)

      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)

      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy6.deploy(Unknown Source)

      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)

      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)

      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)

      at $Proxy0.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:394)

      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy4.start(Unknown Source)

      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)

      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:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy5.deploy(Unknown Source)

      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)

      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)

      at org.jboss.Main.boot(Main.java:150)

      at org.jboss.Main$1.run(Main.java:395)

      at java.lang.Thread.run(Thread.java:534)


      I'm goin nuts.If anyone could help it would be very thankful..

        • 1. Re: Trouble importing library in JbuilderX for servlet.
          amayingenta

          You not have seem Rod Macpherson's reply because it went to the mailing list only:

          To get you going you could toss classes12.jar in your
          /jboss*/server/some-config/lib directory and leave it out of your
          webapp.

          OT: Have you considered using Ant in combination with Eclipse? Problems
          tend to be more transparent and remedies instantaneous. There is also
          the side benefit of not having to pay license fees.


          Here's my 2c's: Have you renamed classes12.zip to classes12.jar? If so this may be causing the exception - it may be looking for some feature of jars (e.g. the Manifest) that zips don't have.

          Or it could be something to do with how JBuilder is handling the file.

          p.s. No need to crosspost your problems in different forums, even if your problem is urgent.

          • 2. Re: Trouble importing library in JbuilderX for servlet.
            brickpaul

            Ok, Sorry bout the crosspost!! I got the classes12.jar file from the Oracle9i/jdbc/lib folder. Well actually I pointed to it from Jbuilder. I've also tried putting it in the JBoss/server/default/lib folder but still does not work and gets the same error. I've also noticed that if I try to add any library(ever the default ones) through Jbuilder I get the same error.
            Does the following error mean that I should also be putting the .jar file in another folder in Jboss??

            21:21:51,556 ERROR [Engine] ----- Root Cause -----

            java.io.IOException: The system cannot find the path specified
            at java.io.WinNTFileSystem.createFileExclusively(Native Method)



            Also I found on another forum that there was an error liked this which was caused because there should be an empty 'temp' folder in the deploy directory.I think this was to do more with Tomcat. Ever heard of this?
            rgds Paul C.


            • 3. Re: Trouble importing library in JbuilderX for servlet.
              brickpaul

              I got it workin. I pointed to the zip file instead of the jar file and it works.......the job