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 240724 - ADD EJB Stateless SUPPORT FOR TOMCAT 8
Summary: ADD EJB Stateless SUPPORT FOR TOMCAT 8
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 22:52 UTC by thonyfd
Modified: 2014-01-27 10:42 UTC (History)
0 users

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 thonyfd 2014-01-20 22:52:01 UTC
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?
Comment 1 Martin Fousek 2014-01-27 10:17:34 UTC
(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.
Comment 2 Martin Fousek 2014-01-27 10:42:59 UTC
Sorry, it's rather invalid.