You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Leo <le...@bigfoot.com> on 2003/07/27 00:37:42 UTC

Error when trying to run forrest seed

Hi folks

(1)
I had downloaded forrest and was able to sucessfully do the following:
-run forrest build
-Create my own directory and run
	forrest seed
	forrest site
	forrest webapp
	forrest run

(2)
However forrest run: gave me a "java.lang.NoClassDefFoundError:" which I
realised
meant I was missing either a jar file
( or the associated java files in
xml-forrest\src\java\components\org\apache\cocoon\..
		and class files in
xml-forrest\build\components\classes\org\apache\cocoon\..)
So I copied the relevant jar file into
c:\MyProject\xml-forrest\lib\endorsed
and was successfully able to run the above commands.
Forrest seed created new directory
Forrest run: gave different error
implying the other jars were missing.

(3)
Okay so go brave.
I copied the other jar files to c:\MyProject\xml-forrest\lib\endorsed
Then I ran forrest build and this ran successfully
See (3b) below
However I am now unable to seed a new project.  In fact any forrest command
I use( webapp, seed,..) produces this error
see below (3a) - it gave error and changed directory

(3a)
C:\Testing2>forrest seed

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

The input line is too long.
The syntax of the command is incorrect.

C:\MyProject\xml-forrest\build\dist\shbat\ant\lib>cd ..


(3b)
forrest build went fine: see below

C:\MyProject\xml-forrest>build
Using classpath:
";.\lib\endorsed\antlr.jar;.\lib\endorsed\axis.jar;.\lib\endor
ed\clutil.jar;.\lib\endorsed\cocoon-authentication-fw-block.jar;.\lib\endors
ed\
ocoon-databases-block.jar;.\lib\endorsed\cocoon-session-fw-block.jar;.\lib\e
ndo
sed\cocoon-xmldb-block.jar;.\lib\endorsed\cocoon-xmlform-block.jar;.\lib\end
ors
d\commons-discovery.jar;.\lib\endorsed\commons-httpclient-20020423.jar;.\lib
\en
orsed\commons-logging.jar;.\lib\endorsed\exist.jar;.\lib\endorsed\jakarta-or
o-2
0.6.jar;.\lib\endorsed\jaxrpc.jar;.\lib\endorsed\jdtcore-2.1.0.jar;.\lib\end
ors
d\libreadline-java.jar;.\lib\endorsed\log4j.jar;.\lib\endorsed\saaj.jar;.\li
b\e
dorsed\trove.jar;.\lib\endorsed\tt-bytecode.jar;.\lib\endorsed\xalan-2.5.1.j
ar;
\lib\endorsed\xercesImpl-2.4.0.jar;.\lib\endorsed\xml-apis.jar;.\lib\endorse
d\x
ldb.jar;.\lib\endorsed\xmlrpc-1.1.jar"
Buildfile: build.xml

init:

      --------------------------------------------------------------

      Using Apache Ant version 1.6alpha compiled on May 26 2003
      Build file C:\MyProject\xml-forrest\build.xml
      Build system home tools\ant
      Build number 2
      Project Name Forrest build file
      Java Version 1.4
      Timestamp 200307260754

      --------------------------------------------------------------


validate-config:
validating **/skinconf.xml ...
validating stylesheets **/*.xsl ...
validating **/sitemap.xmap ...

fresh-site-zip:

scratchpad.compile:

scratchpad.jar:

components.compile:

components.jar:

webapp-webinf:

bare-context-dir:

dist-shbat:
Deleting directory C:\MyProject\xml-forrest\build\dist\shbat
Created dir: C:\MyProject\xml-forrest\build\dist\shbat
Copying 7 files to C:\MyProject\xml-forrest\build\dist\shbat
Copying 19 files to C:\MyProject\xml-forrest\build\dist\shbat\legal
Copying 1 file to C:\MyProject\xml-forrest\build\dist\shbat
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\WEB-INF
Copying 63 files to C:\MyProject\xml-forrest\build\dist\shbat\WEB-INF
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\lib\endorsed
Copying 25 files to C:\MyProject\xml-forrest\build\dist\shbat\lib\endorsed
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\lib\optional
Copying 4 files to C:\MyProject\xml-forrest\build\dist\shbat\lib\optional
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\ant
Copying 17 files to C:\MyProject\xml-forrest\build\dist\shbat\ant
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\forrestbot
Copying 64 files to C:\MyProject\xml-forrest\build\dist\shbat\forrestbot
Copying 2 files to C:\MyProject\xml-forrest\build\dist\shbat\bin
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\context
Copying 329 files to C:\MyProject\xml-forrest\build\dist\shbat\context

  *-----------------------------------------------------------------
  | installation notice
  *-----------------------------------------------------------------
  | You have succesfully built the shell-bat distribution of Forrest.
  | Please find it at: C:\MyProject\xml-forrest\build\dist\shbat
  | Please copy the contents to the install directory of your choice
  | Please have the environment variable FORREST_HOME point to it.
  | It is recommended to add
  |    unix: $FORREST_HOME/bin: to your $PATH
  |    win: %FORREST_HOME%\bin; to your %PATH%
  | Calling
  |    unix: $FORREST_HOME/bin/forrest -projecthelp
  |    win: %FORREST_HOME%\bin\forrest -projecthelp
  | will list options for the 'forrest' command
  | More help at http://xml.apache.org/forrest/ and
