I am using aspose words and pdf in the same application, deployed on tomcat. I am placing both the words and pdf jar files in tomcat/lib directory, with the license there as well. The words license is accepted, the pdf license is not. Here is the top part of the stack trace:
11:02:42,050 ERROR [com.r5.alliant.alf.repo.actions.NameAndVersionFooterActionExecutor] ERROR SETTING ASPOSE LICENSE!!
class com.aspose.pdf.internal.hv.dw: Invalid URI: The URI scheme is not valid.
com.aspose.pdf.internal.hv.dr.N(Unknown Source)
com.aspose.pdf.internal.hv.dr.a(Unknown Source)
com.aspose.pdf.internal.hv.dr.<init>(Unknown Source)
com.aspose.pdf.internal.hv.dr.<init>(Unknown Source)
aspose.pdf.internal.al.c(Unknown Source)
aspose.pdf.internal.al.a(Unknown Source)
aspose.pdf.a.setLicense(Unknown Source)
com.aspose.pdf.License.setLicense(Unknown Source)
com.r5.alliant.alf.repo.actions.NameAndVersionFooterActionExecutor.setupAspose(NameAndVersionFooterActionExecutor.java:136)
I am using the following code to set the licenses (lic is just the words license file):
License lic = new License();
lic.setLicense("Aspose.Total.Java.lic");
log.warn("Success setting license for aspose words component");
com.aspose.pdf.License pdfLic = new com.aspose.pdf.License();
pdfLic.setLicense("Aspose.Total.Java.lic");
log.warn("Success setting license for aspose pdf component");
Any help would be appreciated.
11:02:42,050 ERROR [com.r5.alliant.alf.repo.actions.NameAndVersionFooterActionExecutor] ERROR SETTING ASPOSE LICENSE!!
class com.aspose.pdf.internal.hv.dw: Invalid URI: The URI scheme is not valid.
com.aspose.pdf.internal.hv.dr.N(Unknown Source)
com.aspose.pdf.internal.hv.dr.a(Unknown Source)
com.aspose.pdf.internal.hv.dr.<init>(Unknown Source)
com.aspose.pdf.internal.hv.dr.<init>(Unknown Source)
aspose.pdf.internal.al.c(Unknown Source)
aspose.pdf.internal.al.a(Unknown Source)
aspose.pdf.a.setLicense(Unknown Source)
com.aspose.pdf.License.setLicense(Unknown Source)
com.r5.alliant.alf.repo.actions.NameAndVersionFooterActionExecutor.setupAspose(NameAndVersionFooterActionExecutor.java:136)
I am using the following code to set the licenses (lic is just the words license file):
License lic = new License();
lic.setLicense("Aspose.Total.Java.lic");
log.warn("Success setting license for aspose words component");
com.aspose.pdf.License pdfLic = new com.aspose.pdf.License();
pdfLic.setLicense("Aspose.Total.Java.lic");
log.warn("Success setting license for aspose pdf component");
Any help would be appreciated.