The new Glassfish 4.1 does not have the javax.enterprise.context package containing the SessionScoped annotation, for example.
add cdi-api.jar to the project by right-clicking on the libraries, selecting "Add JAR / Folder" and selecting cdi-api.jar from the installation modules folder in the glass shawl.
See my answer here https://stackoverflow.com/a/166185/ and the comment below, it should solve your problem.
easy, right-click the project and select properties , then to Libraries + Add Jar / Folder to x: \ Program Files \ glassfish ..