You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by schumarer schumarer <sc...@gmail.com> on 2007/04/11 11:19:34 UTC

How can I start using Forrest?

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?

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

Thanks in advance.

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:
> For a start, I will keep reading what you are doing and when someone 
> will ask something easy to do, maybe I will help :-)

We rarely ask, its a scratch your own itch thing.

However, right now we are testing a release candidate so your help in 
that would be fantastic. See 
http://marc.info/?l=forrest-dev&m=117622687712917&w=2 for instructions 
on how to test.

The more platforms we test on the better.

Ross

Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Yes that's exactly what I was looking for :-)

I subscribed yesterday to the dev mailing list :-)
For a start, I will keep reading what you are doing and when someone will
ask something easy to do, maybe I will help :-)




On 4/12/07, Ross Gardler <rg...@apache.org> wrote:
>
> schumarer schumarer wrote:
> > Well, it's not that I don't want to contribute, but I haven't understood
> > the whole problem myself.
> >
> > I thought (but I guess I was wrong) that Java insures an ascendent
> > compatibility. Program using java 1.3 , 1.4. should work on java 1.5 or
> > 1.6 without recompiling.
>
> That works OK up to 1.5, but there seems to be a class incompatibility
> between 1.4 and 1.6.
>
> > Also, I think when 0.8 would be released, I don't think people would
> > recompile it themselves :-)
>
> There are always people who want to use the latest build. Plus we ship
> with the source code, some people like to play.
>
> > Anyway, I started with forrest and I find it quite easy to use. But ONE
> > feature is missing :D Do you think (for forrest 0.9 or 1.5...) it would
> > be possible to have a syntax highlight for the code? Maybe I can help on
> > this (if it's not a pain in the neck;-) )
>
> Do you mean like this feature request:
> http://issues.apache.org/jira/browse/FOR-195
>
> If not, feel free to add a feature request to our issue tracker
> http://issues.apache.org/jira/browse/FOR, with a full description of
> what you need.
>
> As for helping us implement it, join us on the dev list and we'll point
> you in the right direction.
>
> Ross
>
>
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:
> Well, it's not that I don't want to contribute, but I haven't understood 
> the whole problem myself.
> 
> I thought (but I guess I was wrong) that Java insures an ascendent 
> compatibility. Program using java 1.3 , 1.4. should work on java 1.5 or 
> 1.6 without recompiling.

That works OK up to 1.5, but there seems to be a class incompatibility 
between 1.4 and 1.6.

> Also, I think when 0.8 would be released, I don't think people would 
> recompile it themselves :-)

There are always people who want to use the latest build. Plus we ship 
with the source code, some people like to play.

> Anyway, I started with forrest and I find it quite easy to use. But ONE 
> feature is missing :D Do you think (for forrest 0.9 or 1.5...) it would 
> be possible to have a syntax highlight for the code? Maybe I can help on 
> this (if it's not a pain in the neck;-) )

Do you mean like this feature request: 
http://issues.apache.org/jira/browse/FOR-195

If not, feel free to add a feature request to our issue tracker 
http://issues.apache.org/jira/browse/FOR, with a full description of 
what you need.

As for helping us implement it, join us on the dev list and we'll point 
you in the right direction.

Ross



Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Well, it's not that I don't want to contribute, but I haven't understood the
whole problem myself.

I thought (but I guess I was wrong) that Java insures an ascendent
compatibility. Program using java 1.3, 1.4. should work on java 1.5 or
1.6without recompiling.

Also, I think when 0.8 would be released, I don't think people would
recompile it themselves :-)

