apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.68k stars 853 forks source link

GlassFish JMS Resource Types #4677

Open rivenbarkc opened 2 years ago

rivenbarkc commented 2 years ago

Apache NetBeans version

Apache NetBeans 15

What happened

I am using NetBeans 15 with Eclipse GlassFish 6.2.5 and Jakarta EE 9. When I create a web application and add a GlassFish JMS Resource, the only available Resource Types are javax.jms and jakarta.jms is not available. Thus the deployment fails because the Glassish server is looking for the jakarta.jms types.

How to reproduce

  1. In NetBeans 15 create a new web application project by selecting Java Web under Categories and Web Application under Projects. Click Next.
  2. Name the project and click Next.
  3. Select a GlassFish 6.2.1 server and Jakarta EE 9.1 Web for the Java EE Version.
  4. Click Finish.
  5. Right-click the new project and select New -> Other.
  6. Select GlassFish under Categories and JMS Resource under File Types. Click Next.
  7. Under Choose Resource Type the only available types are javax.jms and jakarta.jms is not available. GlassFish 6.2.1 expects jakarta.jms types and generates an error when trying to deploy javax.jms types. NetBeans JMS Issue

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10 21H2

JDK

JDK 17 by default, Jakarta 9 for the Web Application

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

The issue occurs every time. Issue was present in NetBeans 14 as well.

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

rivenbarkc commented 2 years ago

GlassFish error is as follows: org.glassfish.deployment.common.DeploymentException: jakarta.resource.ResourceException: jakarta.resource.ResourceException: Invalid Resource Type: javax.jms.Queue