Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 9200 invoked from network); 10 Mar 2007 20:38:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2007 20:38:50 -0000 Received: (qmail 56042 invoked by uid 500); 10 Mar 2007 20:38:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 55980 invoked by uid 500); 10 Mar 2007 20:38:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 55969 invoked by uid 99); 10 Mar 2007 20:38:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 12:38:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [74.52.162.130] (HELO mx11.mesanetworks.net) (74.52.162.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 12:38:44 -0800 Received: (qmail 26353 invoked by uid 509); 10 Mar 2007 13:44:20 -0700 Received: from 65.175.0.109 by mx11.mesanetworks.net (envelope-from , uid 508) with qmail-scanner-1.25-st-qms (clamdscan: 0.87/2133. spamassassin: 3.0.6. perlscan: 1.25-st-qms. Clear:RC:1(65.175.0.109):. Processed in 0.132682 secs); 10 Mar 2007 20:44:20 -0000 X-Antivirus-MESANETWORKS-Mail-From: cocoon@lojjic.net via mx11.mesanetworks.net X-Antivirus-MESANETWORKS: 1.25-st-qms (Clear:RC:1(65.175.0.109):. Processed in 0.132682 secs Process 26347) Received: from 65-175-0-109.static.mesanetworks.net (HELO ?192.168.0.102?) (65.175.0.109) by mx11.mesanetworks.net with SMTP; 10 Mar 2007 13:44:20 -0700 Message-ID: <45F31711.6060501@lojjic.net> Date: Sat, 10 Mar 2007 13:37:37 -0700 From: Jason Johnston User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Xhtml and Ajax...no go!! References: <45E838E4.50108@tuffmail.com> <45EAEA8E.7040909@lojjic.net> <45F2FF6F.80103@lojjic.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Andrew Madu wrote: > Hi Jason, > many thanks for your reply. I am now getting the following error message: > > java.lang.NoClassDefFoundError: Could not initialize class org.apache.cocoon.components.serializers.encoding.CharsetFactory > > > I checked my local.blocks (cocoon 2.1.10) file and the serializers block > has been set to: > > include.block.serializers=true > > I checked my WEB-INF\lib directory and the cocoon-serializers-block.jar > file exists. What is the issue here? There should also be a cocoon-serializers-charsets-0.2.jar file, is that there? > > -- > Regards > > Andrew > > On 10/03/07, *Jason Johnston* > wrote: > > Andrew Madu wrote: > > Hi, > > my site can now be viewed at www.beyarecords.com > > > . I have changed my ajax-request > block to > > xhtml. On clicking the submit button you will see that the whole page > > reloads! > > > > I am using the very latest version of cocoon on winXP/SP2. > > > Thanks for making that available, it helps a lot. > > The problem is that all the script tags are being collapsed: > > > > Browsers don't handle this well, and end up not loading a bunch of the > scripts, causing the errors you see. > > The XHTMLSerializer in the 'serializers' block contains special logic to > prevent collapsing the script elements. Unfortunately you're not using > that, you are using the default xhtml serializer which really just uses > XMLSerializer (notice the > src="org.apache.cocoon.serialization.XMLSerializer" in its definition). > > You should switch to the one in the serializers block, like so: > > src="org.apache.cocoon.components.serializers.XHTMLSerializer" > mime-type="text/html"> > UTF-8 > strict > > > More details on its configuration: > http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/serializers/XHTMLSerializer.html > > > That should clear up your issues. > --Jason > > BTW I also noticed your page's root element is rather than > , and there are several stray and elements. > > > > -- > > Regards > > > > Andrew > > > > On 10/03/07, *Andrew Madu* < andrewmadu@gmail.com > > > >> wrote: > > > > Hi Jason, > > sorry for the delay. I am using the > > > > > > Let's clarify... which XHTML serializer are you using? The > > "built-in" > > one, or the one in the serializers block? > > > > > > > > I am using the XHTML serializer in the serializers block: > > > > > mime-type="text/html" name="xhtml" pool-max="${ > > xhtml-serializer.pool-max}" > > src="org.apache.cocoon.serialization.XMLSerializer"> > > -//W3C//DTD XHTML 1.0 > Strict//EN > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd > > ISO-8859-1 > > yes > > > > > > And here is my ajax-request block: > > > > > > > > > > src="style/{2}.xsl"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > What in-built xhtml serializer do you refer to? > > > > -- > > Regards > > > > Andrew > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org