java.lang.RuntimeException: Unable to iterate files in the specified way. dir=../ includes=lib/portlets/**/*.war excludes=[Not Evaluated]

Apereo Issues | Fredrik Tuomas | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When doing 'ant initportal' a problem similar to that described in UP-1819 occurs when server.home in build.properties is set to a relative path (like ../apache-tomcat-5.5.26). This is on Linux, haven't tried on Windows. Stacktrace: ant initportal ... deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Exception in thread "main" java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=../ [java] includes=lib/portlets/**/*.war [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:126) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:246) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:162) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:42) [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/container/deploy/deploy-portlet-app.crn [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:92) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:119) [java] ... 8 more [java] Caused by: java.lang.RuntimeException: Unable to extract the specified archive: lib/portlets/BookmarksPortlet.war [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:141) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:88) [java] ... 14 more [java] Caused by: java.io.FileNotFoundException: ../apache-tomcat-5.5.26/webapps/uPortal/../BookmarksPortlet/WEB-INF/context/portlet/bookmarksPortletContext.xml (No such file or directory) [java] at java.io.FileOutputStream.open(Native Method) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:179) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:131) [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:115) [java] ... 22 more

    Apereo Issues | 9 years ago | Fredrik Tuomas
    java.lang.RuntimeException: Unable to iterate files in the specified way. dir=../ includes=lib/portlets/**/*.war excludes=[Not Evaluated]
  2. 0

    When doing 'ant initportal' a problem similar to that described in UP-1819 occurs when server.home in build.properties is set to a relative path (like ../apache-tomcat-5.5.26). This is on Linux, haven't tried on Windows. Stacktrace: ant initportal ... deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Exception in thread "main" java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=../ [java] includes=lib/portlets/**/*.war [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:126) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:246) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:162) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:42) [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/container/deploy/deploy-portlet-app.crn [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:92) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:119) [java] ... 8 more [java] Caused by: java.lang.RuntimeException: Unable to extract the specified archive: lib/portlets/BookmarksPortlet.war [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:141) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:88) [java] ... 14 more [java] Caused by: java.io.FileNotFoundException: ../apache-tomcat-5.5.26/webapps/uPortal/../BookmarksPortlet/WEB-INF/context/portlet/bookmarksPortletContext.xml (No such file or directory) [java] at java.io.FileOutputStream.open(Native Method) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:179) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:131) [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:115) [java] ... 22 more

    Apereo Issues | 9 years ago | Fredrik Tuomas
    java.lang.RuntimeException: Unable to iterate files in the specified way. dir=../ includes=lib/portlets/**/*.war excludes=[Not Evaluated]
  3. 0

    When running 'ant initportal': deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Deploying Portlet Application: lib/portlets/RssPortlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/googleportlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/proxyportlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/testsuite.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [echo] Finished initializing uPortal When running: ant deployPortletApp -DportletApp=all deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Exception in thread "main" java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=../ [java] includes=lib/portlets/**/*.war [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:126) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:182) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:143) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:111) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:42) [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/container/deploy/deploy-portlet-app.crn [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:92) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:119) [java] ... 9 more [java] Caused by: java.lang.RuntimeException: Unable to extract the specified archive: lib/portlets/BookmarksPortlet.war [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:88) [java] ... 15 more [java] Caused by: java.io.FileNotFoundException: /Users/esm/tomcat/up26-patches/webapps/uPortal/../BookmarksPortlet/WEB-INF/context/portlet/bookmarksPortletContext.xml (No such file or directory) [java] at java.io.FileOutputStream.open(Native Method) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:179) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:131) [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:98) [java] ... 23 more BUILD FAILED /Users/esm/src/up-rel-2-6-patches/build.xml:1244: Java returned: 1

    Apereo Issues | 9 years ago | Elliot Metsger
    java.lang.RuntimeException: Unable to iterate files in the specified way. dir=../ includes=lib/portlets/**/*.war excludes=[Not Evaluated]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When running 'ant initportal': deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Deploying Portlet Application: lib/portlets/RssPortlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/googleportlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/proxyportlet.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [java] Deploying Portlet Application: lib/portlets/testsuite.war [java] Failed to create InputSource (java.net.UnknownHostException: Users): file://Users/esm/src/up-rel-2-6-patches/webpages/dtd/web-app_2_3.dtd [echo] Finished initializing uPortal When running: ant deployPortletApp -DportletApp=all deployPortletApp: [echo] Invoking Portlet Application Deployment Tool [java] ** Deploying All Portlet Applications in lib/portlets/ ** [java] Deploying Portlet Application: lib/portlets/BookmarksPortlet.war [java] Exception in thread "main" java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=../ [java] includes=lib/portlets/**/*.war [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:126) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:182) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:143) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:111) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:42) [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/container/deploy/deploy-portlet-app.crn [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:92) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:119) [java] ... 9 more [java] Caused by: java.lang.RuntimeException: Unable to extract the specified archive: lib/portlets/BookmarksPortlet.war [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:110) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:88) [java] ... 15 more [java] Caused by: java.io.FileNotFoundException: /Users/esm/tomcat/up26-patches/webapps/uPortal/../BookmarksPortlet/WEB-INF/context/portlet/bookmarksPortletContext.xml (No such file or directory) [java] at java.io.FileOutputStream.open(Native Method) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:179) [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:131) [java] at org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:98) [java] ... 23 more BUILD FAILED /Users/esm/src/up-rel-2-6-patches/build.xml:1244: Java returned: 1

    Apereo Issues | 9 years ago | Elliot Metsger
    java.lang.RuntimeException: Unable to iterate files in the specified way. dir=../ includes=lib/portlets/**/*.war excludes=[Not Evaluated]
  6. 0

    TeamCity is leaking caches/git file descriptors

    YouTrack | 6 years ago
    java.io.FileNotFoundException: /data/teamcity/BuildServer/system/pluginData/customDataStorage/buildTypes/bt2613/485653500 (Too many open files)

  1. Adrien 12 times, last 2 weeks ago
  2. jpvee 1 times, last 3 weeks ago
  3. chenjunjun 1 times, last 1 month ago
  4. eti22 5 times, last 1 month ago
  5. jokester 1 times, last 1 month ago
26 more registered users
69 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    ../apache-tomcat-5.5.26/webapps/uPortal/../BookmarksPortlet/WEB-INF/context/portlet/bookmarksPortletContext.xml (No such file or directory)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    3 frames
  3. org.danann.cernunnos
    Main.main
    1. org.danann.cernunnos.io.ExtractArchiveTask.perform(ExtractArchiveTask.java:115)
    2. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    3. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111)
    4. org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66)
    5. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    6. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111)
    7. org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66)
    8. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    9. org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask.java:88)
    10. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    11. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111)
    12. org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66)
    13. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    14. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111)
    15. org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:119)
    16. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    17. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:111)
    18. org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62)
    19. org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:110)
    20. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
    21. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:246)
    22. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:162)
    23. org.danann.cernunnos.runtime.Main.main(Main.java:42)
    23 frames