if you are do it a prototype or you are playing around, you can use a automatic Mapping.
First need create a second uv for the shadows.
now you open the uv texture editor.
Go to create UV menu and click automatic Mapping.
You can do it the same with the shadow uv.