You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joe Colgan <jc...@gtwa.com.au> on 2000/03/31 04:10:22 UTC

Store Repository

Hello,

Thanks in advance to anybody who helps with this problem of mine.

I'm having the "Can't create store repository" problem with a slight
variant. I've checked the mail archives and the BBS at magiccookie.com but
haven't been able to get it right based on previous advice. I'm running
apache 1.3.9 with Jserv 1.1 on Linux and Jserv is installed and working
fine. The Cocoon error message is as follows:

*****
Publishing Engine could not be initialized.

      java.lang.RuntimeException: Can't create store repository:
/./repository. Make sure it's there or you have writing permissions.
              at org.apache.cocoon.processor.xsp.XSPProcessor.init(Compiled
Code)
              at org.apache.cocoon.framework.Manager.create(Compiled Code)
              at org.apache.cocoon.framework.Router.init(Compiled Code)
              at org.apache.cocoon.framework.Manager.create(Compiled Code)
              at org.apache.cocoon.Engine.(Compiled Code)
              at org.apache.cocoon.Engine.getInstance(Compiled Code)
              at org.apache.cocoon.Cocoon.init(Compiled Code)
              at org.apache.jserv.JServServletManager.load_init(Compiled
Code)
              at org.apache.jserv.JServServletManager.loadServlet(Compiled
Code)
              at org.apache.jserv.JServConnection.processRequest(Compiled
Code)
              at org.apache.jserv.JServConnection.run(Compiled Code)
              at java.lang.Thread.run(Compiled Code)
*****
Cocoon is in the default ApacheJserv servlet zone named "root" with the
associated properties file named zone.properties. At present this file shows
the following config items that pertain to Cocoon:

Repository directory ->
repositories=/usr/local/www/cocoon-1.7/bin/cocoon.jar
Init Params ->
servlet.org.apache.cocoon.Cocoon.initArgs=properties=/usr/local/www/cocoon-1
.7/conf/cocoon.properties

Where should the "repository" directory be located?
Do I need to create the "repository" directory with 755 permissions?
Can anybody tell me what the (Compiled Code) error in the error message
means?

I'm sure the problem is staring me in the face but I'm relatively new ilnux
and Apache so any help would be great!!

Thanks

Joe Colgan


RE: Store Repository

Posted by Joe Colgan <jc...@gtwa.com.au>.
Thanks Ulrich....I needed to apply the repository directory to the WWW user.
Next time I'll pay more attention to detail.

Cheers

joe

-----Original Message-----
From: ulim [mailto:ulim]On Behalf Of Ulrich Mayring
Sent: Friday, 31 March 2000 3:46 PM
To: cocoon-users@xml.apache.org
Subject: Re: Store Repository


Joe Colgan wrote:
>
> Hello,
>
> Thanks in advance to anybody who helps with this problem of mine.
>
> I'm having the "Can't create store repository" problem with a slight
> variant. I've checked the mail archives and the BBS at magiccookie.com but

Joe, this is not a slight variant, but an FAQ :)

> *****
> Publishing Engine could not be initialized.
>
>       java.lang.RuntimeException: Can't create store repository:
> /./repository. Make sure it's there or you have writing permissions.

1.) Find out what user:group JServ runs under (often nobody:nobody).

2.) Give the repository directory to that user:group.

3.) chmod 755 (perhaps overkill, but you can downgrade permissions
later)

4.) Put the *absolute* path to the repository directory in the
cocoon.properties

Ulrich

--
Ulrich Mayring
DENIC eG, Softwareentwicklung

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Store Repository

Posted by Ulrich Mayring <ul...@denic.de>.
Joe Colgan wrote:
> 
> Hello,
> 
> Thanks in advance to anybody who helps with this problem of mine.
> 
> I'm having the "Can't create store repository" problem with a slight
> variant. I've checked the mail archives and the BBS at magiccookie.com but

Joe, this is not a slight variant, but an FAQ :)

> *****
> Publishing Engine could not be initialized.
> 
>       java.lang.RuntimeException: Can't create store repository:
> /./repository. Make sure it's there or you have writing permissions.

1.) Find out what user:group JServ runs under (often nobody:nobody).

2.) Give the repository directory to that user:group.

3.) chmod 755 (perhaps overkill, but you can downgrade permissions
later)

4.) Put the *absolute* path to the repository directory in the
cocoon.properties

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung

Re: Even more XSP problems

