[
http://issues.apache.org/jira/browse/GERONIMO-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461621
]
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: http://issues.apache.org/jira/browse/GERONIMO-2678
> 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(Digester.java:2792)
>
> org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
> org.apache.commons.digester.Digester.startElement(Digester.java:1289)
> 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
> Source)
>
> 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(Digester.java:1591)
> 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(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira