RE: Installation on Debian 5 amd64
Anuj Soral <[email protected]> Fri, 10 Jul 2009 08:50:57 -0700 (PDT)
| Newsgroups | gmane.comp.java.scarab.user |
|---|---|
| Message-ID | <13092220.65271247241057751.JavaMail.httpd@localhost> |
Trying to install scarab on debian 5. Using open-jdk, mysql and ant. Messages from "ant" and "ant create-db" command are attached. The build failed.
ant_log.txt
(text/plain, 6.2 KB)
Buildfile: build.xml
scarab-welcome:
[echo]
[echo] _________ B U I L D S Y S T E M ___.
[echo] / _____/ ____ _____ ____________ \_ |__
[echo] \_____ \_/ ___\\__ \\_ __ \__ \ | __ \
[echo] / \ \___ / __ \| | \// __ \| \_\ \
[echo] /_______ /\___ >____ /__| (____ /___ /
[echo] \/ \/ \/ \/ \/
[echo]
[echo] [0.21-200905211703]
[echo]
[echo] Running with following options:
[echo]
[echo] Scarab:
[echo] administrator = Administrator
[echo]
[echo] Scarab Database:
[echo] type = mysql
[echo] instance name = scarab
[echo] runtime user = scarab
[echo] admin user = admin
[echo]
[echo] Database Connection:
[echo] host = localhost
[echo] port = **GENERATED**
[echo] url = **GENERATED**
[echo] jdbc driver = **GENERATED**
[echo]
[echo]
create-build-dir:
[echo] Build Dir: ../target
[mkdir] Created dir: /home/opr/scarab/scarab-0.21/target
om-peer-generated-check:
[echo] checking: ../src/java/report.scarab.om.generation
create-webapp-lib:
[mkdir] Created dir: /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/lib
[echo] lib.dir is [../lib]
[echo] repository is [../www/repository]
[copy] Copying 81 files to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/lib
om-peer-java-generator:
generate-om:
prepare-build:
[echo]
[echo] +-------------------------------------------------------------
[echo] |
[echo] | Bootstrap build for Scarab using configuration:
[echo] |
[echo] | Build directory ../target/scarab
[echo] +-------------------------------------------------------------
[echo]
copy-lib-extensions:
create-deployment-directory:
[echo]
[echo] +-------------------------------------------------------------
[echo] |
[echo] | Create the Scarab deployment target using configuration:
[echo] |
[echo] | Deploy directory ../target/scarab
[echo] +-------------------------------------------------------------
[echo]
[echo] copy the webapplication framework ...
[copy] Copying 130 files to /home/opr/scarab/scarab-0.21/target/scarab
[echo] copy the base configuration files ...
[copy] Copying 18 files to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf
[echo] copy the database source files
[copy] Copying 144 files to /home/opr/scarab/scarab-0.21/target/scarab/database/src
[echo] copy the database drivers ...
[copy] Copying 6 files to /home/opr/scarab/scarab-0.21/target/scarab/database/src/drivers
[echo] Ensure, that the custom.properties exist
[touch] Creating /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf/custom.properties
copy-templates:
[copy] Copying 184 files to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/templates
copy-template-extensions:
copy-conf-extensions:
[copy] Copying 34 files to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/classes
compile:
[javac] Compiling 572 source files to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/classes
[javac] /home/opr/scarab/scarab-0.21/src/java/org/tigris/scarab/services/DatabaseInitializer.java:173: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning
[javac] getters[n-2] = omClass.getMethod("get"+row[n], null);
[javac] ^
[javac] /home/opr/scarab/scarab-0.21/src/java/org/tigris/scarab/services/DatabaseInitializer.java:176: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning
[javac] Method save = omClass.getMethod("save", null);
[javac] ^
[javac] /home/opr/scarab/scarab-0.21/src/java/org/tigris/scarab/services/DatabaseInitializer.java:186: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] String key = (String)getters[n].invoke(om, null);
[javac] ^
[javac] /home/opr/scarab/scarab-0.21/src/java/org/tigris/scarab/services/DatabaseInitializer.java:210: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] save.invoke(om, null);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 warnings
create-custom-property-file:
[defaultCustom] Create custom file: '/home/opr/scarab/scarab-0.21/build/../target/scarab/WEB-INF/conf/defaultCustom.properties'.
[defaultCustom] Using template : '/home/opr/scarab/scarab-0.21/build/../project.properties
load-drivers:
load-drivers:
[echo] copy the database drivers for mysql ...
[echo] sourcedir : ../../database/src/drivers
[echo] targetdir : ../lib
[echo] driver template : **/mysql-*.jar
[copy] Copying 1 file to /home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/lib
deploy:
[echo] Deploy the Scarab intance
BUILD SUCCESSFUL
Total time: 7 seconds
ant_create_db_log.txt
(text/plain, 4.2 KB)
Buildfile: build.xml
create-db:
clean:
load-drivers:
[echo] copy the database drivers for mysql ...
[echo] sourcedir : ../../database/src/drivers
[echo] targetdir : ../lib
[echo] driver template : **/mysql-*.jar
scarab-welcome:
[echo]
[echo] _________R U N T I M E B U I L D ___.
[echo] / _____/ ____ _____ ____________ \_ |__
[echo] \_____ \_/ ___\\__ \\_ __ \__ \ | __ \
[echo] / \ \___ / __ \| | \// __ \| \_\ \
[echo] /_______ /\___ >____ /__| (____ /___ /
[echo] \/ \/ \/ \/ \/
[echo]
[echo] [0.21-200905211705]
[echo]
[echo] Running with following options:
[echo]
[echo] Scarab:
[echo] administrator = Administrator
[echo]
[echo] Scarab Database:
[echo] type = mysql
[echo] instance name = scarab
[echo] runtime user = scarab
[echo] admin user = admin
[echo]
[echo] Database Connection:
[echo] host = localhost
[echo] port = 3306
[echo] url = jdbc:mysql://localhost:3306/scarab?zeroDateTimeBehavior=convertToNull&
[echo] jdbc driver = org.gjt.mm.mysql.Driver
[echo]
[echo]
db-type-check:
sql-current-db:
sql-specific-db:
torque-copy-scarab-schema:
[copy] Copying 1 file to /home/opr/scarab/scarab-0.21/target/scarab/database/instance/schema
[copy] Copying 1 file to /home/opr/scarab/scarab-0.21/target/scarab/database/instance/schema
[copy] Copying 1 file to /home/opr/scarab/scarab-0.21/target/scarab/database/instance/schema
[copy] Copying 1 file to /home/opr/scarab/scarab-0.21/target/scarab/database/instance/schema
check-use-classpath:
[echo] running check-use-classpath
check-run-only-on-schema-change:
sql-check:
sql:
[echo] +------------------------------------------+
[echo] |
[echo] | Generating SQL for project scarab ...
[echo] |
[echo] | torque.contextProperties = ../../database/instance/schema/build.static.properties
[echo] | torque.template.sql = sql/base/Control.vm
[echo] | torque.idTableXMLFile =
[echo] | torque.sql.dir = ../../database/instance/sql
[echo] | torque.project = scarab
[echo] | torque.database = mysql
[echo] | torque.useClasspath = true
[echo] | torque.schema.dir = ../../database/instance/schema
[echo] +------------------------------------------+
sql-classpath:
[echo] loading templates from classpath
[torque-sql] Using contextProperties file: /home/opr/scarab/scarab-0.21/target/scarab/database/instance/schema/build.static.properties
[torque-sql] Using classpath
[torque-sql] Generating to file /home/opr/scarab/scarab-0.21/target/scarab/database/instance/sql/report.scarab.sql.generation
[torque-sql] - Parsing file: 'id-table-schema.xml'
[torque-sql] - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
[torque-sql] - Parsing file: 'scarab-schema.xml'
[torque-sql] - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
[torque-sql] - Parsing file: 'turbine-schema.xml'
[torque-sql] - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
BUILD FAILED
/home/opr/scarab/scarab-0.21/build/build.xml:441: The following error occurred while executing this line:
/home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf/build.xml:217: The following error occurred while executing this line:
/home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf/build.xml:172: The following error occurred while executing this line:
/home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf/runtime-torque.xml:175: The following error occurred while executing this line:
/home/opr/scarab/scarab-0.21/target/scarab/WEB-INF/conf/runtime-torque.xml:189: Resource not found. For more information consult the velocity log, or invoke ant with the -debug flag.
Total time: 1 second