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.
Summary: | 'Use Database' action doesn't create DataSource resource | ||
---|---|---|---|
Product: | javaee | Reporter: | Petr Blaha <blaha> |
Component: | DD Editor | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | pjiricka, sherold |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 57104, 63408 | ||
Bug Blocks: |
Description
Petr Blaha
2005-03-30 13:13:21 UTC
Cannot reproduce, same scenario as http://www.netbeans.org/issues/show_bug.cgi?id=57187 I see the server resources in my project. So we need to know your environment. seems to be a j2eeserver bug not calling our impl for ensureResourceDefined() sometimes... Not sure why, but not a plugin bug for sure... I'm sorry, my description of the bug is a little bit missleading. The issue causes that Sun Resources (connection pool, JDBC datasource) aren't created in project. Therefore, resources can't be registered in App server during deployment. And connection to the database doesn't work. It seems this is issue in appserver module. The cause of this issue is the same as of issue 57188. J2eeserver is not getting dd change events. It is most likely caused by a ClonnableEditorSupport issue. Reassinging to Milan. This also depends on issue 57104. Waiting on 57104 fix. 57104 fix helped. I've changed the way how deployment descriptor changes are implemented. See : http://web.netbeans.org/source/browse/web/project/src/org/netbeans/modules/web/project/WebContainerImpl.java?r1=1.11&r2=1.12 I am able to reproduce the issue in build 20050907. The issue can be caused by issue #63408 This is regresion from NetBeans 4.1. Marking as Beta stopper I am able to reproduce the issue in daily build 20050911 even the bug #63408 is already fixed. It seems that it's not related to this issue. 63408 fix didn't help. I guess this is a problem in appserver. Otherwise, reasign the issue to web project (or j2eeserver). Investigating... I cannot reproduce this. I tried twice in same session, the first time, it took a while for the resources to appear (I didn't see them at first, popped over this report to read steps again, and they were there when I went back to the IDE). The second time they were created almost immediately, so the first delay must have been due to required services being initialized as well. This problem MAY have been caused by the same problem that caused Bug #63217 in which there situations where there were duplicate DConfigBeans in the cache. Since I fixed that bug today, that would explain why I can no longer reproduce this. Please reverify against nightly build. I was able to reproduce this issue with these steps in build 20050912: 1) create only web project 2) add servlet 3) invoke 'Use database' action Sun Resources aren't created. I realized when the web project is part of J2EE app (new Enterprise application with EJB and web project) then the creation is working. Ok, confirmed this behavour still exists for vanilla web app. It works fine for Ears. The problem is that no events are being propagated from the DD's to our DDBean/DConfigBean tree, so while the resource-ref is created in web.xml, it is not created in sun-web.xml and so the resources are never created. This problem is actually more widespread in that any item added to web.xml that has a corresponding entry in sun-web.xml is not being created (e.g service-ref for web service client for example.) Reassigning to web team. Pavle, could you please look at this? Thanks. Fixed http://schema2beans.netbeans.org/source/browse/schema2beans/rt/src/org/netbeans/modules/schema2beans/BaseBean.java?r1=1.26&r2=1.27 http://j2ee.netbeans.org/source/browse/j2ee/ddapi/src/org/netbeans/modules/j2ee/dd/impl/common/DDUtils.java?r1=1.5&r2=1.6 http://j2ee.netbeans.org/source/browse/j2ee/ddloaders/src/org/netbeans/modules/j2ee/ddloaders/web/DDDataObject.java?r1=1.9&r2=1.10 I can reproduce the issue in build 20051103 I think the issue should be assigned to Sun AppServer plugin as the WebApp fires appropriate property change. Milane, it's working for me. I didn't realize that in Choose Database dialog is new checkbox 'Create server resources' that is unchecked by default. When I checked this one and then used DB Sun resources were created successfully. I changed the resolution to WORKSFORME then. |