You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2007/04/12 12:13:32 UTC

RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Ross Gardler wrote:
> Olivier Parent wrote:
>> X [0]                                     linkmap.html  BROKEN: 
>> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
> 
> Thanks Olivier - this is a great help,
> 
> Team, this is the same problem I'm seeing. I'm 99.9% certain it is 
> because the dispatcher plugin has not been deployed correctly.

Unfortunately, the 0.1% I left myself was wise, the dispatcher has now 
been correctly deployed, but the above error can be reproduced with:

cd apache-forrest-0.8
cd main
build clean
build
build test

All other tests I have performed have passed, but all sites I have with 
dispatcher are failing in the above way.

I don't have time to look into this right now - may grab another half 
hour later today.

Ross

Re: RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> 
>> -----Original Message-----
>> From: Ross Gardler [mailto:rgardler@apache.org]
>> Sent: Thursday, 12 April 2007 6:14 PM
>> To: dev@forrest.apache.org
>> Subject: RC1 Fails on dispatcher (Re: calling all developers, test release
>> candidate)
>>
>> Ross Gardler wrote:
>>> Olivier Parent wrote:
>>>> X [0]                                     linkmap.html  BROKEN:
>>>> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
>>> Thanks Olivier - this is a great help,
>>>
>>> Team, this is the same problem I'm seeing. I'm 99.9% certain it is
>>> because the dispatcher plugin has not been deployed correctly.
>> Unfortunately, the 0.1% I left myself was wise, the dispatcher has now
>> been correctly deployed, but the above error can be reproduced with:
>>
>> cd apache-forrest-0.8
>> cd main
>> build clean
>> build
>> build test
>>
>> All other tests I have performed have passed, but all sites I have with
>> dispatcher are failing in the above way.
>>
>> I don't have time to look into this right now - may grab another half
>> hour later today.
> 
> Same with me, dispatcher broken.
> 
> I did an 'ant test' on the dispatcher plugin in trunk and the
> dispatcher-glossary.xml fails validation due to not well formed markup. Its
> been fine
> all this time but now fails, don't know when that started to happen.
> The dispatcher plugin itself does download and unzip into the build
> directory fine in RC1.

This is not the issue, this only affects the dispatcher site. Thorsten 
must have fixed this as he has successfully deployed the dispatcher 
plugin (and it will not deploy if there is a broken page). See my other 
posts on this.

I don't know what the issue is though, still no time to look.

Ross

Re: RC1 fails when plugins provide Java source

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> Brian M Dube wrote:
>> The same steps produce the same error on Linux. However, it appears the 
>> scope is not limited to the dispatcher. Any plugin that provides Java 
>> source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
>> the compiled code will end up. This is not the case with RC1. With RC1, 
>> the plugins end up in $FORREST_HOME/build/plugins in source form. They 
>> are never built.
> 
> Good detective work Brian. Thanks.

Absolutely, I was getting very frustrated with that last night. Thanks 
for the heads up. Now I can look at it with fresh eyes - oh how I love 
having a team spread across time zones.

(will get to look at this in about 2 hours)

Ross

Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
Gav.... wrote:
> 
> Yep, Dispatcher does a forrest run and forrest ok for me too in trunk.
> I still get my ant test fail however. I tried to ant test the glossary
> plugin in trunk and that fails too, missing a todo.xml file.
> 
> I am using forests own packaged Ant.

This is the same as issue
https://issues.apache.org/jira/browse/FOR-985
"the plugins 'test' target does not local deploy its required plugins"

In this case it is missing the projectInfo plugin.
Do a 'forrest' or 'forrest run' in the plugin's
source directory first.

-David

