Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 49012 invoked from network); 9 Oct 2009 06:25:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 06:25:08 -0000 Received: (qmail 4096 invoked by uid 500); 9 Oct 2009 06:25:07 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 4023 invoked by uid 500); 9 Oct 2009 06:25:07 -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 4014 invoked by uid 99); 9 Oct 2009 06:25:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 06:25:07 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 06:24:54 +0000 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.8/8.13.8) with ESMTP id n996OXNL015515 for ; Fri, 9 Oct 2009 09:24:33 +0300 Received: from claudius.oulu.fi (claudius.oulu.fi [130.231.106.107]) by cc.oulu.fi (8.13.7/8.13.7) with ESMTP id n996OXWY018547 for ; Fri, 9 Oct 2009 09:24:33 +0300 (EEST) Message-ID: <4ACED721.3000003@oulu.fi> Date: Fri, 09 Oct 2009 09:24:33 +0300 From: Andre Juffer User-Agent: Thunderbird 2.0.0.17 (X11/20080926) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: org.xml.sax.SAXException: Unrecognized file format (.0,6) [ was: adding jars to 2.2 ] References: <10122C28-FCD6-4C9B-97ED-E094A39DF0C2@virginia.edu> <4ACDDA3B.9090507@oulu.fi> <5B6E8DD3-4E9C-47A2-A624-5BF40A93B65D@virginia.edu> In-Reply-To: <5B6E8DD3-4E9C-47A2-A624-5BF40A93B65D@virginia.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Cannot really help you with this, but I would assume that at some point in the pipeline something is created that doesn't seem to be XML. The code in these jars you have added were tested, before using them with cocoon, I assume, so that one could rule out that the problem originates from there? Steven D. Majewski wrote: > > On Oct 8, 2009, at 8:25 AM, Andre Juffer wrote: > >> Steven D. Majewski wrote: >>> >>> I call some java classes from flowscript that aren't included in the >>> default 2.2 blocks. >>> >>> If I manually add the jars to ./target/rcl/webapp/WEB-INF/lib/, the >>> errors go away. >>> >>> What is the right way to add these jars with maven ? >>> >>> For example: commons-codec-1.3.jar. >>> >>> How do you add a dependency for a .jar instead of a block ? >> >> Update the pom.xml (make dependencies) and ensure that the jars are >> in local repository. When creating the war file for deployment, these >> jars are automatically included. >> > > OK. I already had commons-codec in my .m2/repository, so I looked at > it's .pom file > to get artifact & group id's and version number. I also added > commons-transaction, > which was not in my local repo. That generated an error with > instructions for how > to do 'mvn install:install-file'. After doing that I can jetty:run. > > > Now, one one pipeline, I'm getting: > > > Caused by: org.apache.cocoon.ProcessingException: Failed to process > pipeline > at - > file:///Users/sdm7g/DL/VIVAEAD/cocoon-app/restored/sitemap.xmap:190:37 > at - > file:///Users/sdm7g/DL/VIVAEAD/cocoon-app/restored/sitemap.xmap:187:47 > at - > file:///Users/sdm7g/DL/VIVAEAD/cocoon-app/restored/sitemap.xmap:186:52 > at > org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:143) > > at > org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:923) > > at > org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:379) > > at > org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:439) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:592) > at > org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) > > at $Proxy8.process(Unknown Source) > at > org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:199) > > ... 77 more > Caused by: org.xml.sax.SAXException: Unrecognized file format (.0,6) > at > org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter.checkProlog(AbstractXMLByteStreamInterpreter.java:315) > > at > org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter.parse(AbstractXMLByteStreamInterpreter.java:93) > > at > org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:44) > > at > org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:358) > > > > Which seems to be from this code: > > private void checkProlog() throws SAXException { > int valid = 0; > int ch = 0; > if ((ch = this.read()) == 'C') valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > if ((ch = this.read()) == 'X') valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > if ((ch = this.read()) == 'M') valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > if ((ch = this.read()) == 'L') valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > if ((ch = this.read()) == 1) valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > if ((ch = this.read()) == 0) valid++; > else throw new SAXException("Unrecognized file format (." + > valid + "," + ch + ")"); > } > } > > > I don't understand what it's trying to do here. > Is the Unrecognized complaint on my xml input file ? > ( Both the xml input and the xsl file start with "" > the xsl has an excoding explicitly declared UTF-8, the xml does not. > But both appear to use only simple ascii. ) > > What is the significance of the "C" -- is that a sax event code ? > > > -- Steve Majewski > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org