• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Need help with Cocoon2 installation

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need help with cocoon2 installation. I ran the build.bat and this is what I get below in D.O.S. Could anyone help?
[<dos - prompt>]
C:\cocoon2\dir\xml-cocoon2>build.bat -Dinclude.webapp.libs=yes webapp
C:\cocoon2\dir\xml-cocoon2>if exist "\antrc_pre.bat" call "\antrc_pre.bat"
C:\cocoon2\dir\xml-cocoon2>if not "Windows_NT" == "Windows_NT" goto win9xStart
C:\cocoon2\dir\xml-cocoon2>rem c:\java\Ant\bin\ is name of current script under
NT
C:\cocoon2\dir\xml-cocoon2>set DEFAULT_ANT_HOME=c:\java\Ant\bin\
C:\cocoon2\dir\xml-cocoon2>rem : operator works similar to make : operator
C:\cocoon2\dir\xml-cocoon2>set DEFAULT_ANT_HOME=c:\java\Ant
C:\cocoon2\dir\xml-cocoon2>if c:\java\Anta == a set ANT_HOME=c:\java\Ant
C:\cocoon2\dir\xml-cocoon2>set DEFAULT_ANT_HOME=
C:\cocoon2\dir\xml-cocoon2>rem On NT/2K grab all arguments at once
C:\cocoon2\dir\xml-cocoon2>set ANT_CMD_LINE_ARGS=-Dinclude.webapp.libs yes webap
p
C:\cocoon2\dir\xml-cocoon2>goto doneStart
C:\cocoon2\dir\xml-cocoon2>rem This label provides a place for the argument list
loop to break out
C:\cocoon2\dir\xml-cocoon2>rem and for NT handling to skip to.
C:\cocoon2\dir\xml-cocoon2>rem find ANT_HOME
C:\cocoon2\dir\xml-cocoon2>if not "c:\java\Ant" == "" goto checkJava
C:\cocoon2\dir\xml-cocoon2>set _JAVACMD=
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH=.;C:\gsj41\bin;C:\WINNT\system32;C
:\WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\an
t\bin;
C:\cocoon2\dir\xml-cocoon2>for %i in ("c:\java\Ant\lib\*.jar") do call "c:\java\
Ant\bin\lcp.bat" "%i"
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\ant.j
ar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\ant.jar";.;C:\gsj
41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java
\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\bsf.j
ar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\bsf.jar";"c:\java
\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wb
em;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\bsh.j
ar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\bsh.jar";"c:\java
\Ant\lib\bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\
WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\
bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\jakar
ta-ant-1.3-optional.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\jakarta-ant-1.3-o
ptional.jar";"c:\java\Ant\lib\bsh.jar";"c:\java\Ant\lib\bsf.jar";"c:\java\Ant\li
b\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\j
ava\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\javax
.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\javax.jar";"c:\ja
va\Ant\lib\jakarta-ant-1.3-optional.jar";"c:\java\Ant\lib\bsh.jar";"c:\java\Ant\
lib\bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT
;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\jaxp.
jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\jaxp.jar";"c:\jav
a\Ant\lib\javax.jar";"c:\java\Ant\lib\jakarta-ant-1.3-optional.jar";"c:\java\Ant
\lib\bsh.jar";"c:\java\Ant\lib\bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\gsj41\bin
;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes
-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\ntant
.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\ntant.jar";"c:\ja
va\Ant\lib\jaxp.jar";"c:\java\Ant\lib\javax.jar";"c:\java\Ant\lib\jakarta-ant-1.
3-optional.jar";"c:\java\Ant\lib\bsh.jar";"c:\java\Ant\lib\bsf.jar";"c:\java\Ant
\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c
:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\optio
nal.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\optional.jar";"c:
\java\Ant\lib\ntant.jar";"c:\java\Ant\lib\jaxp.jar";"c:\java\Ant\lib\javax.jar";
"c:\java\Ant\lib\jakarta-ant-1.3-optional.jar";"c:\java\Ant\lib\bsh.jar";"c:\jav
a\Ant\lib\bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:
\WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant
\bin;
C:\cocoon2\dir\xml-cocoon2>call "c:\java\Ant\bin\lcp.bat" "c:\java\Ant\lib\parse
r.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\java\Ant\lib\parser.jar";"c:\j
ava\Ant\lib\optional.jar";"c:\java\Ant\lib\ntant.jar";"c:\java\Ant\lib\jaxp.jar"
;"c:\java\Ant\lib\javax.jar";"c:\java\Ant\lib\jakarta-ant-1.3-optional.jar";"c:\
java\Ant\lib\bsh.jar";"c:\java\Ant\lib\bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\g
sj41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\Ant\bin;C:\ja
va\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>if "c:\jdk1.3.1" == "" goto noJavaHome
C:\cocoon2\dir\xml-cocoon2>if "" == "" set _JAVACMD=c:\jdk1.3.1\bin\java
C:\cocoon2\dir\xml-cocoon2>if exist "c:\jdk1.3.1\lib\tools.jar" call "c:\java\An
t\bin\lcp.bat" "c:\jdk1.3.1\lib\tools.jar"
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH="c:\jdk1.3.1\lib\tools.jar";"c:\ja
va\Ant\lib\parser.jar";"c:\java\Ant\lib\optional.jar";"c:\java\Ant\lib\ntant.jar
";"c:\java\Ant\lib\jaxp.jar";"c:\java\Ant\lib\javax.jar";"c:\java\Ant\lib\jakart
a-ant-1.3-optional.jar";"c:\java\Ant\lib\bsh.jar";"c:\java\Ant\lib\bsf.jar";"c:\
java\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System3
2\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin;
C:\cocoon2\dir\xml-cocoon2>if exist "c:\jdk1.3.1\lib\classes.zip" call "c:\java\
Ant\bin\lcp.bat" "c:\jdk1.3.1\lib\classes.zip"
C:\cocoon2\dir\xml-cocoon2>goto checkJikes
C:\cocoon2\dir\xml-cocoon2>if not "" == "" goto runAntWithJikes
C:\cocoon2\dir\xml-cocoon2>c:\jdk1.3.1\bin\java -classpath "c:\jdk1.3.1\lib\tool
s.jar";"c:\java\Ant\lib\parser.jar";"c:\java\Ant\lib\optional.jar";"c:\java\Ant\
lib\ntant.jar";"c:\java\Ant\lib\jaxp.jar";"c:\java\Ant\lib\javax.jar";"c:\java\A
nt\lib\jakarta-ant-1.3-optional.jar";"c:\java\Ant\lib\bsh.jar";"c:\java\Ant\lib\
bsf.jar";"c:\java\Ant\lib\ant.jar";.;C:\gsj41\bin;C:\WINNT\system32;C:\WINNT;C:\
WINNT\System32\Wbem;c:\java\Ant\bin;C:\java\jikes-1.14\bin;c:\java\ant\bin; -Dan
t.home="c:\java\Ant" org.apache.tools.ant.Main -Dinclude.webapp.libs yes webapp
Buildfile: build.xml
init:
[echo] ------------------- Apache Cocoon 2.0b2-dev [1999-2001] ------------
----
prepare:
copy-webapp:
[mkdir] Created dir: C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp
[copy] Copying 118 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp
[copy] Copied 3 empty directories to C:\cocoon2\dir\xml-cocoon2\build\cocoo
n\webapp
[copy] Copying 9 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp
[copy] Copying 88 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\d
ocs\xdocs
[copy] Copying 1 file to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\doc
s\xdocs
[copy] Copying 1 file to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\doc
s\xdocs
[copy] Copying 19 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\d
ocs\xdocs\images
[copy] Copying 1 file to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\doc
s\xdocs\internal
[copy] Copying 5 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\st
ylesheets\documents
[copy] Copying 14 files to C:\cocoon2\dir\xml-cocoon2\build\cocoon\webapp\i
18n
prepare-webapp-php:
prepare-webapp-xt:
prepare-webapp-fop:
prepare-webapp-tidy:
prepare-webapp-naming:
prepare-webapp:
generate-java-code-check:
generate-java-code:
[style] Transforming into C:\cocoon2\dir\xml-cocoon2\build\cocoon\src\org\ap
ache\cocoon\components\browser
BUILD FAILED
C:\cocoon2\dir\xml-cocoon2\build.xml:371: java.lang.NoClassDefFoundError: javax/
xml/transform/Source
--- Nested Exception ---
java.lang.NoClassDefFoundError: javax/xml/transform/Source
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.ja
va:229)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:13
7)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 6 seconds
C:\cocoon2\dir\xml-cocoon2>goto end
C:\cocoon2\dir\xml-cocoon2>set LOCALCLASSPATH=
C:\cocoon2\dir\xml-cocoon2>set _JAVACMD=
C:\cocoon2\dir\xml-cocoon2>set ANT_CMD_LINE_ARGS=
C:\cocoon2\dir\xml-cocoon2>if not "Windows_NT" == "Windows_NT" goto mainEnd
C:\cocoon2\dir\xml-cocoon2>if exist "\antrc_post.bat" call "\antrc_post.bat"
C:\cocoon2\dir\xml-cocoon2>
[</dos - prompt>]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!