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.
I am using 5/11 IDE dialy build with JDK 1.5, Appserver sdk build4 on Win XP Zero configuration did not happen after unregister the JDBC pool and resource. Should the zero configuration take care of the auto creating and registing the pool and resource in this case ? Steps to recreate: (1) Creating the JSF app by following this demo http://jupiter.czech.sun.com/wiki/view/Cdpj2ee/JsfFromDatabaseDemo (2) Run the demo, it works fine and found the jdbc pool SamplePool and jdbc resource jdbc/sample are present under the runtime resource node (3) Delete the jdbc pool SamplePool and jdbc resource jdbc/sample which are present under the runtime resource node (4) Run the above project again, the deploy says build successful, but it got HTTP status 500 with the following at the run time. Which in one part is a good error message tells No Pool Meta Data, but the other part says to redeploy. I click the run project button, it still get the same error, it is because I have not changed the app code, so redeploy did not happen. Then I made some change to the app code, then I click on the run project button, the resource got created and registered, and the program ran ok. So this zero configuration happen at one condition and does not happen at the other condition can cause confution to user I think. That is the reason I log this bug to see if there is any thing can be done to improve. I see a few issue here: (1) After I did step (3), why the deploy did not fail and give error saying the need resource is not there ? (2) Why the zero configuration did not happen at the step (4) ? Can the plugin detect this case there is no needed resource and do the resource creation at this time ? exception javax.servlet.ServletException: SamplePool: No Pool Meta Data object associated with the pool. Try redeploying the application. javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231) com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) root cause
jdbc pool SamplePool and jdbc resource jdbc/sample are not part of the zero configuration. The resources are default resources created for ease of use. The plugin generally checks if they are present and creates them when the user attempts to use a resource in a project, eg. via use Database action. If you look at your demo project, these resources won't be present under the Server Resources node. The demo is just using resources already present in the server.
So invalid, correct Nitya? Deleting resources after their creating in not part of zero config... When you do such action, you obviously are not doing 'zer' config.