James Wilberforce Longley (4 January 1849 – 16 March 1922) was a Canadian journalist, lawyer, politician, and judge.
Born in Paradise, Annapolis County, Nova Scotia, the son of Israel Longley and Frances Manning, Longley received a Bachelor of Arts degree in 1871 and a Master of Arts degree in 1877 from Acadia College. In 1871, he moved to Halifax and studied law with Hiram Blanchard. He was called to the Bar in 1875 and practiced law in Halifax from 1875 to 1882. He was also a journalist working for the Acadian Recorder. In 1887, he was appointed managing editor of the Halifax Morning Chronicle.