You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Stuart Townhill <st...@townhill.net> on 2003/01/28 21:08:05 UTC

Possible Help For Ant Init

Update from previous problems I have suffered from (may be common
knowledge now but may help others if they find this):
 
All data below from: Ant1.5.1, Tdk2.1, MySql, WinXP
After successfully running 'ant' in <tdk root>
 
 
The following errors occurred after running 'ant init' in "<tdk
root>/webapps/<project name>/WEB-INF/build"
 
 
Error 01:
 
BUILD FAILED
file:C:/Program Files/Apache Group/Jakarta/old
tdk/webapps/newapp/WEB-INF/build/build.xml:119: Execute failed:
java.io.IOException: CreateProcess: ..\src\sql\createdatabase.sh
error=193
 
After researching through the archives it became apparent that tdk2.1
does not detect WindowsXP and the that the 'build.xml' file (located in
"<tdk root>/webapps/<project name>/WEB-INF/build/build.xml") 'EXTENSION
FINDER' section must be modified to the code below:
 
  <target name="set-windowsNT" depends="set-windows2000"
if="isWindowsNT">
    <property name="is.Windows" value="true" />
  </target>
  <target name="set-windows2000" depends="set-windowsXP" if="isWindows
2000">
    <property name="is.Windows" value="true" />
  </target>
  <target name="set-windowsXP" if="isWindows XP">
    <property name="is.Windows" value="true" />
  </target>
 
 
Error 02:
 
BUILD FAILED
java.lang.VerifyError: (class:
org/apache/turbine/torque/engine/database/transform/XmlToAppData,
method: parseFile
signature:(Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database
/model/AppData;) Incompatible object argument for function call at
org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask
.java:153)
 
The archives had discuss a conflict between ant1.5.1 and tdk2.1, the
'WIKI FAQ' suggested it can be resolved by removing 'xercesImpl.jar'
from "<ant root>/lib" this worked for me.
 
 
Other:
 
Found it easier to create database manually in MySql and then execute
'ant init' with the following line of code un-commented:
database.manual.creation = true
Located in the "<tdk root>/webapps/<project
name>/WEB-INF/build/build.properties"
 
 
I take no credit in these fixes, as I have found it all online but
thought the compilation may be useful.
 
Regards,
 
Stuart Townhill.