Re: RC1 fails when plugins provide Java source

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> David Crossley wrote:
>> David Crossley wrote:
>>> Brian M Dube wrote:
>>>> The same steps produce the same error on Linux. However, it appears the 
>>>> scope is not limited to the dispatcher. Any plugin that provides Java 
>>>> source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
>>>> the compiled code will end up. This is not the case with RC1. With RC1, 
>>>> the plugins end up in $FORREST_HOME/build/plugins in source form. They 
>>>> are never built.
>>> Good detective work Brian. Thanks.
>>>
>>> Perhaps the Ant target "deploy" target, that makes
>>> the plugin available for download, does not pack
>>> the built jar into the zip file.
>>>
>>> Thanks again for your valuable input.
>> Yep this is the problem. I am still investigating
>> it in head of trunk plugins/build.xml
> 
> Okay, fixed now in r528349. The dispatcher plugin has
> been deployed again. Doing basic tests are working now
> for me.

My threading was off, so didn't see this message. This is even better 
news and makes the revolving globe even more enjoyable ;-)

Ross

Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> David Crossley wrote:
> > David Crossley wrote:
> > > David Crossley wrote:
> > > > 
> > > > Perhaps the Ant target "deploy" target, that makes
> > > > the plugin available for download, does not pack
> > > > the built jar into the zip file.
> > > > 
> > > > Thanks again for your valuable input.
> > > 
> > > Yep this is the problem. I am still investigating
> > > it in head of trunk plugins/build.xml
> > 
> > Okay, fixed now in r528349. The dispatcher plugin has
> > been deployed again. Doing basic tests are working now
> > for me.
> 
> Other plugins that use some java will need to be
> re-deployed too.
> 
> e.g. I am getting failures with a site that uses
> the PhotoGallery plugin (missing images and errors
> in the log). So i will try to re-deploy that one.
> 
> There are various other such plugins, but no developer
> is asking for them to be deployed. The trouble is that
> if we don't deploy these, then people will get strange
> errors when they try and we will need to answer lots
> of mail lists questions. I know that there are warnings about
> using whiteboard plugins. But still, better to head off
> any questions.

Here is the list of plugins that currently use some java.

plugins/org.apache.forrest.plugin.input.PhotoGallery
Done

plugins/org.apache.forrest.plugin.output.inputModule
Not yet done. This is used by dispatcher-releated sites.

whiteboard/plugins/org.apache.forrest.plugin.Database
Not yet done.

whiteboard/plugins/org.apache.forrest.plugin.output.solr
Done.

whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher
Done.

whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2
Not yet done.
Not yet initially deployed anyway. Better to not deploy this
yet, IIRC it is still in early development.

whiteboard/plugins/org.apache.forrest.plugin.internal.DevTools
Not yet done.
Not yet initially deployed anyway.

whiteboard/plugins/org.apache.forrest.plugin.input.Resume
Not yet done.
Not yet initially deployed anyway.

Re: Whiteboard plugins (Re: RC1 fails when plugins provide Java source)

Posted by David Crossley <cr...@apache.org>.
Ross Gardler wrote:
> David Crossley wrote:
> >There are various other such plugins, but no developer
> >is asking for them to be deployed. The trouble is that
> >if we don't deploy these, then people will get strange
> >errors when they try and we will need to answer lots
> >of mail lists questions. I know that there are warnings about
> >using whiteboard plugins. But still, better to head off
> >any questions.
> 
> The only reason I did not deploy all the whiteboard plugins was becuase 
> of time. I have no problem with any/all being deployed. Right now I'm 
> busy fighting with a weird error in the DOAP plugin (something I 
> actually need to deploy).
> 
> It would be great if every committer actually deploys one whiteboard 
> plugin, we'd be through them in no time.

Yeah that is what i have been trying to encourage.

This previous message was only related to the plugins
that use java and so more crticial.

I will list those and we can ensure that they are done.
The rest are up to people to state their needs.

-David

Whiteboard plugins (Re: RC1 fails when plugins provide Java source)

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> There are various other such plugins, but no developer
> is asking for them to be deployed. The trouble is that
> if we don't deploy these, then people will get strange
> errors when they try and we will need to answer lots
> of mail lists questions. I know that there are warnings about
> using whiteboard plugins. But still, better to head off
> any questions.

