You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Prakash Rao Kanthi <ka...@hotmail.com> on 2006/11/08 01:27:32 UTC

Derby and FatJar

Hi There,

I am trying to integrate my application based on derby with Eclipse FatJar 
Plugin into single Jar file. After the Jar is created, following is the 
error i am getting:

=============================
Startup failed due to missing functionality for 
org.apache.derby.iapi.services.s
tream.InfoStreams. Please ensure your classpath includes the correct Derby 
softw
are.
ERROR XBM02: Startup failed due to missing functionality for 
org.apache.derby.ia
pi.services.stream.InfoStreams. Please ensure your classpath includes the 
correc
t Derby software.
        at 
org.apache.derby.iapi.error.StandardException.newException(Unknown So
urce)
        at 
org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
Unknown Source)
        at 
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
n Source)
        at 
org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
own Source)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
wn Source)
        at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown 
Sou
rce)
        at 
org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
ource)
        at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
        at com.debit.db.DBUtil.createDB(DBUtil.java:135)
        at com.debit.db.DBUtil.<init>(DBUtil.java:61)
        at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
        at com.debit.common.VassMain.<init>(VassMain.java:22)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)

java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.createDB(DBUtil.java:139)
        at com.debit.db.DBUtil.<init>(DBUtil.java:61)
        at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
        at com.debit.common.VassMain.<init>(VassMain.java:22)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
Lang: English (US)
Executing - cmd.exe /C regedit /S delReg.reg
Loading Localization Properties
getResourceBundle()
BaseName : /properties/VAPPS
Retrieved rb from hashtable: Now checking rb for null
in rb == null, creating new rb
Country Name :: English (US)
Creating resource bundle for US English language
Tue Nov 07 18:07:16 CST 2006
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:612)
        at com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
        at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
        at com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:612)
        at com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
before putting rb in hashtable
after putting rb in hashtable
        at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
va:41)
        at com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)
Exception in thread "Thread-0" java.lang.NullPointerException
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:619)
        at com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
        at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
        at com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)

java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
About to stop Main.

=============================

Final jar structure

com/simontuff... : OneJar stuff
lib/... : derby.jar along with other jars
main/main.jar : All my class files here alon with the one that initializes 
DB.
META-INF/MANIFEST.MF: Contents are as below
         ---------
         Manifest-Version: 1.0
         Created-By: Fat Jar/One-JAR Eclipse Plug-In
         Main-Class: com.simontuffs.onejar.Boot
         ---------

and inside main.jar there is a MANIFEST dir/file that points to my 
application main. NO Class-path entry in either MANIFEST file.


Thanks for your help,
PK

_________________________________________________________________
Try the next generation of search with Windows Live Search today!  
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline


Re: Derby and FatJar

Posted by Prakash Rao Kanthi <ka...@hotmail.com>.
I am thinking, as derby.jar along with other JAR files is packed inside one 
gigantic JAR, some of the derby classes are not able to either find other 
class files or properties files. like DBMS.properties, modules.properties, 
etc...

Any thoughts from derby experts out there???

Thanks,
PK


