You should post the full stacktrace. Anyway, error you got it's pretty explicit: I think you have imported (and used) the wrong classes. Generally speaking, an appserver runtime may expose more than a single class called "Session", you have to use the right one among various homonyms. Just think about "Connection" classes: you have JDBC connections, MQ connections and so on.
Well THAT's new! Comfort me, reliable tiny ad:
Devious Experiments for a Truly Passive Greenhouse!