The only reason I did not deploy all the whiteboard plugins was becuase 
of time. I have no problem with any/all being deployed. Right now I'm 
busy fighting with a weird error in the DOAP plugin (something I 
actually need to deploy).

It would be great if every committer actually deploys one whiteboard 
plugin, we'd be through them in no time.

Once I've done the DOAP plugin I'll move onto another.

Ross

Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> David Crossley wrote:
> > David Crossley wrote:
> > > 
> > > Perhaps the Ant target "deploy" target, that makes
> > > the plugin available for download, does not pack
> > > the built jar into the zip file.
> > > 
> > > Thanks again for your valuable input.
> > 
> > Yep this is the problem. I am still investigating
> > it in head of trunk plugins/build.xml
> 
> Okay, fixed now in r528349. The dispatcher plugin has
> been deployed again. Doing basic tests are working now
> for me.

Other plugins that use some java will need to be
re-deployed too.

e.g. I am getting failures with a site that uses
the PhotoGallery plugin (missing images and errors
in the log). So i will try to re-deploy that one.

There are various other such plugins, but no developer
is asking for them to be deployed. The trouble is that
if we don't deploy these, then people will get strange
errors when they try and we will need to answer lots
of mail lists questions. I know that there are warnings about
using whiteboard plugins. But still, better to head off
any questions.

-David

Re: RC1 fails when plugins provide Java source

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> 
>> -----Original Message-----
>> From: David Crossley [mailto:crossley@apache.org]
>> Sent: Friday, 13 April 2007 12:30 PM
>> To: dev@forrest.apache.org
>> Subject: Re: RC1 fails when plugins provide Java source
>>
>> David Crossley wrote:
>>> David Crossley wrote:
>>>> Brian M Dube wrote:
>>>>> The same steps produce the same error on Linux. However, it appears
>> the
>>>>> scope is not limited to the dispatcher. Any plugin that provides
>> Java
>>>>> source will fail. Plugins in trunk are built in $FOO_PLUGIN/build,
>> where
>>>>> the compiled code will end up. This is not the case with RC1. With
>> RC1,
>>>>> the plugins end up in $FORREST_HOME/build/plugins in source form.
>> They
>>>>> are never built.
>>>> Good detective work Brian. Thanks.
>>>>
>>>> Perhaps the Ant target "deploy" target, that makes
>>>> the plugin available for download, does not pack
>>>> the built jar into the zip file.
>>>>
>>>> Thanks again for your valuable input.
>>> Yep this is the problem. I am still investigating
>>> it in head of trunk plugins/build.xml
>> Okay, fixed now in r528349. The dispatcher plugin has
>> been deployed again. Doing basic tests are working now
>> for me.
>>
>> -David
>>
> 
> Yep, Dispatcher does a forrest run and forrest ok for me too in trunk.
> I still get my ant test fail however. I tried to ant test the glossary
> plugin in trunk and that fails too, missing a todo.xml file.


PASSED with RC1: build test (includes dispatcher)

I'm getting a failing ant test too, but that appears to be a problem 
with the test script, not with the plugin itself (since site tests work).

Will continue testing with some of my more esoteric dev sites now.

Ross




RE: RC1 fails when plugins provide Java source

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Friday, 13 April 2007 12:30 PM
> To: dev@forrest.apache.org
> Subject: Re: RC1 fails when plugins provide Java source
> 
> David Crossley wrote:
> > David Crossley wrote:
> > > Brian M Dube wrote:
> > > >
> > > > The same steps produce the same error on Linux. However, it appears
> the
> > > > scope is not limited to the dispatcher. Any plugin that provides
> Java
> > > > source will fail. Plugins in trunk are built in $FOO_PLUGIN/build,
> where
> > > > the compiled code will end up. This is not the case with RC1. With
> RC1,
> > > > the plugins end up in $FORREST_HOME/build/plugins in source form.
> They
> > > > are never built.
> > >
> > > Good detective work Brian. Thanks.
> > >
> > > Perhaps the Ant target "deploy" target, that makes
> > > the plugin available for download, does not pack
> > > the built jar into the zip file.
> > >
> > > Thanks again for your valuable input.
> >
> > Yep this is the problem. I am still investigating
> > it in head of trunk plugins/build.xml
> 
> Okay, fixed now in r528349. The dispatcher plugin has
> been deployed again. Doing basic tests are working now
> for me.
> 
> -David
> 