>From: Rajesh Kartha <ka...@gmail.com>
>Reply-To: "Derby Discussion" <de...@db.apache.org>
>To: Derby Discussion <de...@db.apache.org>
>Subject: Re: Derby and FatJar
>Date: Tue, 07 Nov 2006 22:05:01 -0800
>
>What version of JDK are you using and on what platform ?
>
>There was a thread on the Derby user list  quite a while back on the same 
>error and it turned out to be a gcj issue:
>http://mail-archives.apache.org/mod_mbox/db-derby-user/200508.mbox/%3c42F8FFAD.1050304@apache.org%3e
>
>Could your's be similar ?
>
>I have not used the FatJar plug-in so cannot comment much on that yet.
>
>-Rajesh
>
>
>Prakash Rao Kanthi wrote:
>
>>Thanks for the response.
>>
>>I already added all those jars to Fat-Jar lib directory. I do need 
>>embedded derby. More over my problem is with bundling of my stuff into a 
>>single JAR.
>>
>>>>From eclipse everything works just fine.
>>
>>
>>PK
>>
>>
>>>From: "Jim McNamara" <3r...@verizon.net>
>>>Reply-To: "Derby Discussion" <de...@db.apache.org>
>>>To: "'Derby Discussion'" <de...@db.apache.org>
>>>Subject: RE: Derby and FatJar
>>>Date: Tue, 7 Nov 2006 20:40:37 -0500
>>>
>>>Hi Prakash -
>>>
>>>I have derbyclient.jar, derbynet.jar and derbytools.jar for my jars in
>>>the project  buildpath.  Are you sure you need embedded?  I understand
>>>some people choose derby based on that criteria but it is easier to
>>>develop without it and when you are finished you can always switch back
>>>to embedded.  If you do need embedded, I am not quite sure. In that
>>>case, someone else can help.
>>>
>>>You can also set the classpath for the server batch file to start the
>>>network server if you edit it.  I start the server with a batch file
>>>named startDerbyServer.bat that has these lines before I click on the
>>>fatjar executable.
>>>
>>>---------------startDerbyServer.bat-------------------------------------
>>>----
>>>cd c:\derby\frameworks\NetworkServer\bin
>>>call setNetworkServerCP.bat
>>>call NetworkServerControl.bat start
>>>------------------------------------------------------------------------
>>>----
>>>
>>>then, my setNetworkServerCP.bat includes any classpath I need for
>>>running derby I need.
>>>
>>>I hope some of this information helps you.
>>>
>>>thanks,
>>>jim
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: Prakash Rao Kanthi [mailto:kanthip@hotmail.com]
>>>Sent: Tuesday, November 07, 2006 7:28 PM
>>>To: derby-user@db.apache.org
>>>Subject: Derby and FatJar
>>>
>>>Hi There,
>>>
>>>I am trying to integrate my application based on derby with Eclipse
>>>FatJar
>>>Plugin into single Jar file. After the Jar is created, following is the
>>>error i am getting:
>>>
>>>=============================
>>>Startup failed due to missing functionality for
>>>org.apache.derby.iapi.services.s
>>>tream.InfoStreams. Please ensure your classpath includes the correct
>>>Derby
>>>softw
>>>are.
>>>ERROR XBM02: Startup failed due to missing functionality for
>>>org.apache.derby.ia
>>>pi.services.stream.InfoStreams. Please ensure your classpath includes
>>>the
>>>correc
>>>t Derby software.
>>>         at
>>>org.apache.derby.iapi.error.StandardException.newException(Unknown So
>>>urce)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
>>>Unknown Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
>>>Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
>>>n Source)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
>>>own Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
>>>wn Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown
>>>Sou
>>>rce)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
>>>ource)
>>>         at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
>>>         at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
>>>         at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
>>>         at com.debit.db.DBUtil.createDB(DBUtil.java:135)
>>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.createDB(DBUtil.java:139)
>>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>Lang: English (US)
>>>Executing - cmd.exe /C regedit /S delReg.reg
>>>Loading Localization Properties
>>>getResourceBundle()
>>>BaseName : /properties/VAPPS
>>>Retrieved rb from hashtable: Now checking rb for null
>>>in rb == null, creating new rb
>>>Country Name :: English (US)
>>>Creating resource bundle for US English language
>>>Tue Nov 07 18:07:16 CST 2006
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:612)
>>>         at
>>>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:612)
>>>         at
>>>com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
>>>before putting rb in hashtable
>>>after putting rb in hashtable
>>>         at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
>>>va:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>Exception in thread "Thread-0" java.lang.NullPointerException
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:619)
>>>         at
>>>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>About to stop Main.
>>>
>>>=============================
>>>
>>>Final jar structure
>>>
>>>com/simontuff... : OneJar stuff
>>>lib/... : derby.jar along with other jars
>>>main/main.jar : All my class files here alon with the one that
>>>initializes
>>>DB.
>>>META-INF/MANIFEST.MF: Contents are as below
>>>          ---------
>>>          Manifest-Version: 1.0
>>>          Created-By: Fat Jar/One-JAR Eclipse Plug-In
>>>          Main-Class: com.simontuffs.onejar.Boot
>>>          ---------
>>>
>>>and inside main.jar there is a MANIFEST dir/file that points to my
>>>application main. NO Class-path entry in either MANIFEST file.
>>>
>>>
>>>Thanks for your help,
>>>PK
>>>
>>>_________________________________________________________________
>>>Try the next generation of search with Windows Live Search today!
>>>http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour
>>>ce=hmtagline
>>>
>>
>>_________________________________________________________________
>>Try the next generation of search with Windows Live Search today!  
>>http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
>>
>>
>>
>

