Tapestry
  1. Tapestry
  2. TAPESTRY-2536

Add explicit message on module loading failure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-ioc
    • Labels:
      None
    • Environment:
      Tomcat 5.5, Java 1.5, Tapestry 5

      Description

      Tapestry fails to load the application if a Jar contains a corrupted Manifest file.

      Here is the stacktrace :

      java.lang.RuntimeException: invalid header field
      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:86)
      at org.apache.tapestry.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:75)
      at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:72)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      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:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      Caused by: java.io.IOException: invalid header field
      at java.util.jar.Attributes.read(Attributes.java:389)
      at java.util.jar.Manifest.read(Manifest.java:167)
      at java.util.jar.Manifest.<init>(Manifest.java:52)
      at org.apache.tapestry.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:98)
      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:78)
      ... 20 more

      Would it be possible to specify an explicit message that tells which the Jar in question ?

      Christophe.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Christophe Cordenier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development