Posted by Stefano Mazzocchi <st...@apache.org>.
Autobahn Internet Services wrote:
> 
> Yes, Stefano, I've read the FAQ. More than twice.

well, then we need a better FAQ mantainer... I'm doing a crappy job

<faq>
 <question>I get the exception telling me that the method 

<em>org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:290)</em>
 could not be found. What's wrong?</question>
 <answer>
  <p>This happens because Cocoon needs a DOM-leve2 implementation and
you
  probably have a DOM-level1 included in your classpath _before_
<code>xerces.jar</code>.</p>
  <p>So, either remove the instances of your DOM-level1 packages
(normally included
  in <code>xml.jar</code> or <code>jtidy.jar</code>) or place the
<code>xerces.jar</code>
  archive that comes with Cocoon <em>before</em> all the other jar
packages
  in your classpath. This should fix your problem.</p>
 </answer>
</faq>


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

Re: Even more XSP problems

Posted by Autobahn Internet Services <te...@northwest.com>.
Yes, Stefano, I've read the FAQ. More than twice. 

Todd



Re: Even more XSP problems

Posted by Stefano Mazzocchi <st...@apache.org>.
Autobahn Internet Services wrote:
> 
> Add another user to the ranks of the frustrated....

> Any suggestions other than sacrificing two marketers and the receptionist?

Hey, that's not a bad one, but I have a better one: read the FAQ :)

People, please.... I maintain a FAQ document for the purpose of helping
both you and us. It's not fun... not at all, and it takes time (not
much, but it's so boring) and it's the most unsexy work ever... but I do
it to help you.

Now, please, help me by looking into it... it doesn't matter if you
looked in version 1.7 or before because I add and remove questions as we
go along every version.

The document is contained into the distribution and on the web site. You
even have the XML version if you want!! you can even hook them up to
your portals or file them to your cell phone...

BUT READ IT!!!!

[is this polite enough?]

And if the question is not understandable or my english sucks or I can't
read your mind... tell me, but everytime you even "think" about asking a
question on this mail list... check the FAQ twice!

Man, it saves you time, think about it.


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------


Even more XSP problems

Posted by Autobahn Internet Services <te...@northwest.com>.
Add another user to the ranks of the frustrated....

The Environment:

JDK1.2.2
Apache1.3.9
Jserv1.1.2 (latest rpm from Apache)
servlets2.0
Cocoon1.7.2 (same problems with 1.7.1)
Xerces1.0.3
Xalan1.0.0

Classpath:

 /home/http/cocoon/lib/xerces_1_0_3.jar:/home/http/cocoon/lib/xalan_1_0_0.jar
 :/home/http/cocoon/lib:/home/http/cocoon/lib/ant.jar
 :/home/http/cocoon/lib/fop0_12_1.jar:/home/http/cocoon/lib/stylebook-1.0-b2.jar
 :/opt/cocoon/bin/cocoon.jar
 :/usr/local/java/lib/servlet.jar:/usr/local/java/lib/classes.zip
 :/usr/local/java/lib/tools.jar

My Problem(s):

Basically, I can't get the XSP examples to work.

I'm getting the same normalize error that others have reported:

 java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not
  found
 at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:289)
 at org.apache.cocoon.processor.xsp.language.java.
    XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)
 at org.apache.cocoon.processor.xsp.language.java.
    XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)
 at org.apache.cocoon.processor.xsp.language.java.
    XSPJavaPreprocessor.preprocess(XSPJavaPreprocessor.java:81)
 at org.apache.cocoon.processor.xsp.
    XSPLogicsheet.apply(XSPLogicsheet.java:99)
 at org.apache.cocoon.processor.xsp.
    XSPProcessor.process(XSPProcessor.java:371)
 at org.apache.cocoon.Engine.handle(Engine.java:295)
 at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
 at org.apache.jserv.JServConnection.
    processRequest(JServConnection.java:314)
 at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)

/var/log/httpd/error_log gives:

 [Fri Mar 31 14:25:13 2000] [warn] [client 127.0.0.1] handler "cocoon" not
  found for: /home/httpd/html/cocoon/xsp/clean-page.xml
 XSL Warning: xsl:stylesheet requires a 'version' attribute!
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute 
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:attribute. The
  attribute will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:attribute. The
  attribute will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.

There aren't any jserv or mod_jserv errors.

It seems, somehow, as if it's just not finding cocoon. I'm getting the
same warning on straight xml->xsl->html pages, but they seem to work just
fine.

Any suggestions other than sacrificing two marketers and the receptionist?

Regards,
Todd