Yep, Dispatcher does a forrest run and forrest ok for me too in trunk.
I still get my ant test fail however. I tried to ant test the glossary
plugin in trunk and that fails too, missing a todo.xml file.

I am using forests own packaged Ant.

Gav...

> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM


Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> David Crossley wrote:
> > Brian M Dube wrote:
> > > 
> > > The same steps produce the same error on Linux. However, it appears the 
> > > scope is not limited to the dispatcher. Any plugin that provides Java 
> > > source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
> > > the compiled code will end up. This is not the case with RC1. With RC1, 
> > > the plugins end up in $FORREST_HOME/build/plugins in source form. They 
> > > are never built.
> > 
> > Good detective work Brian. Thanks.
> > 
> > Perhaps the Ant target "deploy" target, that makes
> > the plugin available for download, does not pack
> > the built jar into the zip file.
> > 
> > Thanks again for your valuable input.
> 
> Yep this is the problem. I am still investigating
> it in head of trunk plugins/build.xml

Okay, fixed now in r528349. The dispatcher plugin has
been deployed again. Doing basic tests are working now
for me.

-David

Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> Brian M Dube wrote:
> > 
> > The same steps produce the same error on Linux. However, it appears the 
> > scope is not limited to the dispatcher. Any plugin that provides Java 
> > source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
> > the compiled code will end up. This is not the case with RC1. With RC1, 
> > the plugins end up in $FORREST_HOME/build/plugins in source form. They 
> > are never built.
> 
> Good detective work Brian. Thanks.
> 
> Perhaps the Ant target "deploy" target, that makes
> the plugin available for download, does not pack
> the built jar into the zip file.
> 
> Thanks again for your valuable input.

Yep this is the problem. I am still investigating
it in head of trunk plugins/build.xml

-David

Re: RC1 fails when plugins provide Java source

Posted by David Crossley <cr...@apache.org>.
Brian M Dube wrote:
> 
> The same steps produce the same error on Linux. However, it appears the 
> scope is not limited to the dispatcher. Any plugin that provides Java 
> source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
> the compiled code will end up. This is not the case with RC1. With RC1, 
> the plugins end up in $FORREST_HOME/build/plugins in source form. They 
> are never built.

Good detective work Brian. Thanks.

Perhaps the Ant target "deploy" target, that makes
the plugin available for download, does not pack
the built jar into the zip file.

Thanks again for your valuable input.

-David

RC1 fails when plugins provide Java source (Re: RC1 Fails on dispatcher)

Posted by Brian M Dube <br...@gmail.com>.
Ross Gardler wrote:
> Gav.... wrote:
>>
>>> -----Original Message-----
>>> From: Ross Gardler [mailto:rgardler@apache.org]
>>> Sent: Thursday, 12 April 2007 6:14 PM
>>> To: dev@forrest.apache.org
>>> Subject: RC1 Fails on dispatcher (Re: calling all developers, test 
>>> release
>>> candidate)
>>>
>>> Ross Gardler wrote:
>>>> Olivier Parent wrote:
>>>>> X [0]                                     linkmap.html  BROKEN:
>>>>> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
>>>> Thanks Olivier - this is a great help,
>>>>
>>>> Team, this is the same problem I'm seeing. I'm 99.9% certain it is
>>>> because the dispatcher plugin has not been deployed correctly.
>>> Unfortunately, the 0.1% I left myself was wise, the dispatcher has now
>>> been correctly deployed, but the above error can be reproduced with:
>>>
>>> cd apache-forrest-0.8
>>> cd main
>>> build clean
>>> build
>>> build test
>>>
>>> All other tests I have performed have passed, but all sites I have with
>>> dispatcher are failing in the above way.
>>>
>>> I don't have time to look into this right now - may grab another half
>>> hour later today.
>>
>> Same with me, dispatcher broken.
>>
>> I did an 'ant test' on the dispatcher plugin in trunk and the
>> dispatcher-glossary.xml fails validation due to not well formed 
>> markup. Its
>> been fine
>> all this time but now fails, don't know when that started to happen.
>> The dispatcher plugin itself does download and unzip into the build
>> directory fine in RC1.
> 
> I got the same results reported by Gavin, now "ant test" in trunk passes 
> OK for me.
> 
> However, RC1 still fails on any dispatcher site.
> 
> I've compared all the files in the deployed plugin pulled down by RC1 
> and the trunk plugin deployed from the local directory. They are the 
> same (expect RC1 has a lib folder in there that isn't present in trunk 
> but it only contains a readme.txt).
> 
> Nobody has reported whether this works on Linux or not, we need to know 
> as it may be a line endings issue. I've wasted way too much time on this 
> already.

