There is no cannon that unlocks World 2. World 2 unlocks automatically upon defeating the World 1 Castle boss (Larry Koopa).
Tip: Secret exits (red flag) in some levels unlock shortcut paths on the map (dotted lines), but never skip entire worlds.