You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Armin Waibel <ar...@apache.org> on 2005/01/17 17:37:14 UTC

docu generation failed

Hi Tom,

I can't generate the docs ("ant doc" target) after the changes made to 
execute Forrest. Always got a validation error:

BUILD FAILED
...forrest\src\core\targets\validate.xml:143: Could not validate document

When I rollback build.xml to previous version doc generation works like 
a charm.
Any suggestions?

regards,
Armin

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi tom,

it works now.

thanks
jakob

Thomas Dudziak schrieb:

>Seems to be a known Cocoon bug:
>
>http://issues.cocoondev.org/browse/FOR-356
>
>You can try the suggestion there:
>
>chmod a+w $FORREST_HOME/context 
>
>Tom
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Thomas Dudziak <to...@gmail.com>.
Seems to be a known Cocoon bug:

http://issues.cocoondev.org/browse/FOR-356

You can try the suggestion there:

chmod a+w $FORREST_HOME/context 

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi tom,

ant doc under windows runs without problems. not so under linux.
Directory '.' is not readable/writable ??? i'm lost :(

jakob

site:
    [mkdir] Created dir: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/tmp/cocoon-work
     [echo]
     [echo] Copying the various non-generated resources to site.
     [echo] Warnings will be issued if the optional project resources 
are not found.
     [echo] This is often the case, because they are optional and so may 
not be available.
     [echo] Copying project resources and images to site ...
     [copy] Warning: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/webapp/resources 
not found.
     [copy] Copying 499 files to 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site
     [java] 
------------------------------------------------------------------------
     [java] cocoon 2.2.0-dev
     [java] Copyright (c) 1999-2004 Apache Software Foundation. All 
rights reserved.
     [java] 
------------------------------------------------------------------------


     [java] ERROR   2005-01-22 16:49:09.433 [        ] (): Directory '.' 
is not readable/writable
     [java] Exception in thread "main" java.io.IOException: Directory 
'.' is not readable/writable
     [java]     at 
org.apache.cocoon.bean.CocoonWrapper.getDir(CocoonWrapper.java:253)
     [java]     at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:106)
     [java]     at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
     [java]     at org.apache.cocoon.Main.main(Main.java:320)
     [echo] Copying main skin images to site ...
    [mkdir] Created dir: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin/images
     [copy] Copying 21 files to 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin/images
     [copy] Copying 62 files to 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin/images
     [echo] Copying project skin images to site ...
     [copy] Warning: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/src/documentation/skins/common/images 
not found.
     [copy] Warning: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/src/documentation/skins/tigris/images 
not found.
     [echo] Copying main skin css and js files to site ...
     [copy] Copying 8 files to 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin
     [copy] Copied 3 empty directories to 2 empty directories under 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin
     [copy] Copying 9 files to 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site/skin
     [echo] Copying project skin css and js files to site ...
     [copy] Warning: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/src/documentation/skins/common 
not found.
     [copy] Warning: 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/src/documentation/skins/tigris 
not found.
     [echo] Finished copying the non-generated resources.
     [echo] Now Cocoon will generate the rest ...
     [echo]
     [echo] Static site will be generated at:
     [echo] /home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/site
     [echo]
     [echo] Note that there are various reasons for "build failed" messages.
     [echo] * Cocoon will report the status of each document:
     [echo]   - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
     [echo] * Even if only one link is broken, you will still get "failed".
     [echo] * Your site would still be generated, but some pages would 
be broken.
     [echo] * Please check the file:
     [echo] 
/home/jakob/workspace/db-ojb_RELEASE_1_0/target/doc/build/tmp/brokenlinks.xml
     [echo] for any broken links in the generated site.

BUILD FAILED
/home/jakob/workspace/db-ojb_RELEASE_1_0/build.xml:826: The following 
error occurred while executing this line:
/usr/local/apache-forrest-0.6/src/core/targets/site.xml:43: Java returned: 1



Thomas Dudziak schrieb:

>The thing with having xml-commons-resolver in Ant's lib directory from
>the Forrest page:
>
>http://forrest.apache.org/docs/your-project.html#invoking_from_ant
>
>Judging from the doc for this lib
>
>http://xml.apache.org/commons/components/resolver/resolver-article.html
>
>its purpose is to locally resolve DTDs like the one you've got in the
>error message.
>So, yes according ot the Forrest docs, you need to put this library
>into Ant's lib foldr in order to run Forrest successfully.
>
>When I have a bit more time (weekend ?), I'll add some available
>usages to check for the libraries that OJB requires for its targets.
>
>Tom
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Thomas Dudziak <to...@gmail.com>.
The thing with having xml-commons-resolver in Ant's lib directory from
the Forrest page:

http://forrest.apache.org/docs/your-project.html#invoking_from_ant

Judging from the doc for this lib

http://xml.apache.org/commons/components/resolver/resolver-article.html

its purpose is to locally resolve DTDs like the one you've got in the
error message.
So, yes according ot the Forrest docs, you need to put this library
into Ant's lib foldr in order to run Forrest successfully.

When I have a bit more time (weekend ?), I'll add some available
usages to check for the libraries that OJB requires for its targets.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi tom,

another problem running forrest: can't find document-v12.dtd

Caused by: D:\Java\apache-forrest-0.6\src\core\targets\validate.xml:143: 
Could not validate document 
E:\Java_Work\_projects\db-ojb\target\doc\src\documentation\content\xdocs\code-standards.xml
         at 
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.doValidate(XMLValidateTask.java:469)
         at 
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.execute(XMLValidateTask.java:299)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
         ... 10 more
Caused by: java.io.FileNotFoundException: 
E:\Java_Work\_projects\db-ojb\target\doc\src\documentation\content\xdocs\document-v12.dtd 
(Das System kann die angegebene Datei nicht finden)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)

i use forrest 0.6 and ant 1.6.2. after copying 
xml-commons-resolver-1.1.jar from forrest to ant/lib it ran fine.
is this ok ?

jakob

Thomas Dudziak schrieb:
> You need the commons validator lib (is in Forrest) in Ant's lib folder
> (there should be an echo from the doc target about this). Also, you
> need Forrest 0.6 (binary zip from website).
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Armin Waibel <ar...@apache.org>.
thanks! That's it.

The DAU ;-)

Thomas Dudziak wrote:
> You need the commons validator lib (is in Forrest) in Ant's lib folder
> (there should be an echo from the doc target about this). Also, you
> need Forrest 0.6 (binary zip from website).
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: docu generation failed

Posted by Thomas Dudziak <to...@gmail.com>.
You need the commons validator lib (is in Forrest) in Ant's lib folder
(there should be an echo from the doc target about this). Also, you
need Forrest 0.6 (binary zip from website).

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org