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.

Bug 203081 - wizard generates sun-resources.xml when server not specified
Summary: wizard generates sun-resources.xml when server not specified
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 16:31 UTC by Kenneth Ganfield
Modified: 2011-10-31 17:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2011-10-04 16:31:03 UTC
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.
Comment 1 Martin Janicek 2011-10-12 14:45:16 UTC
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?
Comment 2 David Konecny 2011-10-17 13:12:32 UTC
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.
Comment 3 Vince Kraemer 2011-10-26 17:04:04 UTC
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....
Comment 4 Quality Engineering 2011-10-30 15:11:45 UTC
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.
Comment 5 Vince Kraemer 2011-10-31 17:28:28 UTC
in the dev build