Hi Adam,

This is what the method returns now instead of the absolute file path:
jndi:/0.0.0.0/googlecheckout/WEB-INF/controller.xml

Was that your intention?  I can work with it if I have to, but life was a bit 
easier before this change.

Thanks
Scott

On 27/05/2010, at 2:22 AM, [email protected] wrote:

> Author: doogie
> Date: Wed May 26 14:22:14 2010
> New Revision: 948439
> 
> URL: http://svn.apache.org/viewvc?rev=948439&view=rev
> Log:
> There is no reason to convert the controller xml url to a file first.
> 
> Modified:
>    
> ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java
> 
> Modified: 
> ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java
> URL: 
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java?rev=948439&r1=948438&r2=948439&view=diff
> ==============================================================================
> --- 
> ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java
>  (original)
> +++ 
> ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java
>  Wed May 26 14:22:14 2010
> @@ -57,7 +57,7 @@ public class ConfigXMLReader {
> 
>     public static URL getControllerConfigURL(ServletContext context) {
>         try {
> -            return new 
> File(context.getRealPath(controllerXmlFileName)).toURI().toURL();
> +            return context.getResource(controllerXmlFileName);
>         } catch (MalformedURLException e) {
>             Debug.logError(e, "Error Finding XML Config File: " + 
> controllerXmlFileName, module);
>             return null;
> 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to