You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Prasanna Narayanan <nn...@gmail.com> on 2005/11/05 11:20:43 UTC

Help with forrest.properties

HI I am a novice in forrest. I have a problem when i try to follow the
installation instructions ..

When I start with forrest run

It says

 Warning: JAVA_HOME environment variable is not set.
> > If build fails because sun.* classes could not be found
> > you will need to set the JAVA_HOME environment variable
> > to the installation directory of java.
> >
> > Buildfile: c:\apache-
> > forrest-0.7\main\forrest.build.xml
> >
> > check-java-version:
> > This is apache-forrest-0.7
> > Using Java 1.5 from D:\Program Files\Java\jre1.5.0_04
> >
> > init-props:
> > Created dir: C:\Documents and Settings\user\build\tmp
> >
> > init-plugins:
> > Copying 1 file to C:\Documents and Settings\user\build\tmp
> > Copying 1 file to C:\Documents and Settings\user\build\tmp
> > Copying 1 file to C:\Documents and Settings\user\build\tmp
> > Copying 1 file to C:\Documents and Settings\user\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
> >
> > fetch-plugins-descriptors:
> > Fetching plugins descriptor:
> > http://forrest.apache.org/plugins/plugins.xml
> > Getting: http://forrest.apache.org/plugins/plugins.xml
> > Error getting http://forrest.apache.org/plugins/plugins.xml to
> > C:\Documents and
> > Settings\user\build\tmp\plugins- 1.xml
> > Fetching plugins descriptor:
> > http://forrest.apache.org/plugins/whiteboard-plugin
> > s.xml
> > Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
> > Error getting http://forrest.apache.org/plugins/whiteboard-plugins.xmlto C:\Doc
> > uments and Settings\user\build\tmp\plugins- 2.xml
> >
> > WARNING
> > =======
> >
> > Unable to load plugin list number 1 from http://forrest.apache.org/p
> > lugins/plugins.xml.
> > Any plugins identified in this plugin list cannot be installed
> > automatially, see further errors below.
> >
> > WARNING
> > =======
> >
> > Unable to load plugin list number 2 from http://forrest.apache.org/p
> > lugins/whiteboard-plugins.xml.
> > Any plugins identified in this plugin list cannot be installed
> > automatially, see further errors below.
> >
> > unpack-plugin:
> >
> > ERROR
> > =====
> >
> > Unable to retrieve the org.apache.forrest.plugin.output.pdf plugin.
> > There may be more information about the reason for this in output
> > above. The usual cause is that Forrest has been unable to download
> > the plugin descriptor file that indicates where this plugin is to be
> > downloaded from. If you are behind a firewall then set the proxy.host
> > and proxy.port values in the forrest.properties file.
> >
> > You may also like to check the value of the
> > forrest.plugins.descriptors property in the forrest.properties file
> > and ensure that the locations indicated by that value are accessible
> > (note there should be no spaces in this property).
> >
> >
> > BUILD FAILED
> > c:\apache-forrest-0.7
> > \main\targets\plugins.xml:334: The following error occurred while
> > executing this
> > line:
> > c:\apache-forrest-0.7
> > \main\targets\plugins.xml:351: The following error occurred while
> > executing this
> > line:
> > c:\apache-forrest-0.7
> > \main\targets\plugins.xml:99: Unable to install required plugins. See
> > error mess
> > ages above for more detail.
> >
> > Total time: 48 seconds
> >
> > 1) I would like to know what is the settings i need to change for
environment variables
2) I would also be happy to have a sample forrest.properties file with proxy
editing. As many ppl i use proxy thru our organization's Intranet.

Help me to solve the issue.. Thanks in advance.

Re: Help with forrest.properties

Posted by Ross Gardler <rg...@apache.org>.
Prasanna Narayanan wrote:
> Thank you for your immediate reply.
> but pardon me for my stupidity..
> well actually the forrest.properties in FORREST_HOME/site-author doesnt 
> have the
> # Proxy configuration
> # proxy.host=
> # proxy.port=
> text at all.
> I guessed, probably correctly, that the file should be the one mentioned 
> in FORREST_HOME/main/fresh-site?

Each forrest site has its own forrest.properties file. You have to set 
it for each site individually. Your own sites should be created as per 
the docs with "forrest seed", this will provide the same 
forrest.properties file as found in fresh-site.


> morever i use windows XP Professional. and been using JAVA for quite a 
> while ;)
> so the problem i guess is not with environment variables but it lies 
> somewhere else..

The proxy issue is nothing to do with environment variables. However, 
you asked about them, presumably because if JAVA_HOME is not set there 
is a warning in the build process. The two issues are completely 
unrelated, and, depending on how your system is configured, you may not 
see any problems if JAVA_HOME is not set.

Ross


Re: Help with forrest.properties

