WSJDBCConnection does not wrap objects of type Oracle jdbc Connection

后端 未结 3 1541
刺人心
刺人心 2020-12-11 11:32

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

3条回答
  •  轮回少年
    2020-12-11 11:53

    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.

提交回复
热议问题