oracle jdbc driver not working as i wanted -
i'm bit confused oracle jdbc.
i use ojdbc16
by following step :
1) adding ojdbc.jar build path -> work in local ( connexion, request etc..)
2) trying test webapp jetty sealing violation: package oracle.jdbc sealed
dont see drivers can load appart ojdbc.jar :/ maybe come copy/paste nexus ? remove dependencies "ojdbc" pom.xml.
3) trying test webapp jetty. it's working (huh) if eclipse:eclipse (update of classpath) not working anymore.
4) when run junit test, fail because oracle driver seems unfindable.
i'm confused, how can step 3 work. , how can step 4 doesn't work step 3 work ? , how can fix probleme ojdbc ? thanks,
summary: if find class @ compile time not @ runtime, might help: try copying ojdbcxx.jar file use java folder structure...
details:
i've been wrestling 2 days - , reading lots of stackoverflow answers, many helped understanding of related things :-). came across solution worked me.
i using: windows 7 64-bit; eclipse kepler; oracle 12.1; jdk1.7; ojdbc7.jar. classpath included folder ojdbc7.jar. imports in code fine, , code found class @ compile time. library settings in eclipse project included folder ojdbc7.jar files. java build path | order , export tab had ticked, including ojdbc7.jar (thanks stackoverflow one).
the last missing piece: needed copy ojdbc7.jar file oracle folder structure java folder structure, find @ runtime.
on system...
from: c:\app\pcnonadmin\product\12.1.0\dbhome_1\jdbc\lib\ojdbc7.jar
to: c:\program files\java\jdk1.7.0_05\jre\lib\ext\ojdbc7.jar
i hope helps.
Comments
Post a Comment