<?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 Fully Virtualized Application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/fully-virtualized-application/m-p/131588#M92476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to know who out there is really using the virtualization platform to virtual j2EE applications – if so what type of application, and what technology is it built on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd also like to get a discussion going here about best practices when it comes to managing applications inside a web project.&amp;nbsp;&amp;nbsp; Do we have people who would be interested in that?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are here are a couple of things you might like to know:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* In order to give the virtualization server access to resources inside the war (when .getRealPath() is called) you will need to have the V: drive mounted. (windows).&amp;nbsp; This applies to spring context files for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*&amp;nbsp; ServletContext.getRealPath() returns a path to the staging sandbox – not the sandbox you are working in – watch out for this bug – it will drive you mad unless you catch it early on.&amp;nbsp; either patch the code or use request.getRealPath() instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2008 07:31:11 GMT</pubDate>
    <dc:creator>rdanner</dc:creator>
    <dc:date>2008-01-26T07:31:11Z</dc:date>
    <item>
      <title>Fully Virtualized Application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fully-virtualized-application/m-p/131588#M92476</link>
      <description>I'd like to know who out there is really using the virtualization platform to virtual j2EE applications – if so what type of application, and what technology is it built on.I'd also like to get a discussion going here about best practices when it comes to managing applications inside a web project.&amp;nbsp;</description>
      <pubDate>Sat, 26 Jan 2008 07:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fully-virtualized-application/m-p/131588#M92476</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2008-01-26T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fully Virtualized Application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fully-virtualized-application/m-p/131589#M92477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd like to know who out there is really using the virtualization platform to virtual j2EE applications – if so what type of application, and what technology is it built on.&lt;BR /&gt;&lt;BR /&gt;I'd also like to get a discussion going here about best practices when it comes to managing applications inside a web project.&amp;nbsp;&amp;nbsp; Do we have people who would be interested in that?&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you are here are a couple of things you might like to know:&lt;BR /&gt;&lt;BR /&gt;* In order to give the virtualization server access to resources inside the war (when .getRealPath() is called) you will need to have the V: drive mounted. (windows).&amp;nbsp; This applies to spring context files for example.&lt;BR /&gt;&lt;BR /&gt;*&amp;nbsp; ServletContext.getRealPath() returns a path to the staging sandbox – not the sandbox you are working in – watch out for this bug – it will drive you mad unless you catch it early on.&amp;nbsp; either patch the code or use request.getRealPath() instead.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thought everyone might like to know that I was incorrect about the ServletContext.getRealPath() bug – it turns out something I am doing in my application does not play well with the virtualization server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The simple test case of a single JSP application with the following body:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%=this.getServletContext().getRealPath("/") %&amp;gt;&amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;lt;%=request.getRealPath("/") %&amp;gt;&amp;lt;br/&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;produces the correct and expected output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;v:\simple–admin\VERSION\v-1\DATA\www\avm_webapps\ROOT\&lt;BR /&gt;v:\simple–admin\VERSION\v-1\DATA\www\avm_webapps\ROOT\&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;BR /&gt;&lt;SPAN&gt;VirtServer 1 : Russ 0 :lol:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about the misinformation&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now… gotta go fix that bug in my app&amp;nbsp; :shock:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is one other test I want to run which is an actual servlet loaded by the Web.xml&amp;nbsp; … it's a little different than a JSP but I don't expect a different result – but it would unwise to leave the final test case uncovered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 04:33:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fully-virtualized-application/m-p/131589#M92477</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2008-02-01T04:33:53Z</dc:date>
    </item>
  </channel>
</rss>

