Touibi Nader Touibi Nader - 7 months ago 50
Java Question

Generate PDF file into a remot JBoss server

My application generate PDF and save it in the WAR file. Everything works fine in the localhost but after deploying the WAR under the remote Wildfly server the app can't access the WAR file.

ut.setDestinationFileName( "../../wildfly-9.0.1.Final/standalone/deployments/MyApp.war/Rapport/SampleResult.pdf");


thank you for answering, i found a solution, i don't know if it's the best one but it work: MyApp.war is a compressed file and ut.setDestinationFileName() can't access to a compressed file so i create a new folder under "wildfly-9.0.1.Final/standalone/deployments" and i name it MyApp.war and there i decompress the real war file and finally i restart the server.