cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <p...@luminas.co.uk>
Subject Re: Cocoon2 problem
Date Mon, 13 Nov 2000 20:27:36 GMT
Tomcat is using Crimson, whereas C2 is currently relying on
Xerces. Patch to tomcat's tomcat.sh follows.

*** tomcat.sh.old       Mon Nov 13 20:26:19 2000
--- tomcat.sh   Mon Oct 30 23:19:32 2000
***************
*** 61,67 ****
  fi
  
  if [ "$TOMCAT_OPTS" = "" ] ; then
!   TOMCAT_OPTS=""
  fi
  
  if [ "$ANT_OPTS" = "" ] ; then
--- 61,67 ----
  fi
  
  if [ "$TOMCAT_OPTS" = "" ] ; then
!   TOMCAT_OPTS="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
  fi
  
  if [ "$ANT_OPTS" = "" ] ; then

HTH,


Paul

On Mon, Nov 13, 2000 at 07:27:20PM +0000, Benedikt Eric Heinen wrote:
> Hello everybody!
> 
> 
> I tried installing Cocoon 2 on my system today (in order to play
> around with the newer version and of course the newer
> fop). Unfortunately, I haven't been all that successful so far. I
> checked out the latest tomcat 3.2 and cocoon 2 out of the
> apache.org CVS and installed them. But if I try to access
> http://myhost:8080/cocoon/ I get some java exception...
> I guess that I've set something up wrong, or is the current version
> in the CVS a little mixed up.  Anyway, this is what I get trying to
> access the cocoon page:
> 
> 
> 
> Netscape output  [Cocoon 2 error page]:
> java.lang.NullPointerException
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:132)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:239)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:196)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>         at org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:453)
>         at org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:441)
>         at org.apache.tomcat.core.Handler.service(Handler.java:325)
>         at org.apache.tomcat.facade.ServletWrapper.service(ServletWrapper.java:416)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:654)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:580)
>         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:142)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:425)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:497)
>         at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 
> Tomcat output  [on the TTY where I started tomcat]:
> 
> java.lang.NoSuchMethodError
>         at org.apache.xalan.utils.DOMBuilder.startElement(DOMBuilder.java:324)
>         at org.apache.xalan.stree.SourceTreeHandler.startElement(SourceTreeHandler.java:424)
>         at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)
>         at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:639)
>         at org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:352)
>         at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)
>         at org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:209)
>         at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)
>         at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:823)
>         at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1222)
>         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
>         at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
>         at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
>         at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:122)
>         at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:292)
>         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:206)
>         at org.apache.cocoon.sitemap.Handler.run(Handler.java:152)
>         at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> Any clue where I goofed up? (Or is it really Cocoons problem)?
> 
> 
> 
> yours,
> 
>   Benedikt
> 
> 
>               "Study as if you were going to live forever;
>                live as if you were going to die tomorrow."
>                                          -- Maria Mitchell
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

-- 
Paul Russell                               <paul@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.

Mime
View raw message