[nbusers] Adding classpath to server

  • From: "wales321" < >
  • To:
  • Subject: [nbusers] Adding classpath to server
  • Date: Tue, 20 Nov 2012 19:12:32 -0500

I am creating a java servlet which invokes a method in another class which i 
use to manipulate data in my database. I have tested the methods separate 
from the servlet and they work fine. I right clicked on libraries and added 
my MySQL .jar file there which works fine. When i run it through the servlet 
though i get INFO: SQLExceptionjava.sql.SQLException: No suitable driver 
found for jdbc:mysql://localhost:3306/university
So i guessed i need to add the classpath to the server as well. I have read 
all the documentation and tried to find out where or how i add the jar file 
or class path, but have had no luck. Could someone help me out, as the 
program itself is fairly simple but i am stuck on a simple step like this.
The server i am running is glassfish btw






[nbusers] Adding classpath to server

wales321 11/21/2012

[nbusers] Re: Adding classpath to server

Edson Richter 11/21/2012

[nbusers] Adding classpath to server

wales321 11/21/2012

[nbusers] Re: Adding classpath to server

Edson Richter 11/21/2012

[nbusers] Adding classpath to server

wales321 11/21/2012

[nbusers] Re: Adding classpath to server

Edson Richter 11/21/2012

[nbusers] Adding classpath to server

wales321 11/21/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close