struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emmanuel.boudrant" <b...@yahoo.fr>
Subject Re: commons-digester and ClassLoader
Date Mon, 22 Apr 2002 13:11:27 GMT

Thanks,
... but that's not working. Can you explain me what's a RequestInterceptor and what is the
Jdk12Interceptor ?
  Frederico Schuh <fred_schuh@yahoo.com.br> a écrit : Try inserting this line in your
server.xml file,
inside the element:

className="org.apache.tomcat.request.Jdk12Interceptor"
/>


--- "emmanuel.boudrant" escreveu: > 
> Hello everybody,
> 
> I want parse a Xml config file with the Digester
> placed now in Jakarta Commons. I'm under Tomcat
> 3.2.1 so I replace my jaxp.jar by xerces.jar
> (version 1.3.1) in my tomcat/lib.
> 
> ...and when I launch my application, I've got a
> ClassNotFoundException on a class
> (com.cross.strutsext.validator.RuleBean), this class
> can be found in my webapps classes directory.
> 
> Is there any trouble with Tomcat ClassLoader ?
> 
> Here my code :
> 
> (...) Digester digester = new Digester();
> digester.push(this);
> 
> // digester version commons
> digester.setUseContextClassLoader(true);
> digester.setLogger(new
>
org.apache.commons.logging.impl.Log4JCategoryLog(log));
> // digester version commons
> 
> digester.setValidating(false); (...)
> 
> Here the message:
> 
> DEBUG 2002-04-22 13:30:37,047 [main] -
>
setDocumentLocator(org.apache.xerces.readers.DefaultEntityHandler@29ab3e)
> 
> DEBUG 2002-04-22 13:30:37,047 [main] -
> startDocument()
> 
> DEBUG 2002-04-22 13:30:37,047 [main] -
> startElement(,,form-rules)
> 
> DEBUG 2002-04-22 13:30:37,047 [main] - Pushing
> body text ''
> 
> DEBUG 2002-04-22 13:30:37,266 [main] - New
> match='form-rules'
> 
> DEBUG 2002-04-22 13:30:37,266 [main] - Fire
> begin() for
>
ObjectCreateRule[className=com.cross.strutsext.validator.RuleBean,
> attributeName=className]
> 
> DEBUG 2002-04-22 13:30:37,266 [main] -
> [ObjectCreateRule]{form-rules}New
> com.cross.strutsext.validator.RuleBean
> 
> ERROR 2002-04-22 13:30:37,281 [main] - Begin event
> threw exception
> 
> java.lang.ClassNotFoundException:
> com.cross.strutsext.validator.RuleBean
> 
> at
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 
> at
> java.security.AccessController.doPrivileged(Native
> Method)
> 
> at
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
> at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> 
> at
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> 
> at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> 
> at
>
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:187)
> 
> at
>
org.apache.commons.digester.Digester.startElement(Digester.java:1029)
> 
> at
>
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> 
> at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1170)
> 
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:994)
> 
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------
> Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en
> français !
> 

=====
----------------------------------------
Frederico Ferro Schuh
fred_schuh@yahoo.com.br
ICQ: 20486081

_______________________________________________________________________________________________
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos e tenha
acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !

Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message