Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 26th, 2002, 04:41 AM
loneill loneill is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 0 loneill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Class not found

I am trying to connect to Interbase database running on Tomcat. I have one error

An error occured between lines: 12 and 52 in the jsp file: /database/Connection.jsp

Generated servlet error:
F:\Tomcat\work\localhost\_\database\Connection$jsp.java:70: Class org.apache.jsp.DataSource not found.
DataSource dataSource = new interbase.interclient.DataSource();
^
1 error

I have done it exactly as it says in the books yet it will not run. Can anyone help me please. Here is my code:
<%@ page import="java.sql.*"%>
<%@ page import="interbase.interclient.DataSource.*"%>
<html>
<head>
<title></title>
<link rel="STYLESHEET" type="text/css" href="include/style.css">
</head>
<body bgcolor="#cccccc">
<%
DataSource dataSource = new interbase.interclient.DataSource();

try {

// Set the standard properties
dataSource.setNetworkProtocol("jdbc:interbase:"); /* set the network protocol */
dataSource.setServerName("//localhost"); /* the hostname or IP address of the server */
dataSource.setDatabaseName("c:/Jsptest.gdb"); /* the full path to your database file */
dataSource.setDataSourceName("SomeName"); /* a descriptive name */
dataSource.setDescription("SomeDescription"); /* a descriptive comment */
dataSource.setPortNumber(8080);


// Set the non-standard properties
dataSource.setSweepOnConnect(false); /* Perform a sweep when connecting */

// The following line actually starts up the database connection:
Connection con = dataSource.getConnection(SYSDBA,masterkey);

Reply With Quote
  #2  
Old June 26th, 2002, 09:13 AM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 39 m 5 sec
Reputation Power: 116
It cannot find the Interbase class files. You either need to make sure the (jar?) file(s) are/is in the correct place or that the classpath being used by the servlet engine correctly points to their location.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Class not found

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap