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 <map:serialize type="xml"> -
file:///Users/sdm7g/DL/VIVAEAD/cocoon-app/restored/sitemap.xmap:190:37
at <map:transform> -
file:///Users/sdm7g/DL/VIVAEAD/cocoon-app/restored/sitemap.xmap:187:47
at <map:generate> -
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 "<?xml version='1.0' ?>"
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: [email protected]
For additional commands, e-mail: [email protected]
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]