db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kartha <karth...@gmail.com>
Subject Re: Derby and FatJar
Date Wed, 08 Nov 2006 06:05:01 GMT
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" <3rdshiftcoder@verizon.net>
>> Reply-To: "Derby Discussion" <derby-user@db.apache.org>
>> To: "'Derby Discussion'" <derby-user@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

>
>
>


Mime
View raw message