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.
to begin, i'm sorry for me panamenian english. When create a "New RESTful Web Services from database", the IDE generate a new class named "myNameFacadeREST.java" in this class the first line after import section is "@javax.ejb.Stateless" and it have a error message(cannot find symbol). I'm using Tomcat 8, and it have support for EE7. If i make the same RESTful with GlassFish this problem disappear do you have any workaround for this problem ? and do you have a future solution for it?
(In reply to thonyfd from comment #0) > When create a "New RESTful Web Services from database", the IDE generate a > new class named "myNameFacadeREST.java" in this class the first line after > import section is "@javax.ejb.Stateless" and it have a error message(cannot > find symbol). I'm using Tomcat 8, and it have support for EE7. I'm afraid that no version of Tomcat has full EE support. It supports only several JavaEE specification but the EJB one is not included. To support that, you need to use TomEE or install OpenEJB module to your Tomcat server. > If i make the same RESTful with GlassFish this problem disappear The reason is that GlassFish supports whole web and also full JavaEE profile. > > do you have any workaround for this problem ? > and do you have a future solution for it? As I wrote you need to install TomEE which will be supported since NetBeans 8.0 or use Tomcat with installed OpenEJB module. For now closing as wontfix since the behaviour is correct, Tomcat doesn't contain ejb classes on it's classpath and that's the reason why is the @Stateless red underlined as error - no such class exists on project's classpath.
Sorry, it's rather invalid.