_________________________________________________________________
Get FREE company branded e-mail accounts and business Web site from 
Microsoft Office Live 
http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/


Re: Derby and FatJar

Posted by Prakash Rao Kanthi <ka...@hotmail.com>.
I am using JDK 5.0 on windows XP. So gcj classpath may not be an issue.

Even when all derby JARs are in classpath (atleast derby.jar is loaded 
correctly as it shows up in the error stack. all other jars are in same 
place. so i would imagine they all will be loaded correctly) why would derby 
throw errors 
(org.apache.derby.iapi.services.monitor.Monitor.missingImplementation) 
related to 'org.apache.derby.iapi.services.stream.InfoStreams'?

Thanks,
PK


>From: Rajesh Kartha <ka...@gmail.com>
>Reply-To: "Derby Discussion" <de...@db.apache.org>
>To: Derby Discussion <de...@db.apache.org>
>Subject: Re: Derby and FatJar
>Date: Tue, 07 Nov 2006 22:05:01 -0800
>
>What version of JDK are you using and on what platform ?
>
>There was a thread on the Derby user list  quite a while back on the same 
>error and it turned out to be a gcj issue:
>http://mail-archives.apache.org/mod_mbox/db-derby-user/200508.mbox/%3c42F8FFAD.1050304@apache.org%3e
>
>Could your's be similar ?
>
>I have not used the FatJar plug-in so cannot comment much on that yet.
>
>-Rajesh
>
>
>Prakash Rao Kanthi wrote:
>
>>Thanks for the response.
>>
>>I already added all those jars to Fat-Jar lib directory. I do need 
>>embedded derby. More over my problem is with bundling of my stuff into a 
>>single JAR.
>>
>>>>From eclipse everything works just fine.
>>
>>
>>PK
>>
>>
>>>From: "Jim McNamara" <3r...@verizon.net>
>>>Reply-To: "Derby Discussion" <de...@db.apache.org>
>>>To: "'Derby Discussion'" <de...@db.apache.org>
>>>Subject: RE: Derby and FatJar
>>>Date: Tue, 7 Nov 2006 20:40:37 -0500
>>>
>>>Hi Prakash -
>>>
>>>I have derbyclient.jar, derbynet.jar and derbytools.jar for my jars in
>>>the project  buildpath.  Are you sure you need embedded?  I understand
>>>some people choose derby based on that criteria but it is easier to
>>>develop without it and when you are finished you can always switch back
>>>to embedded.  If you do need embedded, I am not quite sure. In that
>>>case, someone else can help.
>>>
>>>You can also set the classpath for the server batch file to start the
>>>network server if you edit it.  I start the server with a batch file
>>>named startDerbyServer.bat that has these lines before I click on the
>>>fatjar executable.
>>>
>>>---------------startDerbyServer.bat-------------------------------------
>>>----
>>>cd c:\derby\frameworks\NetworkServer\bin
>>>call setNetworkServerCP.bat
>>>call NetworkServerControl.bat start
>>>------------------------------------------------------------------------
>>>----
>>>
>>>then, my setNetworkServerCP.bat includes any classpath I need for
>>>running derby I need.
>>>
>>>I hope some of this information helps you.
>>>
>>>thanks,
>>>jim
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: Prakash Rao Kanthi [mailto:kanthip@hotmail.com]
>>>Sent: Tuesday, November 07, 2006 7:28 PM
>>>To: derby-user@db.apache.org
>>>Subject: Derby and FatJar
>>>
>>>Hi There,
>>>
>>>I am trying to integrate my application based on derby with Eclipse
>>>FatJar
>>>Plugin into single Jar file. After the Jar is created, following is the
>>>error i am getting:
>>>
>>>=============================
>>>Startup failed due to missing functionality for
>>>org.apache.derby.iapi.services.s
>>>tream.InfoStreams. Please ensure your classpath includes the correct
>>>Derby
>>>softw
>>>are.
>>>ERROR XBM02: Startup failed due to missing functionality for
>>>org.apache.derby.ia
>>>pi.services.stream.InfoStreams. Please ensure your classpath includes
>>>the
>>>correc
>>>t Derby software.
>>>         at
>>>org.apache.derby.iapi.error.StandardException.newException(Unknown So
>>>urce)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
>>>Unknown Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
>>>Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
>>>n Source)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
>>>own Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
>>>wn Source)
>>>         at
>>>org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown
>>>Sou
>>>rce)
>>>         at
>>>org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
>>>ource)
>>>         at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
>>>         at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
>>>         at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
>>>         at com.debit.db.DBUtil.createDB(DBUtil.java:135)
>>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.createDB(DBUtil.java:139)
>>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at
>>>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
>>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>Lang: English (US)
>>>Executing - cmd.exe /C regedit /S delReg.reg
>>>Loading Localization Properties
>>>getResourceBundle()
>>>BaseName : /properties/VAPPS
>>>Retrieved rb from hashtable: Now checking rb for null
>>>in rb == null, creating new rb
>>>Country Name :: English (US)
>>>Creating resource bundle for US English language
>>>Tue Nov 07 18:07:16 CST 2006
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:612)
>>>         at
>>>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:612)
>>>         at
>>>com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
>>>before putting rb in hashtable
>>>after putting rb in hashtable
>>>         at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
>>>va:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>Exception in thread "Thread-0" java.lang.NullPointerException
>>>         at
>>>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>>>.java:619)
>>>         at
>>>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>>         at
>>>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>>
>>>java.sql.SQLException: No suitable driver
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>java.lang.NullPointerException
>>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
>>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>>         at
>>>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>>         at
>>>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>>>a:51)
>>>         at
>>>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>>About to stop Main.
>>>
>>>=============================
>>>
>>>Final jar structure
>>>
>>>com/simontuff... : OneJar stuff
>>>lib/... : derby.jar along with other jars
>>>main/main.jar : All my class files here alon with the one that
>>>initializes
>>>DB.
>>>META-INF/MANIFEST.MF: Contents are as below
>>>          ---------
>>>          Manifest-Version: 1.0
>>>          Created-By: Fat Jar/One-JAR Eclipse Plug-In
>>>          Main-Class: com.simontuffs.onejar.Boot
>>>          ---------
>>>
>>>and inside main.jar there is a MANIFEST dir/file that points to my
>>>application main. NO Class-path entry in either MANIFEST file.
>>>
>>>
>>>Thanks for your help,
>>>PK
>>>
>>>_________________________________________________________________
>>>Try the next generation of search with Windows Live Search today!
>>>http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour
>>>ce=hmtagline
>>>
>>
>>_________________________________________________________________
>>Try the next generation of search with Windows Live Search today!  
>>http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
>>
>>
>>
>

