the coasts. Often, when British allies attempted military actions within several dozen miles or so of the sea, the Royal Navy would arrive, land troops and supplies, and aid the coalition's land forces in a concerted operation. Royal Navy ships even provided artillery support against French units when fighting strayed near enough to the coastline. The ability and quality of the land forces governed these operations. For example, when operating with inexperienced guerrilla forces in Spain, the Royal Navy sometimes failed to achieve its objectives because of the lack of manpower that the Navy's guerrilla allies had promised to supply. Austria achieved some initial victories against the thinly spread army of Marshal Berthier. Napoleon had left Berthier with only 170,000 men to defend France's entire eastern frontier (in the 1790s, 800,000 men had carried out the same task, but holding a much shorter front). In the east, the Austrians drove into the Duchy of Warsaw but suffered defeat at the Battle of Raszyn on 19 April 1809. The Polish army captured West Galicia following its earlier success. Napoleon assumed personal command and bolstered the army for a counter-attack on Austria. After a few small battles, the well-run campaign forced the Austrians to withdraw from Bavaria, and Napoleon advanced into Austria. His hurried attempt to cross the Danube resulted in the major Battle of Aspern-Essling (22 May 1809) – Napoleon's first significant tactical defeat. But the Austrian commander, Archduke Charles, failed to follow up on his indecisive victory, allowing Napoleon to prepare and seize Vienna in early July. He defeated the Austrians at Wagram, on 5–6 July. (It was during the middle of that battle that Marshal Bernadotte was stripped of his command after retreating contrary to Napoleon's orders. Shortly thereafter, Bernadotte took up the offer from Sweden to fill the vacant position of Crown Prince there. Later he actively participated in wars against his former Emperor.) The War of the Fifth Coalition ended with the Treaty of Schönbrunn (14 October 1809). In the east, only the Tyrolese rebels led by Andreas Hofer continued to fight the French-Bavarian army until finally defeated in November 1809. In the west, the Peninsular War continued. Economic warfare between Britain and France continued: The British continued a naval blockade of French-controlled territory. Due to military shortages and lack of organisation in French territory, many breaches of the Continental System occurred and the French Continental System