-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: weird mysql error w/jboss
PostPosted: Wed Feb 11, 2004 1:12 am 
Newbie

Joined: Wed Feb 11, 2004 1:03 am
Posts: 3
i'm using jboss 3.2.3 and tomcat. my app is a simple war file. all the dependent jars (hibernate, mysql driver, etc) are in WEB-INF/lib .. I've tried all the versions of mysql i could find. I have not yet attempted a more elaborate setup (i.e. SARs, etc)

Any ideas? I feel that it has to do with my version of the mysql driver, but changing it seems to have no effect. any ideas? org.gjt.mm.mysql.jdbc2.Connection.prepareStatement doesn't seem to be a method in any of the mysql connector jars i've looked in.

thanks

23:49:21,732 ERROR [Engine] ----- Root Cause -----
java.lang.AbstractMethodError: org.gjt.mm.mysql.jdbc2.Connection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.sf.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:39)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:246)
at net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:61)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:524)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432)
at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(Sche


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 11, 2004 3:14 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Put the driver jar (the latest one: mysql-connector-java-3.0.10-stable-bin.jar) in JBOSS_HOME/server/[your configuration]/lib

Remove ALL OTHER MySQL driver jars from:
- your WAR application (WEB-INF/lib)
- JBOSS_HOME/lib
- JBOSS_HOME/server/[your configuration]/lib


Top
 Profile  
 
 Post subject: fun with classloaders
PostPosted: Wed Feb 11, 2004 11:14 pm 
Newbie

Joined: Wed Feb 11, 2004 1:03 am
Posts: 3
drj wrote:
Put the driver jar (the latest one: mysql-connector-java-3.0.10-stable-bin.jar) in JBOSS_HOME/server/[your configuration]/lib

Remove ALL OTHER MySQL driver jars from:
- your WAR application (WEB-INF/lib)
- JBOSS_HOME/lib
- JBOSS_HOME/server/[your configuration]/lib


Thanks, that did the trick!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.