_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with 
Live Search! 
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline


Re: Derby and FatJar

Posted by Rajesh Kartha <ka...@gmail.com>.
What version of JDK are you using and on what platform ?

There was a thread on the Derby user list  quite a while back on the 
same error and it turned out to be a gcj issue:
http://mail-archives.apache.org/mod_mbox/db-derby-user/200508.mbox/%3c42F8FFAD.1050304@apache.org%3e

Could your's be similar ?

I have not used the FatJar plug-in so cannot comment much on that yet.

-Rajesh


Prakash Rao Kanthi wrote:

> Thanks for the response.
>
> I already added all those jars to Fat-Jar lib directory. I do need 
> embedded derby. More over my problem is with bundling of my stuff into 
> a single JAR.
>
>> From eclipse everything works just fine.
>
>
> PK
>
>
>> From: "Jim McNamara" <3r...@verizon.net>
>> Reply-To: "Derby Discussion" <de...@db.apache.org>
>> To: "'Derby Discussion'" <de...@db.apache.org>
>> Subject: RE: Derby and FatJar
>> Date: Tue, 7 Nov 2006 20:40:37 -0500
>>
>> Hi Prakash -
>>
>> I have derbyclient.jar, derbynet.jar and derbytools.jar for my jars in
>> the project  buildpath.  Are you sure you need embedded?  I understand
>> some people choose derby based on that criteria but it is easier to
>> develop without it and when you are finished you can always switch back
>> to embedded.  If you do need embedded, I am not quite sure. In that
>> case, someone else can help.
>>
>> You can also set the classpath for the server batch file to start the
>> network server if you edit it.  I start the server with a batch file
>> named startDerbyServer.bat that has these lines before I click on the
>> fatjar executable.
>>
>> ---------------startDerbyServer.bat-------------------------------------
>> ----
>> cd c:\derby\frameworks\NetworkServer\bin
>> call setNetworkServerCP.bat
>> call NetworkServerControl.bat start
>> ------------------------------------------------------------------------
>> ----
>>
>> then, my setNetworkServerCP.bat includes any classpath I need for
>> running derby I need.
>>
>> I hope some of this information helps you.
>>
>> thanks,
>> jim
>>
>>
>>
>> -----Original Message-----
>> From: Prakash Rao Kanthi [mailto:kanthip@hotmail.com]
>> Sent: Tuesday, November 07, 2006 7:28 PM
>> To: derby-user@db.apache.org
>> Subject: Derby and FatJar
>>
>> Hi There,
>>
>> I am trying to integrate my application based on derby with Eclipse
>> FatJar
>> Plugin into single Jar file. After the Jar is created, following is the
>> error i am getting:
>>
>> =============================
>> Startup failed due to missing functionality for
>> org.apache.derby.iapi.services.s
>> tream.InfoStreams. Please ensure your classpath includes the correct
>> Derby
>> softw
>> are.
>> ERROR XBM02: Startup failed due to missing functionality for
>> org.apache.derby.ia
>> pi.services.stream.InfoStreams. Please ensure your classpath includes
>> the
>> correc
>> t Derby software.
>>         at
>> org.apache.derby.iapi.error.StandardException.newException(Unknown So
>> urce)
>>         at
>> org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
>> Unknown Source)
>>         at
>> org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
>> Source)
>>         at
>> org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
>> n Source)
>>         at
>> org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
>> own Source)
>>         at
>> org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
>> wn Source)
>>         at
>> org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown
>> Sou
>> rce)
>>         at
>> org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
>> ource)
>>         at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
>>         at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
>>         at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
>>         at com.debit.db.DBUtil.createDB(DBUtil.java:135)
>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>>
>> java.sql.SQLException: No suitable driver
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>         at com.debit.db.DBUtil.createDB(DBUtil.java:139)
>>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> java.sql.SQLException: No suitable driver
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at
>> com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> java.lang.NullPointerException
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at
>> com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> java.lang.NullPointerException
>>         at
>> com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
>>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> Lang: English (US)
>> Executing - cmd.exe /C regedit /S delReg.reg
>> Loading Localization Properties
>> getResourceBundle()
>> BaseName : /properties/VAPPS
>> Retrieved rb from hashtable: Now checking rb for null
>> in rb == null, creating new rb
>> Country Name :: English (US)
>> Creating resource bundle for US English language
>> Tue Nov 07 18:07:16 CST 2006
>> java.sql.SQLException: No suitable driver
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at
>> com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>> .java:612)
>>         at
>> com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>         at
>> com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>         at com.debit.common.VassMain.run(VassMain.java:37)
>> java.lang.NullPointerException
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at
>> com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>> .java:612)
>>         at
>> com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
>> before putting rb in hashtable
>> after putting rb in hashtable
>>         at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
>> va:41)
>>         at
>> com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>         at com.debit.common.VassMain.run(VassMain.java:37)
>> Exception in thread "Thread-0" java.lang.NullPointerException
>>         at
>> com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>> .java:619)
>>         at
>> com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>>         at
>> com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>>         at com.debit.common.VassMain.run(VassMain.java:37)
>>
>> java.sql.SQLException: No suitable driver
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at java.sql.DriverManager.getConnection(Unknown Source)
>>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>         at
>> com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>         at
>> com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>> a:51)
>>         at
>> com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> java.lang.NullPointerException
>>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>         at
>> com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>         at
>> com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>> a:51)
>>         at
>> com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> java.lang.NullPointerException
>>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
>>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>>         at
>> com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>>         at
>> com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>> a:51)
>>         at
>> com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>> About to stop Main.
>>
>> =============================
>>
>> Final jar structure
>>
>> com/simontuff... : OneJar stuff
>> lib/... : derby.jar along with other jars
>> main/main.jar : All my class files here alon with the one that
>> initializes
>> DB.
>> META-INF/MANIFEST.MF: Contents are as below
>>          ---------
>>          Manifest-Version: 1.0
>>          Created-By: Fat Jar/One-JAR Eclipse Plug-In
>>          Main-Class: com.simontuffs.onejar.Boot
>>          ---------
>>
>> and inside main.jar there is a MANIFEST dir/file that points to my
>> application main. NO Class-path entry in either MANIFEST file.
>>
>>
>> Thanks for your help,
>> PK
>>
>> _________________________________________________________________
>> Try the next generation of search with Windows Live Search today!
>> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour
>> ce=hmtagline
>>
>
> _________________________________________________________________
> Try the next generation of search with Windows Live Search today!  
> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline 
>
>
>


