Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

Reply
Thread Tools

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

 
 
Maneesh
Guest
Posts: n/a
 
      08-03-2005
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.createData Source(BasicDataSource.java:730)
at
org.apache.commons.dbcp.BasicDataSource.getConnect ion(BasicDataSource.java:51
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(Http JspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:210)
at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:163)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:82
at
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)

 
Reply With Quote
 
 
 
 
Missaka Wijekoon
Guest
Posts: n/a
 
      08-05-2005
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
 
Reply With Quote
 
 
 
 
xyjshell@gmail.com
Guest
Posts: n/a
 
      08-05-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments