File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes cant deploy netbeans after using @Sessionscoped Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "cant deploy netbeans after using @Sessionscoped" Watch "cant deploy netbeans after using @Sessionscoped" New topic

cant deploy netbeans after using @Sessionscoped

widia putra

Joined: Apr 17, 2011
Posts: 1

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

Joined: Dec 25, 2010
Posts: 90

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.

When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
I agree. Here's the link:
subject: cant deploy netbeans after using @Sessionscoped
jQuery in Action, 3rd edition