I hope this is the right place to post..
I've got a web application that use Oracle OCI driver for connecting to an Oracle Database.
This application use Realm with OCI driver for servlet authentication and ALSO (I know the problem is here) is used again from the application to read some data from the same database.
With this situation the application throw a Servlet Exception: Native Library "already loaded in another classloader".
The oci library "ojdbc14.jar" is in the common/lib directory is it the right place?
Where should I put it?
The same application with the THIN driver doesn't make problem but I can't use it and I must use OCI driver instead.
Any solution to this problem?
Thanks you in advance
one month past but I don't go so far from the last time I wrote here
Thanks to Bauke Scholtz for his support.
I'm investigating again on the problem and I found that is present only with Realm e OCI driver.
Now I have a new Tomcat enviroment, clean, with only one application installed.
This application use JDBCRealm with Oracle driver for jdbc for authentication and it display simple jsp page containing text messagges..
Again everything works with the "Thin" Driver, instead with OCI driver, after the login procedure the java virtual machine crash with some memory dump messagges...
The ojdbc14.jar is in $TOMCAT_HOME/common/lib
The ORACLE_HOME is set.
I don't use other library ...
Finally I've found the solution!
There was two problem:
- in my enviroment Realm+Oracle OCI miserally crash! I don't know why, I will investigate but it's not releated with this topic and I don't have problem in another enviroment that I can use! I produced a first example program whit only realm and oci for test it.
- like stupid , I forgot to remove ojdbc14.jar from a directory INSIDE the war. I thought this wasn't a problem to have inside a subdirectory a jar...
At least, thanks again Bauke Scholtz.
You can close this topic.
Would you like to try a free sample? Today we are featuring tiny ads: