cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <>
Subject ResourceBundle question
Date Thu, 20 Jan 2000 05:07:27 GMT
I'm trying to access ResourceBundle's that are loaded in by my application
on startup from an XSP.  I just started playing with the XSP engine so it
may be obvious.  I can access the ResourceBundle's fine from within any of
my other classes. Here's my test.xml page:

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>

<xsp:page language="java" xmlns:xsp="">
    ResourceBundle rs = ResourceBundle.getBundle("com.earthtrip.MyBundle");
    String s = rs.getString("THE_STRING");

and here's the error I'm getting:

java.lang.NoSuchMethodError: java.lang.ClassLoader: method
getParent()Ljava/lang/ClassLoader; not found
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.util.ResourceBundle.findBundle(Compiled Code)
    at java.util.ResourceBundle.getBundle(Compiled Code)
    at java.util.ResourceBundle.getBundle(

Does the XSP use a custom classloader??

Thanks for any help


View raw message