hello all,

i am getting a problem with dbunit:operation.The below description tells how
i deploy the database in to my  reposistory.

i deploy oracle database in to my repositotry with ojdbc14.jar with version
10.2.0.1.0.

with the below command:

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversi
on=10.2.0.1.0 -Dpackaging=jar -Dfile=C:\apache-maven-2.0.9\ojdbc14.jar.

and it shows build successfully.


now make a modification in pom.xml like this:

<dbunit.dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName>
                <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>
                                <dbunit.schema>TRAINING</dbunit.schema>         
                        
               
<hibernate.dialect>org.hibernate.dialect.Oracle9Dialect</hibernate.dialect>
                <jdbc.groupId>com.oracle</jdbc.groupId>
                <jdbc.artifactId>ojdbc14</jdbc.artifactId>
                <jdbc.version>10.2.0.1.0</jdbc.version>
               
<jdbc.driverClassName>oracle.jdbc.OracleDriver</jdbc.driverClassName>
               
<jdbc.url><![CDATA[jdbc:oracle:thin:@172.17.3.130:1521:MIRACLE]]></jdbc.url>
                <jdbc.username>training</jdbc.username>
                <jdbc.password>training</jdbc.password>

 
and in the configuration i didn't change any thing i kept as below only:

 <configuration>
                   
<dataTypeFactoryName>${dbunit.dataTypeFactoryName}</dataTypeFactoryName>
                    <driver>${jdbc.driverClassName}</driver>
                    <username>${jdbc.username}</username>
                    <password>${jdbc.password}</password>
                    <url>${jdbc.url}</url>
                    <src>src/test/resources/sample-data.xml</src>
                    <type>${dbunit.operation.type}</type>
                    <schema>${dbunit.schema}</schema>
                    <skip>${maven.test.skip}</skip>
                </configuration>

when i try to run the project it's giving an error like:


create sequence hibernate_sequence;
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: test-compile}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT

Embedded error: Items_Master
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Nov 19 18:13:21 IST 2008
[INFO] Final Memory: 23M/254M
[INFO]
------------------------------------------------------------------------


please give me a suggestion as soon as possible i need to work on this.

thanking you in advance.



-- 
View this message in context: 
http://www.nabble.com/problem-with-dbunit%3Aoperation-tp20579236s2369p20579236.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to