The same steps produce the same error on Linux. However, it appears the 
scope is not limited to the dispatcher. Any plugin that provides Java 
source will fail. Plugins in trunk are built in $FOO_PLUGIN/build, where 
the compiled code will end up. This is not the case with RC1. With RC1, 
the plugins end up in $FORREST_HOME/build/plugins in source form. They 
are never built.

Brian

Re: RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> 
>> -----Original Message-----
>> From: Ross Gardler [mailto:rgardler@apache.org]
>> Sent: Thursday, 12 April 2007 6:14 PM
>> To: dev@forrest.apache.org
>> Subject: RC1 Fails on dispatcher (Re: calling all developers, test release
>> candidate)
>>
>> Ross Gardler wrote:
>>> Olivier Parent wrote:
>>>> X [0]                                     linkmap.html  BROKEN:
>>>> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
>>> Thanks Olivier - this is a great help,
>>>
>>> Team, this is the same problem I'm seeing. I'm 99.9% certain it is
>>> because the dispatcher plugin has not been deployed correctly.
>> Unfortunately, the 0.1% I left myself was wise, the dispatcher has now
>> been correctly deployed, but the above error can be reproduced with:
>>
>> cd apache-forrest-0.8
>> cd main
>> build clean
>> build
>> build test
>>
>> All other tests I have performed have passed, but all sites I have with
>> dispatcher are failing in the above way.
>>
>> I don't have time to look into this right now - may grab another half
>> hour later today.
> 
> Same with me, dispatcher broken.
> 
> I did an 'ant test' on the dispatcher plugin in trunk and the
> dispatcher-glossary.xml fails validation due to not well formed markup. Its
> been fine
> all this time but now fails, don't know when that started to happen.
> The dispatcher plugin itself does download and unzip into the build
> directory fine in RC1.

I got the same results reported by Gavin, now "ant test" in trunk passes 
OK for me.

However, RC1 still fails on any dispatcher site.

I've compared all the files in the deployed plugin pulled down by RC1 
and the trunk plugin deployed from the local directory. They are the 
same (expect RC1 has a lib folder in there that isn't present in trunk 
but it only contains a readme.txt).

Nobody has reported whether this works on Linux or not, we need to know 
as it may be a line endings issue. I've wasted way too much time on this 
already.

The steps for reproducing are given above.

Ross

Re: plugins 'test' target

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> Gav.... wrote:
>> From: Gav....
>>> Same with me, dispatcher broken.
>>>
>>> I did an 'ant test' on the dispatcher plugin in trunk and the
>>> dispatcher-glossary.xml fails validation due to not well formed markup.
>>> Its
>>> been fine
>>> all this time but now fails, don't know when that started to happen.
>>> The dispatcher plugin itself does download and unzip into the build
>>> directory fine in RC1.
>> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
>> but then so does site-author for the glossary.xml.
>>
>> I guess we need to deploy the Glossary Plugin.
> 
> My comments in the other branch of this thread
> about using Forrest's own Ant are still relevant.
> 
> However, i now see the error that you talk about.
> 
> The reason that it did work for me was that i
> had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
> directory before doing 'ant test'. This meant that
> the glossary plugin was already locally deloyed.
> 
> For some reason our plugin 'test' Ant target only
> does a local deploy of the actual plugin that it is
> tesing and not the other plugins that are required
> by this plugin.

