java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

Discussion in 'Java' started by Maneesh, Aug 3, 2005.

  1. Maneesh

    Maneesh Guest

    Hi,

    Can anyone help me for this exception which I am getting whil trying to
    conenct to MYSQL server thru TOMCAT.

    Thanks
    Maneesh

    org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
    class 'com.mysql.jdbc.Driver', cause:
    java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at
    org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:730)
    at
    org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
    at foo.DBTest.init(DBTest.java:23)
    at org.apache.jsp.test_jsp._jspService(test_jsp.java:51)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)
    Maneesh, Aug 3, 2005
    #1
    1. Advertising

  2. Maneesh wrote:
    > Hi,
    >
    > Can anyone help me for this exception which I am getting whil trying to
    > conenct to MYSQL server thru TOMCAT.
    >
    > Thanks
    > Maneesh
    >
    > org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
    > class 'com.mysql.jdbc.Driver', cause:
    > java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
    > at java.lang.Class.forName0(Native Method)
    > at java.lang.Class.forName(Class.java:164)

    Snip

    Did you include the mysql connector library in your class path?
    Something like:
    mysql-connector-java-3.0.7-stable-bin.jar
    If you don't have it, download it from mysql.com.

    -Misk
    Missaka Wijekoon, Aug 5, 2005
    #2
    1. Advertising

  3. Maneesh

    Guest

    copy the lib file of MYSQL JDBC driver to directory /WEB-INF/lib, or
    tomcat_home/common/lib

    Missaka Wijekoon :

    > Maneesh wrote:
    > > Hi,
    > >
    > > Can anyone help me for this exception which I am getting whil trying to
    > > conenct to MYSQL server thru TOMCAT.
    > >
    > > Thanks
    > > Maneesh
    > >
    > > org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
    > > class 'com.mysql.jdbc.Driver', cause:
    > > java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
    > > at java.lang.Class.forName0(Native Method)
    > > at java.lang.Class.forName(Class.java:164)

    > Snip
    >
    > Did you include the mysql connector library in your class path?
    > Something like:
    > mysql-connector-java-3.0.7-stable-bin.jar
    > If you don't have it, download it from mysql.com.
    >
    > -Misk
    , Aug 5, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bernd Oninger
    Replies:
    4
    Views:
    12,200
    GIMME
    Jun 21, 2004
  2. Replies:
    2
    Views:
    13,717
  3. Bernd Oninger
    Replies:
    3
    Views:
    2,861
    GIMME
    Jun 21, 2004
  4. Replies:
    1
    Views:
    2,116
    Irmen de Jong
    Jun 22, 2004
  5. dushkin
    Replies:
    11
    Views:
    15,082
    Flo 'Irian' Schaetz
    Jul 12, 2007
Loading...

Share This Page