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.
Product Version: NetBeans IDE Dev (Build 200706261800) Java: 1.5.0_08; Java HotSpot(TM) Client VM 1.5.0_08-b03 System: Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb) 1. Create a Visual Web Application 2. Add a Table component to the page 3. Try to drag and drop a DB table to the Table component 4. the attached exception will occur
Created attachment 44507 [details] exception log
This all looks fairly straightforward, except that the IDE is unable to get a connection to the database. I tried it using a developer build from today, and everything worked fine. Configuration: MacOS X 10.4.10, Java 1.5.0_07, bundled Java DB. What database are you using? What driver? Was the database already running?
> What database are you using? I am using sample Derby DB that comes with GlassFish jdbc:derby://localhost:1527/sample > What driver? org.apache.derby.jdbc.ClientDriver version 10.1.1.0 > Was the database already running? yes, the DB was running
Supported J2SDK 1.5.0_11 & 1.6.0 (see http://wiki.netbeans.org/wiki/view/NB6TestedPlatformsAndRuntimes). I checked the described scenario on Linux Ubuntu + J2SDK1.6.0_1 - this bug is not reproduced: web-application was deployed and web-page was displayed in a browser correctly. May be, the problem is caused by Java: 1.5.0_08.
Well, I just found out that this issue is not reproducible when the project is targeted to GlassFish. Please use WebLogic 9.0 as the project target server. The issue is reproducible with the latest JDKs. java version "1.5.0_12" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing) java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) Removing the INCOMPLETE keyword
The problem seems to be specific to WebLogic, but independent of OS. Updated the summary accordingly. Until I investigate, can't say whether the problem lies in databinding or server plugin. Should fix for 6.0.
Looks like a serverplugin issue. The call config.getLookup().lookup(DatasourceConfiguration.class) returns null, which presumably means that the IDE can't find a class to configure DataSources for WebLogic. There's no IZ subcomponent for WebLogic10, so changing to WebLogic9.
*** Issue 109994 has been marked as a duplicate of this issue. ***
Please note that the weblogic plugin does not support datasource configuration, it cannot be considered as a defect in the plugin. There is no exception from the weblogic plugin in the attached log, so it does not seem that the problem is there. Reassigning the issue back to visualweb/databases for further evaluation.
Please explain what behavior you are expecting to see. You are creating an application for a platform that apparently does not support datasources. When you try to create a datasource, what should happen? The current VisualWeb code uses J2eeModuleProvider.getModuleDatasources() and J2eeModuleProvider.getServerDatasources(). Should it be doing something different? Do we really not support datasources for WebLogic applications?
What should happen? Certainly, the exception should not occur, but I do not think I am the right person to answer this question. The visualweb team should decide what is the right way to fix it. There is nothing wrong on calling getModuleDatasources() and getServerDatasources() methods, but they will return empty sets, I guess. You should check J2eeModuleProvider.getConfigSupport().isDatasourceCreationSupported() method before trying to create a new datasource. No, there is no datasource support in WebLogic plugin.
Let me make sure that I understand this: * There is no serverplugin support for datasources in WebLogic. * As far as I can tell, that means that users cannot build WebLogic applications that use datasources. (John Baker may know more about this.) * So, all we're discussing is how to handle the error that results. That is, we should do something better than throw an exception. Based on that analysis, this can probably be downgraded to P3. But, I'll assign it to John Baker, in case there's something better that we can do even without support from the plugin. At least we should add the appropriate checks (e.g., isDatasourceCreationSupported()) to present a more appropriate explanation of the problem.
Users can build WebLogic applications that use datasources, provided that they configure the datasources by hand. The reason why this issue was filed as P2 was that the issue which depends on this issue is a P2. Even though that the depending issue cannot be evaluated due to this issue, it looks like it has a work-around so I will downgrade it to P3.
Wait a minute! There's a major difference between this issue and issue 98366, which is listed as depending on this one. Issue 98366 was filed against NB 5.5.1. Databinding and deployment to WebLogic works in 5.5.1; I just tested it. This issue has been filed against NB6.0. Databinding and deployment to WebLogic do *not* work in NB6.0, because of the datasource issues cited here. Please clarify which version of the IDE this issue pertains to.
OK, so then I can close the issue 98366. This issue, however, still exists and it is reproducible in 6.0 as already mentioned in the description of the issue. If I understood correctly, you were able to reproduce the issue as well, so I don't understand what information are you missing.
Stepan, According to http://serverplugins.netbeans.org/, Web Logic is supported. Am I missing something ?
Yes, WebLogic is supported, the plugin only lacks datasource support. Note that each server plugin can have different level of support. Removing the INCOMPLETE keyword since the issue is easily reproducible with the provided info.
seems to be a duplicate of issue 101812 *** This issue has been marked as a duplicate of 101812 ***