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: | Resource reference is added to the wrong file | ||
---|---|---|---|
Product: | obsolete | Reporter: | John Baker <jbaker> |
Component: | visualweb | Assignee: | John Baker <jbaker> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | potingwu |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 101812 | ||
Attachments: | jboss-web.xml after manual modifications |
Description
John Baker
2007-08-09 00:34:01 UTC
Created attachment 46365 [details]
jboss-web.xml after manual modifications
There is manual workaround Copy the resource reference section from setup/jboss-ds.xml to web/jboss-web.xml Closing as INVALID. The ConfigSupport.createDatasource() method creates a data source, not a resource reference. The data source definition belongs to jboss-ds.xml file. In order to create a resource reference use ConfigSupport.bindDatasourceReference() method. I've checked your jboss-web.xml file and it is not correct. Refer to JBoss documentation or use the 'Use database' action, which will generate a correct resource reference for you. For deploying to Glassfish, ConfigSupport.bindDatasourceReference() is not required. Maybe because I update the web.xml another way. ConfigSupport.bindDatasourceReference() is required for JBoss and other servers ? It is definitely required in case of J2EE 1.4 projects.. changing to visualweb Fix available. Need to use bindDatasourceReference Fixed. Update to use bindDatasourceReference Checking in visualweb/project/jsf/src/org/netbeans/modules/visualweb/project/jsf/services/DesignTimeDataSourceService.java; /cvs/visualweb/project/jsf/src/org/netbeans/modules/visualweb/project/jsf/services/DesignTimeDataSourceService.java,v <-- DesignTimeDataSourceServic e.java new revision: 1.3; previous revision: 1.2 done Checking in visualweb/project/jsf/src/org/netbeans/modules/visualweb/project/jsf/services/DesignTimeDataSourceServiceImpl.java; /cvs/visualweb/project/jsf/src/org/netbeans/modules/visualweb/project/jsf/services/DesignTimeDataSourceServiceImpl.java,v <-- DesignTimeDataSourceSe rviceImpl.java new revision: 1.9; previous revision: 1.8 done Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/model/ProjectDataSourceManager.java; /cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/model/ProjectDataSourceManager.java,v <-- ProjectDataSourceManag er.java new revision: 1.4; previous revision: 1.3 done Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/sql/DesignTimeDataSourceHelper.java; /cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/sql/DesignTimeDataSourceHelper.java,v <-- DesignTimeDataSourceHe lper.java new revision: 1.14; previous revision: 1.13 done Verified on: 1). JBoss 5.0.0 Beta2 JAVA: j2sdk 1.5.0_12-b04 2). Product Version: NetBeans IDE Dev (Build 200708160000) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Windows XP version 5.1 running on x86 |