File aspose.imaging-3.2.jar can not be placed in "/usr/local/tomcat/lib". Version 3.01 could

Hello,



This is my software stack:

- Ubuntu Linux 12.04.1 (Linux 3.2.0-89-virtual on i686)

- Java: java version “1.8.0_51”,Java™ SE Runtime Environment (build 1.8.0_51-b16),Java HotSpot™ Client VM (build 25.51-b03, mixed mode)

- Tomcat 7.0.50



When I was using version 3.01 of Aspose image, the file “aspose-imaging-3.0.1-jdk16.jar” could be located in “/usr/local/tomcat/lib/”. Now with version 3.2, if I place the file “aspose.imaging-3.2.jar” in that directory, Tomcat will never start properly. Now I am being forced to include the JAR in the WAR file, so it will be placed in the “…/WEB-INF/lib” directory when the WAR file is deployed.



Why is this?

Hi Tom,

Thank you for your inquiry.

Please note that we are trying to reproduce the issue at our end. We will update with our findings soon.
Hi Tom,

Thank you for your patience.

I am very sorry for the delay. This is to update you that we have investigated the issue at our end. Investigation shows that the issue persists. The issue has been logged into our system with ID IMAGINGJAVA-614. Our product team will further look into it and provide feedback. We will update you with the feedback via this forum thread.

Hi Tom,

Our product team has investigated the issue. It was found that the issue you facing is not a problem in Aspose.Imaging API. If we place the Aspose API in “lib” directory and restart tomcat, it will take long time to start.

It is a known fact that the signed jars placed in “lib” directory makes the startup process very slow. As a work around you have to modify file catalina.properties to change the option “tomcat.util.scan.StandardJarScanFilter.jars” to skip.

File: ${CATALINA_HOME}/conf/catalina.properties


# Default list of JAR files that should not be scanned using the JarScanner
# 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=\
bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\
annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,\
jaspic-api.jar,\
jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,\
xom-*.jar


Change it as:

# Default list of JAR files that should not be scanned using the JarScanner
# 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=\
bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\
annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,\
jaspic-api.jar,\
jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,\
xom-*.jar,aspose*.jar

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.