You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/01/16 03:00:31 UTC

Re: catalog entities

On 15.01.2004 18:01, enrico.maccias@free.fr wrote:

> Hello, 
> 
>  I download remote xhtml files with a FileGenerator and send lots of HTTP GET
> requests over the network to retrieve the XHTML DTD/entities :( 
> However, I did configure the catalog (which includes all the necessary stuff for
> XHTML)! Cocoon sees it at startup but still, goes over the network to fetch them
> 
> I just used the default resources/entities/ tree that come which cocoon-2.0.4 
> and put it in my web dir and have :
> 
>   <resolver class="org.apache.cocoon.components.resolver.ResolverImpl">
>    <parameter name="catalog" value="/resources/entities/catalog"/>
>    <parameter name="verbosity" value="2"/>
>   </resolver>
> 
> in the cocoon.xconf.
> 
> What happens ? help !

Unfortunately a bug in Xerces 2.6:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26124

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: catalog entities

Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.01.2004 13:19, enrico.maccias@free.fr wrote:

>>How I would go on? First I would upgrade Xalan to 2.5.1 and Xerces to 
>>2.5.0 (or you simply use latest Cocoon 2.0 from CVS). Next step is to 
>>have a look on the endorsed libs problem (when using Tomcat copy the 
>>x*.jar into common/endorsed). At the end next try ...
>>
>>Joerg
> 
> 
> Ok, thanks, I'll try those other versions.
> One more thing. Actually the use of the default
> catalog seems to work, but only when the FileGenerator 
> loads local files. Did you notice that behavior with your 
> xerces bug?

No. Sounds wired, maybe it's solved with more recent Xerces. For special 
questions on catalogues I want to recommend you another person. David 
Crossley set up the thing for Cocoon and he has more experience on this. 
I don't if he reads this list regularly, but here is his mail address: 
crossley(at)indexgeo.com.au.

As I'm also interested on such problems and the corresponding solutions 
please either hold the discussion on the list (CC or what ever) or send 
a summary to the list.

Thanks,

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: catalog entities

Posted by en...@free.fr.
> How I would go on? First I would upgrade Xalan to 2.5.1 and Xerces to 
> 2.5.0 (or you simply use latest Cocoon 2.0 from CVS). Next step is to 
> have a look on the endorsed libs problem (when using Tomcat copy the 
> x*.jar into common/endorsed). At the end next try ...
> 
> Joerg
> 
> 


Ok, thanks, I'll try those other versions.
One more thing. Actually the use of the default
catalog seems to work, but only when the FileGenerator 
loads local files. Did you notice that behavior with your 
xerces bug?


Enrico

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: catalog entities

Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.01.2004 11:14, enrico.maccias@free.fr wrote:

>>>Hello, 
>>>
>>> I download remote xhtml files with a FileGenerator and send lots of HTTP
>>
>>GET
>>
>>>requests over the network to retrieve the XHTML DTD/entities :( 
>>>However, I did configure the catalog (which includes all the necessary
>>
>>stuff for
>>
>>>XHTML)! Cocoon sees it at startup but still, goes over the network to fetch
>>
>>them
>>
>>>I just used the default resources/entities/ tree that come which
>>
>>cocoon-2.0.4 
>>
>>>and put it in my web dir and have :
>>>
>>>  <resolver class="org.apache.cocoon.components.resolver.ResolverImpl">
>>>   <parameter name="catalog" value="/resources/entities/catalog"/>
>>>   <parameter name="verbosity" value="2"/>
>>>  </resolver>
>>>
>>>in the cocoon.xconf.
>>>
>>>What happens ? help !
>>
>>Unfortunately a bug in Xerces 2.6:
>>
>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26124
>>
> 
> 
> The implementation shipped with cocoon-2.0.4 is xercesImpl-2.0.0.jar .
> Are we talking about the same lib? And are there some possible issues 
> with jdk-1.4.x xerces/xalan implementation?

Oh no, sorry, I was to fast. I never configured a catalog myself, so I 
don't have all the knowledge. From what I can see your entry looks only 
similar to the one in my Cocoon 2.0.x:

<entity-resolver 
class="org.apache.cocoon.components.resolver.ResolverImpl" 
logger="core.resolver">
     <parameter name="catalog" value="/resources/entities/catalog"/>
     <parameter name="verbosity" value="1"/>
</entity-resolver>

I don't know if the element name makes a difference.

Furthermore it can be that this Xerces version is to old. If you are 
using JDK 1.4.x the endorsed libs problem can also occur.

How I would go on? First I would upgrade Xalan to 2.5.1 and Xerces to 
2.5.0 (or you simply use latest Cocoon 2.0 from CVS). Next step is to 
have a look on the endorsed libs problem (when using Tomcat copy the 
x*.jar into common/endorsed). At the end next try ...

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: catalog entities

Posted by en...@free.fr.
> > Hello, 
> > 
> >  I download remote xhtml files with a FileGenerator and send lots of HTTP
> GET
> > requests over the network to retrieve the XHTML DTD/entities :( 
> > However, I did configure the catalog (which includes all the necessary
> stuff for
> > XHTML)! Cocoon sees it at startup but still, goes over the network to fetch
> them
> > 
> > I just used the default resources/entities/ tree that come which
> cocoon-2.0.4 
> > and put it in my web dir and have :
> > 
> >   <resolver class="org.apache.cocoon.components.resolver.ResolverImpl">
> >    <parameter name="catalog" value="/resources/entities/catalog"/>
> >    <parameter name="verbosity" value="2"/>
> >   </resolver>
> > 
> > in the cocoon.xconf.
> > 
> > What happens ? help !
> 
> Unfortunately a bug in Xerces 2.6:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26124
> 

The implementation shipped with cocoon-2.0.4 is xercesImpl-2.0.0.jar .
Are we talking about the same lib? And are there some possible issues 
with jdk-1.4.x xerces/xalan implementation?


thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org