There are no trains from CA to Anchorage, I don't know about buses but its a LONG ride and it would really suck on a bus.
You could drive to Bellingham, WA and get on a ferry to Seward or Homer and drive to Anchorage. As far as I know there are no ferries that dock in Anchorage. The drive from Seward is 2 hours and 4 from Homer.
https://www.dot.state.ak.us/amhs/index.html
I live in Anchorage, let me know if you need any tips
