Hi all,
I've got issues running an External Data Source for DataDeploy. I'd like to run a test class to get the current time during the deployment but it
fails to load the class and throws this error message:
DAS: Class Name specified: TodayDateTime
DAS: Attempting to load class: TodayDateTime
DAS:
ERROR:Unable to load class TodayDateTime,Class Not FoundDAS: Column SEQ_COL_2 not found in array
DAS: Column SEQ_COL_2 not found in array
DAS: Column: seq_col_2, value-from-callout: iwov:dd:java:TodayDateTime, Index: 3,Converting '...........' to LONGVARCHAR
DAS: -- Inserted
DAS: Filelist walk done
DAS: Deployment home ok
DAS: Stat for group [external]:
DAS: -----------------------------------
DAS: Rows inserted : 1
DAS: Rows updated : 0
DAS: Rows deleted : 0
DAS: Rows failed : 0
DAS: Rows rolled back : 0
DAS: Rows skipped : 0
DAS: -----------------------------------
DAS: Committing database [localhost:1521

RCL]...
DAS: Deployment[home]
DAS: -----------------------------------
DAS: DCRs inserted : 1
DAS: DCRs updated : 0
DAS: DCRs deleted : 0
DAS: DCRs failed : 0
DAS: DCRs rolled back : 0
DAS: DCRs skipped : 0
DAS: -----------------------------------
DAS: Started : Mon Oct 02 08:13:13 CEST 2006
DAS: Finished: Mon Oct 02 08:13:14 CEST 2006
DAS:
### IWDataDeploy DONE ###
These are the steps I've followed:
1.) Created the java file based on the example in od-home/userlib
2.) Compiled the java file using: javac -classpath %classpath%;.;../lib/ddcomb.jar TodayDateTime.java in od-home/userlib
3.) Createda jar file using: jar cvf TodayDateTime.jar TodayDateTime.java in od-home/userlib
4.) Added od-home/userlib/TodayDateTime.jar to classpath
5.) Added this to my dbschema.cfg file
column name="path" data-type="VARCHAR2(255)" value-from-field="path" allows-null="yes"
column name="seq_col_2" data-type="VARCHAR2(255)" value-from-callout="iwov:dd:java:TodayDateTime" allows-null="yes"
6.) Restarted OpenDeploy and runned a filelist deployment for a dcr.
7.) Table with two columns is getting created and path is filled but no seq_col_2
I have tried this:
column name="seq_col_2" data-type="VARCHAR2(255)" value-from-callout="iwov:dd:java:TodayDateTime.TodayDateTime" allows-null="yes"
but then the whole deployment hangs???
OS: W2K Server
OD: Version 6.0.2.0.0 Build 46963 Interwoven 20050402
DB: Oracle 8i
Are there any ways to test if my class is working in the first place using normal java or where could be my error?
Anyway I want to fetch sequence numbers from Oracle during the deployment time.
Any experience weather its better to use External-DataSource or Tuple-Preprocessor?
M