Anyway, I started with forrest and I find it quite easy to use. But ONE
feature is missing :D Do you think (for forrest 0.9 or 1.5...) it would be
possible to have a syntax highlight for the code? Maybe I can help on this
(if it's not a pain in the neck;-) )

Thanks


On 4/11/07, Ross Gardler <rg...@apache.org> wrote:
>
> schumarer schumarer wrote:
> >
> > :-)
> > Finally it worked. I rebuild everything from scratch and it worked.
> >
> > Thank you very much :-)
>
> Thanks for actually trying the things we suggest and giving full
> feedback  on the results. It makes the job of solving these problems
> much easier, and helps us make the debug steps shorter in the future.
>
> Of course, we'd appreciate a FAQ entry for windows users describing the
> problem you had and how to solve it (windows forcing JDK1.6 to be used
> despite having set JAVA_HOME to a different version). That way we won't
> have to spend time on it in the future and you can have the warm glow of
> "heh, I contributed something of value to Forrest".
>
> Of course, we can write the FAQ ourselves, but we are in the middle of
> testing a release so we may well forget.
>
> Ross
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:
> 
> :-)
> Finally it worked. I rebuild everything from scratch and it worked.
> 
> Thank you very much :-)

Thanks for actually trying the things we suggest and giving full 
feedback  on the results. It makes the job of solving these problems 
much easier, and helps us make the debug steps shorter in the future.

Of course, we'd appreciate a FAQ entry for windows users describing the 
problem you had and how to solve it (windows forcing JDK1.6 to be used 
despite having set JAVA_HOME to a different version). That way we won't 
have to spend time on it in the future and you can have the warm glow of 
"heh, I contributed something of value to Forrest".

Of course, we can write the FAQ ourselves, but we are in the middle of 
testing a release so we may well forget.

Ross

Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
:-)
Finally it worked. I rebuild everything from scratch and it worked.

Thank you very much :-)


On 4/11/07, Ross Gardler <rg...@apache.org> wrote:
>
> schumarer schumarer wrote:
> > and still the same problem.
> >
> >         java.lang.UnsupportedClassVersionError:
> >         org/apache/forrest/log/ForrestLogTargetFactory (Unsupported
> >         major.minor version 50.0)
>
> I'm not sure which version of Forrest is giving you this error. I know
> you have SVN head so lets work with that (we are actually in a code
> freeze and testing the release package right now, so you may as well
> stick with it).
>
> So, lets start from the beginning again. Do the following:
>
> set FORREST_HOME=path/to/forrest-0.8/checkout
> cd %FORREST_HOME%\main
> build.bat clean
> build.bat
>
> cd some/temp/dir
> forrest seed-samples
> forrest
>
> > Do you know why and when this error occurs ? If I understand when, maybe
> > I would be able to hack forrest at a later time in the process of
> > building the site ?
>
> All I know for certain is that this is an issue with your environment,
> not with Forrest itself. I know that Forrest runs perfectly well on
> windows with:
>
> java version " 1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
>
> (I have the exact same setup locally on Windows XP Pro)
>
> Forrest will give you more clues as to where the problem occurs in its
> logs. These can be found in build/webapp/logs within your content object
> directory.
>
> Ross
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:
> and still the same problem.
> 
>         java.lang.UnsupportedClassVersionError:
>         org/apache/forrest/log/ForrestLogTargetFactory (Unsupported
>         major.minor version 50.0)

I'm not sure which version of Forrest is giving you this error. I know 
you have SVN head so lets work with that (we are actually in a code 
freeze and testing the release package right now, so you may as well 
stick with it).

So, lets start from the beginning again. Do the following:

set FORREST_HOME=path/to/forrest-0.8/checkout
cd %FORREST_HOME%\main
build.bat clean
build.bat

cd some/temp/dir
forrest seed-samples
forrest

> Do you know why and when this error occurs ? If I understand when, maybe 
> I would be able to hack forrest at a later time in the process of 
> building the site ?

All I know for certain is that this is an issue with your environment, 
not with Forrest itself. I know that Forrest runs perfectly well on 
windows with:

java version " 1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

(I have the exact same setup locally on Windows XP Pro)

Forrest will give you more clues as to where the problem occurs in its 
logs. These can be found in build/webapp/logs within your content object 
directory.

Ross

Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Ok, so we're stuck with java 1.5 :-)

Thanks for everything.