Lets keep that as an issue for 0.9, it will not affect the distribution 
since plugin developers will either be committers (using svn head) or 
will have to provide contributions as a patch for review.

Ross

Re: plugins 'test' target

Posted by David Crossley <cr...@apache.org>.
Thorsten Scherler wrote:
> Ross Gardler wrote:
> > Gav.... wrote:
> > > Hmm, I just did a 'forrest' and it failed too due to validation 
> > > errors :-
> > > 
> > > ...
> > > validate-xdocs:
> > > D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> > > patc
> > > her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> > > content of
> > >  elements must consist of well-formed character data or markup.
> > > 
> > > BUILD FAILED
> > > D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> > > document D:
> > > \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> > > tche
> > > r\src\documentation\content\xdocs\dispatcher-glossary.xml
> > > 
> > > Total time: 12 seconds
> > > ...
> > > 
> > > This is in upto date trunk.
> > 
> > I had that problem at some point. Then it "magically" disappeared.
> > 
> > Try doing a clean build.
> 
> David reported some similar issue and I myself had it a couple of days
> back (when I deployed the dispatcher).
> 
> Like David after a forrest it went away. 
> 
> It seems that the dtd is sometimes not resolved correctly.
> <!DOCTYPE glossary PUBLIC "-//Apache Forrest//DTD Glossary V1.0//EN"
> "glossary-v10.dtd">
> 
> Could be a problem with the catalog resolving.

No. I already explained this. The "test" target is not
locally deploying the required plugins, therefore there
is no glossary plugin available, so no DTD. Also Forrest
would not know how to process the glossary document.

See yesterdays issue at:
https://issues.apache.org/jira/browse/FOR-985

I tried to link straight away to the mail archives
but they were out-of-date at the time. Will try again.

-David


Re: plugins 'test' target

Posted by Thorsten Scherler <th...@apache.org>.
On Fri, 2007-04-13 at 12:00 +0100, Ross Gardler wrote:
> Gav.... wrote:
> > Hmm, I just did a 'forrest' and it failed too due to validation 
> > errors :-
> > 
> > ...
> > validate-xdocs:
> > D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> > patc
> > her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> > content of
> >  elements must consist of well-formed character data or markup.
> > 
> > BUILD FAILED
> > D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> > document D:
> > \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> > tche
> > r\src\documentation\content\xdocs\dispatcher-glossary.xml
> > 
> > Total time: 12 seconds
> > ...
> > 
> > This is in upto date trunk.
> 
> I had that problem at some point. Then it "magically" disappeared.
> 
> Try doing a clean build.

David reported some similar issue and I myself had it a couple of days
back (when I deployed the dispatcher).

Like David after a forrest it went away. 

It seems that the dtd is sometimes not resolved correctly.
<!DOCTYPE glossary PUBLIC "-//Apache Forrest//DTD Glossary V1.0//EN"
"glossary-v10.dtd">

Could be a problem with the catalog resolving.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Re: plugins 'test' target

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> Hmm, I just did a 'forrest' and it failed too due to validation 
> errors :-
> 
> ...
> validate-xdocs:
> D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> patc
> her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> content of
>  elements must consist of well-formed character data or markup.
> 
> BUILD FAILED
> D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> document D:
> \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> tche
> r\src\documentation\content\xdocs\dispatcher-glossary.xml
> 
> Total time: 12 seconds
> ...
> 
> This is in upto date trunk.

I had that problem at some point. Then it "magically" disappeared.

Try doing a clean build.

Ross

