ezrael
asked on
Native Library ...\ocijdbc9.dll already loaded in another classloader
Hi,
from netbeans I've build a very simple jsp page that does nothing but connect to a db (using oci) and then disconnect. Sometimes it hangs saying the things in the question title... what should I do?
thx.
from netbeans I've build a very simple jsp page that does nothing but connect to a db (using oci) and then disconnect. Sometimes it hangs saying the things in the question title... what should I do?
thx.
ASKER
I'm using 1.5... what is the loading static?
I also have tried with thin driver, but it isn't able to establish connection between my server and my client... dunno why.
I also have tried with thin driver, but it isn't able to establish connection between my server and my client... dunno why.
ASKER
perhaps I simply have to shut down something when I leave the page?
I do only conn.clos(), perhaps the library need something else to do?
I do only conn.clos(), perhaps the library need something else to do?
ASKER
IT COULD BE AN ANSWER: I get the error after the application hangs for some other reason, maybe netbeans is unable to unload the library/close the connection and so the library remains loaded in memory...
...could it be an answer?
...could it be an answer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I load the library doing this:
Class.forName("oracle.jdbc .driver.Or acleDriver ");
should I try with
static {
Class.forName("oracle.jdbc .driver.Or acleDriver ");
}
?
thx!
Class.forName("oracle.jdbc
should I try with
static {
Class.forName("oracle.jdbc
}
?
thx!
yep, either that (see here http://www.developer.com/java/other/article.php/2238491) or put it in the jspInit() method as I described above
ASKER
ok, it runs with static method, but this is only a turnaround for making some tests on connections... until I'll be able to connect via a dbcp! could you help?
I've an open question here:
https://www.experts-exchange.com/questions/21479466/Cannot-create-JDBC-driver-of-class-''-for-connect-URL-'null'.html
Thank you so much!
I've an open question here:
https://www.experts-exchange.com/questions/21479466/Cannot-create-JDBC-driver-of-class-''-for-connect-URL-'null'.html
Thank you so much!
Okay, thanks and I'll have a look
You could try making the loading static or using the thin driver which does not have the native dependency.