AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cloudscape & servlet

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Sebastien
Guest





PostPosted: Wed Dec 01, 2004 5:44 am    Post subject: Cloudscape & servlet Reply with quote



Hi everybody.
My problem is the following: to create a connection to a Cloudscape
database from an applet.
I'm able to create a program that can access a database and able to
create an applet that works fine.
But when I'm trying to create a link to a database from the applet I
get the usual message ClassNotFoundException for these lines:
protected String driver = "org.apache.derby.jdbc.EmbeddedDriver";
Class.forName( driver );
It sounds like a classpath problem but I have tried almost everything
and I am sure that my classpath is set correctly and point to the
right jars.
Any idea where that can come from ? Thanks,
Sebastien
Back to top
Wiseguy
Guest





PostPosted: Wed Dec 01, 2004 8:42 am    Post subject: Re: Cloudscape & servlet Reply with quote



[email]sebastien (AT) haaltruf (DOT) net[/email] (Sebastien) mumbled in
news:96526a82.0411302144.424db0a5 (AT) posting (DOT) google.com:

Quote:
Hi everybody.
My problem is the following: to create a connection to a Cloudscape
database from an applet.
I'm able to create a program that can access a database and able to
create an applet that works fine.
But when I'm trying to create a link to a database from the applet I
get the usual message ClassNotFoundException for these lines:
protected String driver = "org.apache.derby.jdbc.EmbeddedDriver";
Class.forName( driver );
It sounds like a classpath problem but I have tried almost everything
and I am sure that my classpath is set correctly and point to the
right jars.
Any idea where that can come from ? Thanks,
Sebastien

why are you using cloudscape for database access from an applet? I
thought cloudscape only allowed single user access? If you're writing
an applet to access a database, isn't it going to be used concurrently
by multiple users?

Try postgresql...much more robust databse package that allows concurrent
access and has nice features.

btw: is this an applet or a servlet? They are two different things. An
applet runs in a VM on your local machine and a servlet runs in a VM on
the webserver machine. This distinction could be why your classpath
isn't right.






Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.