You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Bert Van Kets <be...@vankets.com> on 2002/12/27 17:17:24 UTC

Forrestbot woes

I'm trying to get Forrestbot working. :(

The docs say I need to run "build bot -Dbot.forrestbot.xconf=myOwn.conf.xml 
-Dtemplate.echo=[true|false]" but this target does not exist in the build.
I used "build dist" to build the whole thing and found the forrestbot 
directory in the build/dist/shbat directory.  I then tried the 
forrestbot.bat command, but I get an error

BUILD FAILED
Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError: 
org/xml/sax/SAXException

I would liek to ftp the CLI result, but wan't even get the samples to work.

What am I/the docs missing here??????

Bert

P.S. running todays CVS checkout

This mail is written in 100% recycled electrons.


Re: Forrestbot woes

Posted by Bert Van Kets <be...@vankets.com>.
Forrest.bat works without any problem.  You can check out the result at 
www.dream-models.com/skin (lots of CSS and added sub menu system)

I'll give the CLASSPATH additions a go and check out the shell scripts.  If 
I get a working version I'll update the batch file and do a suggestion on 
the doc update.

Bert

At 10:14 28/12/2002 +1100, you wrote:
>On Fri, Dec 27, 2002 at 05:17:24PM +0100, Bert Van Kets wrote:
> > I'm trying to get Forrestbot working. :(
> >
> > The docs say I need to run "build bot 
> -Dbot.forrestbot.xconf=myOwn.conf.xml
> > -Dtemplate.echo=[true|false]" but this target does not exist in the build.
>
>The docs are very out of date :/
>
> > I used "build dist" to build the whole thing and found the forrestbot
> > directory in the build/dist/shbat directory.  I then tried the
> > forrestbot.bat command, but I get an error
> >
> > BUILD FAILED
> > Unable to load default ProjectHelper due to 
> java.lang.NoClassDefFoundError:
> > org/xml/sax/SAXException
>
>I think it might be a problem with the forrestbot.bat script not adding
>all the jars.  It does try to include lib/endorsed/*.jar:
>
>for %%i in ("%FORREST_HOME%\lib\endorsed\*.jar") do call appendcp.bat %%i
>
>AFAIK the script hasn't been tested under Windows.  If you could add a
>echo %CLASSPATH% at the end that would help.
>
>Does the normal 'forrest' command work?  Eg, in a new directory you
>should be able to type 'forrest seed site' and have a new rendered site.
>
>
>After building Forrest, you should be able to go into
>src/resources/forrestbot/samples/, and type:
>
>forrestbot -Dbot.config=xml-forrest-template-cvs.xml
>
>(a nice small site from CVS)
>
>and it should build.
>
>
>--Jeff
>
> > I would liek to ftp the CLI result, but wan't even get the samples to work.
> >
> > What am I/the docs missing here??????
> >
> > Bert
> >
> > P.S. running todays CVS checkout
> >
> > This mail is written in 100% recycled electrons.
> >


Re: Forrestbot woes

Posted by Jeff Turner <je...@apache.org>.
On Fri, Dec 27, 2002 at 05:17:24PM +0100, Bert Van Kets wrote:
> I'm trying to get Forrestbot working. :(
> 
> The docs say I need to run "build bot -Dbot.forrestbot.xconf=myOwn.conf.xml 
> -Dtemplate.echo=[true|false]" but this target does not exist in the build.

The docs are very out of date :/

> I used "build dist" to build the whole thing and found the forrestbot 
> directory in the build/dist/shbat directory.  I then tried the 
> forrestbot.bat command, but I get an error
> 
> BUILD FAILED
> Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError: 
> org/xml/sax/SAXException

I think it might be a problem with the forrestbot.bat script not adding
all the jars.  It does try to include lib/endorsed/*.jar:

for %%i in ("%FORREST_HOME%\lib\endorsed\*.jar") do call appendcp.bat %%i

AFAIK the script hasn't been tested under Windows.  If you could add a
echo %CLASSPATH% at the end that would help.

Does the normal 'forrest' command work?  Eg, in a new directory you
should be able to type 'forrest seed site' and have a new rendered site.


After building Forrest, you should be able to go into
src/resources/forrestbot/samples/, and type:

forrestbot -Dbot.config=xml-forrest-template-cvs.xml

(a nice small site from CVS)

and it should build.


--Jeff

> I would liek to ftp the CLI result, but wan't even get the samples to work.
> 
> What am I/the docs missing here??????
> 
> Bert
> 
> P.S. running todays CVS checkout
> 
> This mail is written in 100% recycled electrons.
>