Chapter 4 Error running example

  2 posts   Feedicon  
Replies: 1 - Last Post: March 30, 2011 13:10
by: pcroser
showing 1 - 2 of 2
 
Posted: March 30, 2011 12:57 by pcroser
I have had good success in Chapter 2 and 3 running examples with no poblems.
When I attempt to run the first example in chapter 4, I get this error
Class [org.apache.derby.jdbc.EmbeddedDriver] not found. I have looked at the POMS between chapter 3 and 4, they are the same except for the addition of the plugin.


Why would I not be able to resolve this class when it has worked for two previous chapters.
 
Posted: March 30, 2011 13:10 by pcroser
I had to uncomment the EmbeddedDirver and uncommment the ClientDriver line to get this to work.
<!-- Embedded mode -->
<!--<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>-->
<!--<property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:chapter04DB;create=true"/>-->
<!-- Client Server mode -->
<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
<property name="javax.persistence.jdbc.url" value="jdbc:derby://localhost:1527/chapter04DB;create=true"/>
Replies: 1 - Last Post: March 30, 2011 13:10
by: pcroser
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close