Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Maven 1.0.2 Problem Oracle driver ojdbc14.jar  RSS feed

 
Madan Kawle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a groupId by name "oracle"(directory) in my local repository and have copied the ojdbc14.jar under "jars" (directory).

I am defining the dependency in my project.xml as follows:
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
<type>jar</type>
</dependency>

</project>

I keep on getting the following errors during compilation:
*******************************
[javac] Compiling 2 source files to C:\MavenTSSDemo\DBAccess\target\classes
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:21: package o
racle.jdbc does not exist
import oracle.jdbc.OracleCallableStatement;
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:22: package o
racle.jdbc does not exist
import oracle.jdbc.OracleResultSet;
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:23: package o
racle.jdbc does not exist
import oracle.jdbc.OracleTypes;
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:1296: cannot
resolve symbol
symbol : class OracleCallableStatement
location: class com.chf.tss.dbAccess.TssDBAccess
OracleCallableStatement stmt = null;
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:1303: cannot
resolve symbol
symbol : class OracleCallableStatement
location: class com.chf.tss.dbAccess.TssDBAccess
stmt = (OracleCallableStatement)conn.prepareCall(query);

^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:1317: cannot
resolve symbol
symbol : variable OracleTypes
location: class com.chf.tss.dbAccess.TssDBAccess
stmt.registerOutParameter(3, OracleTypes.CURSOR);
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:1323: cannot
resolve symbol
symbol : class OracleResultSet
location: class com.chf.tss.dbAccess.TssDBAccess
OracleResultSet rs = (OracleResultSet)stmt.getCursor(3);
// XMLElement Cusor
^
C:\MavenTSSDemo\DBAccess\src\com\chf\tss\dbAccess\TssDBAccess.java:1323: cannot
resolve symbol
symbol : class OracleResultSet
location: class com.chf.tss.dbAccess.TssDBAccess
OracleResultSet rs = (OracleResultSet)stmt.getCursor(3);
// XMLElement Cusor
^
8 errors
**************************

I tried changing the oracle driver name from ojdbc14.jar to ojdbc-14.jar and also to ojdbc-1.4.jar; and made the change accordingly to my project.xml file for the version tag. But it keeps on giving me the above compilation errors.

Your assistance on this will be highly appreciated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!