forrest-dev@xml.apache.org
  *-----------------------------------------------------------------


dist:

BUILD SUCCESSFUL
Total time: 30 seconds


Regards
Leo


Re: Error when trying to run forrest seed

Posted by Jeff Turner <je...@apache.org>.
On Sun, Jul 27, 2003 at 07:34:31AM -0400, Leo wrote:
> 
> On Sat, Jul 26, 2003 at 06:37:42PM -0400, Leo wrote:
> > Hi folks
> >
> > (1)
> > I had downloaded forrest and was able to sucessfully do the following:
> > -run forrest build
> > -Create my own directory and run
> > 	forrest seed
> > 	forrest site
> > 	forrest webapp
> > 	forrest run
> >
> > (2)
> > However forrest run: gave me a "java.lang.NoClassDefFoundError:"
> 
> What was the actual error?  It can probably be found in
> build/tmp/context/WEB-INF/logs/error.log.
> 
> --Jeff
> 
> **********
> Leo wrote:
> **********
> 
> Error.log file is empty now, but below is partial screen print of error
> observed.
> 18:04:58.617 EVENT  org.exist.DatabaseAdminServlet: DatabaseAdminServlet:
> exist.
> home=C:\MyForrest\build\webapp\WEB-INF
> 18:04:58.617 EVENT  org.exist.DatabaseAdminServlet: reading configuration
> from C
> :\MyForrest\build\webapp\WEB-INF\conf.xml
> java.lang.NoClassDefFoundError:
> it/unimi/dsi/fastutil/Object2ObjectOpenHashMap
>         at org.exist.storage.IndexPaths.<clinit>(IndexPaths.java:41)
>         at org.exist.util.Configuration.<init>(Configuration.java:174)
> 
> 
> I am trying to get Exist to work with Forrest.

Extra jars should go in Forrest's lib/core/.  When the Forrest
distribution is built, they will be copied to
$FORREST_HOME/build/dist/shbat/WEB-INF/lib/, and from _there_, they will
end up in either build/tmp/context/WEB-INF/lib/ or
build/webapp/WEB-INF/lib/, depending on whether you render the site
statically ('forrest site') or dynamically ('forrest run').


--Jeff

RE: Error when trying to run forrest seed

Posted by Leo <le...@bigfoot.com>.
On Sat, Jul 26, 2003 at 06:37:42PM -0400, Leo wrote:
> Hi folks
>
> (1)
> I had downloaded forrest and was able to sucessfully do the following:
> -run forrest build
> -Create my own directory and run
> 	forrest seed
> 	forrest site
> 	forrest webapp
> 	forrest run
>
> (2)
> However forrest run: gave me a "java.lang.NoClassDefFoundError:"

What was the actual error?  It can probably be found in
build/tmp/context/WEB-INF/logs/error.log.

--Jeff

**********
Leo wrote:
**********

Error.log file is empty now, but below is partial screen print of error
observed.
18:04:58.617 EVENT  org.exist.DatabaseAdminServlet: DatabaseAdminServlet:
exist.
home=C:\MyForrest\build\webapp\WEB-INF
18:04:58.617 EVENT  org.exist.DatabaseAdminServlet: reading configuration
from C
:\MyForrest\build\webapp\WEB-INF\conf.xml
java.lang.NoClassDefFoundError:
it/unimi/dsi/fastutil/Object2ObjectOpenHashMap
        at org.exist.storage.IndexPaths.<clinit>(IndexPaths.java:41)
        at org.exist.util.Configuration.<init>(Configuration.java:174)


I am trying to get Exist to work with Forrest.
I am following the the trail :
http://wiki.cocoondev.org/Wiki.jsp?page=EXistInCocoon

I had originally copied the jar files to the wrong directory, hence the
error.
So to test out this theory, I copied the exist.jar to
c:\MyProject\xml-forrest\lib\endorsed; ran all the following
commands successfully: build ; forrest seed; forrest site; forrest webapp,
forrest run - ( got rid of the error, so decide to copy the rest of the jar
files)



But my problem is that now none of my forrest commands work after
perfoming the following step:
(3)
Okay so go brave.
I copied the other jar files to c:\MyProject\xml-forrest\lib\endorsed
Then I ran forrest build and this ran successfully
See (3b) below
However I am now unable to seed a new project.  In fact any forrest command
I use( webapp, seed,..) produces this error
see below (3a) - it gave error and changed directory

(3a)
C:\Testing2>forrest seed

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

The input line is too long.
The syntax of the command is incorrect.

