Hi,

I'm using java 1.5 (update 11) but I also tried java 1.4.2 and I'm on Windows XP Sp 2 :-)


D:\retest1>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_11\jre

What's the problem doctor :-)

Thanks for your support


here's a complete log with java 1.5

D:\retest1>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_11\jre

D:\retest1>echo %FORREST_HOME%
D:\forrest0.8

D:\retest1>forrest seed

Apache Forrest.  Run 'forrest -projecthelp' to list options


Buildfile: D:\forrest0.8\main\forrest.build.xml

init-props:
Created dir: D:\retest1\build\tmp

seed:
Copying 80 files to D:\retest1
Copied 18 empty directories to 2 empty directories under D:\retest1

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

Here is an outline of the generated files:

/                        # D:\retest1
/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 subdirs
/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
-------------------------------

BUILD SUCCESSFUL
Total time: 2 seconds

D:\retest1>



D:\retest1>forrest

Apache Forrest.  Run 'forrest -projecthelp' to list options


Buildfile: D:\forrest0.8\main\forrest.build.xml

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

fetch-plugins-descriptors:
Copying 1 file to D:\retest1\build\tmp
Copying 1 file to D:\retest1\build\tmp
Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
Getting: http://forrest.apache.org/plugins/plugins.xml
To: D:\retest1\build\tmp\plugins-1.xml
local file date : Tue Apr 10 07:06:30 CEST 2007
..
last modified = Wed Apr 11 04:07:04 CEST 2007
Fetching plugins descriptor: http://forrest.apache.org/plugins/whiteboard-plugins.xml
Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
To: D:\retest1\build\tmp\plugins- 2.xml
local file date : Tue Apr 10 07:06:30 CEST 2007
.
last modified = Tue Apr 10 20:35:40 CEST 2007
Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml .
Plugin list loaded from http://forrest.apache.org/plugins/whiteboard-plugins.xml.

init-plugins:
Created dir: D:\retest1\build\webapp\conf
Copying 1 file to D:\retest1\build\tmp
Copying 1 file to D:\retest1\build\tmp
Copying 1 file to D:\retest1\build\tmp
Copying 1 file to D:\retest1\build\tmp
Copying 1 file to D:\retest1\build\tmp

      --------------------------------------------------------------
      Installing plugin: org.apache.forrest.plugin.output.pdf
      --------------------------------------------------------------
      

check-plugin:
org.apache.forrest.plugin.output.pdf is available in the build dir. Trying to update it...

fetch-plugin:
Trying to find the description of org.apache.forrest.plugin.output.pdf in the different descriptor files
Using the descriptor file D:\retest1\build\tmp\plugins-1.xml...
Processing D:\retest1\build\tmp\plugins- 1.xml to D:\retest1\build\tmp\pluginlist2fetchbuild.xml
Loading stylesheet D:\forrest0.8\main\var\pluginlist2fetch.xsl

get-local:
Trying to locally get org.apache.forrest.plugin.output.pdf
Looking in local D:\forrest0.8/plugins
Found !

local-deploy:
Locally deploying org.apache.forrest.plugin.output.pdf
Plugin org.apache.forrest.plugin.output.pdf deployed ! Ready to configure
Fetch-plugin Ok, installing !

configure-output-plugin:
Mounting output plugin: org.apache.forrest.plugin.output.pdf
Processing D:\retest1\build\tmp\output.xmap to D:\retest1\build\tmp\output.xmap.new
Loading stylesheet D:\forrest0.8\main\var\pluginMountSnippet.xsl
Moving 1 file to D:\retest1\build\tmp

configure-plugin-locationmap:
Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
Processing D:\retest1\build\tmp\locationmap.xml to D:\retest1\build\tmp\locationmap.xml.new
Loading stylesheet D:\forrest0.8\main\var\pluginLmMountSnippet.xsl
Moving 1 file to D:\retest1\build\tmp

validate-xdocs:
24 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: D:\retest1\build\webapp\resources not found.
Copying 2 files to D:\retest1\build\site\fr
Copying main skin images to site ...
Created dir: D:\retest1\build\site\fr\skin\images
Copying 18 files to D:\retest1\build\site\fr\skin\images
Copying 14 files to D:\retest1\build\site\fr\skin\images
Copying project skin images to site ...
Warning: D:\retest1\src\documentation\skins\common\images not found.
Warning: D:\retest1\src\documentation\skins\pelt\images not found.
Copying main skin css and js files to site ...
Copying 11 files to D:\retest1\build\site\fr\skin
Copied 4 empty directories to 3 empty directories under D:\retest1\build\site\fr\skin
Copying 4 files to D:\retest1\build\site\fr\skin
Copying project skin css and js files to site ...
Warning: D:\retest1\src\documentation\skins\common not found.
Warning: D:\retest1\src\documentation\skins\pelt not found.

