db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maxf11 <m.fecc...@mbm.it>
Subject Re: Derby with creme
Date Wed, 21 Sep 2011 12:14:55 GMT

I've tried this way but...it doesn't work.
I've modified source code of SimpleApp :

     EmbeddedSimpleDataSource ds = new EmbeddedSimpleDataSource();
     System.out.println("Loaded the appropriate driver.");

     Connection conn = null;
            /*
               The connection specifies create=true to cause
               the database to be created. To remove the database,
               remove the directory derbyDB and its contents.
               The directory derbyDB will be created under
               the directory that the system property
               derby.system.home points to, or the current
               directory if derby.system.home is not set.
             */
       ds.setDatabaseName("derbyDB");
       ds.setCreateDatabase("create");
       conn = ds.getConnection();

and I get this error:

Startup failed due to missing functionality for
org.apache.derby.iapi.services.stream.InfoStreams. Please ensure your
classpath includes the correct Derby software.
ERROR XBM02: Startup failed due to missing functionality for
org.apache.derby.iapi.services.stream.InfoStreams. Please ensure your
classpath includes the correct Derby software.
	at org.apache.derby.iapi.error.StandardException.newException()
	at org.apache.derby.iapi.services.monitor.Monitor.missingImplementation()
	at org.apache.derby.impl.services.monitor.TopService.bootModule()
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule()
	at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule()
	at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState()
	at org.apache.derby.impl.services.monitor.FileMonitor.<init>()
	at org.apache.derby.iapi.services.monitor.Monitor.startMonitor()
	at org.apache.derby.iapi.jdbc.JDBCBoot.boot()
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.findDriver()
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection()
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection()
	at SimpleApp.go()
	at SimpleApp.main()

exception thrown:
java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not
registered with the JDBC driver manager

Can you help me?

Thanks in advance,
 Max

-- 
View this message in context: http://old.nabble.com/Derby-with-creme-tp32326168p32503741.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message