<?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 How to deploy an ADF application on Tomcat Server? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2890#M833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've developed an&amp;nbsp;&lt;A _jive_internal="true" href="https://community.alfresco.com/community/application-development-framework/pages/get-started" rel="nofollow noopener noreferrer"&gt;ADF application&lt;/A&gt;&amp;nbsp;and I'm trying to deploy it on a Tomcat Server (7.0.72 or 7.0.82) under port 3000.&lt;/P&gt;&lt;P&gt;These are the steps what I'm doing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Generate the application which will be deployed typing the command line "npm run build" which executes the defined script "&lt;SPAN style="color: #0000ff;"&gt;build": "ng build&amp;nbsp;--base-href /w/&lt;/SPAN&gt;" declared in "package.json". After this execution, a folder called "w" has been generated.&lt;/LI&gt;&lt;LI&gt;Open and check that the file "index.html" under "w" folder has the line&amp;nbsp;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;base &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;href=&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"/w/"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Move the file "app.config.json" from "/w/assets/" to "/w/"&lt;/LI&gt;&lt;LI&gt;Edit the file&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;"app.config.json" setting the "ecmHost" value to "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080&lt;/A&gt;&lt;SPAN&gt;" (server where ACS is running)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Copy the "w" folder to the Tomcat server. Concretely, to the folder "webapps"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Add to the file "web.xml" (placed in "conf" folder in the Tomcat Server) the following filters: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 60px;"&gt;&amp;lt;filter&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;filter-class&amp;gt;org.apache.catalina.filters.CorsFilter&amp;lt;/filter-class&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-name&amp;gt;cors.allowed.origins&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-value&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/param-value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-name&amp;gt;cors.allowed.methods&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-value&amp;gt;GET,POST,PUT,DELETE,HEAD,OPTIONS&amp;lt;/param-value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-name&amp;gt;cors.allowed.headers&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-value&amp;gt;Access-Control-Allow-Origin,cache-control,Content-Type,X-Requested-&amp;nbsp; With,Accept,Authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers&amp;lt;/param-value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-name&amp;gt;cors.exposed.headers&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param-value&amp;gt;Access-Control-Allow-Origin,Access-Control-Allow-Credentials&amp;lt;/param-value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-name&amp;gt;cors.support.credentials&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;init-param&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-name&amp;gt;cors.preflight.maxage&amp;lt;/param-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-value&amp;gt;10&amp;lt;/param-value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/init-param&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;filter-mapping&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;url-pattern&amp;gt; /* &amp;lt;/url-pattern&amp;gt;&lt;BR /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/P&gt;&lt;P&gt;Start the server and the application is deployed. The problem is when I'm logging I'm getting the next error "&lt;SPAN style="color: #ff0000;"&gt;Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I start the angular cli server on my IDE by "npm start" (which start is&amp;nbsp;&lt;SPAN style="color: #9876aa;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"ng serve --proxy-config proxy.conf.json"&lt;/SPAN&gt;) the application works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where could the problem be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 14:42:13 GMT</pubDate>
    <dc:creator>wns</dc:creator>
    <dc:date>2017-12-04T14:42:13Z</dc:date>
    <item>
      <title>How to deploy an ADF application on Tomcat Server?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2890#M833</link>
      <description>Hello,I've developed an&amp;nbsp;ADF application&amp;nbsp;and I'm trying to deploy it on a Tomcat Server (7.0.72 or 7.0.82) under port 3000.These are the steps what I'm doing:Generate the application which will be deployed typing the command line "npm run build" which executes the defined script "build": "ng build&amp;nbsp;--</description>
      <pubDate>Mon, 04 Dec 2017 14:42:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2890#M833</guid>
      <dc:creator>wns</dc:creator>
      <dc:date>2017-12-04T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy an ADF application on Tomcat Server?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2891#M834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just starting with ADF. But, one of the requirements in documentaiton is configuring CORS (to allow javascript to make controlled cross-origin resource sharing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 17:58:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2891#M834</guid>
      <dc:creator>queshaw</dc:creator>
      <dc:date>2017-12-09T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy an ADF application on Tomcat Server?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2892#M835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kendall,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I did too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:59:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2892#M835</guid>
      <dc:creator>wns</dc:creator>
      <dc:date>2017-12-11T08:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy an ADF application on Tomcat Server?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2893#M836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Werner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever resolve this issue ? We are facing the same issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yogesh prjapati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 15:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2893#M836</guid>
      <dc:creator>yogeshpj</dc:creator>
      <dc:date>2018-05-03T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy an ADF application on Tomcat Server?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2894#M837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the last version of ADF and tomcat version (&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;7.0.82&lt;/SPAN&gt;) works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Werner Nähle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 15:06:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-an-adf-application-on-tomcat-server/m-p/2894#M837</guid>
      <dc:creator>wns</dc:creator>
      <dc:date>2018-05-03T15:06:24Z</dc:date>
    </item>
  </channel>
</rss>

