Re: How to setup rewrite valve for angularjs

2014-11-24 Thread Ameer Mawia
Tay, Quickly glossing over the code, what I understand is, it is breaking while evaluating one of the conditions mentioned in your re-write rules: RewriteCond %{REQUEST_FILENAME} !-f > > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteCond %{REQUEST_URI} !index Basically it is trying to locate %

Re: How to setup rewrite valve for angularjs

2014-11-23 Thread Tay Kai Yang
Hi I have tried to add a / to index.jsp. The problem still persist. It consistently complained about resource path null. What is this resource that it is looking for? On Nov 24, 2014 2:25 PM, "Ameer Mawia" wrote: > On Nov 24, 2014 8:30 AM, "Tay Kai Yang" wrote: > > > > Hi Daniel > > > > Thanks

Re: How to setup rewrite valve for angularjs

2014-11-23 Thread Ameer Mawia
correction: On Nov 24, 2014 11:54 AM, "Ameer Mawia" wrote: > > > On Nov 24, 2014 8:30 AM, "Tay Kai Yang" wrote: > > > > Hi Daniel > > > > Thanks for the reply. > > > > I have not used a webapp META-INF/context.xml before. So I had tried to > > refer to online examples. > > > > This is what I did

Re: How to setup rewrite valve for angularjs

2014-11-23 Thread Ameer Mawia
On Nov 24, 2014 8:30 AM, "Tay Kai Yang" wrote: > > Hi Daniel > > Thanks for the reply. > > I have not used a webapp META-INF/context.xml before. So I had tried to > refer to online examples. > > This is what I did. > >- Create context.xml in webapp/META-INF >- This is what I have added in

Re: How to setup rewrite valve for angularjs

2014-11-23 Thread Tay Kai Yang
Hi Daniel Thanks for the reply. I have not used a webapp META-INF/context.xml before. So I had tried to refer to online examples. This is what I did. - Create context.xml in webapp/META-INF - This is what I have added in context.xml >- >- >- >- >- > > My rewrite.

Re: How to setup rewrite valve for angularjs

2014-11-21 Thread Daniel Mikusa
On Thu, Nov 20, 2014 at 9:08 PM, Tay Kai Yang wrote: > Hi > I have been reading up tomcat 8's user doc. But I have some problems > understanding the setup of rewrite valve. I think I should add the rewrite > valve class name and XML settings to /conf/server.xml, but I am not sure > what to do nex

How to setup rewrite valve for angularjs

2014-11-20 Thread Tay Kai Yang
Hi I have been reading up tomcat 8's user doc. But I have some problems understanding the setup of rewrite valve. I think I should add the rewrite valve class name and XML settings to /conf/server.xml, but I am not sure what to do next. Where should I place my rewrite.config, how do I activate rewr