“SecurityException: sealing violation” when starting Derby connection

前端 未结 3 927
心在旅途
心在旅途 2020-12-15 13:43

I need do start the derby server from my java application using \"org.apache.derby.drda.NetworkServerControl\" class.
When I try to start the server it thro

相关标签:
3条回答
  • 2020-12-15 14:10

    I was facing same problem. I was packaging my application using One Jar. One Jar has it's own class loader which could cause the issue. If you are using One Jar, Try packaging your app without One Jar and verify.

    0 讨论(0)
  • 2020-12-15 14:13

    You have probably Derby classes twice on your classpath. Look for Derby classes in some another jar archive and use them only once.

    0 讨论(0)
  • 2020-12-15 14:21

    I has this problem in Squirrel. I tried to add a new Derby embedded driver and I had the error.

    Then I closed Squirrel, removed derby**.jar from "c:\Program Files\squirrel-sql-3.5.0\lib\", started Squirrel and added the new driver successfully.

    0 讨论(0)
提交回复
热议问题