Jesse Reynolds wrote:

> At 22:29 -0400 15/8/2002, Vadim Gritsenko wrote:
>
>> Jesse Reynolds wrote:
>>
>>> At 22:10 -0400 15/8/2002, Vadim Gritsenko wrote:
>>>
>>>> Jesse Reynolds wrote:
>>>>
>>>>>
>>>>> And I've made the changes to JaxpParser.java as Vadim has 
>>>>> suggested to get it to tell Xerces to "allow-java-encodings" but 
>>>>> it just doesn't seem to work.
>>>>>
>>>>> Perhaps a bug in Xerces?
>>>>
>
> ...
>
>>> So, what should I try adding the allow-java-encodings code to now do 
>>> you think? I can't see any other file called JaxpParser.java in the 
>>> source, so does this mean I have to edit the source code of Avalon 
>>> XML Parser or something?
>>
>>
>>
>> :)
>>
>> You've got this part right. But it's not Avalon XML Parser, it's 
>> Avalon XML Parser Component which wraps JAXP parser into Component.
>>
>> Source is located at:
>>
>> 
>http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur/xmlbundle/src/java/org/apache/avalon/excalibur/xml/Attic/JaxpParser.java?rev=1.3&content-type=text/vnd.viewcvs-markup
> 
>>
>>
>> You don't have to compile all Excalibur, you can just patch and 
>> compile this class (add some System.out.println to see what's going 
>> on!) and put it under webapp/WEB-INF/classes/org/apache/..., and it 
>> will be loaded from there before old class.
>
>
> Hi Vadim
>
> Okay, I've modified the JaxpParser.java and placed it at:
>
> 
>$TOMCAT_HOME/webapps/cocoon/WEB-INF/classes/org/apache/avalon/excalibur/xml/Attic/JaxpParser.java
> 



Ahem...

Take a look at "package ..." line in the source code. *This* line should 
match directory, not URL from CVS. It should be (after compilation!!!):

$TOMCAT_HOME/webapps/cocoon/WEB-INF/classes/org/apache/avalon/excalibur/xml/JaxpParser.class


> and have compiled it so there is a JaxpParser.class in the same dir.
>
> I've strewn it with copious System.out.println("debug..."); lines but 
> none of them are reaching the catalina.out file. As a test I put a 
> println into CocoonServlet.java and recompiled Cocoon and this debug 
> line DOES appear in catalina.out, so I'm sure I know where I should be 
> looking for the debug output...
>
> It would appear that Cocoon is not finding my new JaxpParser.class file.
>
> How can I be sure about this... and how can I rectify the situation so 
> it is loading it before the main excalibur jars?


It *will* load it before jars in WEB-INF/lib.

Vadim


> Thanks
>
> Jesse



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to