You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David Duddleston <da...@i2a.com> on 2000/05/31 01:28:37 UTC

changing XSP tmp/repository directory

How can I change the tmp directory that XSP is using. It is currently set to
driveroot/tmp/repository or in my case z:\tmp\repository

-david


> -----Original Message-----
> From: David Duddleston [mailto:david@i2a.com]
> Sent: Tuesday, May 30, 2000 2:22 PM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Installing Cocoon 2
>
>
>
> Fixed the problem... I think there is a confict with xerces.jar and the
> parsers.jar that Tomcat uses, I put jaxp.jar and parser.jar last and it
> worked.
>
> -david
>
> > -----Original Message-----
> > From: David Duddleston [mailto:david@i2a.com]
> > Sent: Tuesday, May 30, 2000 1:45 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: RE: Installing Cocoon 2
> >
> >
> >
> > Hmmm. Now I'm gettting this error! I'm using a free CVS dowload from May
> > 29th... The method does exists, so it must be getting the wrong argument
> > possibly?
> >
> > -david
> >
> >
> > Error: 500
> > Location: /cocoon2/simple-page.xsp
> > Internal Servlet Error:
> >
> > java.lang.NoSuchMethodError
> > 	at
> > org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage
> > .quoteStri
> > ngs(XSPMarkupLanguage.java:141)
> > 	at
> > org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage
> > .quoteStri
> > ngs(XSPMarkupLanguage.java:148)
> > 	at
> > org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage
> > .preproces
> > sDocument(XSPMarkupLanguage.java:97)
> > 	at
> > org.apache.cocoon.components.language.markup.AbstractMarkupLanguag
> > e.generate
> > Code(AbstractMarkupLanguage.java:265)
> > 	at
> > org.apache.cocoon.components.language.generator.ProgramGeneratorIm
> > pl.load(Pr
> > ogramGeneratorImpl.java:185)
> > 	at
> > org.apache.cocoon.generators.ServerPagesGenerator.generate(ServerP
> > agesGenera
> > tor.java:123)
> > 	at
> > org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcesso
> > r.java:161
> > )
> > 	at
> > org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartitio
> > n.java:102
> > )
> > 	at org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
> > 	at org.apache.cocoon.Cocoon.process(Cocoon.java:179)
> > 	at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:122)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 	at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper
> > .java:502)
> > 	at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:582)
> > 	at
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> > tion(HttpC
> > onnectionHandler.java:193)
> > 	at
> > org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:362)
> > 	at
> >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:407)
> > 	at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> > > -----Original Message-----
> > > From: giacomo@groovee.com [mailto:giacomo@groovee.com]On Behalf Of
> > > Giacomo Pati
> > > Sent: Tuesday, May 30, 2000 12:07 PM
> > > To: cocoon-dev@xml.apache.org
> > > Subject: Re: Installing Cocoon 2
> > >
> > >
> > >
> > > The installation doc does not reflect the fact that when using xsp all
> > > the jar MUST be in the classpath of tomcat. You can put the jars into
> > > the lib directory of tomcat. On Win$ additionaly change to
> tomcat.bat to
> > > add those jars to the classpath.
> > >
> > > Giacomo
> > >
> > > David Duddleston wrote:
> > > >
> > > > for http://localhost:8080/cocoon2/simple-page.xsp
> > > >
> > > > Are you getting an exeption like this? I have not figured out
> > > how to fix this one yet... I'm not very familiar with Cocoon2.
> > > >
> > > > -david
> > > >
> > > > Cocoon 2.0: Exception
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > --------------
> > > > Class: org.apache.arch.ComponentNotAccessibleException
> > > > Message: Can't access class
> > > org.apache.cocoon.generators.ServerPagesGenerator with role
> > > generator:serverpages due to a
> > > org.apache.arch.ComponentNotAccessibleException(Can't access
> > > class
> > > org.apache.cocoon.components.language.generator.ProgramGeneratorIm
> > > pl with role program-generator due to a
> > > org.apache.arch.ComponentNotAccessibleException(Can't access
> > > class org.apache.arch.named.NamedComponentManagerImpl with role
> > > factory due to a
> > > org.apache.arch.config.ConfigurationException(null
> > > (file:/Z:/tomcat/webapps/cocoon2/cocoon.xconf line 30))))
> > > >
> > > > org.apache.arch.ComponentNotAccessibleException: Can't access
> > > class org.apache.cocoon.generators.ServerPagesGenerator with role
> > > generator:serverpages due to a
> > > org.apache.arch.ComponentNotAccessibleException(Can't access
> > > class
> > > org.apache.cocoon.components.language.generator.ProgramGeneratorIm
> > > pl with role program-generator due to a
> > > org.apache.arch.ComponentNotAccessibleException(Can't access
> > > class org.apache.arch.named.NamedComponentManagerImpl with role
> > > factory due to a
> > > org.apache.arch.config.ConfigurationException(null
> > > (file:/Z:/tomcat/webapps/cocoon2/cocoon.xconf line 30))))
> > > >         at org.apache.cocoon.Cocoon.getComponent(Cocoon.java:117)
> > > >         at
> > > org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcesso
> > > r.java:158)
> > > >         at
> > > org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartitio
> > > n.java:102)
> > > >         at
> org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
> > > >         at org.apache.cocoon.Cocoon.process(Cocoon.java:179)
> > > >         at
> > >
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:122)
> > > >         at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > >         at
> > > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper
> > > .java:502)
> > > >         at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:582)
> > > >         at
> > > org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> > > tion(HttpConnectionHandler.java:193)
> > > >         at
> > >
> org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:362)
> > > >         at
> > >
> >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:407)
> > > >         at java.lang.Thread.run(Thread.java:484)
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > --------------
> > > >
> > > > > -----Original Message-----
> > > > > From: Berin Loritsch [mailto:bloritsch@infoplanning.com]
> > > > > Sent: Tuesday, May 30, 2000 8:14 AM
> > > > > To: cocoon-dev@xml.apache.org
> > > > > Subject: Re: Installing Cocoon 2
> > > > >
> > > > >
> > > > > By changing the <servlet-mapping> tag to execute on
> > > everything in cocoon/,
> > > > > I got it to give me some other results--but it crashes
> > > looking for an xsl
> > > > > template that isn't there ("simple-page.xsl").  I suppose
> > though, the
> > > > > impetus
> > > > > for getting it to work is now on me....
> > > > >
> > > > > Neeme Praks wrote:
> > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Berin Loritsch [mailto:bloritsch@infoplanning.com]
> > > > > > > Sent: Tuesday, May 30, 2000 4:55 PM
> > > > > > >
> > > > > > > The only difference between our web.xml files was the
> > > addition of the
> > > > > > > <servlet-mapping> tags.  I now get a screen with the
> > > > > > > following contents
> > > > > > > when I point to an XML file:
> > > > > > >
> > > > > > >       Cocoon 2.0: Version 2.0
> > > > > > > --------------------------------------
> > > > > > > Ready to process requests...
> > > > > > > --------------------------------------
> > > > > > >
> > > > > > > Also, in Tomcat I get the following entries in the
> > console window:
> > > > > >
> > > > > > [list skipped]
> > > > > >
> > > > > > > Is it reading the xconf file?  I can get no other results
> > > > > > > besides the "ready to process requests..." page.
> > > > > >
> > > > > > somebody else should answer this question...
> > > > > >
> > > > > > > The test URL ("http://localhost/cocoon/hello") still doesn't
> > > > > > > work (file does not exist).
> > > > > >
> > > > > > did you also try http://localhost/cocoon/servlet/Cocoon/hello?
> > > > > >
> > > > > > Neeme
> > > > >
> > >
> > > --
> > > PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
> > > Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
> > > Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
> > > CH-8166 Niederweningen                    Web:   http://www.pwr.ch
> > >
> >
>


