<?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: Alfresco &amp; Servlets in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98670#M68062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah … CIFS may be the key here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To register a web app, we need a trigger.&amp;nbsp; The bulk import command in the GUI when you upload a WAR file is one.&amp;nbsp; A second is during submit, when you get to "see" what app resources you're committing to the repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you first tried to submit to Staging?&amp;nbsp; If not, try that, and then check preview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 11:18:54 GMT</pubDate>
    <dc:creator>kvc</dc:creator>
    <dc:date>2007-07-05T11:18:54Z</dc:date>
    <item>
      <title>Alfresco &amp; Servlets</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98667#M68059</link>
      <description>Hi everybody,I have a kind of portal developed in java. This portal is composed of a dynamic part and a static part. (static for usual information and dynamic for searching, catalogues …)Internally I have two servlets, one for dynamic contents and another for static content. I though in alfresco to</description>
      <pubDate>Thu, 05 Jul 2007 07:22:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98667#M68059</guid>
      <dc:creator>tonizz</dc:creator>
      <dc:date>2007-07-05T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco &amp; Servlets</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98668#M68060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmmm … couple of quick questions: are you uploading your entire WAR file?&amp;nbsp; And, I assuming that that WAR file deployed to any other standalone Tomcat server runs fine?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 11:07:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98668#M68060</guid>
      <dc:creator>kvc</dc:creator>
      <dc:date>2007-07-05T11:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco &amp; Servlets</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98669#M68061</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 am really uploading the entire war, coping and pasting with CIFS. The application is running ok in a usual tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 11:12:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98669#M68061</guid>
      <dc:creator>tonizz</dc:creator>
      <dc:date>2007-07-05T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco &amp; Servlets</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98670#M68062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah … CIFS may be the key here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To register a web app, we need a trigger.&amp;nbsp; The bulk import command in the GUI when you upload a WAR file is one.&amp;nbsp; A second is during submit, when you get to "see" what app resources you're committing to the repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you first tried to submit to Staging?&amp;nbsp; If not, try that, and then check preview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 11:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98670#M68062</guid>
      <dc:creator>kvc</dc:creator>
      <dc:date>2007-07-05T11:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco &amp; Servlets</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98671#M68063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to un-jar a warfile within CIFS rather than doing a bulk upload using the GUI,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; then you must&amp;nbsp; do something let the virtualization server know about it (the GUI does this for you).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you have done the bulk upload directly&amp;nbsp; to staging (the most efficient technique), &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then just navigate to the staging sandbox of that web project and hit the "Refresh" button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(actually it would be better named "Reload"). That will kick the virt server and tell it about&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the new webapp.&amp;nbsp;&amp;nbsp; Note that you don't have to do this every time you upload contens via CIFS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the only case is when you modify the contents of WEB-INF or META-INF… which is exactly what&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you're doing.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, actions through the GUI take care of this&amp;nbsp; for you automatically, so the only time you've&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;got to manually "Refresh" is when you modify WEB-INF or META-INF via CIFS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing:&amp;nbsp;&amp;nbsp; I'm assuming you are un-jaring your .war file.&amp;nbsp;&amp;nbsp;&amp;nbsp; Here's how to do that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GIVEN:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Your webapp war file is called alfresco-sample-website.war&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Your web project is called "test"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Your CIFS mount point is the "v" drive&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;This will be the ROOT webapp of the project&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;THEN:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navigate to:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;v:/test/HEAD/DATA/www/avm_webapps/ROOT&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;And say:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;jar xvf&amp;nbsp; alfresco-sample-website.war&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've done this properly, then within: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;v:/test/HEAD/DATA/www/avm_webapps/ROOT&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;you should see the WEB-INF and META-INF directories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point, you can go back to the GUI and hit the "Refresh"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;control associated with the staging sandbox of your web project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the virtualization server has reloaded it,&amp;nbsp; you should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;able to click on the&amp;nbsp; "eyeball" icon in staging&amp;nbsp; (or any of the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;associated author sandboxes) and see your webapp virtualized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;*********** DEBUGGING ***********&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to see what's going on at a deeper level, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you can&amp;nbsp; edit: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$VIRTUAL_TOMCAT_HOME/conf/logging.properties&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Then set:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.catalina.host.AVMHostConfig.level = FINE&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;However, changing the debug level of the virtualization server requires you to restart it;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you only need to restart the virt server, not the alfresco webapp, if you want to employ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this low-level debugging technique.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; -Jon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: This is now in the Virtualization Server FAQ:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ#Are_files_edited.2Fcreated_in_CIFS_immediately_visible_via_the_virtualization_server.3F" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ#Are_files_edited.2Fcreated_in_CIFS_immediately_visible_via_the_virtualization_server.3F&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 15:25:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-servlets/m-p/98671#M68063</guid>
      <dc:creator>jcox</dc:creator>
      <dc:date>2007-07-05T15:25:31Z</dc:date>
    </item>
  </channel>
</rss>

