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

Deployer reports a wrong cause when a given module doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0-M2
    • None
    • deployment
    • None

    Description

      When Deployer is invoked with a module that doesn't exist it reports a wrong cause:

      $ (cd target/geronimo-1.0-SNAPSHOT; java -jar bin/deployer.jar --module non/existing/module)
      org.apache.geronimo.deployment.DeploymentException: No deployer found for this module type: file:/c:/projects/geronimo/t
      runk/modules/assembly/target/geronimo-1.0-SNAPSHOT/non/existing/module
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:168)
      at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
      at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
      at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:765)
      at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
      at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerIntercep
      tor.java:205)
      at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
      at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231)
      at org.apache.geronimo.system.main.CommandLine.main(CommandLine.java:93)

      It should validate if a given module exists at all before handing it over to module deployers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jlaskowski Jacek Laskowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: