 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sebastien Guest
|
Posted: Wed Dec 01, 2004 5:44 am Post subject: Cloudscape & servlet |
|
|
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
|
Posted: Wed Dec 01, 2004 8:42 am Post subject: Re: Cloudscape & servlet |
|
|
[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 |
|
 |
|
|
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
|
|