cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <mengelh...@earthtrip.com>
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="http://www.apache.org/1999/XSP/Core">
<xsp:structure>
    <xsp:include>com.earthtrip.*</xsp:include>
    <xsp:include>java.util.ResourceBundle</xsp:include>
</xsp:structure>
  <xsp:logic>
    ResourceBundle rs = ResourceBundle.getBundle("com.earthtrip.MyBundle");
    String s = rs.getString("THE_STRING");
 </xsp:logic>
   <DATA>
      <xsp:expr>s</xsp:expr>
   </DATA>
</xsp:page>

and here's the error I'm getting:

java.lang.NoSuchMethodError: java.lang.ClassLoader: method
getParent()Ljava/lang/ClassLoader; not found
    at 
org.apache.cocoon.processor.xsp.language.java.XSPClassLoader.loadClass(XSPCl
assLoader.java:83)
    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(ResourceBundle.java)
    at 
_earthtrip._Internet._tomcat._earthtrip._test._test.<init>(_test.java)

Does the XSP use a custom classloader??

Thanks for any help

Mike
    


Mime
View raw message