The Morrison Incident in 1837 and news of China's defeat during the Opium War led the shogunate to repeal the law to execute foreigners, and instead to adopt the Order for the Provision of Firewood and Water. The shogunate also began to strengthen the nation's coastal defenses. Many Japanese realized that traditional ways would not be sufficient to repel further intrusions, and western knowledge was utilized through the Dutch at Dejima to reinforce Japan's capability to repel the foreigners; field guns, mortars, and firearms were obtained, and coastal defenses reinforced. Numerous attempts to open Japan ended in failure, in part to Japanese resistance, until the early 1850s.