Finished copying the non-generated resources.
Now Cocoon will generate the rest.

Static site will be generated at:
D:\retest1\build\site\fr

Cocoon will report the status of each document:
  - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
 
------------------------------------------------------------------------
cocoon 2.2.0-dev
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
Build: December 8 2005 (TargetVM=1.4, SourceVM= 1.4, Debug=on, Optimize=on)
------------------------------------------------------------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass (URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:251)
    at org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure(DefaultLogTargetFactoryManager.java:113)
    at org.apache.avalon.framework.container.ContainerUtil.configure (ContainerUtil.java:201)
    at org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetFactoryManager(LogKitLoggerManager.java:436)
    at org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure( LogKitLoggerManager.java:400)
    at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
    at org.apache.cocoon.core.CoreUtil.initLogger(CoreUtil.java:607)
    at org.apache.cocoon.core.CoreUtil.init (CoreUtil.java:169)
    at org.apache.cocoon.core.CoreUtil.<init>(CoreUtil.java:115)
    at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:128)
    at org.apache.cocoon.bean.CocoonBean.initialize (CocoonBean.java:97)
    at org.apache.cocoon.Main.main(Main.java:310)

  Copying broken links file to site root.
 

BUILD FAILED
D:\forrest0.8\main\targets\site.xml:175: Warning: Could not find file D:\retest1\build\tmp\brokenlinks.xml to copy.

Total time: 6 seconds

D:\retest1>




On 4/11/07, Ross Gardler <rgardler@apache.org > wrote:
schumarer schumarer wrote:
>
> Hi,
>
> Can anyone tell me what do I need to get forrest running? Yesterday I
> downloaded forrest 0.7 and I couldn't render a site. The forrest seed
> command works but when I want to see the (default) result using forrest
> or forrest run commands I receive a lot of error messages.
>
> I tried with different version of Java (1.4.2, 1.5 & 1.6) but nothing
> changed.
>
> So I checked out the 0.8 version from Subversion. I compiled it and
> tried to render a default site and... errors too.
> This time it's this one:
>
>     Exception in thread "main" java.lang.UnsupportedClassVersionError:
>     Bad version number in .class file
>             at java.lang.ClassLoader.defineClass1 (Native Method)
>             at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>             at
>     java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14)
>             at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>             at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>             at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>             at java.security.AccessController.doPrivileged(Native Method)
>             at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>             at java.lang.ClassLoader.loadClass(ClassLoader.java :306)
>             at sun.misc.Launcher$AppClassLoader.loadClass
>     (Launcher.java:268)
>             at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>             at
>     org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure (DefaultLogTargetFactoryManager.java:113)
>             at
>     org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
>             at
>     org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetFactoryManager (LogKitLoggerManager.java:436)
>
>             at
>     org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:400)
>             at
>     org.apache.avalon.framework.container.ContainerUtil.configure (ContainerUtil.java:201)
>             at org.apache.cocoon.core.CoreUtil.initLogger(CoreUtil.java:607)
>             at org.apache.cocoon.core.CoreUtil.init(CoreUtil.java:169)
>             at org.apache.cocoon.core.CoreUtil .<init>(CoreUtil.java:115)
>             at
>     org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:128)
>             at
>     org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java :97)
>             at org.apache.cocoon.Main.main(Main.java:310)
>     Java Result: 1
>
>       Copying broken links file to site root.
>
>
>     BUILD FAILED
>     D:\forrest0.8\main\targets\site.xml:175: Warning: Could not find
>     file D:\siteroot\build\tmp\brokenlinks.xml to copy.
>
>     Total time: 11 seconds
>
>
>
> Isn't that error related to something with java's version or jdk's version?

Yes

> So I was wondering, what is the correct number of jdk we need? Or how
> can I have forrest working?

We test against 1.4, but I use it against 1.5

I have no idea if it works against 1.6, but it should.

You say you tried all of these and got the same results.

What platform are you one?
What JDK are you using?

Ross