RE: changing XSP tmp/repository directory

Posted by David Duddleston <da...@i2a.com>.
oooopppss... missed it for some reason. Thanks!

-david

> -----Original Message-----
> From: Jonathan Stimmel [mailto:jon-lists@stimmel.net]
> Sent: Tuesday, May 30, 2000 5:44 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: changing XSP tmp/repository directory
>
>
> On Tue, May 30, 2000 at 04:56:26PM -0700, David Duddleston wrote:
>
> > Opps... forgot to mention I'm using Cocoon2. Unless I'm missing
> something,
> > there does not seem to be a cocoon.properties file and I
> believe it has been
> > replaced with cocoon.xconf which has no entry for setting the repository
> > that I know of? If only I understood the code more, I could
> probably figure
> > it out, but so far I have not had time to plow though it all yet ;-) I'm
> > digging away at it slowly.
>
> Perhaps the following portion of .xconf will help (this version pulled
> a couple days ago):
>   <component
>     role="program-generator"
>
> class="org.apache.cocoon.components.language.generator.ProgramGene
> ratorImpl">
>       <parameter name="repository" value="/tmp/repository"/>
>       <parameter name="auto-reload" value="true"/>
>   </component>
>


Re: changing XSP tmp/repository directory

Posted by Jonathan Stimmel <jo...@stimmel.net>.
On Tue, May 30, 2000 at 04:56:26PM -0700, David Duddleston wrote:

