Soloing in any context is all about ears and muscle memory. Practice the scales, modes, and arpeggios. Learn melodies. Listen to, and copy the masters whose playng you most admire. And, don't be afraid to fail. We grow more by failure than success. Wherever you are in the process, go play.