sound like you are not using java 1.5+ -D
On Sun, Aug 7, 2011 at 11:12 PM, anamika gupta <[email protected]> wrote: > Hi, > I am getting the following error while executing dbupgrade:fileList. Any > help would be greatly appreciated. Thanks a lot in advance. > > > *Error:-* > > Failed to execute goal > org.codehaus.mojo:dbupgrade-maven-plugin:1.0-beta-1:filelist-upgrade > (default) on project contactusDataAccessServices: Execution default of goal > org.codehaus.mojo:dbupgrade-maven-plugin:1.0-beta-1:filelist-upgrade failed: > An API incompatibility was encountered while executing > org.codehaus.mojo:dbupgrade-maven-plugin:1.0-beta-1:filelist-upgrade: > java.lang.NoSuchMethodError: java.sql.SQLException: method > <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found > > > *where as my pom.xml* > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>dbupgrade-maven-plugin</artifactId> > <version>1.0-beta-1</version> > <dependencies> > <dependency> > <groupId>com.oracle</groupId> > <artifactId>ojdbc14</artifactId> > <version>10.2.0.1.0XE</version> > <scope>compile</scope> > </dependency> > </dependencies> > <executions> > <execution> > <phase>compile</phase> > <goals><goal>filelist-upgrade</goal></goals> > <configuration> > <config> > > <driver>oracle.jdbc.driver.OracleDriver</driver> > <url>jdbc:oracle:thin:@***:ORCL</url> > <username>**</username> > <password>**</password> > > <scriptDirectory>src/main/resources/db-scripts</scriptDirectory> > > <upgradeFile>src/main/resources/db-scripts/testUpgrade.txt</upgradeFile> > > <versionTableName>_version</versionTableName> > > <versionColumnName>version</versionColumnName> > </config> > </configuration> > </execution> > </executions> > </plugin> > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Error-at-dbupgrade-maven-plugin-filelist-upgrade-tp4676684p4676684.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
