Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why do i get java.lang.VerifyError when loading a jdbc driver

 
Clemens Tolboom
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JBoss the following error occurs.

17:44:44,203 ERROR [Engine] StandardContext[/sensor]CewolfServlet: (class: nl/tolboom/sensor/model/DBConnector, method: <init> signature: ()V) Unable to pop operand off an empty stack java.lang.VerifyError: (class: nl/tolboom/sensor/model/DBConnector, method: <init> signature: ()V) Unable to pop operand off an empty stack



This happens when a ServletContextListener calls this class.

Putting the Class.forName in a static {} block works but then it is not configurable through the web.xml config file.

Any suggestions are welcome,

tanx.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clemens,
This sounds more like a JBoss/classpath issue, so I'm moving it to our JBoss forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic