Aspose License file and JBoss EAP 6.0.1 GA

Hello All,


I am attemping to deploy both the aspose.words jar and license file to a web application that we are deploying to JBoss EAP 6.0.1 GA. When I start up the instance, the jar gets complied and deployed, but when we use the application it says that is cant find the license file. I have deployed it to the WEB-INF/lib folder inside of the application context deployed to JBoss.

Any Thoughts?

Hi,


Thanks for your inquiry. Please refer to the following section of documentation:
License Aspose.Words

Please make sure that the path to your license file on server is resolving correctly. You can try creating FileInputStream object from license file and pass the stream to License.setLicense method as follows.
com.aspose.words.License lic = new com.aspose.words.License();

FileInputStream fstream = new FileInputStream(getMyDir() + “Aspose.Total.Java.lic”);
lic.setLicense(fstream);

Hope, this helps.

Best regards,