javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [comp] error with java scheduler

后端 未结 6 1922
后悔当初
后悔当初 2021-02-05 23:02

What I\'m trying to do is to update my database after a period of time. So I\'m using java scheduler and connection pooling. I don\'t know why but my code only working once. It

6条回答
  •  温柔的废话
    2021-02-05 23:27

    This problem is likely to arise when two versions of a same module are present. Kindly check the lib folder for multiple versions of the same module. Remove the version that you don't need and restart the server.

    In my case it was servlet-api present in two versions servlet-api.jar servlet-api-2.jar

    Hope this solves your problem. Good day!

提交回复
热议问题