Found the answer, the weapon has to be a actor blueprint not a pawn blueprint.
Thx a lot for your help