RE: plugins 'test' target

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Friday, 13 April 2007 11:34 AM
> To: dev@forrest.apache.org
> Subject: plugins 'test' target
> 
> Gav.... wrote:
> > From: Gav....
> > >
> > > Same with me, dispatcher broken.
> > >
> > > I did an 'ant test' on the dispatcher plugin in trunk and the
> > > dispatcher-glossary.xml fails validation due to not well formed
> markup.
> > > Its
> > > been fine
> > > all this time but now fails, don't know when that started to happen.
> > > The dispatcher plugin itself does download and unzip into the build
> > > directory fine in RC1.
> >
> > Dispatcher then relies on the Glossary Plugin for the dispatcher-
> glossary,
> > but then so does site-author for the glossary.xml.
> >
> > I guess we need to deploy the Glossary Plugin.
> 
> My comments in the other branch of this thread
> about using Forrest's own Ant are still relevant.
> 
> However, i now see the error that you talk about.
> 
> The reason that it did work for me was that i
> had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
> directory before doing 'ant test'. This meant that
> the glossary plugin was already locally deloyed.

Hmm, I just did a 'forrest' and it failed too due to validation 
errors :-

...
validate-xdocs:
D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
patc
her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
content of
 elements must consist of well-formed character data or markup.

BUILD FAILED
D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
document D:
\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
tche
r\src\documentation\content\xdocs\dispatcher-glossary.xml

Total time: 12 seconds
...

This is in upto date trunk.

I don't want to hold up the release with 'dispatcher' and 'whiteboard' talk
but these plugins are supposed to be available for 0.8 users and should be
working. But I suppose this can be looked at again after the release.

Gav...

> 
> For some reason our plugin 'test' Ant target only
> does a local deploy of the actual plugin that it is
> tesing and not the other plugins that are required
> by this plugin.
> 
> -David
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM


plugins 'test' target

Posted by David Crossley <cr...@apache.org>.
Gav.... wrote:
> From: Gav....
> > 
> > Same with me, dispatcher broken.
> > 
> > I did an 'ant test' on the dispatcher plugin in trunk and the
> > dispatcher-glossary.xml fails validation due to not well formed markup.
> > Its
> > been fine
> > all this time but now fails, don't know when that started to happen.
> > The dispatcher plugin itself does download and unzip into the build
> > directory fine in RC1.
> 
> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
> but then so does site-author for the glossary.xml.
> 
> I guess we need to deploy the Glossary Plugin.

My comments in the other branch of this thread
about using Forrest's own Ant are still relevant.

However, i now see the error that you talk about.

The reason that it did work for me was that i
had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
directory before doing 'ant test'. This meant that
the glossary plugin was already locally deloyed.

For some reason our plugin 'test' Ant target only
does a local deploy of the actual plugin that it is
tesing and not the other plugins that are required
by this plugin.

-David

when using own Ant, need xml-commons-resolver.jar

Posted by David Crossley <cr...@apache.org>.
Gav.... wrote:
> From: Gav....
> > > From: Ross Gardler
> > 
> > I did an 'ant test' on the dispatcher plugin in trunk and the
> > dispatcher-glossary.xml fails validation due to not well formed markup.
> > Its
> > been fine
> > all this time but now fails, don't know when that started to happen.
> > The dispatcher plugin itself does download and unzip into the build
> > directory fine in RC1.

The "test" build in the plugin's source in trunk
does work for me. Are you sure that you are following
the instructions and using Forrest's own Ant.

http://forrest.apache.org/docs_0_80/howto/howto-buildPlugin.html#Steps

Basically you need to either:
- configure your local Ant correctly to put an
xml-commons-resolver.jar in its lib
(see Ant Manual about Installing)
or
- use Forrest's packaged Ant (we rely heavily on resolver).
i.e. $FORREST_HOME/tools/ant/bin/ant test

> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
> but then so does site-author for the glossary.xml.

When you use 'forrest' commands, then it uses our own Ant
which has the Catalog Entity Resolver jar.
So 'cd site-author; forrest ...' works properly.
But when using your own Ant, you need to install your
own supporting libraries.