On 4/11/07, Gav.... <br...@brightontown.com.au> wrote:
>
>
>
> ________________________________________
> >From: schumarer schumarer [mailto:schumarer@gmail.com]
> >Sent: Wednesday, 11 April 2007 7:44 PM
> >To: user@forrest.apache.org
> >Subject: Re: How can I start using Forrest?
>
> >Yep,
> >You and Ross Gardler figured it out. I build forrest using 1.6 and later
> I
> changed my JAVA_HOME :-)
> >Now everything works.
> >Thank you to both of you :-)
>
> >And just me being curious, will forrest 0.8 works with java 1.6 ?
>
> Thorsten mentioned trying it and some of it not working.
>
> I don't think I'll be testing the new release with 1.6 but someone else
> might, I guess that could be a goal for the 0.9 release. If you stick
> to working with the SVN version it could be sooner than that.
>
> I have yet to find anything I need 1.6 for as of yet.
>
> Gav...
>
>

RE: How can I start using Forrest?

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

________________________________________
>From: schumarer schumarer [mailto:schumarer@gmail.com] 
>Sent: Wednesday, 11 April 2007 7:44 PM
>To: user@forrest.apache.org
>Subject: Re: How can I start using Forrest?

>Yep, 
>You and Ross Gardler figured it out. I build forrest using 1.6 and later I
changed my JAVA_HOME :-)
>Now everything works. 
>Thank you to both of you :-)

>And just me being curious, will forrest 0.8 works with java 1.6 ? 

Thorsten mentioned trying it and some of it not working.

I don't think I'll be testing the new release with 1.6 but someone else
might, I guess that could be a goal for the 0.9 release. If you stick
to working with the SVN version it could be sooner than that.

I have yet to find anything I need 1.6 for as of yet.

Gav...


Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Yep,
You and Ross Gardler figured it out. I build forrest using 1.6 and later I
changed my JAVA_HOME :-)
Now everything works.
Thank you to both of you :-)

And just me being curious, will forrest 0.8 works with java 1.6 ?


On 4/11/07, Thorsten Scherler <th...@apache.org> wrote:
>
> On Wed, 2007-04-11 at 12:30 +0200, schumarer schumarer wrote:
> > Hi,
> >
> > Here's what you asked :-)
> >
> >
> >                 D:\>java -version
> >                 java version " 1.6.0"
> >                 Java(TM) SE Runtime Environment (build 1.6.0-b105)
> >                 Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed
> >                 mode)
> >
> >
> >
> > I deleted java, javaw, javaws & javacpl from windows\system32
> >
> >
> > Then I added JAVA_HOME\bin to the path
> >
> >
> >         D:\>java  -version
> >         java version " 1.5.0_11"
> >         Java(TM) 2 Runtime Environment, Standard Edition (build
> >         1.5.0_11-b03)
> >         Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode,
> >         sharing)
> >
> >
> > did a forrest seed and forrest and still the same problem.
>
> No you FIRST need to "build.bat clean" and "build.bat" again with
> jdk<1.6 in $FORREST_HOME/main.
>
>
> 1.6 is not working properly with some targets (I found out the other
> day). I reckon you build with 1.6, but you need 1.5 or 1.4.
>
> Please try to build clean and then forrest seed and forrest. I reckon
> that will fix it.
>
> Thanks for sticking with us.
>
> BTW we are in the middle of releasing 0.8 you may want to use this for
> your new developments.
>
> salu2
> --
> Thorsten Scherler                                 thorsten.at.apache.org
> Open Source Java                      consulting, training and solutions
>
>

Re: How can I start using Forrest?

Posted by Thorsten Scherler <th...@apache.org>.
On Wed, 2007-04-11 at 12:30 +0200, schumarer schumarer wrote:
> Hi, 
> 
> Here's what you asked :-)
> 
> 
>                 D:\>java -version
>                 java version " 1.6.0"
>                 Java(TM) SE Runtime Environment (build 1.6.0-b105)
>                 Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed
>                 mode)
>                 
> 
> 
> I deleted java, javaw, javaws & javacpl from windows\system32 
> 
> 
> Then I added JAVA_HOME\bin to the path 
> 
> 
>         D:\>java  -version
>         java version " 1.5.0_11"
>         Java(TM) 2 Runtime Environment, Standard Edition (build
>         1.5.0_11-b03)
>         Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode,
>         sharing)
> 
> 
> did a forrest seed and forrest and still the same problem. 

