<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is Best Practice for overriding Tika/PDFBox jar files? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276221#M229351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a way around this? I read your initial post with some interest as we are needing to get PDF form data extracted ourselves, was sad to see you hit a problem with overriding the OOtB jars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 22:11:43 GMT</pubDate>
    <dc:creator>chrisokelly</dc:creator>
    <dc:date>2012-05-31T22:11:43Z</dc:date>
    <item>
      <title>What is Best Practice for overriding Tika/PDFBox jar files?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276218#M229348</link>
      <description>To parse PDF Form fields I had to modify/replace the Tika parser and PDFBox jar files that ship with Alfresco (read more here: https://forums.alfresco.com/en/viewtopic.php?f=7&amp;amp;t=43406)More specifically the modifications required the need to override the files:&amp;nbsp; tika-parsers-1.1-20120208.jar and</description>
      <pubDate>Tue, 22 May 2012 18:14:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276218#M229348</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-05-22T18:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is Best Practice for overriding Tika/PDFBox jar files?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276219#M229349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The tomcat lib dir is the correct place for it.&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you configure the class loader on Tomcat?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:07:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276219#M229349</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-05-22T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is Best Practice for overriding Tika/PDFBox jar files?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276220#M229350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The tomcat lib dir is the correct place for it.&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you configure the class loader on Tomcat?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I suspect you mean tomcat/shared/lib and the shared.loader property in catalina.properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I first tested with Community 4.0.c (upgraded to Tomcat 6.0.35) I had configured shared.loader properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I installed a trial version of Enterprise (4.0.1) (configured by default) and retested and had the same results. When I place jar files from other projects (e.g. content models, workflows) into tomcat/shared/lib they are loaded just fine. Here is the contents of the catalina.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# Licensed to the Apache Software Foundation (ASF) under one or more&lt;BR /&gt;# contributor license agreements.&amp;nbsp; See the NOTICE file distributed with&lt;BR /&gt;# this work for additional information regarding copyright ownership.&lt;BR /&gt;# The ASF licenses this file to You under the Apache License, Version 2.0&lt;BR /&gt;# (the "License"); you may not use this file except in compliance with&lt;BR /&gt;# the License.&amp;nbsp; You may obtain a copy of the License at&lt;BR /&gt;#&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow noopener noreferrer"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;#&lt;BR /&gt;# Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;# distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt;# See the License for the specific language governing permissions and&lt;BR /&gt;# limitations under the License.&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# List of comma-separated packages that start with or equal this string&lt;BR /&gt;# will cause a security exception to be thrown when&lt;BR /&gt;# passed to checkPackageAccess unless the&lt;BR /&gt;# corresponding RuntimePermission ("accessClassInPackage."+package) has&lt;BR /&gt;# been granted.&lt;BR /&gt;package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.&lt;BR /&gt;#&lt;BR /&gt;# List of comma-separated packages that start with or equal this string&lt;BR /&gt;# will cause a security exception to be thrown when&lt;BR /&gt;# passed to checkPackageDefinition unless the&lt;BR /&gt;# corresponding RuntimePermission ("defineClassInPackage."+package) has&lt;BR /&gt;# been granted.&lt;BR /&gt;#&lt;BR /&gt;# by default, no packages are restricted for definition, and none of&lt;BR /&gt;# the class loaders supplied with the JDK call checkPackageDefinition.&lt;BR /&gt;#&lt;BR /&gt;package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# List of comma-separated paths defining the contents of the "common" &lt;BR /&gt;# classloader. Prefixes should be used to define what is the repository type.&lt;BR /&gt;# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.&lt;BR /&gt;# If left as blank,the JVM system loader will be used as Catalina's "common" &lt;BR /&gt;# loader.&lt;BR /&gt;# Examples:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo": Add this folder as a class repository&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/*.jar": Add all the JARs of the specified folder as class &lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositories&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/bar.jar": Add bar.jar as a class repository&lt;BR /&gt;common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# List of comma-separated paths defining the contents of the "server" &lt;BR /&gt;# classloader. Prefixes should be used to define what is the repository type.&lt;BR /&gt;# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.&lt;BR /&gt;# If left as blank, the "common" loader will be used as Catalina's "server" &lt;BR /&gt;# loader.&lt;BR /&gt;# Examples:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo": Add this folder as a class repository&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/*.jar": Add all the JARs of the specified folder as class &lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositories&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/bar.jar": Add bar.jar as a class repository&lt;BR /&gt;server.loader=&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# List of comma-separated paths defining the contents of the "shared" &lt;BR /&gt;# classloader. Prefixes should be used to define what is the repository type.&lt;BR /&gt;# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,&lt;BR /&gt;# the "common" loader will be used as Catalina's "shared" loader.&lt;BR /&gt;# Examples:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo": Add this folder as a class repository&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/*.jar": Add all the JARs of the specified folder as class &lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositories&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "foo/bar.jar": Add bar.jar as a class repository &lt;BR /&gt;# Please note that for single jars, e.g. bar.jar, you need the URL form&lt;BR /&gt;# starting with file:.&lt;BR /&gt;shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# String cache configuration.&lt;BR /&gt;tomcat.util.buf.StringCache.byte.enabled=true&lt;BR /&gt;#tomcat.util.buf.StringCache.char.enabled=true&lt;BR /&gt;#tomcat.util.buf.StringCache.trainThreshold=500000&lt;BR /&gt;#tomcat.util.buf.StringCache.cacheSize=5000&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Debug statements were added to the modified org.apache.tika.parser.pdf.PDFParser class and the messages only appear in the log files when the modified tika-parser-1.1.jar is placed into tomcat/webapps/alfresco/WEB-INF/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The jar files I am working with are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Original&lt;/STRONG&gt;&lt;SPAN&gt; - deployed by alfresco.war into tomcat/webapps/alfresco/WEB-INF/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tika-parser-1.1-20120208.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pdfbox-1.6.0.jar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Modified&lt;/STRONG&gt;&lt;SPAN&gt; - deployed manually into tomcat/shared/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tika-parser-1.1.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pdfbox-1.7.0-SNAPSHOT.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I rename the original jar files with the modified jar files in tomcat/shared/lib at startup Tomcat logs the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; 2012-05-23 06:39:04,020&amp;nbsp; ERROR [web.context.ContextLoader] [main] Context initialization failed&lt;BR /&gt; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extracter.PDFBox' defined in file [C:\apps_x64\Alfresco\tomcat\shared\classes\alfresco\extension\custom-metadata-extractors-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/tika/parser/AbstractParser&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I investigated the Tomcat 6 class loader further and found: &lt;/SPAN&gt;&lt;A href="http://pragmaticjava.blogspot.com/2009/01/tomcat-6-and-class-loading.html" rel="nofollow noopener noreferrer"&gt;http://pragmaticjava.blogspot.com/2009/01/tomcat-6-and-class-loading.html&lt;/A&gt;&lt;SPAN&gt; which is a clarification of &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tomcat creates a class loader for every webapp that is deployed in its instance. This class loader loads classes under WEB-INF/classes and WEB-INF/lib folder. It is for these class loaders where the delegation model deviates, thanks to the Servlet Specification which states as follows: "It is recommended also that the [web] application class loader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs."&lt;BR /&gt;However the above specification cannot override the Java standard delegation model of delegating to Bootstrap and System class loaders. It only is used to override the parent-child relationships that are introduced by Tomcat - ie. Common, Shared and WebappX class loaders.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;So when an application requests a class, the class loading hierarchy is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;The bootstrap class loader looks in the core Java classes folders.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The system class loader looks in the $CATALINA_HOME/bin/bootstrap.jar and $CATALINA_HOME/bin/tomcat-juli.jar&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The WebAppX class loader looks in WEB-INF/classes and then WEB-INF/lib&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The common class loader looks in $CATALINA_HOME/lib folder.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The shared class loader looks in $CATALINA_HOME/shared/classes and $CATALINA_HOME/shared/lib if the shared.loader property is set in conf/catalina.properties file.&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Apparently the Tomcat context (alfresco) cannot initialize without all the jar files being present in WEB-INF/lib which is why I saw the error. However once the context loads without error the modified jar files loaded by the common class loader are ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sign me: puzzled&amp;nbsp; :?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 02:06:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276220#M229350</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-05-23T02:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is Best Practice for overriding Tika/PDFBox jar files?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276221#M229351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a way around this? I read your initial post with some interest as we are needing to get PDF form data extracted ourselves, was sad to see you hit a problem with overriding the OOtB jars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 22:11:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276221#M229351</guid>
      <dc:creator>chrisokelly</dc:creator>
      <dc:date>2012-05-31T22:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is Best Practice for overriding Tika/PDFBox jar files?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276222#M229352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately no, the modified tika-parser and pdfbox jar files we placed in tomcat/shared/lib do not override the OOTB tika-parser and pdfbox jar files that reside in tomcat/webapps/alfresco/WEB-INF/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the shared class loader is configured correctly because the jar files that define our custom content models are placed into tomcat/shared/lib and they work fine. However it is not clear if the modified tika-parser and pdfbox jar files are picked up by the shared class loader because they do not override the OOTB jar files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only solution we have found is to rename the OOTB jar files and drop the modified jar files into the&amp;nbsp; tomcat/webapps/alfresco/WEB-INF/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post back here if you have different results in overriding the OOTB jar files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 01:11:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-best-practice-for-overriding-tika-pdfbox-jar-files/m-p/276222#M229352</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-06-01T01:11:05Z</dc:date>
    </item>
  </channel>
</rss>

