You might also be loading the wrong modules in your X configuration file. Are you using nVidia GL drivers? If so you will need to modify the X config file as per the instructions in the driver readme's. If not then make sure that all your stuff is set up correctly. I had the same error messages when I was messing around with my X config file. Make sure that:
Is in the Module section.