Reputation: 59
I am using restful web services to download a file in Linux operating system. But I am getting an error as shown in the image. I am using Linux operating system.
]1
Please help me to resolve this error. Entire project can be downloaded from the below link Project download
Upvotes: 0
Views: 83
Reputation: 692
I see that your project does not contain all the resources needed for JAX-RS runtime.
I put the necessary files in your project. Download the zip here: https://drive.google.com/open?id=1VGiWugSegmPFmFAI-uWu3AB3OG6Sxi0a
You can run com.java4s.Main directly via maven with:
mvn clean package exec:java -DmainClass=com.java4s.Main
I have created a resource that you can use to download any file from your filesystem using :
http://localhost:8080/myapp/download/fs/[completeFilename]
replace [completeFilename] with the absolute path of a file in the filesystem, for eg:
http://localhost:8080/myapp/download/fs/home/bill/Desktop/hero.txt
Upvotes: 1