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 EJB and other Java EE Technologies and the fly likes cannot access javax.sql.DataSource 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 » EJB and other Java EE Technologies
Bookmark "cannot access javax.sql.DataSource" Watch "cannot access javax.sql.DataSource" New topic
Author

cannot access javax.sql.DataSource

Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
Hi
i've created an application to access a database using postgresql. The program works fine within the sun ONE IDE, but when i try to run it externally from the IDE it gives me this error: -
cannot access javax.sql.Datasource
file javax\sql\DataSource.class not found
I thought this was a part of JDBC, how can it be missing???
I new to java, could i be making a simple mistake?
TIA


Is there a light at the end of the tunnel ... or is it just the front of an approaching Train !!!
Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
i get the error while trying to set the connection source for a NBCachedRowSet: -
nBCachedRS.setConnectionSource(cSource);
like i say, this works ok inside sun ONE ... but i need it to run external to the IDE. Any help/ideas would be awsome TIA
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

It's a part of J2EE and should be in j2ee.jar
Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
Thanx for the help m8
I've fixed the problem, now i have another, but its regarding my manifest in the jar file for my program. It's telling me that is cannot locate main. I've put in the extra carraige return.
Manifest-Version: 1.0
Main-Class: CMSDatabase
(extra line here)
is this the correct layout for my manifest, ... oops i just realised shouldn't i take this to a different section of the forum hehe
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

It's OK, I can push you over to the J2EE forum
(consider it punishment for m8 )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot access javax.sql.DataSource
 
Similar Threads
Could not get the connection in struts database application
How to create single connection?
JBuilder and Datasources .....
Problem with javax.sql.DataSources......
acess to new file created while app is running