In reply to Vperrin:
First I have to correct ny Syntax:
module top
apb_interface apb_tx_if(); // the keyword interface was wrong in this place
apb_interface apb_rx_if();
initial begin
uvm_resource_db #(virtual apb_interface) ("*", "apb_tx", apb_tx_if );
uvm_resource_db #(virtual apb_interface) ("*", "apb_rx", apb_rx_if );
end
endmodule