> Opps... forgot to mention I'm using Cocoon2. Unless I'm missing something,
> there does not seem to be a cocoon.properties file and I believe it has been
> replaced with cocoon.xconf which has no entry for setting the repository
> that I know of? If only I understood the code more, I could probably figure
> it out, but so far I have not had time to plow though it all yet ;-) I'm
> digging away at it slowly.

Perhaps the following portion of .xconf will help (this version pulled
a couple days ago):
  <component
    role="program-generator"
    class="org.apache.cocoon.components.language.generator.ProgramGeneratorImpl">
      <parameter name="repository" value="/tmp/repository"/>
      <parameter name="auto-reload" value="true"/>
  </component>

RE: changing XSP tmp/repository directory

Posted by David Duddleston <da...@i2a.com>.
Opps... forgot to mention I'm using Cocoon2. Unless I'm missing something,
there does not seem to be a cocoon.properties file and I believe it has been
replaced with cocoon.xconf which has no entry for setting the repository
that I know of? If only I understood the code more, I could probably figure
it out, but so far I have not had time to plow though it all yet ;-) I'm
digging away at it slowly.

Thanks Mike!

-david


> -----Original Message-----
> From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> Sent: Tuesday, May 30, 2000 4:44 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: changing XSP tmp/repository directory
>
>
> on 5/30/00 6:28 PM, David Duddleston at david@i2a.com wrote:
>
> >
> > How can I change the tmp directory that XSP is using. It is
> currently set to
> > driveroot/tmp/repository or in my case z:\tmp\repository
> >
> > -david
> >
>
> >From cocoon.properties:
>
> # sets the repository where the compiled pages are stored.
> # NOTE: make sure the directory is readable. This directory is usually
> # relative to the web server's or to the servlet engine's. In case you're
> not
> # sure, use an absolute location.
> # WARNING: since this repository may contain information you want
> to remain
> # secret, we highly suggest that you protect the repository from untrusted
> # access, even read-only. Only Cocoon and the system administrators should
> # have access here.
> processor.xsp.repository = ./repository
>
>
> Mike
>


Re: changing XSP tmp/repository directory

Posted by Mike Engelhart <me...@earthtrip.com>.
on 5/30/00 6:28 PM, David Duddleston at david@i2a.com wrote:

> 
> How can I change the tmp directory that XSP is using. It is currently set to
> driveroot/tmp/repository or in my case z:\tmp\repository
> 
> -david
>