C:\MyProject\xml-forrest\build\dist\shbat\ant\lib>cd ..


(3b)
forrest build went fine: see below

C:\MyProject\xml-forrest>build
Using classpath:
";.\lib\endorsed\antlr.jar;.\lib\endorsed\axis.jar;.\lib\endor
ed\clutil.jar;.\lib\endorsed\cocoon-authentication-fw-block.jar;.\lib\endors
ed\
ocoon-databases-block.jar;.\lib\endorsed\cocoon-session-fw-block.jar;.\lib\e
ndo
sed\cocoon-xmldb-block.jar;.\lib\endorsed\cocoon-xmlform-block.jar;.\lib\end
ors
d\commons-discovery.jar;.\lib\endorsed\commons-httpclient-20020423.jar;.\lib
\en
orsed\commons-logging.jar;.\lib\endorsed\exist.jar;.\lib\endorsed\jakarta-or
o-2
0.6.jar;.\lib\endorsed\jaxrpc.jar;.\lib\endorsed\jdtcore-2.1.0.jar;.\lib\end
ors
d\libreadline-java.jar;.\lib\endorsed\log4j.jar;.\lib\endorsed\saaj.jar;.\li
b\e
dorsed\trove.jar;.\lib\endorsed\tt-bytecode.jar;.\lib\endorsed\xalan-2.5.1.j
ar;
\lib\endorsed\xercesImpl-2.4.0.jar;.\lib\endorsed\xml-apis.jar;.\lib\endorse
d\x
ldb.jar;.\lib\endorsed\xmlrpc-1.1.jar"
Buildfile: build.xml

init:

      --------------------------------------------------------------

      Using Apache Ant version 1.6alpha compiled on May 26 2003
      Build file C:\MyProject\xml-forrest\build.xml
      Build system home tools\ant
      Build number 2
      Project Name Forrest build file
      Java Version 1.4
      Timestamp 200307260754

      --------------------------------------------------------------


validate-config:
validating **/skinconf.xml ...
validating stylesheets **/*.xsl ...
validating **/sitemap.xmap ...

fresh-site-zip:

scratchpad.compile:

scratchpad.jar:

components.compile:

components.jar:

webapp-webinf:

bare-context-dir:

dist-shbat:
Deleting directory C:\MyProject\xml-forrest\build\dist\shbat
Created dir: C:\MyProject\xml-forrest\build\dist\shbat
Copying 7 files to C:\MyProject\xml-forrest\build\dist\shbat
Copying 19 files to C:\MyProject\xml-forrest\build\dist\shbat\legal
Copying 1 file to C:\MyProject\xml-forrest\build\dist\shbat
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\WEB-INF
Copying 63 files to C:\MyProject\xml-forrest\build\dist\shbat\WEB-INF
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\lib\endorsed
Copying 25 files to C:\MyProject\xml-forrest\build\dist\shbat\lib\endorsed
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\lib\optional
Copying 4 files to C:\MyProject\xml-forrest\build\dist\shbat\lib\optional
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\ant
Copying 17 files to C:\MyProject\xml-forrest\build\dist\shbat\ant
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\forrestbot
Copying 64 files to C:\MyProject\xml-forrest\build\dist\shbat\forrestbot
Copying 2 files to C:\MyProject\xml-forrest\build\dist\shbat\bin
Created dir: C:\MyProject\xml-forrest\build\dist\shbat\context
Copying 329 files to C:\MyProject\xml-forrest\build\dist\shbat\context

  *-----------------------------------------------------------------
  | installation notice
  *-----------------------------------------------------------------
  | You have succesfully built the shell-bat distribution of Forrest.
  | Please find it at: C:\MyProject\xml-forrest\build\dist\shbat
  | Please copy the contents to the install directory of your choice
  | Please have the environment variable FORREST_HOME point to it.
  | It is recommended to add
  |    unix: $FORREST_HOME/bin: to your $PATH
  |    win: %FORREST_HOME%\bin; to your %PATH%
  | Calling
  |    unix: $FORREST_HOME/bin/forrest -projecthelp
  |    win: %FORREST_HOME%\bin\forrest -projecthelp
  | will list options for the 'forrest' command
  | More help at http://xml.apache.org/forrest/ and
forrest-dev@xml.apache.org
  *-----------------------------------------------------------------


dist:

BUILD SUCCESSFUL
Total time: 30 seconds


Regards
Leo






Re: Error when trying to run forrest seed

Posted by Jeff Turner <je...@apache.org>.
On Sat, Jul 26, 2003 at 06:37:42PM -0400, Leo wrote:
> Hi folks
> 
> (1)
> I had downloaded forrest and was able to sucessfully do the following:
> -run forrest build
> -Create my own directory and run
> 	forrest seed
> 	forrest site
> 	forrest webapp
> 	forrest run
> 
> (2)
> However forrest run: gave me a "java.lang.NoClassDefFoundError:"

What was the actual error?  It can probably be found in
build/tmp/context/WEB-INF/logs/error.log.

--Jeff