Can't generate persistence mapping: already loaded DLL

I would like to generate persistence mapping (new functionality in 6.0).
The first connect is successfully, for example select a schema.
The second and following connect will fail:
java.lang.UnsatisfiedLinkError: Native Library C:\Programs\Oracle\Ora10g\BIN\ocijdbc10.dll already loaded in another classloader

6 comments
Comment actions Permalink

A workaround could be to use the Oracle "thin" driver, but I guess you
know that...

regards,

Messi

Andreas Bachmann wrote:

I would like to generate persistence mapping (new functionality in 6.0).
The first connect is successfully, for example select a schema.
The second and following connect will fail:
java.lang.UnsatisfiedLinkError: Native Library C:\Programs\Oracle\Ora10g\BIN\ocijdbc10.dll already loaded in another classloader


------------------------------------------------------------------------

0
Comment actions Permalink

Hello Andreas,

Have you tried adding ojdbc14.jar to IDEA classpath (in idea.bat)?

Regards,
Gregory Shrago

Andreas Bachmann wrote:

I would like to generate persistence mapping (new functionality in 6.0).
The first connect is successfully, for example select a schema.
The second and following connect will fail:
java.lang.UnsatisfiedLinkError: Native Library C:\Programs\Oracle\Ora10g\BIN\ocijdbc10.dll already loaded in another classloader


------------------------------------------------------------------------

0
Comment actions Permalink

Thin is not an option... see attachment!
URL: jdbc:oracle:thin:@GIS002
Can I use the TNSNAME for Thin?



Attachment(s):
thin.gif
0
Comment actions Permalink

Ahh... DOES work. Thank you!
But is this a Oracle problem or a IDEA problem?

0
Comment actions Permalink

It is JAVA limitation.

0
Comment actions Permalink

Since the problem's already solved, just for info: I'm not 100% sure,
but I think you can't use TNSNAME for the thin driver, you need
something like host:port/name.

regards,

Messi

Andreas Bachmann wrote:

Thin is not an option... see attachment!
URL: jdbc:oracle:thin:@GIS002
Can I use the TNSNAME for Thin?


------------------------------------------------------------------------

0

Please sign in to leave a comment.