You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@apache.org> on 2005/10/01 08:23:30 UTC

[heads up] entity resolver upgraded (Was: svn commit: r292929)

The last time that we tried this, everything worked fine
on UNIX but broke on Windows. Please ensure that it works
for you. Do 'build test' and use 'sudo ngrep dtd' to make
sure that there is no network traffic.

ngrep.sf.net

-David

> Author: crossley
> Date: Fri Sep 30 23:16:38 2005
> New Revision: 292929
> 
> URL: http://svn.apache.org/viewcvs?rev=292929&view=rev
> Log:
> Upgrade from xml-commons-resolver-1.1 to xml-commons-resolver-1.2-dev-r292853
> prerelease.
> 
> Added:
>     forrest/trunk/lib/core/xml-commons-resolver-1.2-dev-r292853.jar   (with props)
>     forrest/trunk/lib/core/xml-commons-resolver-1.2.jar.license.txt   (with props)
> Removed:
>     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar
>     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar.license.txt

Re: [heads up] entity resolver upgraded (Was: svn commit: r292929)

Posted by David Crossley <cr...@apache.org>.
Gav.... wrote:
> It seems my Forrest is broken, I did an svn up , build clean etc yesterday.
> 
> cd \forrest\main\
> build test
> 
> gives me :-

[snip]

Your issues do not sound like the entity resolver.
Something else.

What is the svn revision number. Do 'svn info'
Mine is ... Last Changed Rev: 293042

> 
> BUILD FAILED
> --------------------------------------------------------------------------------
> 
> I am guessing I have missed something.
> 
> If I can get forrest to work properly again, I can give you my results of 
> the test.
>
> Any ideas where to look, or should I just delete the lot and start again?

Do 'svn status' at the top-level to see if anything
is changed by you.

-David

Re: [heads up] entity resolver upgraded (Was: svn commit: r292929)

Posted by "Gav...." <br...@brightontown.com.au>.
It seems my Forrest is broken, I did an svn up , build clean etc yesterday.

cd \forrest\main\
build test

gives me :-

--------------------------------------------------------------------------
Created dir: C:\Apache2\forrest\build\test
Trying to override old definition of task jing

init-props:
Created dir: C:\Apache2\forrest\build\test\build\tmp

seed:
Copying 53 files to C:\Apache2\forrest\build\test
Copied 15 empty directories to 2 empty directories under 
C:\Apache2\forrest\buil
d\test

-------------------------------
~~ Template project created! ~~

Here is an outline of the generated files:

