ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | shark List | May 2005 Index

<--  Date Index  --> <--  Thread Index  -->

javascript tool agent getResource failing


Im trying to load some .js files as applications with
the java script tool agent mapping. 
in the application name, i specify the name of the
javascript file (and mode 0). 
the javascript files im trying to load are located in
the classpath. however, the javascript tool 
agent class fails to load the resource on this line:

// JavaScriptToolAgent.java (159)
url = cl.getResource(filename);

when i try modifying the classloader to use:

// JavaScriptToolAgent.java (150)
ClassLoader cl =
JavaScriptToolAgent.class.getClassLoader().getSystemClassLoader();

instead of 

// JavaScriptToolAgent.java (150)
ClassLoader cl =
JavaScriptToolAgent.class.getClassLoader();

it does find the files.

am i doing something wrong?

thanks

david


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.