RE: Derby and FatJar

Posted by Prakash Rao Kanthi <ka...@hotmail.com>.
Thanks for the response.

I already added all those jars to Fat-Jar lib directory. I do need embedded 
derby. More over my problem is with bundling of my stuff into a single JAR. 
>From eclipse everything works just fine.

PK


>From: "Jim McNamara" <3r...@verizon.net>
>Reply-To: "Derby Discussion" <de...@db.apache.org>
>To: "'Derby Discussion'" <de...@db.apache.org>
>Subject: RE: Derby and FatJar
>Date: Tue, 7 Nov 2006 20:40:37 -0500
>
>Hi Prakash -
>
>I have derbyclient.jar, derbynet.jar and derbytools.jar for my jars in
>the project  buildpath.  Are you sure you need embedded?  I understand
>some people choose derby based on that criteria but it is easier to
>develop without it and when you are finished you can always switch back
>to embedded.  If you do need embedded, I am not quite sure. In that
>case, someone else can help.
>
>You can also set the classpath for the server batch file to start the
>network server if you edit it.  I start the server with a batch file
>named startDerbyServer.bat that has these lines before I click on the
>fatjar executable.
>
>---------------startDerbyServer.bat-------------------------------------
>----
>cd c:\derby\frameworks\NetworkServer\bin
>call setNetworkServerCP.bat
>call NetworkServerControl.bat start
>------------------------------------------------------------------------
>----
>
>then, my setNetworkServerCP.bat includes any classpath I need for
>running derby I need.
>
>I hope some of this information helps you.
>
>thanks,
>jim
>
>
>
>-----Original Message-----
>From: Prakash Rao Kanthi [mailto:kanthip@hotmail.com]
>Sent: Tuesday, November 07, 2006 7:28 PM
>To: derby-user@db.apache.org
>Subject: Derby and FatJar
>
>Hi There,
>
>I am trying to integrate my application based on derby with Eclipse
>FatJar
>Plugin into single Jar file. After the Jar is created, following is the
>error i am getting:
>
>=============================
>Startup failed due to missing functionality for
>org.apache.derby.iapi.services.s
>tream.InfoStreams. Please ensure your classpath includes the correct
>Derby
>softw
>are.
>ERROR XBM02: Startup failed due to missing functionality for
>org.apache.derby.ia
>pi.services.stream.InfoStreams. Please ensure your classpath includes
>the
>correc
>t Derby software.
>         at
>org.apache.derby.iapi.error.StandardException.newException(Unknown So
>urce)
>         at
>org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
>Unknown Source)
>         at
>org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
>Source)
>         at
>org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
>n Source)
>         at
>org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
>own Source)
>         at
>org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
>wn Source)
>         at
>org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown
>Sou
>rce)
>         at
>org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
>ource)
>         at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
>         at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
>         at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
>         at com.debit.db.DBUtil.createDB(DBUtil.java:135)
>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>
>java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>         at com.debit.db.DBUtil.createDB(DBUtil.java:139)
>         at com.debit.db.DBUtil.<init>(DBUtil.java:61)
>         at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
>         at com.debit.common.VassMain.<init>(VassMain.java:22)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at
>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>java.lang.NullPointerException
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at
>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>java.lang.NullPointerException
>         at
>com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
>         at com.debit.common.VassConfig.<init>(VassConfig.java:43)
>         at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
>         at com.debit.common.VassMain.<init>(VassMain.java:25)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:69)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>Lang: English (US)
>Executing - cmd.exe /C regedit /S delReg.reg
>Loading Localization Properties
>getResourceBundle()
>BaseName : /properties/VAPPS
>Retrieved rb from hashtable: Now checking rb for null
>in rb == null, creating new rb
>Country Name :: English (US)
>Creating resource bundle for US English language
>Tue Nov 07 18:07:16 CST 2006
>java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at
>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>.java:612)
>         at
>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>         at
>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>         at com.debit.common.VassMain.run(VassMain.java:37)
>java.lang.NullPointerException
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at
>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>.java:612)
>         at
>com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
>before putting rb in hashtable
>after putting rb in hashtable
>         at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
>va:41)
>         at
>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>         at com.debit.common.VassMain.run(VassMain.java:37)
>Exception in thread "Thread-0" java.lang.NullPointerException
>         at
>com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
>.java:619)
>         at
>com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
>         at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
>         at
>com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
>         at com.debit.common.VassMain.run(VassMain.java:37)
>
>java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>         at
>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>         at
>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>a:51)
>         at
>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>java.lang.NullPointerException
>         at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>         at
>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>         at
>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>a:51)
>         at
>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>java.lang.NullPointerException
>         at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
>         at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
>         at
>com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
>         at
>com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
>a:51)
>         at
>com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
>         at com.debit.frontend.VassConsole.main(VassConsole.java:103)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.simontuffs.onejar.Boot.run(Boot.java:247)
>         at com.simontuffs.onejar.Boot.main(Boot.java:105)
>About to stop Main.
>
>=============================
>
>Final jar structure
>
>com/simontuff... : OneJar stuff
>lib/... : derby.jar along with other jars
>main/main.jar : All my class files here alon with the one that
>initializes
>DB.
>META-INF/MANIFEST.MF: Contents are as below
>          ---------
>          Manifest-Version: 1.0
>          Created-By: Fat Jar/One-JAR Eclipse Plug-In
>          Main-Class: com.simontuffs.onejar.Boot
>          ---------
>
>and inside main.jar there is a MANIFEST dir/file that points to my
>application main. NO Class-path entry in either MANIFEST file.
>
>
>Thanks for your help,
>PK
>
>_________________________________________________________________
>Try the next generation of search with Windows Live Search today!
>http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour
>ce=hmtagline
>

