aspose file tools*
The moose likes JDBC and the fly likes Why do i get java.lang.VerifyError when loading a jdbc driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Why do i get java.lang.VerifyError when loading a jdbc driver" Watch "Why do i get java.lang.VerifyError when loading a jdbc driver" New topic
Author

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

Clemens Tolboom
Greenhorn

Joined: Feb 15, 2005
Posts: 12
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Clemens,
This sounds more like a JBoss/classpath issue, so I'm moving it to our JBoss forum.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: Why do i get java.lang.VerifyError when loading a jdbc driver
 
Similar Threads
Variable Arguments in Java 5
xerces SAX2 parser giving error
IBM WSAD "Failed to load servlet: java.lang.VerifyError"
Why do i get java.lang.VerifyError when loading a jdbc driver
IBM WSAD error - Unable to pop operand off an empty stack