Hi,

I'm trying to deploy a struts 2 web application to a JBoss 5.01GA-Server
(on Windows System). While this works fine with the Tomcat (5 and 6),
JBoss throws an IllegalArgumentException. Here is the associated part of
the stack trace:

...
14:10:58,123 INFO  [STDOUT] 2009-05-07 14:10:58,123 [INFO ]
(org.springframework.web.context.ContextLoader:198) - Root
WebApplicationContext: initialization completed in 3500 ms
14:10:58,357 INFO  [STDOUT] 2009-05-07 14:10:58,357 [INFO ]
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:31) -
Parsing configuration file [struts-default.xml]
14:10:58,513 INFO  [STDOUT] 2009-05-07 14:10:58,513 [INFO ]
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:31) -
Parsing configuration file [struts-plugin.xml]
14:10:58,560 INFO  [STDOUT] 2009-05-07 14:10:58,560 [INFO ]
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:31) -
Parsing configuration file [struts.xml]
14:10:58,560 INFO  [STDOUT] 2009-05-07 14:10:58,560 [INFO ]
(com.opensymphony.xwork2.config.impl.DefaultConfiguration:31) -
Overriding property struts.i18n.reload - old value: false new value:
true
14:10:58,560 INFO  [STDOUT] 2009-05-07 14:10:58,560 [INFO ]
(com.opensymphony.xwork2.config.impl.DefaultConfiguration:31) -
Overriding property struts.configuration.xml.reload - old value: false
new value: true
14:10:58,701 INFO  [STDOUT] 2009-05-07 14:10:58,701 [INFO ]
(org.apache.struts2.spring.StrutsSpringObjectFactory:31) - Initializing
Struts-Spring integration...
14:10:58,701 INFO  [STDOUT] 2009-05-07 14:10:58,701 [INFO ]
(com.opensymphony.xwork2.spring.SpringObjectFactory:31) - Setting
autowire strategy to name
14:10:58,701 INFO  [STDOUT] 2009-05-07 14:10:58,701 [INFO ]
(org.apache.struts2.spring.StrutsSpringObjectFactory:31) - ...
initialized Struts-Spring integration successfully
14:11:10,138 ERROR [[/HimiWeb]] Exception starting filter struts2
java.lang.IllegalArgumentException: URI scheme is not "file"
        at java.io.File.<init>(File.java:366)
        at
org.apache.struts2.convention.classloader.ReloadingClassLoader.<init>(Re
loadingClassLoader.java:53)
        at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.initReload
ClassLoader(PackageBasedActionConfigBuilder.java:241)
        at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActio
nConfigs(PackageBasedActionConfigBuilder.java:255)
        at
org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(Clas
spathPackageProvider.java:52)
        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer
(DefaultConfiguration.java:200)
        at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con
figurationManager.java:55)
        at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa
tcher.java:360)
        at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)

I have embedded the struts2-convention-plugin-2.1.6.jar. While executing
the ReloadingClassLoader-Constructor (line 53) the root.toURI() produces
"vfsmemory://5c4o21o-nqcau3-fuffdssr-1-fuffe5bp-1y/", and with that the
instantiation of new File(root.toURI()) doesn't work. Can anybody help?


Best Regards
Alexander Tenzer

Reply via email to