Two port workers are accused of trying to damage military ships, including by dumping gravel into an engine.