Re: java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
Posted by: Rabin Bajracharya
Date: June 03, 2005 10:04AM

Hi All:

I've been using MySQL with Tomcat for a while but yesterday when I try to connect to MySQL using a Oracle Jdeveloper's Test environment I get a following error message.


05/06/03 10:43:05 java.lang.NoClassDefFoundError: org/aspectj/runtime/reflect/Factory
05/06/03 10:43:05 at java.lang.Class.forName0(Native Method)
05/06/03 10:43:05 at java.lang.Class.forName(Class.java:219)
05/06/03 10:43:05 at com.evermind.sql.DriverManagerDataSource.instantiateDataSourceDriver(DriverManagerDataSource.java:289)
05/06/03 10:43:05 at com.evermind.server.Application.initDataSource(Application.java:1691)
05/06/03 10:43:05 at com.evermind.server.Application.initDataSources(Application.java:2080)
05/06/03 10:43:05 at com.evermind.server.Application.preInit(Application.java:523)
05/06/03 10:43:05 at com.evermind.server.Application.setConfig(Application.java:169)
05/06/03 10:43:05 at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1987)
05/06/03 10:43:05 at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1926)
05/06/03 10:43:05 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1482)
05/06/03 10:43:05 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
05/06/03 10:43:05 at java.lang.Thread.run(Thread.java:534)




Is there a compatibility issue between Jdeveloper and MySQL drivers? So far I have tried following MySQL Connector/J.

MySQL Connector/J 3.1
MySQL Connector/J 3.0
MySQL Connector/J 3.2.0 (alpha)

Thanks!!

By the way here is the simple jsp I tried.

<%@ page import="java.sql.*" %>
<%@ page import="java.util.*, java.lang.*" %>
<%
Connection ocon = null;
Class.forName("com.mysql.jdbc.Driver");
ocon = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root", "1tennis2");
Statement stmt = ocon.createStatement();
%>
<html>
<head>
<title>Test</title>
</head>
<body>
<%
ResultSet rc = stmt.executeQuery("SELECT * FROM emaillists");
rc.next();
%>
Found <% out.println("Total Records : " + rc.getInt(1) + "");
rc.close();
%>
</body>
<%
if (ocon !=null) ocon.close();
if (stmt !=null) stmt.close();
%>
</html>

Options: ReplyQuote


Subject
Written By
Posted
Re: java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
June 03, 2005 10:04AM
March 14, 2007 04:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.