• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassNotFoundException

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I have a problem when starting my Jboss server!
Anyone that have a clue?
I get the following fault when I start the server:
09:59:10,647 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Failed to register driver for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver); - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver)))
I have the following environment:
jboss-3.2.1_tomcat-4.1.24
Mysql 4.0.16
mysql-connector-java-3.0.9-stable-bin
(situated in dir: %JBOSS_DIST%\lib\)
mysql-ds.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--================================================ -->
<!-- Datasource config for MySQL using 2.0.11 driver-->
<!--================================================ -->

<datasources>
<local-tx-datasource>
<jndi-name>MySQLDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/employee</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>bjornan</user-name>
<password>bjornan</password>
</local-tx-datasource>
</datasources>
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bjorn Andersson Bjorn Andersson:
Hi!
I have the following environment:
jboss-3.2.1_tomcat-4.1.24
Mysql 4.0.16
mysql-connector-java-3.0.9-stable-bin
(situated in dir: %JBOSS_DIST%\lib\)



Do you have the actual jar file containing the mysql jdbc driver in your lib directory? You can also test by placing the jdbc jar file directly in the deploy directory. You really wouldn't want to run like that, but it will let you more easily test your configuration because you can add/remove it and get the fast deploy behaviour...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic