cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@infoplanning.com>
Subject Re: C2 problem with latest checkout
Date Wed, 31 Jan 2001 04:50:33 GMT
> Greg Weinger wrote:
> 
> With the latest checkout from CVS I get an internal server error saying the sitemap is
not available.  Tomcat throws several TRaX errors to the screen:

Try the following:

1) Add the following entry to the web.xml file:
   <init-parameter>
     <parameter-name>cocoon-jar</parameter-name>
     <parameter-value>/WEB-INF/lib/cocoon-2.0a3.jar</parameter-value>
   </init-parameter>

   (Please note I am backing out this change as it is probably overkill)

2) Remove the "Class-Path:" entry from the Manifest.mf file, rebuild and try it again.
If this works, we will commit the change to the manifest file.  Everything works in
Tomcat 3.2.1, and that entry is how Servlet 2.3 enforces everything to work together
properly.

The other thing has me wondering whether Xalan has something changed in Xalan 2.0D07.
But as I said, everything works in Tomcat 3.2.1 so I think it may be Classloader
related.

> 
> 
> jar:file:C:/dev/apache/tomcat3.2/webapps/cocoon/WEB-INF/lib/cocoon-2.0a3.jar!/or
> g/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 25; Co
> lumn 104
> Parser error: TRaX Transform Throwable
> jar:file:C:/dev/apache/tomcat3.2/webapps/cocoon/WEB-INF/lib/cocoon-2.0a3.jar!/or
> g/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 105; C
> olumn 70
> VariableReference given for variable out of context or without definition!  Name
>  = factory-loader
> jar:file:C:/dev/apache/tomcat3.2/webapps/cocoon/WEB-INF/lib/cocoon-2.0a3.jar!/or
> g/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 105; C
> olumn 70
> Parser error: TRaX Transform Throwable
> 
> 
> I think that this causes the sitemap compilation to fail, which explains the compilation
exceptions in the log.  There's nothing specifically like this in the archives.  My
> xerces and xalan are the ones included in the latest distribution.
> 
> LOG:
> 
> DEBUG   30      [cocoon  ] (Thread-12): Using attribute: org.apache.tomcat.jsp_classpath
> DEBUG   30      [cocoon  ] (Thread-12): Trying to load class: org.postgresql.Driver
> DEBUG   60      [cocoon  ] (Thread-12): Using configuration file: /cocoon.xconf
> INFO    60      [cocoon  ] (Thread-12): Reloading from: file:C:\dev\apache\tomcat3.2\webapps\cocoon\cocoon.xconf
> DEBUG   311     [cocoon  ] (Thread-12): New Cocoon object.
> DEBUG   321     [cocoon  ] (Thread-12): Using parser: org.apache.cocoon.components.parser.XercesParser
> DEBUG   421     [cocoon  ] (Thread-12): Classpath =
> C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\fop-0_16_0.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\xerces_1_2_3.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\jstyle.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\xt.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\rhino.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\bsf.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\avalonapi.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\jakarta-regexp-1.2.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\xalan_2_0_D07.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\batik-all.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\javac.jar;C:\dev\apache\tomcat3.2\webapps\cocoon\WEB-INF\lib\cocoon-2.0a3.jar;C:\dev\apache\tomcat3.2\classes;C:\dev\apache\tomcat3.2\lib\ant.jar;C:\dev\apache\tomcat3.2\lib\servlet.jar;C:\dev\apache\tomcat3.2\lib\webserver.jar;C:\dev\apache\tomcat3.2\lib\jasper.jar;C:\dev\apache\tomcat3.2\lib\jcert.jar;C:\dev\apache\tomcat3.2\lib\jnet.jar;C:\dev\apache\tomcat3.2\lib\jsse.jar;C:\dev\apache\tomcat3.2\lib\xerces_1_2_3.jar;C:\dev\apache\tomcat3.2\lib\xalan_2_0_D07.jar;.;C:\java\jdk1.3\jre\lib\rt.jar;C:\java\jdk1.3\lib\classes.zip;C:\dev\classes\;C:\dev\apache\tomcat3.2\lib\servlet.jar;C:\dev\apache\tomcat3.2\lib\runner.jar;C:\java\jars\jdbc\postgres\jdbc7.0-1.2.jar;C:\java\jars\xml\xerces\xerces-1_2_3\xerces.jar;C:\java\jars\xml\xalan\xalan.jar;C:\java\jars\xml\parser.jar;C:\java\jars\xml\jaxp.jar;C:\java\jars\xml\xml.jar;C:\java\jars\bsh.jar;C:\java\jsse1.0.2\lib\jcert.jar;C:\java\jsse1.0.2\lib\jsse.jar;C:\java\jsse1.0.2\lib\jnet.jar;C:\java\jython\jython.jar;C:\java\jdk1.3\lib\tools.jar
> DEBUG   421     [cocoon  ] (Thread-12): Work directory = C:\dev\apache\tomcat3.2\work\localhost_8080%2Fcocoon
> DEBUG   421     [cocoon  ] (Thread-12): Creating new component pool for org.apache.cocoon.components.parser.XercesParser.
> DEBUG   481     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   491     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentFactory creating new instance of org.apache.cocoon.components.parser.XercesParser.
> DEBUG   501     [cocoon  ] (Thread-12): ComponentPool retrieved org.apache.cocoon.components.parser.XercesParser
(org.apache.cocoon.components.parser.XercesParser@513cf0)
> DEBUG   591     [cocoon  ] (Thread-12): Root configuration: cocoon
> DEBUG   591     [cocoon  ] (Thread-12): Configuration version: 2.0
> DEBUG   591     [cocoon  ] (Thread-12): Setting up components...
> DEBUG   611     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.parser.Parser
= org.apache.cocoon.components.parser.XercesParser)
> DEBUG   611     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.language.generator.ProgramGenerator
=
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl)
> DEBUG   691     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.datasource.DataSourceComponentSelector
= org.apache.cocoon.CocoonComponentSelector)
> DEBUG   741     [cocoon  ] (Thread-12): Adding component (org.apache.avalon.util.pool.PoolController
= org.apache.cocoon.util.ComponentPoolController)
> DEBUG   741     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.language.programming.ProgrammingLanguageSelector
=
> org.apache.cocoon.CocoonComponentSelector)
> DEBUG   741     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.language.markup.MarkupLanguageSelector
= org.apache.cocoon.CocoonComponentSelector)
> DEBUG   741     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.store.Store
= org.apache.cocoon.components.store.MemoryStore)
> DEBUG   781     [cocoon  ] (Thread-12): Adding component (org.apache.cocoon.components.classloader.ClassLoaderManager
=
> org.apache.cocoon.components.classloader.ClassLoaderManagerImpl)
> DEBUG   861     [cocoon  ] (Thread-12): Setting up the sitemap.
> DEBUG   911     [cocoon  ] (Thread-12): Sitemap location = sitemap.xmap
> DEBUG   1032    [cocoon  ] (Thread-12): Beginning sitemap regeneration
> DEBUG   1052    [cocoon  ] (Thread-37): CocoonComponentSelector setting up with root
element: markup-languages
> DEBUG   1322    [cocoon  ] (Thread-37): CocoonComponentSelector setting up with root
element: programming-languages
> DEBUG   2404    [cocoon  ] (Thread-37): Setting the parameters
> DEBUG   2534    [cocoon  ] (Thread-37): Looking up org.apache.cocoon.Cocoon
> DEBUG   2534    [cocoon  ] (Thread-37): Looking up org.apache.cocoon.Cocoon
> WARN    3505    [cocoon  ] (Thread-37): Language Exception
> org.apache.cocoon.components.language.LanguageException: Error compiling _sitemap_xmap:
> Line 0, column 0: C:\dev\apache\tomcat3.2\work\localhost_8080%2Fcocoon\_C_\_dev\_apache\_tomcat3_2\_webapps\_cocoon\_sitemap_xmap.java:59:
'}' expected.
>   private Parameters emptyParam = new Parameters();
>                                                    ^
> 
> 
>  at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:187)
> 
>  at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
> 
>  at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:187)
> 
>  at org.apache.cocoon.sitemap.Handler.run(Handler.java:168)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> ERROR   4246    [cocoon  ] (Thread-37): Error compiling sitemap
> org.apache.cocoon.components.language.LanguageException: Error compiling _sitemap_xmap:
> Line 0, column 0: C:\dev\apache\tomcat3.2\work\localhost_8080%2Fcocoon\_C_\_dev\_apache\_tomcat3_2\_webapps\_cocoon\_sitemap_xmap.java:59:
'}' expected.
>   private Parameters emptyParam = new Parameters();
>                                                    ^
> 
> 
>  at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:187)
> 
>  at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
> 
>  at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:250)
> 
>  at org.apache.cocoon.sitemap.Handler.run(Handler.java:168)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> DEBUG   4246    [cocoon  ] (Thread-12): Sitemap regeneration complete
> ERROR   4246    [cocoon  ] (Thread-12): Problem with servlet
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
> 
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:98)
> 
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:247)
> 
>  at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:365)
> 
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
>  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> 
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
> 
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> 
>  at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> 
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> 
>  at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> 
>  at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> 
>  at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> INFO    4306    [cocoon  ] (Thread-12): '' Processed by Apache Cocoon 2.0a3 in 3.385
seconds.
> 
> 
> BROWSER DUMP:
> 
> type internal-server-error
> 
> message The sitemap handler's sitemap is not available.
> 
> description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> request-uri
> 
> /cocoon/
> 
> path-info
> 
> stacktrace
> 
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:98)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:247)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:365)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
>

Mime
View raw message