Struts 2
  1. Struts 2
  2. WW-3810

Struts 2.3.3 fails to deploy on JBoss 5.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.3.4
    • Component/s: Example Applications
    • Labels:
    • Environment:

      JBoss 5.1 Application Server

      Description

      To duplicate:

      1. Install JBoss 5.1.
      2. Copy struts2-blank.war to the "deploy" directory

      Observe that the example application does not deploy, and that the JBoss log file says:

      ERROR [org.apache.struts2.dispatcher.Dispatcher] (HDScanner) Dispatcher initialization failed
      ...
      Unable to load configuration. - Class: java.io.File
      File: File.java
      Method: <init>
      Line: 366 - java/io/File.java:366:-1
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
      at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
      ...
      Caused by: Caught exception while loading file struts-default.xml - Class: java.io.File
      ...
      Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
      at java.io.File.<init>(File.java:366)
      at com.opensymphony.xwork2.util.FileManager$JBossFileRevision.build(FileManager.java:240)
      at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:143)
      at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:935)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Roland McIntosh
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development