How do I access My GRails Views pages in Browser - grails-2.3

In GRails My views page locations are in C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\myapp\WEB-INF\grails-app\views\index.gsp
I used tomcat 7.0 server I deployed my application as .war extension in webapps
When I try to access my index.gsp page from browser
(URL is: localhost:8080/myapp/index.gsp)
it is showing the following error
HTTP Status 404 - "/index.gsp" not found.

check your urlMapping.groovy, it should be
"/"(view:"/index")
"500"(view:'/error')
if this is same than hit just localhost:8080/myapp
it should work

Related

On Heroku server media files getting deleted automatically after sometimes of deployment of web application

I am surprised, after successful deployment of a Django web application on heroku server.
I am able to view the media files just after the deployment but after sometimes i am unable to view it.
Error : GET https://mysite.herokuapp.com/media/files/testing_pphTYTV.mp4 404 (Not Found)
suggestions to resolve this is appreciated.....
i have used following line of code.
In settings.py file:
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

Weblogic 12.2 + url rewriting = response blocked

I have to refresh an old webapp and i'm facing a problem i can't find...
Old situation :
webapp (Java6, wicket) on Weblogic 10.3, external access via URL rewrite by IIS
everything OK
New situation :
refreshed webapp on WL 12.2, IIS unchanged.
Results : Inside URLs : everything OK
Outside URLs : HTTP 200 OK, but all pages HTTP 302 (redirections) fails
browser receive 503 (unavailable) after a while.
I looked at the logs :
WL12 : process OK, response 302 found, location:inside URL
IIS : found code 400
I looked at [Oracle docs][1], i saw that they added CSRF protection, i believed it could be that, i disabled it, but nothing changed.
Any idea ?
Thanks in advance.
[1]: https://docs.oracle.com/middleware/12213/wls/WBAPP/weblogic_xml.htm#WBAPP-GUID-E3A9B2FC-E098-43B1-ACFF-4A457D6062DE search for "referer-validation"
Forget that.
The WL12 was installed on an "end of life" server running HP Unix.
I deployed the same app on WL12 on redhat, it worked as intended.

IIS 7 - CodeIgniter Application name error 404 if not in correct case

I host my CodeIgniter website under IIS 7 with application name NewApp. So the URL can be reach on URL "my-domain.com/NewApp". The landing page can be access through "my-domain.com/newapp" link. But when I tried to access the other page like "my-domain.com/NewApp/Module" using "my-domain.com/newapp/Module" URL format, it gave me 404 error.
I have tried to un-tick the "ignore case" under "URL Rewrite" section but it makes "my-domain.com/newapp/Module" accessible and "my-domain.com/NewApp/Module" error 404.
Here is the setting that I applied on the IIS "URL Rewrite" section
Update Aug 12, 2015
The working application name is depend on what URL that we accessed after IIS Application Pool recycle period. So if I access "newapp" after the recycle period, we cannot access "NewApp". The same behaviour also applied when I access "NewApp" at the first time.
I found out that if I call codeigniter function $this->uri->uri_string() on "newapp" (assume I run "NewApp" after recycle period) the string that returned by the function is "NewApp/Controller/Function". And if I call the same function on "NewApp" it will returned "Controller/Function"
The temporary solution is to modify the router core class to make the function return the same output string.
Is there anyone know what to do in IIS so I don't use this temporary solution?

ARR and url rewrite to route to localhost app in IIS webserver

I have used ARR and URL rewrite to reverse proxy request from the internet to my local host MVC web app.
The weird thing is some parts of the web app works while others show 404 err:
1) When I type in : mywebsite/Nodewebsite/ - that works
2) When I type in : mywebsite/Nodewebsite/blog - that works
3) When I type in : mywebsite/Nodewebsite/admin - I get my admin page fine but when I try to log on I get a 404 err.
4) When I click on a link on lets say : mywebsite/Nodewebsite/blog that points to another page in my web app, I get a 404 err.
I checked the URL, the path is not right in the 404 err, it points to a location in my web root folder.
It seems whenever I try to access the web app from the internet by typing in a specific URL, it will work but if something redirect to a site it gives a 404 err.

MVC IIS production configuration issue (404)

In my MVC application I have the following mapping:
routes.MapRoute("testRoute", "services/service.js", new {controller = "Home", action = "DoWrokTest"});
I want to return a custom javascript from that call. The problem is that on my localmachine from VS debug it works fine ... but on server I get : 404 - File or directory not found.
Do you know which can be the cause? Do I have to configure IIS in a special way to handle all requests through mvc?
yes you have to do some special configuration if your iis 7.0 runs in classic mode see
http://www.asp.net/mvc/tutorials/using-asp-net-mvc-with-different-versions-of-iis-cs

Resources