• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

JEE example with EJB, JSF is not working

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am trying following example from link
on netbeans 6.7.1 and glassfish server.

Netbeans is complaining about following annotations.


I imported ejb3-persistence jar as well. Not sure what other jar is missing. I am pasting source code for your reference. I tried to run

example as given in the tutorial on

Eclipse Galileo (SR2)
JBoss Tools 3.1.1 (JBossTools-Update-3.1.1.v201006011046R-H111-GA.zip)
JBoss AS 6 M3 (jboss-as-distribution-

But i could not get the JBOSS server software download. When i searched I was only able to download the update software not entire server software.(Please advise if you can point me to direct link where i can down load above vesion JBOSS AS). Reason I selected netbeans with Glasfish is i can have every thing in place without spending lot of time on configuration, setting up environments etc.

UserFacade interface file

UserFacadeBean File

UserService File

Then view files are

index.html file

layout.xhtml file

register.xhtml file

register_confirm file is

I do not see any source code with required libraries on that link as well.
Please advise on how to run this example effectively.
[Thumbnail for JEEExampleError.JPG]
Local Statell Annotations not recognized
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, your lacking the imports.

javax.ejb package
javax.faces package
javax.persistance package
javax.enterprise.context package

Next, I'm not seeing your pom.xml neither the jta or the glassfish datasource.

Have you used jpa 2.0, jsf 2.0 or ejb 3.1 before?

You can try: How to Create a Java EE 6 Application with JSF 2, EJB 3.1, JPA, and NetBeans IDE 6.8
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic