cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Fixed: The sitemap handler's sitemap is not available
Date Thu, 05 Jul 2001 21:02:53 GMT
Martin Mauri wrote:
> 
> Hi Ramaprabhu,
> 
> Unfortunately, I don't have CATALINA, my Tomcat is 3.2.1, but this wouldn't
> be a problem, the thing is that I cannot find the tag <parser
> class="org.apache.cocoon.components.parser.XercesParser"/>, I think my CVS
> brought another version of C2!

The tag is not necessary if you can use JAXP.  Otherwise, simply add it in your
Cocoon.xconf file.

> 
> any help?
> 
> > I got the same error with tomcat 4.0-b5 and cocoon2. The following fix
> works
> > for me:
> >
> > 1) I copied xerces_1_4_0.jar from $COCOON2_HOME/lib to
> >    $CATALINA_HOME/server/lib/ and renamed it as aaxerces.jar (no
> chances!).
> > 2) I then enabled this attribute in cocoon.xconf
> > (it is commented out by default):
> >  <parser class="org.apache.cocoon.components.parser.XercesParser"/>
> > 3) I set CATALINA_OPTS =
> >
> "-Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.p
> arser.XercesParser"
> > in $CATALINA_HOME/bin/catalina.sh
> > 4) Restart tomcat and we're in business again. Cocoon2 does take such a
> > looooooong time to start the first time that your browser will most
> probably
> > timeout. try reloading once "top" stops reporting ~100% CPU usage for
> "java".
> >
> > On Thursday 05 July 2001 15:02, you wrote:
> > > Hi all,
> > >
> > > Just like Kalven I removed those files from my tomcat/lib directory,
> though
> > > I got this error, and It got me in a tight cause it doesn't seem to be
> > > pretty simple.
> > >
> > > here's the error, if someone has some idea, I'll be glad to hear about
> it.
> > >
> > > regards.
> > >
> > > Cocoon 2 - Internal server error
> > >
> >
> > --------------------------------------------------------------------------
> -
> > >- ----
> > >
> > > type internal-server-error
> > >
> > > message Exception in Handler
> > >
> > > description org.apache.cocoon.ProcessingException: Exception in
> > > Handler:org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap: Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param if (param != null) { ^ Line 0,
> column
> > > 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param String
> compareToString =
> > > param.getParameter ("parameter-selector-test", null); ^
> > >
> > > sender org.apache.cocoon.servlet.CocoonServlet
> > >
> > > source Cocoon servlet
> > >
> > > request-uri
> > >
> > > /cocoon/
> > >
> > > embedded exception
> > >
> > > org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >
> > > embedded exception stacktrace
> > >
> > > org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(P
> > >r ogramGeneratorImpl.java:163)
> > >  at org.apache.cocoon.sitemap.Handler.run(Handler.java:197)
> > >  at java.lang.Thread.run(Thread.java:484)
> > > org.apache.cocoon.components.language.LanguageException: Error compiling
> > > sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >  at
> > >
> org.apache.cocoon.components.language.programming.java.JavaLanguage.compile
> > >( JavaLanguage.java:204)
> > >  at
> > >
> org.apache.cocoon.components.language.programming.CompiledProgrammingLangua
> > >g e.load(CompiledProgrammingLanguage.java:131)
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.genera
> > >t eResource(ProgramGeneratorImpl.java:244)
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(P
> > >r ogramGeneratorImpl.java:160)
> > >  at org.apache.cocoon.sitemap.Handler.run(Handler.java:197)
> > >  at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > > exception
> > >
> > > org.apache.cocoon.ProcessingException: Exception in
> > > Handler:org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >
> > > path-info
> > >
> > >
> > >
> > > stacktrace
> > >
> > > org.apache.cocoon.ProcessingException: Exception in
> > > Handler:org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >  at
> > >
> org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:227)
> > >  at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:153)
> > >  at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:175)
> > >  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> > >  at org.apache.cocoon.Cocoon.process(Cocoon.java:288)
> > >  at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:442)
> > >  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:7
> > >9 7)
> > >  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > >  at
> > >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http
> > >C onnectionHandler.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)
> > > org.apache.cocoon.ProcessingException: Language
> > > Exception:org.apache.cocoon.components.language.LanguageException: Error
> > > compiling sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(P
> > >r ogramGeneratorImpl.java:163)
> > >  at org.apache.cocoon.sitemap.Handler.run(Handler.java:197)
> > >  at java.lang.Thread.run(Thread.java:484)
> > > org.apache.cocoon.components.language.LanguageException: Error compiling
> > > sitemap_xmap:
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:460: Undefined variable: param
> > >     if (param != null) {
> > >         ^
> > > Line 0, column 0:
> > >
> C:\tomcatc2\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\sitemap_xmap
> > >. java:461: Undefined variable or class name: param
> > >       String compareToString = param.getParameter
> > > ("parameter-selector-test", null);
> > >                                ^
> > >
> > >  at
> > >
> org.apache.cocoon.components.language.programming.java.JavaLanguage.compile
> > >( JavaLanguage.java:204)
> > >  at
> > >
> org.apache.cocoon.components.language.programming.CompiledProgrammingLangua
> > >g e.load(CompiledProgrammingLanguage.java:131)
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.genera
> > >t eResource(ProgramGeneratorImpl.java:244)
> > >  at
> > >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(P
> > >r ogramGeneratorImpl.java:160)
> > >  at org.apache.cocoon.sitemap.Handler.run(Handler.java:197)
> > >  at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
Mime
View raw message