You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Tenzer, Alexander" <Al...@rsp-gmbh.de> on 2009/05/07 14:32:31 UTC

IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

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


RE: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

Posted by Martin Gainty <mg...@hotmail.com>.
the URI you are supplying 
vfsmemory://5c4o21o-nqcau3-fuffdssr-1-fuffe5bp-1yis not a valid URI

I would use valid prefixes defined here
http://www.ietf.org/rfc/rfc2396.txt

Viel Gluck,
Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Subject: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss
> Date: Thu, 7 May 2009 14:32:31 +0200
> From: Alexander.Tenzer@rsp-gmbh.de
> To: user@struts.apache.org
> 
> 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
> 

_________________________________________________________________
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

Posted by Rene Gielen <gi...@it-neering.net>.
Filed https://issues.apache.org/struts/browse/WW-3121
Added better error message with hint to disable class reloading.

Correct fix needs addtional XWork work, will check tomorrow.

Musachy Barroso schrieb:
> to add to what Lukasz said, don't rely too much on the reloading class
> loader which is experimental, there is a flag to disable it, check the
> docs.
> 
> musachy
> 
> On Thu, May 7, 2009 at 8:42 AM, Lukasz Lenart
> <lu...@googlemail.com> wrote:
>> Could you try to use the latest snapshot build?
>> http://people.apache.org/builds/struts/nightlies/2.x/
>>
>> If that doesn't help, please register an issue with Jira, JBoss 5
>> introduced new virtual file system and that the origin of problems
>> https://issues.apache.org/struts/browse/
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> 

-- 
René Gielen
IT-Neering.net
Saarstrasse 100, 52062 Aachen, Germany
Tel: +49-(0)241-4010770
Fax: +49-(0)241-4010771
Cel: +49-(0)177-3194448
http://twitter.com/rgielen

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


Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

Posted by Musachy Barroso <mu...@gmail.com>.
to add to what Lukasz said, don't rely too much on the reloading class
loader which is experimental, there is a flag to disable it, check the
docs.

musachy

On Thu, May 7, 2009 at 8:42 AM, Lukasz Lenart
<lu...@googlemail.com> wrote:
> Could you try to use the latest snapshot build?
> http://people.apache.org/builds/struts/nightlies/2.x/
>
> If that doesn't help, please register an issue with Jira, JBoss 5
> introduced new virtual file system and that the origin of problems
> https://issues.apache.org/struts/browse/
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

Posted by Lukasz Lenart <lu...@googlemail.com>.
Could you try to use the latest snapshot build?
http://people.apache.org/builds/struts/nightlies/2.x/

If that doesn't help, please register an issue with Jira, JBoss 5
introduced new virtual file system and that the origin of problems
https://issues.apache.org/struts/browse/


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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