/                        # C:\Apache2\forrest\main
/forrest.properties      # Optional file describing your site layout
/src/documentation/      # Doc-specific files
/src/documentation/skinconf.xml    # Info about your project used by the 
skin
/src/documentation/content         # Site content.
/src/documentation/content/xdocs   # XML content.
/src/documentation/content/xdocs/index.xml # Home page
/src/documentation/content/xdocs/site.xml  # Navigation file for site 
structure
/src/documentation/content/xdocs/tabs.xml  # Skin-specific 'tabs' file.
/src/documentation/content/xdocs/*.html,pdf # Static content files, may have 
sub
dirs
/src/documentation/resources/images   # Project images (logos, etc)
# you can create other directories as needed (see forrest.properties)


What to do now?

- Render this template to static HTML by typing 'forrest'.
  View the generated HTML in a browser to make sure everything works.
- Alternatively 'forrest run' and browse to http://localhost:8888/ live 
demo.
- Start adding content in xdocs/ remembering to declare new files in 
site.xml
- Follow the document http://forrest.apache.org/docs/your-project.html
- Provide any feedback to dev@forrest.apache.org

Thanks for using Apache Forrest
-------------------------------
Trying to override old definition of task jing

check-java-version:
This is apache-forrest-0.8-dev
Using Java 1.5 from C:\Program Files\Java\jre1.5.0_04

echo-settings:
      ------------------------------------------------
      | Forrest template run.
      | Running from ${forrest.home} = C:\Apache2\forrest
      | Working on   ${project.home} = C:\Apache2\forrest\build/test
      ------------------------------------------------
      | //where to put the result
      | project.site-dir    = C:\Apache2\forrest\build\test\build\site
      | //uri to start crawling/generation process
      | project.start-uri   = linkmap.html
      | //cocoon cli.xconf location
      | project.configfile  = 
C:\Apache2\forrest\main\webapp/WEB-INF/cli.xconf
      | //logkit.xconf location
      | project.logkitfile  = 
C:\Apache2\forrest\main\webapp/WEB-INF/logkit.xcon
f
      | //temp dir to throw stuff in (i.e. work and ctxt)
      | project.temp-dir    = C:\Apache2\forrest\build/test/build/tmp
      | //temp working directory for generation process
      | project.cocoon-work-dir    = 
C:\Apache2\forrest\build\test\build\tmp\coc
oon-work
      | //temp context directory for generation process
      | project.webapp    = C:\Apache2\forrest\build\test\build\webapp
      | //debuglevel for logging (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)
      | project.debuglevel  = ERROR
      | //file for list of broken links
      | project.brokenlinkfile = 
C:\Apache2\forrest\build\test\build\tmp\brokenl
inks.xml
      | //check if you have tools.jar installed
      | tools.jar.present   = ${tools.jar.present}
      | //views
      | project.view-defaultView = default.fv
      ------------------------------------------------
      | The following properties could be removed from future builds:
      | //which skin to apply
      | project.skin        = pelt
      | //where your documentation xml is
      | project.content-dir = 
C:\Apache2\forrest\build\test\src\documentation
      ------------------------------------------------

init-plugins:
Created dir: C:\Apache2\forrest\build\plugins
Created dir: C:\Apache2\forrest\build\test\build\webapp\conf
Copying 1 file to C:\Apache2\forrest\build\test\build
Copying 1 file to C:\Apache2\forrest\build\test\build\tmp
Copying 1 file to C:\Apache2\forrest\build\test\build\tmp
Copying 1 file to C:\Apache2\forrest\build\test\build\tmp
Copying 1 file to C:\Apache2\forrest\build\test\build\tmp
Installing plugin: org.apache.forrest.plugin.output.pdf

check-plugin:
org.apache.forrest.plugin.output.pdf is not available in the build dir

echo-settings:
      ------------------------------------------------
      | Forrest template run.
      | Running from ${forrest.home} = C:\Apache2\forrest
      | Working on   ${project.home} = C:\Apache2\forrest\build/test
      ------------------------------------------------
      | //where to put the result
      | project.site-dir    = C:\Apache2\forrest\build\test\build\site
      | //uri to start crawling/generation process
      | project.start-uri   = linkmap.html
      | //cocoon cli.xconf location
      | project.configfile  = 
C:\Apache2\forrest\main\webapp/WEB-INF/cli.xconf
      | //logkit.xconf location
      | project.logkitfile  = 
C:\Apache2\forrest\main\webapp/WEB-INF/logkit.xcon
f
      | //temp dir to throw stuff in (i.e. work and ctxt)
      | project.temp-dir    = C:\Apache2\forrest\build/test/build/tmp
      | //temp working directory for generation process
      | project.cocoon-work-dir    = 
C:\Apache2\forrest\build\test\build\tmp\coc
oon-work
      | //temp context directory for generation process
      | project.webapp    = C:\Apache2\forrest\build\test\build\webapp
      | //debuglevel for logging (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)
      | project.debuglevel  = ERROR
      | //file for list of broken links
      | project.brokenlinkfile = 
C:\Apache2\forrest\build\test\build\tmp\brokenl
inks.xml
      | //check if you have tools.jar installed
      | tools.jar.present   = ${tools.jar.present}
      | //views
      | project.view-defaultView = default.fv
      ------------------------------------------------
      | The following properties could be removed from future builds:
      | //which skin to apply
      | project.skin        = pelt
      | //where your documentation xml is
      | project.content-dir = 
C:\Apache2\forrest\build\test\src\documentation
      ------------------------------------------------

fetch-plugins-descriptors:
Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
Getting: http://forrest.apache.org/plugins/plugins.xml
.
last modified = Thu Jun 23 15:55:08 GMT+08:00 2005
Fetching plugins descriptor: 
http://forrest.apache.org/plugins/whiteboard-plugin
s.xml
Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
.
last modified = Tue Sep 13 09:07:06 GMT+08:00 2005
Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml.
Plugin list loaded from 
http://forrest.apache.org/plugins/whiteboard-plugins.xml
.

fetch-plugin:
Processing C:\Apache2\forrest\build\test\build\tmp\plugins-1.xml to 
C:\Apache2\f
orrest\build\test\build\tmp\pluginlist2fetchbuild.xml
Loading stylesheet C:\Apache2\forrest\main\var\pluginlist2fetch.xsl

fetch-unversioned-plugin:
Versioned plugin unavailable, trying to get versionless plugin...
Getting: 
http://forrest.apache.org/plugins//org.apache.forrest.plugin.output.pdf
.zip
.....
last modified = Sat Jul 09 00:07:18 GMT+08:00 2005

final-check:
org.apache.forrest.plugin.output.pdf downloaded, ready to install
Processing C:\Apache2\forrest\build\test\build\tmp\plugins-2.xml to 
C:\Apache2\f
orrest\build\test\build\tmp\pluginlist2fetchbuild.xml
Loading stylesheet C:\Apache2\forrest\main\var\pluginlist2fetch.xsl

extract-plugin:
Expanding: 
C:\Apache2\forrest\build\plugins\org.apache.forrest.plugin.output.pdf
.zip into 
C:\Apache2\forrest\build\plugins\org.apache.forrest.plugin.output.pdf
Deleting 1 files from C:\Apache2\forrest\build\plugins
Copying 1 file to C:\Apache2\forrest\build\plugins

configure-cocoon:
Warning: 
C:\Apache2\forrest\build\plugins\org.apache.forrest.plugin.output.pdf\c
onf not found.

configure-output-plugin:
Mounting output plugin: org.apache.forrest.plugin.output.pdf
Processing C:\Apache2\forrest\build\test\build\tmp\output.xmap to 
C:\Apache2\for
rest\build\test\build\tmp\output.xmap.new
Loading stylesheet C:\Apache2\forrest\main\var\pluginMountSnippet.xsl
Moving 1 files to C:\Apache2\forrest\build\test\build\tmp

validate-xdocs:
16 file(s) have been successfully validated.
...validated xdocs

validate-skinconf:
1 file(s) have been successfully validated.
...validated skinconf

validate-sitemap:
...validated project sitemap

validate-skinchoice:
...validated existence of skin 'pelt'

site:

Copying the various non-generated resources to site.
Warnings will be issued if the optional project resources are not found.
This is often the case, because they are optional and so may not be 
available.
Copying project resources and images to site ...
Warning: C:\Apache2\forrest\build\test\build\webapp\resources not found.
Copying 2 files to C:\Apache2\forrest\build\test\build\site
Copying main skin images to site ...
Created dir: C:\Apache2\forrest\build\test\build\site\skin\images
Copying 23 files to C:\Apache2\forrest\build\test\build\site\skin\images
Copying 14 files to C:\Apache2\forrest\build\test\build\site\skin\images
Copying project skin images to site ...
Warning: C:\Apache2\forrest\main\src\documentation\skins\common\images not 
found
.
Warning: C:\Apache2\forrest\main\src\documentation\skins\pelt\images not 
found.
Copying main skin css and js files to site ...
Copying 12 files to C:\Apache2\forrest\build\test\build\site\skin
Copied 4 empty directories to 3 empty directories under 
C:\Apache2\forrest\build
\test\build\site\skin
Copying 6 files to C:\Apache2\forrest\build\test\build\site\skin
Copying project skin css and js files to site ...
Warning: C:\Apache2\forrest\main\src\documentation\skins\common not found.
Warning: C:\Apache2\forrest\main\src\documentation\skins\pelt not found.
Finished copying the non-generated resources.
Now Cocoon will generate the rest ...

Static site will be generated at:
C:\Apache2\forrest\build\test\build\site

Note that there are various reasons for "build failed" messages.
* Cocoon will report the status of each document:
  - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
* Even if only one link is broken, you will still get "failed".
* Your site would still be generated, but some pages would be broken.
* Please check the file:
C:\Apache2\forrest\build\test\build\tmp\brokenlinks.xml
for any broken links in the generated site.
------------------------------------------------------------------------
cocoon 2.2.0-dev
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
Build: September 19 2005 (TargetVM=1.4, SourceVM=1.3, Debug=on, Optimize=on)
------------------------------------------------------------------------
Exception in thread "main" 
org.apache.avalon.framework.configuration.Configurati
onException: Cannot load 
'file:/C:/Apache2/forrest/main/webapp/./WEB-INF/xconf/f
orrest-core.xconf' at 
file:/C:/Apache2/forrest/main/webapp/WEB-INF/cocoon.xconf:
30:62
        at 
org.apache.cocoon.core.container.CoreServiceManager.loadURI(Unknown S
ource)
        at 
org.apache.cocoon.core.container.CoreServiceManager.handleInclude(Unk
nown Source)
        at 
org.apache.cocoon.core.container.CoreServiceManager.parseConfiguratio
n(Unknown Source)
        at 
org.apache.cocoon.core.container.CoreServiceManager.configure(Unknown
 Source)
        at 
org.apache.avalon.framework.container.ContainerUtil.configure(Contain
erUtil.java:201)
        at org.apache.cocoon.Cocoon.configure(Unknown Source)
        at org.apache.cocoon.Cocoon.initialize(Unknown Source)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:244)
        at org.apache.cocoon.core.CoreUtil.createCocoon(Unknown Source)
        at org.apache.cocoon.bean.CocoonWrapper.initialize(Unknown Source)
        at org.apache.cocoon.bean.CocoonBean.initialize(Unknown Source)
        at org.apache.cocoon.Main.main(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The content of elements must 
consist o
f well-formed character data or markup.
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown 
Source)

        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Sour
ce)
        at 
org.apache.cocoon.configuration.ConfigurationBuilder.build(Unknown So
urce)
        at 
org.apache.cocoon.configuration.ConfigurationBuilder.build(Unknown So
urce)
        ... 12 more

BUILD FAILED
C:\Apache2\forrest\main\build.xml:331: The following error occurred while 
execut
ing this line:
C:\Apache2\forrest\main\targets\site.xml:41: Java returned: 1

Total time: 2 minutes 35 seconds

C:\Apache2\forrest\main>
--------------------------------------------------------------------------------

I am guessing I have missed something.

If I can get forrest to work properly again, I can give you my results of 
the test.

Any ideas where to look, or should I just delete the lot and start again?

Gav...

----- Original Message ----- 
From: "David Crossley" <cr...@apache.org>
To: <de...@forrest.apache.org>
Sent: Sunday, October 02, 2005 7:40 AM
Subject: Re: [heads up] entity resolver upgraded (Was: svn commit: r292929)


| So what does no comment from a "heads up" message mean.
|
| Here is another way to see if the catalog entity resolver
| is not working.
|
| If you are on a superfast connection you might not
| notice the slowdown in Forrest while it gets each DTD.
| You will notice if on a dial-up connection.
|
| So would someone on Windows please verify.
|
| If no-one bothers to check, then i am going to need
| to do extra work to study the huge apache.org HTTP
| access logs to make sure that it is not getting hits.
|
| -David
|
| David Crossley wrote:
| > The last time that we tried this, everything worked fine
| > on UNIX but broke on Windows. Please ensure that it works
| > for you. Do 'build test' and use 'sudo ngrep dtd' to make
| > sure that there is no network traffic.
| >
| > ngrep.sf.net
| >
| > -David
| >
| > > Author: crossley
| > > Date: Fri Sep 30 23:16:38 2005
| > > New Revision: 292929
| > >
| > > URL: http://svn.apache.org/viewcvs?rev=292929&view=rev
| > > Log:
| > > Upgrade from xml-commons-resolver-1.1 to 
xml-commons-resolver-1.2-dev-r292853
| > > prerelease.
| > >
| > > Added:
| > >     forrest/trunk/lib/core/xml-commons-resolver-1.2-dev-r292853.jar 
(with props)
| > >     forrest/trunk/lib/core/xml-commons-resolver-1.2.jar.license.txt 
(with props)
| > > Removed:
| > >     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar
| > >     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar.license.txt
|
|
| -- 
| No virus found in this incoming message.
| Checked by AVG Anti-Virus.
| Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005
|
| 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005



Re: [heads up] entity resolver upgraded (Was: svn commit: r292929)

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> So what does no comment from a "heads up" message mean.

Sorry, in my case it means "I'll do that later... oh damn! I forgot"

I've now verified everything works OK. Thanks.

Ross

Re: [heads up] entity resolver upgraded (Was: svn commit: r292929)

Posted by David Crossley <cr...@apache.org>.
So what does no comment from a "heads up" message mean.

Here is another way to see if the catalog entity resolver
is not working.

If you are on a superfast connection you might not
notice the slowdown in Forrest while it gets each DTD.
You will notice if on a dial-up connection.

So would someone on Windows please verify.

If no-one bothers to check, then i am going to need
to do extra work to study the huge apache.org HTTP
access logs to make sure that it is not getting hits.

-David

David Crossley wrote:
> The last time that we tried this, everything worked fine
> on UNIX but broke on Windows. Please ensure that it works
> for you. Do 'build test' and use 'sudo ngrep dtd' to make
> sure that there is no network traffic.
> 
> ngrep.sf.net
> 
> -David
> 
> > Author: crossley
> > Date: Fri Sep 30 23:16:38 2005
> > New Revision: 292929
> > 
> > URL: http://svn.apache.org/viewcvs?rev=292929&view=rev
> > Log:
> > Upgrade from xml-commons-resolver-1.1 to xml-commons-resolver-1.2-dev-r292853
> > prerelease.
> > 
> > Added:
> >     forrest/trunk/lib/core/xml-commons-resolver-1.2-dev-r292853.jar   (with props)
> >     forrest/trunk/lib/core/xml-commons-resolver-1.2.jar.license.txt   (with props)
> > Removed:
> >     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar
> >     forrest/trunk/lib/core/xml-commons-resolver-1.1.jar.license.txt