Community
Participate
Working Groups
Below is the list of methods in Jetty 7 that call deprecated method java.io.File.toURL(), that according to http://download.oracle.com/javase/6/docs/api/java/io/File.html#toURL() "does not automatically escape characters that are illegal in URLs" that causes numerous issues with invalid URLs being generated for valid paths that contain characters that are not allowed in URLs. In order to fix these issues, we need to change code to use File.toURI().toURL() method calls instead. org.mortbay.jetty.webapp.WebAppClassLoader.addClassPath(String) org.mortbay.jetty.ant.WebApplicationProxyImpl.applyConfiguration() org.mortbay.jetty.ant.ServerProxyImpl.applyJettyXml() org.mortbay.jetty.plugin.AbstractJettyMojo.configureWebApplication() org.mortbay.jetty.plugin.JettyWebAppContext.doStart() org.eclipse.jetty.start.Classpath.getClassLoader() org.eclipse.jetty.start.Classpath.getClassLoader() org.mortbay.jetty.plugin.JettyRunMojo.getDependencyFiles() org.mortbay.resource.Resource.newResource(String, boolean) org.eclipse.jetty.xml.XmlParser.parse(File) org.eclipse.jetty.xml.XmlParser.parse(File) org.mortbay.xml.XmlParser.parse(File) org.eclipse.jetty.deploy.ContextDeployer.setConfigurationDir(File) org.eclipse.jetty.deploy.ContextDeployer.setConfigurationDir(File) org.mortbay.jetty.deployer.ContextDeployer.setConfigurationDir(File) org.mortbay.jetty.integration.jaas.TestJAASUserRealm.setUp() org.mortbay.jetty.jspc.plugin.JspcMojo.setUpClassPath(List) org.mortbay.jetty.plugin.RuntimeDependencyResolver.transitivelyResolvePomDependencies(MavenProjectBuilder, String, String, String, boolean) This issue is related to bug 350634.
Committed 2001-07-08.
Keeping this open while waiting for an opportunity to chat with Hugues about fixing up the OSGI modules as well. -Michael
Hugues, I need to chat with you about using new method I created Resource.toURL(File) in OSGI code. Please hit me up when you are online, or chime in here. -Michael
*** Bug 351443 has been marked as a duplicate of this bug. ***
These appear to have been fixed