bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

In the Snapshot 20080713 Struts2 XML validator fails on Windows #236

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using Struts2 with tomcat5.0 with Guice on Eclipse. 

The server fails at Startup with the error that "URI is not hierarchical". 

This is happening because the parseValidators() method of
com.opensymphony.xwork2.validator.DefaultValidatorFactory does not handle
file URLs on windows properly. The file URL on windows have the disk drive
in it, for example, file:D:/apps/jakarta-tomcat-5.0.30/common/classes/ is
one of the URLs that it gets from the ClassLoaderUtil.getResources call
(line 98). The problem is that the new File() call fails, since File class
thinks that this is a relative URL, but after seeing a : char, it thinks it
is a malformed URL. 

Original issue reported on code.google.com by inder123 on 15 Aug 2008 at 2:29

GoogleCodeExporter commented 9 years ago
See comments on this topic and tips on using an alternate form.  

http://forums.sun.com/thread.jspa?messageID=3035786

http://www.velocityreviews.com/forums/t140177-uri-is-not-hierarchical.html

Original comment by inder123 on 17 Aug 2008 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 27 Apr 2009 at 6:19

GoogleCodeExporter commented 9 years ago
This doesn't sound related to the Guice plugin.  Did you mean to file the issue 
on the Struts bug tracker?
https://issues.apache.org/jira/browse/WW

Original comment by benjamin...@gmail.com on 4 Dec 2010 at 6:11

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 4 Dec 2010 at 3:36