_________________________________________________________________
Try the next generation of search with Windows Live Search today!  
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline


RE: Derby and FatJar

Posted by Jim McNamara <3r...@verizon.net>.
Hi Prakash -

I have derbyclient.jar, derbynet.jar and derbytools.jar for my jars in
the project  buildpath.  Are you sure you need embedded?  I understand
some people choose derby based on that criteria but it is easier to
develop without it and when you are finished you can always switch back
to embedded.  If you do need embedded, I am not quite sure. In that
case, someone else can help.

You can also set the classpath for the server batch file to start the
network server if you edit it.  I start the server with a batch file
named startDerbyServer.bat that has these lines before I click on the
fatjar executable.

---------------startDerbyServer.bat-------------------------------------
----
cd c:\derby\frameworks\NetworkServer\bin
call setNetworkServerCP.bat
call NetworkServerControl.bat start
------------------------------------------------------------------------
----

then, my setNetworkServerCP.bat includes any classpath I need for
running derby I need.

I hope some of this information helps you.

thanks,
jim



-----Original Message-----
From: Prakash Rao Kanthi [mailto:kanthip@hotmail.com] 
Sent: Tuesday, November 07, 2006 7:28 PM
To: derby-user@db.apache.org
Subject: Derby and FatJar

Hi There,

