Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-23

Ignore .DS_Store files when deploying in Tomcat

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      From Riaz:

      Hello,
      Is there a way to make OpenEJB3 not constantly try to initialize .DS_Store
      within webapps (or wherever) and throwing a repeated error which is making
      my Eclipse console eternally long with pointless errors.
      The error is:

      Error deploying application /Developer/Tomcat/webapps/.DS_Store
      org.apache.openejb.config.UnknownModuleTypeException: Unable to determine
      module type for jar: file:/Developer/Tomcat/webapps/.DS_Store: Unknown
      module type: url=file:/Developer/Tomcat/webapps/.DS_Store
      at
      org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:122)
      at
      org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:467)
      at
      org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:74)
      at
      org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at
      org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
      at
      org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
      at
      org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
      at
      org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
      at java.lang.Thread.run(Thread.java:637)
      Caused by: org.apache.openejb.config.UnknownModuleTypeException: Unknown
      module type: url=file:/Developer/Tomcat/webapps/.DS_Store
      at
      org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1176)
      at
      org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:120)

      According to Mac forums, .DS_Store cannot be disable on a local drive.
      I googled around and found out that on the Geronimo task list, there was
      mention of 'Ignore .DS_Store when scanning'.

      Anything similar in OpenEJB? thanks

        Attachments

        1. openejb-1057.diff
          8 kB
          Jonathan Gallimore
        2. openejb-1057.diff
          1 kB
          Jonathan Gallimore

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              jgallimore Jonathan Gallimore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: