Thanks for your help Martin. It Worked! A2 rocks!!!

--
*Saju Thankathurai*

On Wed, Mar 15, 2017 at 1:29 PM, Martin Kuhn <martin.k...@gmx.at> wrote:

> I think the problem is maybe the base href attribute. (default is set in
> index.html to "/").
>
> You have to define it to the directory where the dist files are copied to
> (in tomcat -> when the directory is tomcat/webapps/myapp -> then the
> base-href has to be "/myapp/")
>
> angular-cli provides the ability to define it via the --base-href flag.
> This means you build your app with "ng build --env=prod --base-href
> /myapp/".
>
> HTH
>
> Regards
> Martin
>
> Am Dienstag, 14. März 2017 16:09:36 UTC+1 schrieb Saju Thankathurai:
>>
>> Hi,
>>
>> I have created an Angular 2 application using angular-cli. I need to
>> deploy it in Tomcat server. I issued a command "ng build --env=prod".
>> Copied all files under dist folder to my tomcat/webapps folder. This was
>> not working and getting an error
>>
>> Failed to load resource: the server responded with a status of 404 (Not
>> Found)
>> polyfills.bundle.js Failed to load resource: the server responded with a
>> status of 404 (Not Found)
>> styles.bundle.js Failed to load resource: the server responded with a
>> status of 404 (Not Found)
>> vendor.bundle.js Failed to load resource: the server responded with a
>> status of 404 (Not Found)
>> main.bundle.js Failed to load resource: the server responded with a
>> status of 404 (Not Found)
>>
>> Any other steps i need to follow?
>>
>> --
>> *Saju Thankathurai*
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to