cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <>
Subject Cocoon access from XSP
Date Fri, 21 Jan 2000 23:00:40 GMT
I'm having trouble accessing objects that i have added to Cocoon from within
XSP's.  I have this code which works fine in my Producer classes but throws
a null pointer exception when I try and do it from within an XSP.

Connection conn = ((DBBroker) director.getActor("dbPool")).getConnection();

I thought XSP's were compiled into Producers?  Wouldn't they be able to
access the Cocoon engine as easily as a hand coded one?  The XSPPage class
extends AbstractProducer so I should be able to access director right?

Also I load in a bunch of PropertyResourceBundle's on startup and get this
error when I try and access them.

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(

Ricardo thought it was probably because of a mismatched .jar file trying to
access a JDK1.2 method (getParent()) but I have double-checked all my jar
files and they're all up to snuff.  Also, my custom producers that basically
do the same thing work fine too.


View raw message