<?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: Easy Compile? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46178#M25868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the simplest way to compile the PageTag.java file and stuff it back into the installation? In the past on other apps, after setting the appropriate CLASSPATH, etc., I used to simply change the code, compile, and place in a jar.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In theory there is no reason why you can't follow a similar procedure for Alfresco. The PageTag.java file has the following imports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;import java.io.IOException;&lt;BR /&gt;import java.io.Writer;&lt;BR /&gt;import javax.servlet.http.HttpServletRequest;&lt;BR /&gt;import javax.servlet.jsp.JspException;&lt;BR /&gt;import javax.servlet.jsp.tagext.TagSupport;&lt;BR /&gt;import org.alfresco.web.app.Application;&lt;BR /&gt;import org.apache.commons.logging.Log;&lt;BR /&gt;import org.apache.commons.logging.LogFactory;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;So you should be able to compile just the PageTag.java against the; tomcat jars for the servlet classes, apache commons logging jars and the Alfresco webclient.jar from the Alfresco WAR file. The resulting class needs to replace the one in the webclient.jar file inside the Alfresco WAR - so you should be able to unpack the Alfresco WAR, unpack the webclient.jar, replace the class file and pack it all up again. I've done similar unpack, minimum compile and repack operations with other products myself also which all worked ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2006 16:44:00 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-12-18T16:44:00Z</dc:date>
    <item>
      <title>Easy Compile?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46177#M25867</link>
      <description>Hello,I want to simply alter the PageTag.java code so that the image points to a local image in order to avoid that https problem with the footer logo (the one where the warning screen keeps popping up if running https - this is due to the code referring to an http image).That's the background.&amp;nbsp; Wha</description>
      <pubDate>Mon, 18 Dec 2006 04:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46177#M25867</guid>
      <dc:creator>mrudmann</dc:creator>
      <dc:date>2006-12-18T04:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Compile?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46178#M25868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the simplest way to compile the PageTag.java file and stuff it back into the installation? In the past on other apps, after setting the appropriate CLASSPATH, etc., I used to simply change the code, compile, and place in a jar.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In theory there is no reason why you can't follow a similar procedure for Alfresco. The PageTag.java file has the following imports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;import java.io.IOException;&lt;BR /&gt;import java.io.Writer;&lt;BR /&gt;import javax.servlet.http.HttpServletRequest;&lt;BR /&gt;import javax.servlet.jsp.JspException;&lt;BR /&gt;import javax.servlet.jsp.tagext.TagSupport;&lt;BR /&gt;import org.alfresco.web.app.Application;&lt;BR /&gt;import org.apache.commons.logging.Log;&lt;BR /&gt;import org.apache.commons.logging.LogFactory;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;So you should be able to compile just the PageTag.java against the; tomcat jars for the servlet classes, apache commons logging jars and the Alfresco webclient.jar from the Alfresco WAR file. The resulting class needs to replace the one in the webclient.jar file inside the Alfresco WAR - so you should be able to unpack the Alfresco WAR, unpack the webclient.jar, replace the class file and pack it all up again. I've done similar unpack, minimum compile and repack operations with other products myself also which all worked ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 16:44:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46178#M25868</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-12-18T16:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Compile?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46179#M25869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome - just what I was looking for.&amp;nbsp; I will give it a shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks Kevin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 16:49:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46179#M25869</guid>
      <dc:creator>mrudmann</dc:creator>
      <dc:date>2006-12-18T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Compile?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46180#M25870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin (or anyone else),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to compile this (the PageTag.java) and got the error below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas for me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Matt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\javawork\wcsrc&amp;gt;javac PageTag.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PageTag.java:31: cannot access org.alfresco.web.app.Application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bad class file: c:\Program Files\Alfresco ECMS Community Network\tomcat\webapps\alfresco\WEB-INF\lib\web-client.jar(org/alfresco/web/app/Application.class)class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.app.Application;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\javawork\wcsrc&amp;gt;javac PageTag.java&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 16:22:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46180#M25870</guid>
      <dc:creator>mrudmann</dc:creator>
      <dc:date>2006-12-19T16:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Compile?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46181#M25871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to do the same thing I am compiling the source code &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having these errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;==============================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type Exception report&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;message &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;description The server encountered an internal error () that prevented it from fulfilling this request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;exception &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.FacesException: org/alfresco/web/ui/repo/tag/PageTag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;=============================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do u have any idea what could be causing this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/easy-compile/m-p/46181#M25871</guid>
      <dc:creator>charbel</dc:creator>
      <dc:date>2007-08-21T08:44:01Z</dc:date>
    </item>
  </channel>
</rss>