I am trying to integrate my application based on derby with Eclipse
FatJar 
Plugin into single Jar file. After the Jar is created, following is the 
error i am getting:

=============================
Startup failed due to missing functionality for 
org.apache.derby.iapi.services.s
tream.InfoStreams. Please ensure your classpath includes the correct
Derby 
softw
are.
ERROR XBM02: Startup failed due to missing functionality for 
org.apache.derby.ia
pi.services.stream.InfoStreams. Please ensure your classpath includes
the 
correc
t Derby software.
        at 
org.apache.derby.iapi.error.StandardException.newException(Unknown So
urce)
        at 
org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(
Unknown Source)
        at 
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
n Source)
        at 
org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unkn
own Source)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unkno
wn Source)
        at
org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown 
Sou
rce)
        at 
org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S
ource)
        at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
        at com.debit.db.DBUtil.createDB(DBUtil.java:135)
        at com.debit.db.DBUtil.<init>(DBUtil.java:61)
        at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
        at com.debit.common.VassMain.<init>(VassMain.java:22)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)

java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.createDB(DBUtil.java:139)
        at com.debit.db.DBUtil.<init>(DBUtil.java:61)
        at com.debit.db.DBUtil.getInstance(DBUtil.java:68)
        at com.debit.common.VassMain.<init>(VassMain.java:22)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at
