Hi,
Ok, we're getting somewhere!! I managed to track down an alternative charset
jar that Jeroen Reijn sent me on 26th July 2006. I placed it into my
WEB-INF\lib directory and the errors have gone!!
The only problem is the serializers jar is not doing as it is supposed to
do!! I have specified the xhtml serializer snippet as:
<map:serializer name="xhtm1" src="
org.apache.cocoon.components.serializers.XHTMLSerializer"
mime-type="text/html">
<encoding>ISO-8859-1</encoding>
<doctype-default>strict</doctype-default>
<omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>
and on viewing the output in the browser am met with the following on the
first line:
<?xml version="1.0" encoding="UTF-8"?>
Firstly this line should not be displayed as I have specified omit-xml as
true, and secondly, encoding, UTF-8? I have specified this as ISO-8859-1!!
Thirdly, all of the script tags are still being collapsed:
<script ... />
instead of
<script ...></script>
What is going on here?
My viewing my site (www.beyarecords.com) will enable you to see the issue.
--
Regards
Andrew
On 11/03/07, Andrew Madu <[EMAIL PROTECTED]> wrote:
Hi Jörg,
I have had, as best as I am able to, a look at what could be causing this
problem but have not found anything. I downloaded a version of the jar at
the link you provided and this as well yielded no change.
Any ideas?
--
Regards
Andrew
On 11/03/07, Joerg Heinicke <[EMAIL PROTECTED]> wrote:
>
> On 11.03.2007 13:02, Andrew Madu wrote:
>
> > java.lang.NoClassDefFoundError: Could not initialize class
> > org.apache.cocoon.components.serializers.encoding.CharsetFactory
> >
> org.apache.cocoon.components.serializers.EncodingSerializer.configure(
> EncodingSerializer.java:168)
>
> From what I understand it is not a problem of finding the
> CharsetFactory, but of loading and initializing it. CharsetFactory holds
> a static instance of itself [1, line 44]. As the instantiation happens
> on loading the class, an exception during the instantiation might lead
> to the exception stacktrace you have. Best would be to do remote
> debugging so that you can see where exactly it fails on loading
> CharsetFactory.
>
> Jörg
>
> [1]
>
>
http://svn.apache.org/viewvc/cocoon/tags/cocoon-2.1/RELEASE_2_1_10/src/blocks/serializers/java/org/apache/cocoon/components/serializers/encoding/CharsetFactory.java?annotate=506006
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>