Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5526

install-library command does not recognize the relative path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • None
    • commands
    • Security Level: public (Regular issues)
    • None
    • Ubuntu 8.04 x86-32
      sun java 1.6.0_20

    Description

      Steps:
      1. start server
      2. execute command: <g_home>/bin/deploy install-library --groupId x.y.z abc-1.0.jar

      An exception will throw out like this:
      2010-08-12 15:56:08,764 ERROR [DeployTool] Error:
      org.apache.geronimo.common.DeploymentException: Unable to install library abc-1.0.jar
      at org.apache.geronimo.deployment.cli.CommandInstallLibrary.execute(CommandInstallLibrary.java:59)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:173)
      at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
      at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
      Caused by: java.lang.IllegalArgumentException: Cannot read source file at /home/forrestxm/temp/geronimo-tomcat7-javaee6-web-3.0-SNAPSHOT/abc-1.0.jar
      at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:79)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean.installLibrary(PluginInstallerGBean.java:1143)
      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:597)
      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
      at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)
      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:597)
      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
      at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
      at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
      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:597)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      at sun.rmi.transport.Transport$1.run(Transport.java:159)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        Activity

          People

            xiaming Ming Xia
            xiaming Ming Xia
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: