geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Commented: (GERONIMO-2678) Exception parsing a XML with Digester
Date Mon, 01 Jan 2007 15:43:27 GMT


David Jencks commented on GERONIMO-2678:

It looks like Digester can't find the right classes.  I think all that Geronimo can do is
assure that the thread context classloader is correctly set to include all the classes in
your web app together with the dependencies you declare in your geronimo plan.

Can you:

1. find out what the TCCL is in your jsp page, either by debugging (perhaps in com.unizar.sql.DataSourceCollection)
or by logging it.  It should have a name that is recognizably associated with your web app.
 If this is not the classloader you find something may be wrong in geronimo.

2. Check that the TCCL can in fact load com.unizar.sql.DataSource.  If it can't there is probably
something wrong in how you assembled your web app.

3. Find out what classloader Digester is using to try to load com.unizar.sql.DataSource. 
If it's not the TCCL and there is no way to supply the correct classloader in code this might
be considered a problem with Digester.

I think you might have trimmed off some of the stack trace.  If these suggestions don't help
resolve the issue quickly please supply a more complete stack trace and the version of Digester
you are using.  In particular the trace from the underlying exception that the SaxException
wraps would be very useful.

> Exception parsing a XML with Digester
> -------------------------------------
>                 Key: GERONIMO-2678
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 1.1.1
>         Environment: Windows XP SP2, Geronimo 1.1.1 with Tomcat
>            Reporter: Sergio Montesa
> My web application, deploy in geronimo, parse with Digester the following XML:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <data-sources>
> <!-- JDBC -->
> <data-source
>   name="ing_xxxx_yyyyyy"
>   schema="ingres"
>   connection-driver="ca.edbc.jdbc.EdbcDriver"
>   url="jdbc:edbc://host:1919/bdd;CURSOR=READONLY"
>   username="user"
>   password="passwd"
>   jndi=""
> />
> </data-sources>
> and generate this exception:
> java.lang.ClassNotFoundException: com.unizar.sql.DataSource in classloader geronimo/tomcat/1.1.1/car
> 	org.apache.commons.digester.Digester.createSAXException(
> 	org.apache.commons.digester.Digester.createSAXException(
> 	org.apache.commons.digester.Digester.startElement(
> 	org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
> 	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
> 	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> 	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	org.apache.commons.digester.Digester.parse(
> 	com.unizar.sql.DataSourceCollection.parse(Unknown Source)
> 	com.unizar.sql.DataSourceCollection.parse(Unknown Source)
> 	org.apache.jsp.benchXml_jsp._jspService(org.apache.jsp.benchXml_jsp:136)
> 	org.apache.jasper.runtime.HttpJspBase.service(
> 	javax.servlet.http.HttpServlet.service(
> 	org.apache.jasper.servlet.JspServletWrapper.service(
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(
> 	org.apache.jasper.servlet.JspServlet.service(
> 	javax.servlet.http.HttpServlet.service(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message