You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@spamgourmet.com on 2012/05/07 20:21:11 UTC

Bug? 2.3.3 struts2-blank.war fails to deploy on JBoss 5

I recently tried to upgrade our app from 2.3.1.2 to 2.3.3, but got an error in startup.   To determine if it was "just me" I tried deploying the struts2-blank.war file in my JBoss 5.1 system, but got the attached error.  It seems that the application cannot load "struts-default.xml" anymore.

The juicy part is:   java.lang.IllegalArgumentException: URI scheme is not "file"

Is it possible for me to configure Struts2 2.3.3 (and by extension XWork 2.3.3) to work with JBoss 5.1?

Sincerely,
Roland McIntosh

---
2012-05-07 13:11:38,005 FINE  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) JSF1018: [/struts2-blank] Configuration option 'com.sun.faces.expressionFactory' set to 'com.sun.el.ExpressionFactoryImpl'
2012-05-07 13:11:38,005 FINE  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) JSF1018: [/struts2-blank] Configuration option 'com.sun.faces.disableUnicodeEscaping' set to 'false'
2012-05-07 13:11:38,005 FINE  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) JSF1018: [/struts2-blank] Configuration option 'com.sun.faces.duplicateJARPattern' set to '^tmp\d+(\S*\.jar)'
2012-05-07 13:11:38,008 FINE  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) No FacesServlet found in deployment descriptor - bypassing configuration
2012-05-07 13:11:38,084 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)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
        <snip>

Caused by: Caught exception while loading file struts-default.xml - Class: java.io.File
File: File.java
Method: <init>
Line: 366 - java/io/File.java:366:-1
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:950)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:155)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:122)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:205)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	... 71 more
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)
	... 75 more
2012-05-07 13:11:38,087 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/struts2-blank]] (HDScanner) Exception starting filter struts2
Unable to load configuration. - Class: java.io.File
File: File.java
Method: <init>
Line: 366 - java/io/File.java:366:-1




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Bug? 2.3.3 struts2-blank.war fails to deploy on JBoss 5

Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/5/7  <st...@spamgourmet.com>:
> I recently tried to upgrade our app from 2.3.1.2 to 2.3.3, but got an error in startup.   To determine if it was "just me" I tried deploying the struts2-blank.war file in my JBoss 5.1 system, but got the attached error.  It seems that the application cannot load "struts-default.xml" anymore.
>
> The juicy part is:   java.lang.IllegalArgumentException: URI scheme is not "file"
>
> Is it possible for me to configure Struts2 2.3.3 (and by extension XWork 2.3.3) to work with JBoss 5.1?

Looks like a bug, added support for JBoss 7 broke support for JBoss 5.
Please register an issue, I'm already working on solution.


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org