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.
In a Maven EJB module project, if you do not specify the server in advance, when you use the New File > GlassFish wizard to create a JMS resource, the IDE will generate the file sun-resources.xml where the resource is specified. Seems to also be the case for the JDBC resources and the GlassFish descriptor file (it wants to generate sun-ejb-jar.xml) in the New File wizard. Maybe the descriptor file should be glassfish-resources.xml/glassfish-ejb-jar.xml.
David, can you tell me how should application works in this case? Is it right, that we are creating sun-ejb-jar.xml (and sun-resources.xml) when no server is specified?
I'm not sure it's worth to fix this. Does Ant based project with Tomcat server disables these templates? I would think it does not but that's just my guess. If user wants to create GF specific deployment descriptors then they probably want to use the project in context of GF server. What would be the point of it anyway. Re. glassfish-resources.xml/glassfish-ejb-jar.xml - that depends on what is supported by selected server.
I am going to switch the behavior to create a glassfish-*.xml for projects that do not target a sun/glassfish server. If the project targets one of the older sun appservers and/or gf 3.0.X, the file created will be a sun-*.xml file....
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ef3a830edc09 User: vince kraemer <vkraemer@netbeans.org> Log: #203081 : make glassfish- the 'default' prefix for DDs and resource files that are created by wizards and/or side-effects.
in the dev build