2 Replies Latest reply on Jul 9, 2003 8:09 PM by Jen

    Please help - mySQL with 3.2.1 NoClassDefFoundError

    mkhl97 Newbie

      I got the following error when I deployed my war file:

      "Depends On Me: , ObjectName: jboss.j2ee:jndiName=TestEntityBean,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NoClassDefFoundError: org/apache/bcel/generic/ClassGen]"

      I modified the 3 xml files (standardjbosscmp-jdbc, standard-jaws, mysql-ds) and removed hsql-ds.xml. I'm sure the datasource was bound successfully and I saw this in the server log:

      "INFO [mySqlDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=mySqlDS to JNDI name 'java:/mySqlDS'"

      I even tried retrieving the datasource in my stateless session bean and did some query to the db and it worked fine. So why do I keep getting the err msg above?

      I've already spent 1 week trying to get this single entity bean working and still can't find any info about this error on web. Your help would be greatly appreciated.

      I'm using jboss 3.2.1, mysql 4.1 alpha, mysql-connector-java-3.0.8-stable-bin.jar