Hello,
We are using Aspose library with applet, when applet loads at the start of web application its taking around 10-15 minutes to load the Aspose jar file which is very long to wait for user. IS there any way to load the library faster or any other approach to use Aspose library with applet.
Thanks,
Kishor Koli
Hi Kishor,
# functionality. This is typically used to scan JARs for configuration
# information. JARs that do not contain such information may be excluded from
# the scan to speed up the scanning process. This is the default list. JARs on
# this list are excluded from all scans. The list must be a comma separated list
# of JAR file names.
# The list of JARs to skip may be over-ridden at a Context level for individual
# scan types by configuring a JarScanner with a nested JarScanFilter.
# The JARs listed below include:
# - Tomcat Bootstrap JARs
# - Tomcat API JARs
# - Catalina JARs
# - Jasper JARs
# - Tomcat JARs
# - Common non-Tomcat JARs
# - Test JARs (JUnit, Cobertura and dependencies)
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=<br>bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,<br>annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,<br>jaspic-api.jar,<br>jetty-.jar,oro-.jar,servlet-api-.jar,tagsoup-.jar,xmlParserAPIs-.jar,<br>xom-.jar
# functionality. This is typically used to scan JARs for configuration
# information. JARs that do not contain such information may be excluded from
# the scan to speed up the scanning process. This is the default list. JARs on
# this list are excluded from all scans. The list must be a comma separated list
# of JAR file names.
# The list of JARs to skip may be over-ridden at a Context level for individual
# scan types by configuring a JarScanner with a nested JarScanFilter.
# The JARs listed below include:
# - Tomcat Bootstrap JARs
# - Tomcat API JARs
# - Catalina JARs
# - Jasper JARs
# - Tomcat JARs
# - Common non-Tomcat JARs
# - Test JARs (JUnit, Cobertura and dependencies)
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=<br>bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,<br>annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,<br>jaspic-api.jar,<br>jetty-.jar,oro-.jar,servlet-api-.jar,tagsoup-.jar,xmlParserAPIs-.jar,<br>xom-.jar,aspose*.jar
Hi Tilal,
Thanks for the response, I have tried the change in properties file as suggested by you but that didn’t help me too to load the applet faster on clients machine. Server details for the application server are,
OS : Windows Server 2008 R2 Enterprise (Service Pack 1) 64 bit OS.
Thanks,
Kishor Koli
Hi Tilal,
Hi Kishor/Amol,
Hello Tilal,
Thanks for the help, you can test the same with any web application launching applet from the applications start page and the jnlp file of the corresponding application will have aspose.pdf as resource parameter in it. Aspose version used is 17.2.0 with tomcat 7. Let us know if we can help more with it.
Thanks,
Kishor Koli
Hi Kishor,
Hi Tilal,
As per your suggestion, I have tested the same on Tomcat 8 and the time required is still around 15 minutes or so. Can you provide a jar file that will be used only for printing ? I have seen some libraries where they have different jar files for different purposes like printing, integrating and so.
As the library file of aspose is collectively of 40 mb, it takes more time to get downloaded on clients machine through applet.
Thanks,
Kishor
Hi Kishor,
Hello Tilal,
Thanks for the help, I have tried increasing the size but it didn’t helped too to minimize the time required to load jar file. Any update on the same ?
Thanks,
Kishor Koli
Hi Kishor,
Hi Tilal,
Hi Riccardo,
Hi Kishor,
The tomcat functionality has been improved in recent versions. For more information, please visit http://tomcat.apache.org/oldnews-2014.html
Can you please try using the latest versions as Tilal mentioned earlier, we did not notice any problem when using recent release version.