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 200254 - IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
Summary: IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
Status: RESOLVED DUPLICATE of bug 213695
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 11:13 UTC by csaffi
Modified: 2012-10-12 08:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 178170


Attachments
stacktrace (2.65 KB, text/plain)
2011-07-20 11:13 UTC, csaffi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csaffi 2011-07-20 11:13:50 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows XP

User Comments:
csaffi: I was creating a Restful from database

GUEST: Trying to generate Restful Webservice from Database using sample DB

GUEST: Creating a new RESTful web service from a database following a tutorial found here: netbeans.dzone.com/extjs-rest-netbeans




Stacktrace: 
java.lang.IllegalArgumentException: Cannot create a QualIdent for javax.ejb.Stateless
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createQualIdent(GenerationUtils.java:737)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createAnnotation(GenerationUtils.java:273)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createAnnotation(GenerationUtils.java:257)
   at org.netbeans.modules.websvc.rest.wizard.fromdb.EjbFacadeGenerator$3.run(EjbFacadeGenerator.java:380)
   at org.netbeans.modules.websvc.rest.wizard.fromdb.EjbFacadeGenerator$3.run(EjbFacadeGenerator.java:255)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:666)
Comment 1 csaffi 2011-07-20 11:13:54 UTC
Created attachment 109528 [details]
stacktrace
Comment 2 Denis Anisimov 2011-08-10 07:47:33 UTC
Please provide details on the issue.
What project type do you use ?
What J2EE target server do you use ?

The exception means that there is no javax.ejb.Stateless in project's classpath.
But project is created with Java EE 6 profile on the other hand.
It means it should contain mentioned class in its classpath.

Please check the presence/absence of the javax.ejb.Stateless in your classpath.
Please check what Java EE profile do you use .

Please attach the project.
Comment 3 Denis Anisimov 2012-10-12 08:03:23 UTC

*** This bug has been marked as a duplicate of bug 213695 ***