This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes can't access database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "can Watch "can New topic
Author

can't access database

Budi Saputra
Greenhorn

Joined: Feb 17, 2009
Posts: 7
i have developed jsp application using netbean with build-in glassfish v2.
from other topic i have learn to deploy it without keeping netbeans running by creating war file and deploy it in java base web server.
i have try it, it work but i can't connect to my database.

i'm using Sun Java System Application Server to deploy it, and mySQL as database.
when i run the page it show "java.lang.ClassNotFoundException: coms.mysql.jdbc.Driver".
note: my jsp page work well if i'm running it from netbeans.

how can i make it connect to the database?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60748
    
  65

You need to include the jar file with driver in the web app.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't access database
 
Similar Threads
Integration of JSP and ASP
using hidden variables: different behaviour windows/linux
JSP deployed to OAS urgent
Connecting to the Java "derby" Netbeans database without Netbeans.
How to deploy My JSP web application on Server