You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Brian May <ba...@snoopy.apana.org.au> on 2000/08/01 02:01:18 UTC
Re: C2 issues
>>>>> "Giacomo" == Giacomo Pati <Gi...@pwr.ch> writes:
Giacomo> As the error message above states, you have not put
Giacomo> AvalonAware.jar into your classpath. You'll find it unde
Giacomo> the ./lib directory.
Oh, of course. It works now. Ooops. :-(
However, just a minor problem, I have often noticed. When first trying
to access my web-page (C2, any version since July) after initially
starting TomCat, I always get the following error:
Error: 500
Location: /~bam/welcome.html
Internal Servlet Error:
java.lang.NoClassDefFoundError: org/apache/xerces/validators/schema/XSchemaValidator
at org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java, Compiled Code)
at org.apache.xalan.xslt.FuncDocument.getDoc(FuncDocument.java, Compiled Code)
at org.apache.xalan.xslt.FuncDocument.execute(FuncDocument.java, Compiled Code)
at org.apache.xalan.xpath.Function.execute(Function.java, Compiled Code)
at org.apache.xalan.xpath.XPath.executeFunction(XPath.java, Compiled Code)
at org.apache.xalan.xpath.XPath.execute(XPath.java, Compiled Code)
at org.apache.xalan.xpath.SimpleNodeLocator.findNodeSet(SimpleNodeLocator.java, Compiled Code)
at org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java, Compiled Code)
at org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java, Compiled Code)
at org.apache.xalan.xpath.XPath.locationPath(XPath.java, Compiled Code)
at org.apache.xalan.xpath.XPath.execute(XPath.java, Compiled Code)
at org.apache.xalan.xpath.XPath.execute(XPath.java, Compiled Code)
at org.apache.xalan.xpath.XPath.execute(XPath.java, Compiled Code)
at org.apache.xalan.xslt.ElemValueOf.execute(ElemValueOf.java, Compiled Code)
at org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java, Compiled Code)
at org.apache.xalan.xslt.XSLTEngineImpl.createResultTreeFrag(XSLTEngineImpl.java, Compiled Code)
at org.apache.xalan.xslt.ElemVariable.getValue(ElemVariable.java, Compiled Code)
at org.apache.xalan.xslt.ElemVariable.execute(ElemVariable.java, Compiled Code)
at org.apache.xalan.xslt.Stylesheet.pushTopLevelVariables(Stylesheet.java, Compiled Code)
at org.apache.xalan.xslt.Stylesheet.pushTopLevelVariables(Stylesheet.java, Compiled Code)
at org.apache.xalan.xslt.XSLTEngineImpl.resolveTopLevelParams(XSLTEngineImpl.java, Compiled Code)
at org.apache.xalan.xslt.XSLTEngineImpl.startDocument(XSLTEngineImpl.java, Compiled Code)
at org.apache.cocoon.xml.util.DocumentHandlerWrapper.startDocument(DocumentHandlerWrapper.java, Compiled Code)
at org.apache.xerces.parsers.SAXParser.startDocument(SAXParser.java, Compiled Code)
at org.apache.xerces.validators.common.XMLValidator.callStartDocument(XMLValidator.java, Compiled Code)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java, Compiled Code)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java, Compiled Code)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java, Compiled Code)
at org.apache.cocoon.components.parser.XercesParser.parse(XercesParser.java, Compiled Code)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java, Compiled Code)
at org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java, Compiled Code)
at _homes._bam._public_html._sitemap_xmap.process(_sitemap_xmap.java, Compiled Code)
at org.apache.cocoon.sitemap.SitemapHandler.process(SitemapHandler.java, Compiled Code)
at org.apache.cocoon.sitemap.SitemapManager.invoke(SitemapManager.java, Compiled Code)
at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
What is particularly weird (to me at least), as when I click reload,
it works.
Also, in order to play around and experiment with the potential uses
of XSP, I have created a simple "guestbook" application. The idea
being, the XSP file records new entries in XML format, which is
rendered using standard XSL style-sheets. I can give you copies if you
want, but personally I think my code is horrible ;-). For instance,
currently I have to display the result one way (without quoting
special characters, as XSP seems to do that for me), and save it to
the file another way (with quoting special characters).
However, in the latest version of Cocoon2 it no longer works anyway.
It seems to crash at the following line:
String name=request.getParameter("name");
with the following error:
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java, Compiled Code)
at org.apache.cocoon.components.language.programming.java.Javac.parseError(Javac.java, Compiled Code)
at org.apache.cocoon.components.language.programming.java.Javac.parseStream(Javac.java, Compiled Code)
at org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler.getErrors(AbstractJavaCompiler.java, Compiled Code)
[...]
I would be interested in any relevant feedback in the above issues.
Thanks.
--
Brian May <ba...@snoopy.apana.org.au>