I added a test of loading a JavaBean via the Beans.instantiate() method as
is indicated by your stacktrace to the
org.jboss.test.web.test.WebIntegrationUnitTestCase
and it is able to load the ReportBean that resides in the WEB-INF/lib/util.jar of the
jbosstest-web.ear without any problems. Look at the code for the jsp page in
jboss-all/testsuite/src/resources/web/html/jbosstest/classpath.jsp and see how this
differs from what you are doing.
The relevant fragment is this:
<h3>Access WEB-INF/lib/util.jar!org/jboss/test/web/util/ReportBean.class as
JavaBean</h3>
<pre>
<%
// Access a JavaBean from a WEB-INF/lib jar
try
{
ClassLoader cl = Thread.currentThread().getContextClassLoader();
Object bean = Beans.instantiate(cl, "org.jboss.test.web.util.ReportBean");
out.println("Successfully loaded bean: "+bean);
Class clazz = bean.getClass();
ClassLoader beanCL = clazz.getClassLoader();
ProtectionDomain pd = clazz.getProtectionDomain();
CodeSource cs = pd.getCodeSource();
out.println(" Thread ClassLoader : "+cl.getClass().getName()+':'+cl.hashCode());
out.println(" ClassLoader : "+beanCL.getClass().getName()+':'+cl.hashCode());
out.println(" CodeSource.location : "+cs.getLocation());
}
catch(Exception e)
{
out.println("Failed");
String dump = formatException(e);
out.println(dump);
}
%>
</pre>
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 2:47 PM
Subject: RE: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader
> here's the exception i get when the jars are inside WEB-INF/lib:
> the classes in question are dealing with JFreeChart and JFreeReport. both
> packages work fine if the jars are placed in the server/lib directory. i'd
> upload my entire ear file, but it's pushing 3MB, so that might be too big.
> please let me know if there's something else i can do. like i said, i'm
> fine with using the server/lib directory, but if this is a bug, i'd like to
> help out however possible. thanks.
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user