4 Replies Latest reply on Jun 26, 2003 6:52 AM by linden28

    I wanna invoke DataSource such as lookup("defaultDS"),Can I?

    linden28 Newbie

      General,In Jboss,Invoke DataSource such as lookup("java:/defaultDS") ,But I wanna invoke DataSource such as lookup("defaultDS"),Can I?


      Thanks very much for any helps!

        • 1. Re: I wanna invoke DataSource such as lookup("defaultDS"),Ca
          Adrian Brock Master

          No, the datasources are not exposed outside
          the virtual machine.

          Regards,
          Adrian

          • 2. Re: I wanna invoke DataSource such as lookup("defaultDS"),Ca
            linden28 Newbie

            warjort,Thank you very much!

            I ask you one question again:
            I deploy applus.war was success in jboss3.0.7,But why not success in jboss4.0? It throws error information:

            15:00:58,897 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
            .scanner.URLDeploymentScanner$DeployedURL@20878c93{ url=file:/C:/jboss4.0/server
            /default/deploy/applus.war, deployedLastModified=0 }
            org.jboss.deployment.DeploymentException: url file:/C:/jboss4.0/server/default/d
            eploy/applus.war could not be opened, does it exist?
            at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:191)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:557)
            at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
            java:72)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:155)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:405)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:529)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:200)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            loop(AbstractDeploymentScanner.java:211)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            run(AbstractDeploymentScanner.java:190)


            Note:I setup win 2k sp2/sp3 newly.

            • 3. Re: I wanna invoke DataSource such as lookup("defaultDS"),Ca
              Adrian Brock Master

              This is usually caused by the deployment scanner
              seeing the deployment before it has fully finished
              copying the war.
              Using move rather than copy avoids this problem
              provided you are on the same file system (drive letter)

              Regards,
              Adrian

              • 4. Re: I wanna invoke DataSource such as lookup("defaultDS"),Ca
                linden28 Newbie

                warjort ,Thank you very much!
                you are great!