com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at
com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:254)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at
com.debit.db.UserCustoms.getAllUserCustoms(UserCustoms.java:259)
        at com.debit.common.VassConfig.<init>(VassConfig.java:43)
        at com.debit.common.VassConfig.getInstance(VassConfig.java:64)
        at com.debit.common.VassMain.<init>(VassMain.java:25)
        at com.debit.frontend.VassConsole.main(VassConsole.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
Lang: English (US)
Executing - cmd.exe /C regedit /S delReg.reg
Loading Localization Properties
getResourceBundle()
BaseName : /properties/VAPPS
Retrieved rb from hashtable: Now checking rb for null
in rb == null, creating new rb
Country Name :: English (US)
Creating resource bundle for US English language
Tue Nov 07 18:07:16 CST 2006
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:612)
        at
com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
        at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
        at
com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:612)
        at
com.debit.apps.remedy.CalEngine.updateTasks(CalEngine.java:94)
before putting rb in hashtable
after putting rb in hashtable
        at com.debit.apps.remedy.CalEngine.<init>(CalEngine.ja
va:41)
        at
com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)
Exception in thread "Thread-0" java.lang.NullPointerException
        at 
com.debit.db.CalendarEvents.getAllCalendarEventsVector(CalendarEvents
.java:619)
        at
com.debit.apps.calendar.CalEngine.updateTasks(CalEngine.java:94)
        at com.debit.apps.calendar.CalEngine.<init>(CalEngine.java:41)
        at
com.debit.apps.calendar.CalEngine.getInstance(CalEngine.java:119)
        at com.debit.common.VassMain.run(VassMain.java:37)

java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.debit.db.DBUtil.getConnection(DBUtil.java:175)
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at
com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.DBUtil.getStatement(DBUtil.java:91)
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:389)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at
com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
java.lang.NullPointerException
        at com.debit.db.Friends.getAllFriendsVector(Friends.java:395)
        at com.debit.model.DebitDataModel.<init>(VogueDataModel.java:54)
        at 
com.debit.model.DebitDataModel.getInstance(VogueDataModel.java:163)
        at 
com.debit.frontend.FriendsTableActions.<init>(FriendsTableActions.jav
a:51)
        at
com.debit.frontend.VassConsole.loadTable(VassConsole.java:190)
        at com.debit.frontend.VassConsole.main(VassConsole.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:247)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)
About to stop Main.

=============================

Final jar structure

com/simontuff... : OneJar stuff
lib/... : derby.jar along with other jars
main/main.jar : All my class files here alon with the one that
initializes 
DB.
META-INF/MANIFEST.MF: Contents are as below
         ---------
         Manifest-Version: 1.0
         Created-By: Fat Jar/One-JAR Eclipse Plug-In
         Main-Class: com.simontuffs.onejar.Boot
         ---------

and inside main.jar there is a MANIFEST dir/file that points to my 
application main. NO Class-path entry in either MANIFEST file.


Thanks for your help,
PK

_________________________________________________________________
Try the next generation of search with Windows Live Search today!  
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour
ce=hmtagline