This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi guys... i have written a servlet program which performs a simple query from the datbase and displays the results.But my servlet is returning java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDrive exception.
But if i perform the same database operation from a normal .java file i am getting the results.Please help
Are you working from an IDE? Are you experting the IDE to deploy your app? If so, did you double-check that the IDE did indeed copy the JDBC JAR file as part of the deployed application?
P.S. You should really use a connection pool and manage the database connection directly in your servlet.