You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2003/12/03 10:45:54 UTC
Cocoon 2.1.3 - Build error
While I have been using Cocoon 1 and 2.0.x for some years
now, I am a total "newbie" with regard to 2.1.x and all
that is involved in setting it up.
I am running on a Windows XP, under JDK 1.3
I have downloaded the Cocoon 2.1.3 source files, and unzipped
them into D:\cocoon-2.1.3. I have also downloaded Ant 1.5.4
and set it up (setting ANT_HOME and the PATH variables).
When I go to D:\cocoon-2.1.3 to attempt to build Cocoon,
simply by typing "ant", I get the log/error shown below as
output.
I have no idea what the error means or how to fix it;
and could not spot any past "fixes" in the archives.
Please help!
Thanks
Derek
PS I also tried the build.bat file; but got a whole lot
of "file not found" errors.
====================
D:\cocoon-2.1.3>ant
Buildfile: build.xml
init:
init-tasks:
[mkdir] Created dir: D:\cocoon-2.1.3\tools\anttasks
[javac] Compiling 2 source files to D:\cocoon-2.1.3\tools\anttasks
[mkdir] Created dir: D:\cocoon-2.1.3\tools\loader
[javac] Compiling 1 source file to D:\cocoon-2.1.3\tools\loader
prepare:
[echo] +-----------------------------------------------------------+
[echo] Apache Cocoon 2.1.3 [1999-2003]
[echo] +-----------------------------------------------------------+
[echo] Building with Apache Ant version 1.5.4 compiled on August 12
2003
[echo] using build file D:\cocoon-2.1.3\build.xml
[echo] Compiling with debug on, optimize on, deprecation off
[echo] +--------------------| W A R N I N G |----------------------+
[echo] This build is targeted for use with JVM 1.3
[echo] Using this build on a virtual machine other than the one
[echo] it is targeted for may result in runtime errors.
[echo] +-----------------------------------------------------------+
[mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3
compile-core:
[copy] Copying 40 files to D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
[copy] Copied 36 empty directories to
D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
[mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
[javac] Compiling 1 source file to
D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
[javac] Compiling 555 source files to
D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
compile-deprecated:
[mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\deprecated
BUILD FAILED
javax.xml.transform.TransformerFactoryConfigurationError:
Provider for javax.xml.transform.TransformerFactory cannot be found
at javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)
at XConfToolTask.execute(Unknown Source)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 20 seconds
javax.xml.transform.TransformerFactoryConfigurationError:
Provider for javax.xml.transform.TransformerFactory cannot be found
at javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)
at XConfToolTask.execute(Unknown Source)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Provider for javax.xml.transform.TransformerFactory cannot be found
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.1.3 - Build error
Posted by Geoff Howard <co...@leverageweb.com>.
Derek Hohls wrote:
> While I have been using Cocoon 1 and 2.0.x for some years
> now, I am a total "newbie" with regard to 2.1.x and all
> that is involved in setting it up.
>
> I am running on a Windows XP, under JDK 1.3
>
> I have downloaded the Cocoon 2.1.3 source files, and unzipped
> them into D:\cocoon-2.1.3. I have also downloaded Ant 1.5.4
> and set it up (setting ANT_HOME and the PATH variables).
See below.
> When I go to D:\cocoon-2.1.3 to attempt to build Cocoon,
> simply by typing "ant", I get the log/error shown below as
> output.
>
> I have no idea what the error means or how to fix it;
> and could not spot any past "fixes" in the archives.
It means you haven't set up your classpath to include the xml jars
located under lib\endorsed\. build.bat does nothing more than set up
your environment correctly and then call ant correctly. I'd strongly
suggest using it instead of trying to reinvent the wheel. See below.
> Please help!
> Thanks
> Derek
>
> PS I also tried the build.bat file; but got a whole lot
> of "file not found" errors.
The first time you build, the build script looks in several locations
for the required xml libraries - usually it reports "file not found" in
the first places it looks and then does find it in the third IIRC. It
should do this for each of three jars, for a total of 6 fnf "errors" at
the beginning of the build. If you ignore them and let the build go on,
you'll see BUILD SUCCESSFUL at the end.
Another possibility is that you are getting the problem with empty
directories not being preserved by WinZip. I think this only applies
when unzipping the tar.gz with winzip:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23588. If this is the
problem, the file not found(s) will probably be a bunch of lib
directories.
If neither of these are the case and the build aborts with BUILD FAILED
then send the exact error you're getting here.
Geoff
> ====================
>
> D:\cocoon-2.1.3>ant
> Buildfile: build.xml
>
> init:
>
> init-tasks:
> [mkdir] Created dir: D:\cocoon-2.1.3\tools\anttasks
> [javac] Compiling 2 source files to D:\cocoon-2.1.3\tools\anttasks
> [mkdir] Created dir: D:\cocoon-2.1.3\tools\loader
> [javac] Compiling 1 source file to D:\cocoon-2.1.3\tools\loader
>
> prepare:
> [echo] +-----------------------------------------------------------+
> [echo] Apache Cocoon 2.1.3 [1999-2003]
> [echo] +-----------------------------------------------------------+
> [echo] Building with Apache Ant version 1.5.4 compiled on August 12
> 2003
> [echo] using build file D:\cocoon-2.1.3\build.xml
> [echo] Compiling with debug on, optimize on, deprecation off
> [echo] +--------------------| W A R N I N G |----------------------+
> [echo] This build is targeted for use with JVM 1.3
> [echo] Using this build on a virtual machine other than the one
> [echo] it is targeted for may result in runtime errors.
> [echo] +-----------------------------------------------------------+
> [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3
>
> compile-core:
> [copy] Copying 40 files to D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
> [copy] Copied 36 empty directories to
> D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
> [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
> [javac] Compiling 1 source file to
> D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
> [javac] Compiling 555 source files to
> D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
>
> compile-deprecated:
> [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\deprecated
>
> BUILD FAILED
> javax.xml.transform.TransformerFactoryConfigurationError:
> Provider for javax.xml.transform.TransformerFactory cannot be found
> at javax.xml.transform.TransformerFactory.newInstance(Unknown
> Source)
> at XConfToolTask.execute(Unknown Source)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
> at org.apache.tools.ant.Task.perform(Task.java:341)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> at org.apache.tools.ant.Main.runBuild(Main.java:609)
> at org.apache.tools.ant.Main.start(Main.java:196)
> at org.apache.tools.ant.Main.main(Main.java:235)
> Total time: 20 seconds
> javax.xml.transform.TransformerFactoryConfigurationError:
> Provider for javax.xml.transform.TransformerFactory cannot be found
> at javax.xml.transform.TransformerFactory.newInstance(Unknown
> Source)
> at XConfToolTask.execute(Unknown Source)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
> at org.apache.tools.ant.Task.perform(Task.java:341)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> at org.apache.tools.ant.Main.runBuild(Main.java:609)
> at org.apache.tools.ant.Main.start(Main.java:196)
> at org.apache.tools.ant.Main.main(Main.java:235)
> Provider for javax.xml.transform.TransformerFactory cannot be found
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org