No you FIRST need to "build.bat clean" and "build.bat" again with
jdk<1.6 in $FORREST_HOME/main.


1.6 is not working properly with some targets (I found out the other
day). I reckon you build with 1.6, but you need 1.5 or 1.4.

Please try to build clean and then forrest seed and forrest. I reckon
that will fix it.

Thanks for sticking with us.

BTW we are in the middle of releasing 0.8 you may want to use this for
your new developments.

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


Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Hi,

Here's what you asked :-)


D:\>java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build 1.6.0-b105)
> Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
>
>

I deleted java, javaw, javaws & javacpl from windows\system32


Then I added JAVA_HOME\bin to the path


D:\>java  -version
> java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
>


did a forrest seed and forrest and still the same problem.

I changed my JAVA_HOME and set it to java 1.4

D:\retest1>java -version
> java version "1.4.2_14"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
>


and still the same problem.

java.lang.UnsupportedClassVersionError:
> org/apache/forrest/log/ForrestLogTargetFactory (Unsupported major.minorversion
> 50.0)
>
>

Do you know why and when this error occurs ? If I understand when, maybe I
would be able to hack forrest at a later time in the process of building the
site ?

Thanks

On 4/11/07, Ross Gardler <rg...@apache.org> wrote:
>
> schumarer schumarer wrote:
>
> > Is it possible that forrest use another "java" that the one pointed in
> > %java_home% ?
>
> Since you are on windows, yes. Windows hijacks Java so us poor users
> can't do what we want with our own machines.
>
> Please open a shell and do "java -version" what are you seeing?
>
> If you get something suprising then delete/tename java.exe in
> WIndows/system32 and Forrest should use whatever you have set in JAVA_HOME
>
> There is no danger (to other apps) in removing this java.exe as long as
> your path environment variable includes the path to the java you want to
> use.
>
> Ross
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:

> Is it possible that forrest use another "java" that the one pointed in 
> %java_home% ?

Since you are on windows, yes. Windows hijacks Java so us poor users 
can't do what we want with our own machines.

Please open a shell and do "java -version" what are you seeing?

If you get something suprising then delete/tename java.exe in 
WIndows/system32 and Forrest should use whatever you have set in JAVA_HOME

There is no danger (to other apps) in removing this java.exe as long as 
your path environment variable includes the path to the java you want to 
use.

Ross

Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
Yes yes, I use Sun's JDK.

Even if JAVA_HOME points on the jdk root folder, it doesn't work either.

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

same error :(

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)
>

When I use jdk 1.4.2

> D:\retest1>echo %JAVA_HOME%
> C:\j2sdk1.4.2_14
>

I have exactly the same error :-S

Is it possible that forrest use another "java" that the one pointed in
%java_home% ?

I tried with so many different version and updates that I'm sure I have like
10 different version of java installed now :-))

Any clue?

Thanks


On 4/11/07, Ross Gardler <rg...@apache.org> wrote:
>
> schumarer schumarer wrote:
> >
> > 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 :-)
>
> I assume you mean Suns JDK (certainly looks like it from the version
> numbers).
>
> > D:\retest1>echo %JAVA_HOME%
> > C:\Program Files\Java\jdk1.5.0_11\jre
>
> Java home should be set to the JDK not the JRE
>
> C:\Program Files\Java\jdk1.5.0_11
>
> Ross
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
schumarer schumarer wrote:
> 
> 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 :-)

I assume you mean Suns JDK (certainly looks like it from the version 
numbers).

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

Java home should be set to the JDK not the JRE

C:\Program Files\Java\jdk1.5.0_11

Ross

Re: How can I start using Forrest?

Posted by schumarer schumarer <sc...@gmail.com>.
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 <rg...@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
>

Re: How can I start using Forrest?

Posted by Ross Gardler <rg...@apache.org>.
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