Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cant deploy netbeans after using @Sessionscoped

 
widia putra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got problem after im using @Sessionscoped by javax.enterprise.context.SessionScoped..
I cant deploy my project and i got message like this on output netbeans..



but if i remove that annotation @Sessionscoped i can build and deploy my application again..
Can anyone help me what im suppose to do?

Many thanks
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi widia

I see your problem, when you are using the SessionScope annotation (JSF 2.0) you must care with the package, so you must use javax.faces.bean.SessionScoped for SessionScope of Managed Beans not javax.enterprise.context.SessionScoped.
I hope this help you with your problem.
Regards
Cesar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic