This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 20050922 ] [ JDK VERSION : 1.5.0_05 ] I downloaded the Derby module through the update center, and wanted to start the derby server. But I obtains the following message: java.lang.NoClassDefFoundError: and Exception in thread "main"
Please attach the exception's stack trace. Does the exception in the "main" thread come from the IDE?
There are no exception stack trace. There are nothing in the log file. Only the message I gave you in the output window. I can't give you more information than what I gave you. Sorry.
Then I'd like to ask you for some help in order to trace the bug. I'm attaching the Derby module with some logging code. Please copy it to wherever you installed the Derby module from AU (that is, to <netbeans>/modules/extra if you installed the module globally, or <userdir>/modules otherwise) and start NetBeans with a fresh userdir and with the command line: netbeans -J-Dorg.netbeans.modules.derby=0 Try to start Derby. A message should appear in the console and the message log containing the command used to start Derby. Please attach the message log (<userdir>/var/log/messages.log) to this issue. It would also help if you could run that command yourself from a command line and see what happens, or try to modify the the command so that it works for you and attach it here. Thank you for help!
Created attachment 25197 [details] Derby module with logging
Sorry, the correct path of the Derby module if you installed it globally is <netbeans>/nb5.0/modules. You will know, there must be a org-netbeans-modules-derby.jar file there which you must replace with the one I attached.
Hereafter what I obtain in the log file: [org.netbeans.modules.derby.RegisterDerby] Running C:\Program Files\Java\jdk1.5.0_05\bin\java.exe -Dderby.system.home=C:\Documents and Settings\Vincent\.netbeans\5.0\Daily\20050922\derby -classpath C:\Documents and Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derby.jar;C:\Documents and Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derbytools.jar;C:\Documents and Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derbynet.jar org.apache.derby.drda.NetworkServerControl start would be a space problem. I noted there are no "" around c:\Documents and Settings\... for the classpath So, I move my user directory to the root of the c drive c:\.netbeans\5.0\Daily\20050922 I modified the netbeans.conf file to point there, and I obtained the following: Le serveur est prêt à accepter les connexions au port 1527. After stopping, I obtained the following: Numéro de connexion : 1. Arrêt réussi. So, seems that it's working correctly if complete path of user dir contains no space. Happy to be able to help you.
You are right, the quotes are missing. Fixed. Checking in src/org/netbeans/modules/derby/RegisterDerby.java; /cvs/db/derby/src/org/netbeans/modules/derby/RegisterDerby.java,v <-- RegisterDerby.java new revision: 1.12; previous revision: 1.11 done
I'm attaching the fixed module in case you want to verify before the fixed module appears on the update center.
Created attachment 25213 [details] Fixed Derby module
*** Issue 63206 has been marked as a duplicate of this issue. ***
Because I downloaded the last Qbuild, and clean my user directory, I reinstalled the module, And it works. So, for me, it's ok. Thanks. Vincent
*** Issue 65272 has been marked as a duplicate of this issue. ***
Note that I'm trying Derby in the Java EE 5 daily 200511132300 and have the same problem as described here. I copied the attached jar into my .netbeans modules directory to fix it, not into the system netbeans module directory. ==Leonard
I have the same problem with NetBeans 5.0 RC1: java.lang.NoClassDefFoundError: org/apache/derby/drda/NetworkServerControl Exception in thread "main" I have db-derby-10.1.2.1-bin.zip installed into G:\Java\Derby_10 and the following configuration in NB: Derby Location = G:\Java\Derby_10\lib Database Location = G:\Java\DerbyDB I have derbynet.jar in G:\Java\Derby_10\lib, which it does not find. Note that I am not using any module from Update Center, because the module is built-in in RC1? Derby module version is 1.3.1, 200601101900. OS is WinXP sp2.
Java is 1.5.0_06.
The value of the "Derby Location" property should be "G:\Java\Derby_10", that is without "lib". The property description is a bit misleading, I filed issue 71367 for this.
Yes thanks this works. :-)
Impossible to verify with RC1 because derby is not appearing in the uc
The bundled Derby has been removed from the update center, sorry. You'll have to download a Derby binary from http://db.apache.org/derby/.
Can you provide explanation why the Derby module has been removed ? Because, now, it means it's not integrated as before. A little disappointed here. Vincent