1

this morning I used glassfish update tool to update the server when the process is finished I find that Eclipse can't recognize javax.enterprise.context package (CDI), how can I rollback installed updates?? http://im61.gulfup.com/uqpxlA.png

user3923327
  • 137
  • 1
  • 4
  • 11

2 Answers2

1

I delete the server and reinstalle it, now it works, Glassfish 4.1 Bug

user3923327
  • 137
  • 1
  • 4
  • 11
1

javax.enterprise.context.SessionScoped is missing in Glassfish 4.1. It's a bug.

fedorqui
  • 275,237
  • 103
  • 548
  • 598
  • i use Netbeans 8.0.1 when i declare a new jsf managed bean whith session , it is created whith import javax.entreprise.context.SessionScoped but doesn't exist in the package and the same code doesn't work – Michel Froment Oct 30 '14 at 13:05
  • 1
    download this zip: http://sourceforge.net/projects/jboss/files/Weld/2.2.0.SP1/ (49.7 MB)after you extract it, go to: weld-2.2.0.SP1\artifacts\cdi and add this jar to your project "cdi-api" and it will work, it works for me, but I'm still on glassfish 4.0, let me know if it works – user3923327 Oct 30 '14 at 16:17