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 242183

Summary: [80cat]Deploying EAR project does not create JNDI resources
Product: serverplugins Reporter: manikantannaren <manikantannaren>
Component: GlassFishAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal CC: kganfield
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Glassfish Stack trace on deploying the ear

Description manikantannaren 2014-02-21 08:24:44 UTC
https://netbeans.org/kb/docs/javaee/maven-entapp.html

As per the tutorial, on running the application, the neccessary JNDI resources are created if not present (When you click Run the IDE will deploy the EAR archive and create the JMS resources on the server)

But that did not happen. I had to manually create the resources on Glassfish to be to able to successfully run the project.
Comment 1 manikantannaren 2014-02-21 08:27:14 UTC
Created attachment 145459 [details]
Glassfish Stack trace on deploying the ear
Comment 2 manikantannaren 2014-03-07 05:44:01 UTC
Happens with both Maven or Ant based project types.
Comment 3 Petr Hejl 2015-05-12 11:09:29 UTC
What GF and IDE version do you use?
Comment 4 Petr Hejl 2015-05-15 08:57:50 UTC
Reproducible.
Comment 5 Petr Hejl 2015-05-19 11:15:14 UTC
The specification says that "By default, environment entries declared by application components are created in the java:comp/env namespace." So the destination lookup generated for JMS defined by annotation is wrong. For JMS the reasonable default used by the IDE would be java:global or java:app imo.
Comment 6 Petr Hejl 2015-05-19 14:07:28 UTC
The JMS queue is generated with java:app prefix now - web-main 53b5c62db629. I need to verify the tutorial and possibly file an issue for doc team.
Comment 7 Quality Engineering 2015-05-20 02:10:50 UTC
Integrated into 'main-silver', will be available in build *201505200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53b5c62db629
User: Petr Hejl <phejl@netbeans.org>
Log: #242183 - [80cat]Deploying EAR project does not create JNDI resources
Comment 8 Petr Hejl 2015-05-20 12:18:21 UTC
Closing as fixed. There is a separate bug #252502 for the tutorial.