works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean
package), I see this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:sampledb;create=true
at
java.sql
perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package),
I see this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:sampledb;create=true
at
java.sql.DriverManager.getConnection(DriverM
requiring a running server or dæmon,
etc.). It all works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package),
I see this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:samp
ant to use Derby _in-memory_ backing some unit test cases
that need a database (not requiring a running server or dæmon,
etc.). It all works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package), I
see this and can find no solution:
java.sql.SQLEx
owever, when I build from the command line (mvn clean package), I
see this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:sampledb;create=true
at
java.sql.DriverManager.getConnection(DriverManager.java:689)
I only want to use Derby _in-memory_ backing some unit test cases
that need a database (not requiring a running server or dæmon,
etc.). It all works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package), I
see this and can
ne (mvn clean package), I
see this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:sampledb;create=true
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at
co
r dæmon, etc.). It
all works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package), I see
this and can find no solution:
java.sql.SQLException: No suitable driver found for
jdbc:derby:memory:sampledb;create=true
at
I only want to use Derby _in-memory_ backing some unit test cases that
need a database (not requiring a running server or dæmon, etc.). It all
works perfectly inside IntelliJ IDEA.
However, when I build from the command line (mvn clean package), I see
this and can find no so
class is using Derby in
standalone program (ran e.g. on Linux) *on the same host*, or in
Eclipse on my laptop, it all runs fine - I can connect to the db and
operate on it all right.
It's only when I deploy the thing remotely, I get exception
java.sql.SQLException: No suitable driver on line
Steve Morgan wrote:
I just started using Derby. I am using NetBeans 6.7.1 with JDK
1.6.0_17. I have included Derby.jar in my IDE libraries however the
system does not seem to be able to find the embedded driver. I cannot
find a library called Embedded Driver. Can anyone see what I am
doing
I just started using Derby. I am using NetBeans 6.7.1 with JDK 1.6.0_17. I have
included Derby.jar in my IDE libraries however the system does not seem to be
able to find the embedded driver. I cannot find a library called Embedded
Driver. Can anyone see what I am doing wrong? I have checked
not seem to be able to find the embedded driver. I cannot find a library
called Embedded Driver. Can anyone see what I am doing wrong? I
EmbeddedDriver is not a library, it is a class.
Can you post your code? That would make it easier to see what you are doing
wrong.
Can you compare your
teamderby wrote:
Hi Stephan,
Excellent, it worked!
i'm extremely grateful, you've ended a lot of frustration on my part and i
cannot thankyou enough for the help you've supplied.
the tutorial is excellently produced and i am sure will be a welcome
resource for other people attempting to set
Hi Stephan,
Excellent, it worked!
i'm extremely grateful, you've ended a lot of frustration on my part and i
cannot thankyou enough for the help you've supplied.
the tutorial is excellently produced and i am sure will be a welcome
resource for other people attempting to set up Derby in the
Hi Mike,
I didn't quote your reply, to ensure this tutorial-like thing is as
clean as possible.
I assume that you've already downloaded db-derby-10.4.2.0-bin.tar.gz and
apache-tomcat-6.0.18.tar.gz *to your home directory*. Every step shown
below is somewhere in or below the home directory.
Hi Stephan,
Thanks for the response. I have tried your suggestions but still no joy. The
same error message.
Is it possible I am putting the database in the wrong place?!
Thanks again,
Mike
--
View this message in context:
Below is the forwarded message that Mike sent to my e-mail address. I
wanted to reply on the list, so others may benefit from it as well:
quote
[EMAIL PROTECTED] wrote:
thanks for all the replys,
Steven, at this point i am simply trying to set up an tomcat webserver,
and run a derby
Excuse me, something went wrong while copying the content of web.xml...
The following line:
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml ns/javaee/web-app_2_5.xsd
Should be:
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
Stephan,
Thanks a lot for your response. Your time and effort is very much
appreciated.
I am unfortunately still having problems, the jsp message:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
I have followed your instructions
Mike,
Just to check, which JVM are you using? What is the output of 'java
-version'?
Did you make sure that both Tomcat and Derby where using the same JVM?
manu
teamderby wrote:
Stephan,
Thanks a lot for your response. Your time and effort is very much
appreciated.
I am unfortunately
Emmanuel Cecchet wrote:
Mike,
Just to check, which JVM are you using? What is the output of 'java
-version'?
Did you make sure that both Tomcat and Derby where using the same JVM?
Hi Emmanuel,
This seems to be irrelevant. Since the network driver is used to make
connections to the
Just to check, which JVM are you using? What is the output of 'java
-version'?
Did you make sure that both Tomcat and Derby where using the same JVM?
This seems to be irrelevant.
Well, if he uses a default Kaffee or gij, there are many classloader
issues with Tomcat.
I already had
Emmanuel Cecchet wrote:
Just to check, which JVM are you using? What is the output of 'java
-version'?
Did you make sure that both Tomcat and Derby where using the same JVM?
This seems to be irrelevant.
Well, if he uses a default Kaffee or gij, there are many classloader
issues with
Emmanuel,
Thanks for your reply. I have tried using derby.jar instead of
derbyclient.jar and the result is exactly the same. Is there any more advice
you can give me?
Thanks,
Mike
Emmanuel Cecchet-5 wrote:
Michael,
You should have derby.jar in the classpath if you want to
teamderby wrote:
Emmanuel,
Thanks for your reply. I have tried using derby.jar instead of
derbyclient.jar and the result is exactly the same. Is there any more advice
you can give me?
Hi Mike,
The error message you gave, means one of two things;
1) The URL is not a Derby URL (i.e. typos,
Michael Murray wrote:
hi guys,
I'm having a bit of trouble configuring apache tomcat to work with a
derby database on mac OS. Below are the steps I took. The error I get
when trying to acces the page from a jsp page is
java.sql.SQLException: No suitable driver. Can anyone please help,
i'd
Michael Murray wrote:
hi guys,
I'm having a bit of trouble configuring apache tomcat to work with a
derby database on mac OS.
You might start by following some of the existing tutorials, such
as http://db.apache.org/derby/papers/fortune_tut.html, and let us
know at what step in the tutorial
Mike,
Thanks for your reply. I have tried using derby.jar instead of
derbyclient.jar and the result is exactly the same. Is there any more advice
you can give me?
This is certainly a classpath issue. Be careful with classloader
inheritance in Tomcat.
Where did you copy derby.jar? What
hi guys,
I'm having a bit of trouble configuring apache tomcat to work with a
derby database on mac OS. Below are the steps I took. The error I get
when trying to acces the page from a jsp page is
java.sql.SQLException: No suitable driver. Can anyone please help,
i'd be very very grateful
Michael,
You should have derby.jar in the classpath if you want to use embedded
mode.
CLASSPATH=\
Applications/apache-tomcat-6.0.18/lib/derbyclient.jar:\
derbyclient.jar contains only the JDBC driver code
(http://db.apache.org/derby/docs/dev/adminguide/tadminappschangingyourclasspath.html)
%
31 matches
Mail list logo