Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2536

Add explicit message on module loading failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.11
    • 5.0.15
    • tapestry-ioc
    • None
    • 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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            ccordenier Christophe Cordenier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: