This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
GeeCON Prague 2014
subject: cant deploy netbeans after using @Sessionscoped