<?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: Load class file from shared/lib with alfresco dependency in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272617#M225747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done all amps deployment, merging my customizations into a the war file. Since some class files do have to (as you are explaining) have to be part of the WEB-INF/lib and hence the war file, it does not help you much to first put your non java stuff in a jar, then amp merge it into the war.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The jar only deployment stuff does however work well when you want to distribute small addons without java class files, like the share-extras.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 07:39:35 GMT</pubDate>
    <dc:creator>loftux</dc:creator>
    <dc:date>2011-06-20T07:39:35Z</dc:date>
    <item>
      <title>Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272615#M225745</link>
      <description>Is there a way for a custom class to be placed in shared/lib and still load dependencies in WEB-INF/lib?BackgroundI was trying to move away from amp file distribution to all jar for alfresco addons. This works well for all non java stuff, but for my jar with a custom java class extending/dependent o</description>
      <pubDate>Thu, 02 Jun 2011 09:25:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272615#M225745</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-06-02T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272616#M225746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am afraid what you want is not easily achievable and should never be. You may achieve something in this manner by seriously hacking the ClassLoading mechanisms (e.g. by providing a custom ClassLoader yourself). This can only be done at the Tomcat / Java level - Spring itself can not overcome constraints imposed by ClassLoading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;shared/lib should always only contain JARs without dependencies to a specific web application to be used as a dependency by any of the deployed web applications. What if you have deployed two web applications with the same class of potentially different versions - which class should be used as the parent class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shared/classes is essentially the same, which is why we are thinking of actually moving bean configuration files into a configuration AMP and externalizing properties (e.g. alfresco-global.properties) to a JNDI directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for deployment of alfresco.war removing the JAR when placed in WEB-INF/lib - we source control the original alfresco.war and integrate our artifacts (AMP, JAR and the works) within our build process, so that when we re-deploy the built alfresco.war, the state is the same as before. Since we also source control dev environment configurations, re-deployment also retains any configuration customization made in the deployed / exploded WAR as long as developers stick to the routine of checking in their configuration. The only time local changes are actually sensible is for short roundtrip fix + test (when the developer is sure of what he is doing) or trial + error (deprecated) cycles without build system overheads. And with a proper incremental build system and suitable local hardware, these overheads should become un-noticable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel Faust&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 11:41:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272616#M225746</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2011-06-19T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272617#M225747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done all amps deployment, merging my customizations into a the war file. Since some class files do have to (as you are explaining) have to be part of the WEB-INF/lib and hence the war file, it does not help you much to first put your non java stuff in a jar, then amp merge it into the war.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The jar only deployment stuff does however work well when you want to distribute small addons without java class files, like the share-extras.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 07:39:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272617#M225747</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-06-20T07:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272618#M225748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sure, the non-Java JAR-only deployment &lt;/SPAN&gt;&lt;EM&gt;works&lt;/EM&gt;&lt;SPAN&gt; for small addons - but this doesn't necessarily mean it is clean from a class loading / enterprise architecture perspective in terms of separation of applications. For example, Share as a small-footprint application would allow for parallel deployment of different versions / specialisations into the same Tomcat instance - now, if you deploy any addon in /shared/lib it will be picked up by all Share instances indiscriminately, which you might not want (same goes for web-extension).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The great thing about discussions in this area is, that it basically comes down to what you are allowed to do in the target environment and what your personal / organisation preferences are. As we are an all-round consulting company, we have certain processes that have to work together for development, maintenance and operations management. One of these processes - standard for all applications we develop/support/operate on customers behalf - requires that deployment of a web application into test / production only relates to a single artifact (WAR / EAR) and environment specific configuration has to be picked up from a manageable, central source (JNDI).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 08:56:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272618#M225748</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2011-06-20T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272619#M225749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I am also getting the same error as "No bean found" and Context Initialization failed while starting the alfresco server. I want to create a new custom evaluator so that i can keep an action only on some specific folders depending on their names. E.g: say i have created an action in share config file as "Bulk Export". Now, i want it only to be shown on some of the folders named as "A" or "B" or "C". Please help me with this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 12:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272619#M225749</guid>
      <dc:creator>mrinal3199</dc:creator>
      <dc:date>2014-01-29T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272620#M225750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have created an evaluator in my share jar in the package "org.alfresco.web.evaluator.doclib.action" named as NameEqualsEvaluator.java. And in the share cnfig i have defined an action for the folders and evaluator id is given as "evaluator.doclib.action.isInstanceType". So, in Custom-slinshot-applicaton.xml, i have defined this id with parent as "org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator". I build this jar and laced it in "C:\alfresco\tomcat\webapps\share\WEB-INF\lib". I also have another utils jar which&amp;nbsp; am keeping in "C:\alfresco\tomcat\webapps\alfresco\WEB-INF\lib". The problem is while starting the server, it is giving errr as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'evaluator.doclib.action.isInstanceType' defined in URL [jar:file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/lib/SkandiaShare.jar!/alfresco/web-extension/custom-slingshot-application-context.xml]: Could not resolve parent bean definition 'org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator' is defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not getting why this class is not being loaded but every webscripts which i have in utils jar are working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest me how to reslve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 09:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272620#M225750</guid>
      <dc:creator>mrinal3199</dc:creator>
      <dc:date>2014-02-11T09:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272621#M225751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If i added alfresco addons jar file into the tomcat/shared/lib and then restating tomcat started and stopped immediately. After i removed that i can run the tomcat service. Need a clarification.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 12:33:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272621#M225751</guid>
      <dc:creator>sangeetha</dc:creator>
      <dc:date>2015-03-17T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load class file from shared/lib with alfresco dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272622#M225752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What addOn did you add? What's in the logs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 16:01:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/load-class-file-from-shared-lib-with-alfresco-dependency/m-p/272622#M225752</guid>
      <dc:creator>gravitonian</dc:creator>
      <dc:date>2015-03-24T16:01:01Z</dc:date>
    </item>
  </channel>
</rss>

