Hi,
I am getting the following error when i accidentally hit a url of kind http://localhost/example/main/home . The "/home" was accidentally typed but instead of showing error.jsp page, It Displayed "resource(//home) is not available. After a lot of googing and going through project code, I found out the the ofibiz container is trying to find the <view-map> with name="home" in controller.xml. Is there any way of handling it and displaying the error page instead of the text.. Regards, Jugal Kishore Mahendra |
what behavior do you want?
you can change the error.jsp that is the simplest. Jugal Kishore Mahendra sent the following on 7/28/2009 4:12 AM: > Hi, > I am getting the following error when i accidentally hit a url of kind > http://localhost/example/main/home . The "/home" was accidentally typed > but instead of showing error.jsp page, It Displayed "resource(//home) is > not available. > After a lot of googing and going through project code, I found out the > the ofibiz container is trying to find the <view-map> with name="home" > in controller.xml. > Is there any way of handling it and displaying the error page instead of > the text.. > > Regards, > Jugal Kishore Mahendra > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by Jugal Kishore Mahendra
Hello,
It does not sound like you are necessarily hung up with ofbiz here. Or, to rephrase BJ's question: What are you trying to do and are you sure it is in line with the recommended use of ofbiz? Your example shows that you should have a webapp called "example" and the ofbiz default controler will not be matching anything here since it is not called (unless you added a redirect configuration in your web.xml which puts all calls for */main/* to */control/*. I don't think this is recommended for ofbiz webapps). The "resource not available" is the default message of the container when it is not able to direct the request to a handler. So this usually means that the servlet or JSP that renders the response (an HTML page) is not there. My understanding was that in order to even get into the "controller.xml lookup" you would either need to specify the ofbiz appname (so it routes you to the default path) or a url within that app's controller, namely: either http://localhost/<valid-app-name-here>/ --> routes to default page of app or http://localhost/<valid-app-name-here>/control/<target-here> --> target needs to exist My understanding is further that the only event which will kick your request to the error page is when <target-here> does not correspond to a valid target in the proper controller.xml of <valid-app-name-here>. So most likely either the container or the ofbiz servlet of the app is not able to handle requests to http://localhost/<valid-app-name-here>/<something-else-than-control> /<target-here> Let me know whether this helps you out. Regards Carsten 2009/7/28 Jugal Kishore Mahendra <[hidden email]> > Hi, > I am getting the following error when i accidentally hit a url of kind > http://localhost/example/main/home . The "/home" was accidentally typed > but instead of showing error.jsp page, It Displayed "resource(//home) is > not available. > After a lot of googing and going through project code, I found out the > the ofibiz container is trying to find the <view-map> with name="home" > in controller.xml. > Is there any way of handling it and displaying the error page instead of > the text.. > > Regards, > Jugal Kishore Mahendra > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
Free forum by Nabble | Edit this page |