Issue with NoClassDefFoundError error in a web environment Spring/Wicket/Derby/Jetty

后端 未结 4 528
陌清茗
陌清茗 2020-12-21 11:26

I am trying to build a simple JDBC Spring Template application, the web framework I am using is wicket and under the jetty 6 web server (through the Jetty Maven Plugin). Al

4条回答
  •  我在风中等你
    2020-12-21 11:58

    Sometimes these errors are because you have Derby in your classpath twice, somehow. With modern JDKs, Derby's drivers are 'auto-loaded', meaning that the JDK will look for JDBC drivers on the classpath and automatically load them. So you might check your system classpath as well as your application's libraries; perhaps you have a second copy of Derby hidden away somewhere in the path and the exception is trying to tell you that the two versions of Derby are in conflict.

提交回复
热议问题