In many realistic science fiction movies, ships maintain their inner gravity by placing the living facilities inside a rotating cylinder which would produce gravity as explained by classical laws of physics. In movies where adherence to laws of physics isn't as quite a priority, like Star Wars or Star Trek, ships don't seem to employ any such mechanisms and everyone wanders around happily no matter the shape of the vehicle.
From a scientific standpoint, what alternatives are available or (at least considered to be available one day) for generating gravity ?