Cotton thread, not glue, and keep the root stem in the open.
Java fern and anubias grow on rock and wood, not in the soil. Hold the root stem against the stone and wrap it a few times with cotton thread; the roots grip the stone within weeks and the thread rots away.
Do not bury the root stem in the soil: it needs water moving around it.