I am using Websphere liberty server to run my application and I need to use ArrayDescriptor
for passing arrays to the oracle stored procedure. I get an exceptio
If someone has this problem here is my solution.
My mistake was that I was deploying my application to the dropins
folder and if you define an application/webApplication
in your server.xml
it is ignored. I deployed it somewhere else, set this new location to the application tag and also added the
in server.xml
, left the ojdbc jar
as provided in pom.xml
and it works now.
But still I had a problem when I was running the application locally, because the ojdbc jar
was provided in pom.xml
.
My solution was to use reflection to get the system class loader and load the jar at runtime for the local profile.
Hope this helps someone.