From users-return-98986-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Fri Oct 15 14:43:19 2010 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 93988 invoked from network); 15 Oct 2010 14:43:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 14:43:18 -0000 Received: (qmail 1441 invoked by uid 500); 15 Oct 2010 14:43:18 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1172 invoked by uid 500); 15 Oct 2010 14:43:16 -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 1165 invoked by uid 99); 15 Oct 2010 14:43:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 14:43:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [204.13.248.71] (HELO mho-01-ewr.mailhop.org) (204.13.248.71) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 14:43:08 +0000 Received: from static-196-42-40-55.coqui.net ([196.42.40.55] helo=SERVER-A.spectron-msim.com) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1P6lUc-0004II-UY for users@cocoon.apache.org; Fri, 15 Oct 2010 14:42:47 +0000 Received: from [192.168.10.41] (unknown [196.42.40.55]) by SERVER-A.spectron-msim.com (Postfix) with ESMTP id 2C92511E1B23 for ; Fri, 15 Oct 2010 10:42:45 -0400 (AST) X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 196.42.40.55 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19001UR5lbGN1JDgcVQ0Qza Message-ID: <4CB8685C.6050506@spectron-msim.com> Date: Fri, 15 Oct 2010 10:42:36 -0400 From: Fawzib Rojas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: I really appreciate if somebody would help me with Cocoon 2.2/Fop/Batik References: <29886850.post@talk.nabble.com> <29950964.post@talk.nabble.com> In-Reply-To: <29950964.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I've posted twice about this and got no response. My problem: I'm moving from cocoon 2.1 to 2.2 (haven't done it yet because I knew maven would be a PITA and it didn't dissapoint). After a lot of hair pulling I finally compiled my webapp + blocks for cocoon 2.2 and was able to deploy on geronimo. The problem now is that cocoon-fop-impl will not work with embedded SVG. It uses fop-0.20.4 which wants to use batik 1.6 and those 2 are incompatible. After looking around in a lot of posts found out about cocoon-fop-ng-impl, unfortunately it cant be found on maven (why?). Found a post that linked to the source, after more hair pulling got it working cocoon-fop-ng-impl+fop-1.0+batik 1.7. I thought I was done but no. Now the SVG serializer stopped working. So I'll try and make a batik-ng. I did and now batik is giving me errors I was getting NullPointerException in SAXDocumentFactory.java at: public void startElement(String uri,String localName,String rawName,Attributes attributes) throws SAXException { // Check If we should halt early. if (HaltingThread.hasBeenHalted()) { throw new SAXException(new InterruptedIOException()); } if (inProlog) { // for some reason parser is null here inProlog = false; try { isStandalone = parser.getFeature ("http://xml.org/sax/features/is-standalone"); } catch (SAXNotRecognizedException ex) { } try { xmlVersion = (String) parser.getProperty ("http://xml.org/sax/properties/document-xml-version"); } catch (SAXNotRecognizedException ex) { } } ..... } I moved both trys to where the parser is created since that code just saves the values so *I think* it makes no difference. Now I get another error: java.lang.ClassCastException: org.apache.batik.dom.GenericElement cannot be cast to org.w3c.dom.svg.SVGSVGElement after another search found a post talking about DOMUtilities.deepCloneDocument saying it would convert dom to Batik's own dom. It gives me the same error, so I'm stuck. I would really appreciate any help on this. It was much easier to work with Cocoon 2.1, just add jars to build path in eclipse and that was it. I find maven to be an obstacle, most of the time I'm fighting it to get something done. When the dust settles I still end up downloading and creating my own things because what I need either outdated (cocoon-fop-impl), non-existent even though it was created a long time ago (cocoon-fop-ng-impl) or just wrongly configured (cocoon-fop-impl again). Also, why when a new version of a library is created most of the time compatibility is just ignored (and I see this a lot with java)? Why not add a simple class that uses the old interfaces so you can move up to new versions without problems. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org