Re: java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
Posted by: Liem Nguyen
Date: June 13, 2005 01:49PM

I found this piece of code on the web used to test the connection. I ran it and it works. That makes me believe that my configuration is correct. But when I try to make a connection using jsp, I get this error: java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

I've tried using the same code directly in a jsp page and as a javabean....no luck. Anyone have any ideas?

import java.sql.*;

public class TestMysql
{
public static void main(String args[]) {
try {
/* Test loading driver */

String driver = "com.mysql.jdbc.Driver";

System.out.println( "=> loading driver:" );
Class.forName( driver );
System.out.println( "OK" );

/* Test the connection */

String url= "jdbc:mysql://localhost:3306/dbname&username=user&password=pass";

System.out.println( "=> connecting:" );
DriverManager.getConnection( url, "user", "pass" );
System.out.println( "OK" );
}
catch( Exception x ) {
x.printStackTrace();
}

}
}

Options: ReplyQuote


Subject
Written By
Posted
Re: java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
June 13, 2005 01:49PM
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.