> I guess we need to deploy the Glossary Plugin.
> Does the glossary DTDs need to be placed anywhere public, or does it all get
> it from the plugin DTD?

The Catalog Entity Resolver is used by the xml parser.

-David

Re: RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
> but then so does site-author for the glossary.xml.

Already done last night.

Ross

RE: RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: Gav.... [mailto:brightoncomputers@brightontown.com.au]
> Sent: Thursday, 12 April 2007 7:00 PM
> To: dev@forrest.apache.org
> Subject: RE: RC1 Fails on dispatcher (Re: calling all developers, test
> release candidate)
> 
> 
> 
> > -----Original Message-----
> > From: Ross Gardler [mailto:rgardler@apache.org]
> > Sent: Thursday, 12 April 2007 6:14 PM
> > To: dev@forrest.apache.org
> > Subject: RC1 Fails on dispatcher (Re: calling all developers, test
> release
> > candidate)
> >
> > Ross Gardler wrote:
> > > Olivier Parent wrote:
> > >> X [0]                                     linkmap.html  BROKEN:
> > >> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
> > >
> > > Thanks Olivier - this is a great help,
> > >
> > > Team, this is the same problem I'm seeing. I'm 99.9% certain it is
> > > because the dispatcher plugin has not been deployed correctly.
> >
> > Unfortunately, the 0.1% I left myself was wise, the dispatcher has now
> > been correctly deployed, but the above error can be reproduced with:
> >
> > cd apache-forrest-0.8
> > cd main
> > build clean
> > build
> > build test
> >
> > All other tests I have performed have passed, but all sites I have with
> > dispatcher are failing in the above way.
> >
> > I don't have time to look into this right now - may grab another half
> > hour later today.
> 
> Same with me, dispatcher broken.
> 
> I did an 'ant test' on the dispatcher plugin in trunk and the
> dispatcher-glossary.xml fails validation due to not well formed markup.
> Its
> been fine
> all this time but now fails, don't know when that started to happen.
> The dispatcher plugin itself does download and unzip into the build
> directory fine in RC1.

Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
but then so does site-author for the glossary.xml.

I guess we need to deploy the Glossary Plugin.
Does the glossary DTDs need to be placed anywhere public, or does it all get
it from the plugin DTD?

Gav...

> 
> Gav...
> >
> > Ross
> >
> >
> > --
> > Internal Virus Database is out-of-date.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date:
> 4/5/2007
> > 3:33 PM
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM


RE: RC1 Fails on dispatcher (Re: calling all developers, test release candidate)

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: Ross Gardler [mailto:rgardler@apache.org]
> Sent: Thursday, 12 April 2007 6:14 PM
> To: dev@forrest.apache.org
> Subject: RC1 Fails on dispatcher (Re: calling all developers, test release
> candidate)
> 
> Ross Gardler wrote:
> > Olivier Parent wrote:
> >> X [0]                                     linkmap.html  BROKEN:
> >> org.apache.forrest.dispatcher.transformation.DispatcherTransformer
> >
> > Thanks Olivier - this is a great help,
> >
> > Team, this is the same problem I'm seeing. I'm 99.9% certain it is
> > because the dispatcher plugin has not been deployed correctly.
> 
> Unfortunately, the 0.1% I left myself was wise, the dispatcher has now
> been correctly deployed, but the above error can be reproduced with:
> 
> cd apache-forrest-0.8
> cd main
> build clean
> build
> build test
> 
> All other tests I have performed have passed, but all sites I have with
> dispatcher are failing in the above way.
> 
> I don't have time to look into this right now - may grab another half
> hour later today.

Same with me, dispatcher broken.

I did an 'ant test' on the dispatcher plugin in trunk and the
dispatcher-glossary.xml fails validation due to not well formed markup. Its
been fine
all this time but now fails, don't know when that started to happen.
The dispatcher plugin itself does download and unzip into the build
directory fine in RC1.

Gav...
> 
> Ross
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM