I'm trying to use the sitemapgen4j library to build my sitemaps. I'm facing a permission problem while trying to write to my root directory
the root context folder (/src/main/webapp)
Problem writing sitemap file /sitemap.xml java.io.FileNotFoundException /sitemap.xml (Permission denied)
File directory = new File("/"); WebSitemapGenerator wsg = new WebSitemapGenerator("http://localhost:8080/app", directory);
Does anybody know how to go about doing this?