Watch the Strategy 8: Sing Your Lines online guitar lesson by Jon Herington from Ear IQ: Soloing Strategies

Now I'll perform my solo for "Broken and Blue". The idea here is to stay away from melodies that sound like they were made on the guitar - focus on the melodies you hear in your head, and then bring your hands into the equation.