he isn't in the gym he runs out as soon as you go in it than you have to chase him but, to activate that event you first have to go to the power plant talk to the owner and leave.
a team rocket dude hid it at mistys gym follower him then find the part* *on the farthest left
at mistys gym after you battle the team rocket grunt look in between tubes or in tubes [Not Sure] there is a piece that says power plant piece then go to the power plant and give it to the guy.
go to the house north of the gym and talk to the guy in there and then go to the well and clear out team rocket from in there then you can go into the gym and wreck'em up
Viridian gym i forgot his name the team rocket boss guy.
If you are talking about the kanto generator, then go to mistys gym (Cerulaen) and a rocket will be there, then follow the story from there. Suspenseful:)
So there will be a guy (team rocket) lurking around either in the Misty Gym or somewhere in that area find him and then once you beat him go back to mistys gym and somewhere near a raft there is the thing you need get the power plant back up and running take it to them and you've gotten passed that level
you tickle mistys feet with a feather until she tells you
In Mahogany Town you must defeat defeat Team Rocket there, beat Pryce the Gym Leader there, and defeat Team Rocket in Goldenrod City.
go to mistys gym and its easy from thereafter cerulean gym talk and deafeat the rocket grunt then o back to the gym in the patch of water inside the patway at the top left corner prss a
After beating the Rocket Hideout and the Gym, you go to Goldenrod City and deal with the problem Team Rocket is causing there with the Radio Tower
What you have to do is first beat the gym leader in the city on thew left of the one (sorry I forgot the names) when you have the guy in front of silph co. will be asleep and you can get in. Beat the boss there and then the team rocket guy in front of the gym will be gone.
after you get the guy in front of the sliph building to move(he will be asleep) you beat that part and the guy will move