Posted by "Gav...." <br...@brightontown.com.au>.
  ----- Original Message ----- 
  From: Prasanna Narayanan 
  To: user@forrest.apache.org 
  Sent: Saturday, November 05, 2005 6:46 PM
  Subject: Re: Help with forrest.properties


  Thank you for your immediate reply.
  but pardon me for my stupidity..
  well actually the forrest.properties in FORREST_HOME/site-author doesnt have the 
  # Proxy configuration
  # proxy.host=
  # proxy.port=
  text at all. 
  I guessed, probably correctly, that the file should be the one mentioned in FORREST_HOME/main/fresh-site?
  or may I  know  where the file is?
  morever i use windows XP Professional. and been using JAVA for quite a while ;) 
  so the problem i guess is not with environment variables but it lies somewhere else..

  You should set the Java Home to point to the lib folder for a Java JDK installation, not a JRE runtime.
  As the Java Home is not set, it is finding and assuming to use Java 1.5 from D:\Program Files\Java\jre1.5.0_04
  Right Click My Computer > Properties >Advanced > Environment Variables  then in the 'User Variables' section select 'New'

  Enter JAVA_HOME for the variable name and enter the lib path of a Java JDK installation. Mine is
  set at C:\Program Files\Java\jdk1.5.0_04\lib

  Whilst still in the 'User Variables' section also create an entry for Forrest Home, using 'FORREST_HOME' as the variable name and the path for where forrest root is as the value - e.g. C:\Apache2\Forrest

  You might also want to add forrest home path to the path variable.

  Cant help with the proxy as I never used it, but maybe worth checking the windows firewall is not blocking anything thats needed here (not that it blocks much anyway).

  Gav...

Re: Help with forrest.properties

Posted by Prasanna Narayanan <ex...@gmail.com>.
Thank you for your immediate reply.
but pardon me for my stupidity..
well actually the forrest.properties in FORREST_HOME/site-author doesnt have
the
# Proxy configuration
# proxy.host=
# proxy.port=
text at all.
I guessed, probably correctly, that the file should be the one mentioned in
FORREST_HOME/main/fresh-site?
or may I know where the file is?
morever i use windows XP Professional. and been using JAVA for quite a while
;)
so the problem i guess is not with environment variables but it lies
somewhere else..


On 11/5/05, Ross Gardler <rg...@apache.org> wrote:
>
> Prasanna Narayanan wrote:
> > HI I am a novice in forrest. I have a problem when i try to follow the
> > installation instructions ..
> >
> > When I start with forrest run
> >
> > It says
> >
>
> ...
>
> > ERROR
> > =====
> >
> > Unable to retrieve the org.apache.forrest.plugin.output.pdf plugin.
> > There may be more information about the reason for this in output
> > above
> ...
>
> > 1) I would like to know what is the settings i need to change for
> > environment variables
>
> Environment variables are part of your Operating System not part of
> Forrest. How you set them depends on your OS, see your OS documentation.
>
> > 2) I would also be happy to have a sample forrest.properties file with
> > proxy editing. As many ppl i use proxy thru our organization's Intranet.
> >
> > Help me to solve the issue.. Thanks in advance.
>
> The clue is in the Error message:
>
> "If you are behind a firewall then set the proxy.host
> and proxy.port values in the forrest.properties file."
>
> Look in your forrest.properties file the properties are in there and
> commented:
>
> # Proxy configuration
> # proxy.host=
> # proxy.port=
>
> Just uncomment the two properties and set them accordingly for your
> firewall.
>
> Ross
>
>

Re: Help with forrest.properties

Posted by Ross Gardler <rg...@apache.org>.
Prasanna Narayanan wrote:
> HI I am a novice in forrest. I have a problem when i try to follow the 
> installation instructions ..
> 
> When  I start with forrest run
> 
> It says
> 

...

>         ERROR
>         =====
> 
>         Unable to retrieve the org.apache.forrest.plugin.output.pdf plugin.
>         There may be more information about the reason for this in output
>         above. The usual cause is that Forrest has been unable to download
>         the plugin descriptor file that indicates where this plugin is
>         to be
>         downloaded from. If you are behind a firewall then set the
>         proxy.host
>         and proxy.port values in the forrest.properties file.
> 
>         You may also like to check the value of the
>         forrest.plugins.descriptors property in the forrest.properties file
>         and ensure that the locations indicated by that value are accessible
>         (note there should be no spaces in this property).

...

> 1) I would like to know what is the settings i need to change for 
> environment variables

Environment variables are part of your Operating System not part of 
Forrest. How you set them depends on your OS, see your OS documentation.

> 2) I would also be happy to have a sample forrest.properties file with 
> proxy editing. As many ppl i use proxy thru our organization's Intranet.
> 
> Help me to solve the issue.. Thanks  in advance.

The clue is in the Error message:

"If you are behind a firewall then set the proxy.host
and proxy.port values in the forrest.properties file."

Look in your forrest.properties file the properties are in there and 
commented:

# Proxy configuration
# proxy.host=
# proxy.port=

Just uncomment the two properties and set them accordingly for your 
firewall.

Ross