Win a copy of Head First Android this week in the Android forum!
  • 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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
http://javafootsteps.blogspot.com/p/java-ee-6-showcase.html?showComment=1330714830641
on netbeans 6.7.1 and glassfish server.

Netbeans is complaining about following annotations.
@Local
@Stateless

@Named
@ConversationScoped
@Inject

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-6.0.0.20100429-M3.zip)

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.
JEEExampleError.JPG
[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
javax.Inject.inject

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic