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.
dev build 200409061800 I use a Datasource from within my web project in Netbeans 4.0. The only way to get this to work is to open the configuration file associated with my project in the jakarta-tomcat-5.0.28_base\conf\Catalina\localhost directory and insert <Resource ...> tags to define my DataSources. The problem is that Netbeans routinely clobbers this XML file. It should be possible to tell Netbeans to insert a user-defined text into the XML configuration file to define Datasources and other things. Setting priority to P2 because the current behavior results in data loss (clobbered settings). Please consider fixing by Netbeans 4.0 final. If there is already a way to do this, I am sorry for mistakenly filing this issue. I have searching for documentation on this topic (on the website, in the product, etc) and couldn't find it.
My mistake. Found the file that needs to be edited under FILES tab, web/META-INF/context.xml.