<?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 [SOLVED] Module developpement &amp; libs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80570#M53790</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;I'm currently developping a authentication component module for Alfresco, to use authentication from a proprietary framework, I have some question about Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The framework I use need some libraries, including log4j, dom4j and others common libs. I need also to use proprietary libraries from my company. I did put the framework's libs in the tomcat/shared/libs dir, so my module can find it, the problem is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco seems to use log4j to, but when I start it with my module, my module can't find log4j (I think this is a ClassLoader problem), so I dropped a copy of the log4j jar into the same dir, but I have many errors from log4j when Alfresco starting (not exceptions, just some errors):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" var&lt;BR /&gt;iable.&lt;BR /&gt;log4j:ERROR The class "org.apache.log4j.Appender" was loaded by&lt;BR /&gt;log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@12f9ee] whereas object of type&lt;BR /&gt;log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader&lt;BR /&gt;&amp;nbsp; delegate: false&lt;BR /&gt;&amp;nbsp; repositories:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /WEB-INF/classes/&lt;BR /&gt;———-&amp;gt; Parent Classloader:&lt;BR /&gt;org.apache.catalina.loader.StandardClassLoader@12f9ee&lt;BR /&gt;].&lt;BR /&gt;log4j:ERROR Could not instantiate appender named "Console".&lt;BR /&gt;log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender" object is not assignable to a "org.apache.log4j.Appe&lt;BR /&gt;nder" variable.&lt;BR /&gt;log4j:ERROR The class "org.apache.log4j.Appender" was loaded by&lt;BR /&gt;log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@12f9ee] whereas object of type&lt;BR /&gt;log4j:ERROR "org.apache.log4j.DailyRollingFileAppender" was loaded by [WebappClassLoader&lt;BR /&gt;&amp;nbsp; delegate: false&lt;BR /&gt;&amp;nbsp; repositories:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /WEB-INF/classes/&lt;BR /&gt;———-&amp;gt; Parent Classloader:&lt;BR /&gt;org.apache.catalina.loader.StandardClassLoader@12f9ee&lt;BR /&gt;].&lt;BR /&gt;log4j:ERROR Could not instantiate appender named "File".&lt;BR /&gt;log4j:WARN No appenders could be found for logger (com.XXXXXX).&lt;BR /&gt;log4j:WARN Please initialize the log4j system properly.&lt;BR /&gt;XXX authentication module has been loaded&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(I masked the company proprietary framework name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think tomcat/shared/libs is not the right place to put my libs, where should I drop them ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: Ah, and another question, where Alfresco drop his output and exceptions, a log file ? where?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I found alfresco.log &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; - But it seems that my errors with log4j disable all alfresco logging cause I dont have any more logs after I had these errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 09:27:15 GMT</pubDate>
    <dc:creator>pounard</dc:creator>
    <dc:date>2007-07-19T09:27:15Z</dc:date>
    <item>
      <title>[SOLVED] Module developpement &amp; libs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80570#M53790</link>
      <description>Hi,I'm currently developping a authentication component module for Alfresco, to use authentication from a proprietary framework, I have some question about Alfresco.The framework I use need some libraries, including log4j, dom4j and others common libs. I need also to use proprietary libraries from m</description>
      <pubDate>Thu, 19 Jul 2007 09:27:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80570#M53790</guid>
      <dc:creator>pounard</dc:creator>
      <dc:date>2007-07-19T09:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Module developpement &amp; libs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80571#M53791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, i found that when I drop my libs in webapps/alfresco/WEB-INF/libs it works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my real question is, is there another way to deploy them in some 'clean way' with my AMP file instead of copying it by hand after the WAR has been deployed a first time ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:40:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80571#M53791</guid>
      <dc:creator>pounard</dc:creator>
      <dc:date>2007-07-19T09:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Module developpement &amp; libs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80572#M53792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this and I have my answer: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Repository_Configuration#Issues" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Repository_Configuration#Issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I had to updgrade log4j in Alfresco dependancies because my framework uses some methods whose are not in the version packaged with Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 07:43:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-module-developpement-libs/m-p/80572#M53792</guid>
      <dc:creator>pounard</dc:creator>
      <dc:date>2007-07-20T07:43:26Z</dc:date>
    </item>
  </channel>
</rss>

