Bugs item #1490949, was opened at 2006-05-18 21:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1490949&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Niclas Hedhman (niclash)
Assigned to: Nobody/Anonymous (nobody)
Summary: RegExp usage in PackageResource does not work for all URLs.
Initial Comment:
If we try to use the wicket-extension, the exception
below appears on initialization of the Servlet.
This is due to that the UploadProgressBar triggers
the scanning of resources available on the classpath
with a regular expression, and in our OSGi
environment it fails, since the PackageResource
requires a JarURLConnection or a file: URL to
directories.
It seems that the following line in the init() method
of the UploadProgressBar
PackageResource.bind(application,
ComponentInitializer.class,
PackageResource.EXTENSION_JS);
should be changed to
PackageResource.bind(application,
ComponentInitializer.class, "progressbar.js");
However, the issue is somewhat more profound, in the
respect that PackageResource works with URLs, but
imposes unfortunate restrictions. IMHO, regexp
support is creating this situation and should perhaps
be re-evaluated.
java.lang.IllegalArgumentException: URI scheme is not
"file"
at java.io.File.<init>(File.java:338)
at
wicket.markup.html.PackageResource.get(PackageResource.java:343)
at
wicket.markup.html.PackageResource.bind(PackageResource.java:224)
at
wicket.markup.html.PackageResource.bind(PackageResource.java:199)
at
wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar$ComponentInitializer.init(UploadProgressBar.java:83)
at
wicket.extensions.Initializer.init(Initializer.java:43)
at
wicket.Application.initialize(Application.java:792)
at
wicket.Application.initializeComponents(Application.java:815)
at
wicket.Application.initializeComponents(Application.java:640)
at
wicket.protocol.http.WicketServlet.init(WicketServlet.java:298)
at
javax.servlet.GenericServlet.init(GenericServlet.java:256)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1490949&group_id=119783
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop