Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Help! Class not found java.lang.class
Help! Class not found java.lang.class [message #725876] Fri, 16 September 2011 04:00 Go to next message
Vo Son Ha is currently offline Vo Son HaFriend
Messages: 1
Registered: September 2011
Junior Member

		String url="jdbc:mysql://localhost:3306/loginexample";
		   Connection con=(Connection) DriverManager.getConnection(url, "root", "root");
		   Statement st=(Statement) con.createStatement();
		   ResultSet rss=st.executeQuery("select * from users");
		   int i =0;
		    String user=rss.getString(2);
		  }catch(SQLException e)
		            System.out.println("loi select");
		         catch(ClassNotFoundException e)

		        	 System.out.println("loi ket noi driver");


java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at com.myworld.datausers.users(
	at com.myworld.Controller.doPost(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ket noi driver

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.valves.AccessLogValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$ Source)
	at Source)

Somebody help me!!! Crying or Very Sad
Re: Help! Class not found java.lang.class [message #726087 is a reply to message #725876] Fri, 16 September 2011 14:06 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 15-Sep-11 22:01, Vo Son Ha wrote:
> [snip]
> Somebody help me!!! :cry:

You don't say how you get into this position. You're missing MySQL's
JDBC driver, that's all. I can offer this article that will tell you
what to do:
Previous Topic:You may have mapped two namespaces with elements of the same name to the same package name
Next Topic:Creating WTP project in code - Setting project location
Goto Forum:

Current Time: Mon Jun 25 17:55:49 GMT 2018

Powered by FUDForum. Page generated in 0.02076 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top