Thanks Mayank, it was the ActivityMapper that I forgot to update. - Steve
On 07/03/2008, Stephen Horgan <[EMAIL PROTECTED]> wrote: > > Thanks Mayank, > it was the ActivityMapper that I forgot to update. > > - Steve > > On 07/03/2008, Mayank Upadhayay <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Stephen, > > > > > > > > Please check the attached mail; I hope this will help you > > out. Let me know if more information is required. > > > > Thanks & Regards, > > > > > > > > *Mayank Upadhayay *• Software Engineer • SunGard • Technology Services • > > Divyasree Chambers Langford Road Bangalore 560025 India > > Tel +91-80-2222-0501 • Mobile +91-9986731792 • Fax +91-80-2222-0511 • * > > www.sungard.com* > > > > P *Think before you print* > > > > CONFIDENTIALITY: This email (including any attachments) may contain > > confidential, proprietary and privileged information, and unauthorized > > disclosure or use is prohibited. If you received this email in error, please > > notify the sender and delete this email from your system. Thank you. > > > > -----Original Message----- > > *From:* [EMAIL PROTECTED] [mailto: > > [EMAIL PROTECTED] *On Behalf Of *Stephen > > Horgan > > *Sent:* Friday, March 07, 2008 3:53 PM > > *To:* Developer > > *Subject:* [Mifos-developer] System info page > > > > > > > > Hi all, > > I've done some work on a system information page for mifos (see > > https://mifos.dev.java.net/issues/show_bug.cgi?id=1535). > > It currently provides the following information: > > > > · Application database version (value in DATABASE_VERSION table) > > > > · Database vendor and version > > > > · JDBC driver vendor and version > > > > · Java vendor and version > > > > · Application server vendor and version > > > > · Subversion revision that the application was built from > > > > > > But I need some help with the permissions stuff please. Because this > > requires a new jsp page, i need a new activity id. > > I found some details on how to do this > > here<http://article.gmane.org/gmane.comp.finance.mifos.functional/550>. > > So below are the changes I've made to latest-data.sql: > > > > INSERT INTO LOOKUP_VALUE(LOOKUP_ID,ENTITY_ID,LOOKUP_NAME) VALUES(604, > > 87, 'Permissions-CanViewSystemInfo'); > > INSERT INTO > > LOOKUP_VALUE_LOCALE(LOOKUP_VALUE_ID,LOCALE_ID,LOOKUP_ID,LOOKUP_VALUE) > > VALUES(947, 1, 604, NULL); > > INSERT INTO > > ACTIVITY(ACTIVITY_ID,PARENT_ID,ACTIVITY_NAME_LOOKUP_ID,DESCRIPTION_LOOKUP_ID) > > > > VALUES(227,151,604,604); > > INSERT INTO ROLES_ACTIVITY(ACTIVITY_ID,ROLE_ID) VALUES (227,1); > > INSERT INTO DATABASE_VERSION(DATABASE_VERSION) VALUES(177); > > > > I've also written a regsiter177() method in DatabaseVersionPersistence, > > and then ran ant build_db, but when I try to navigate to the page I get a > > permissions error: "You do not have permissions to perform this activity. > > Contact your system administrator to grant you the required permissions and > > try again." > > What have I missed? > > > > Thanks > > - Steve > > > > > > ---------- Forwarded message ---------- > > From: "Mayank Upadhayay" <[EMAIL PROTECTED]> > > To: "Mifos functional discussions" < > > [EMAIL PROTECTED]> > > Date: Mon, 10 Sep 2007 10:32:28 +0530 > > Subject: RE: [Mifos-functional] Please help > > > > Hi Renju, > > > > When ever you perform any activity, it will check whether > > the activity is allowed or not. I think you need to define your activity in > > the corresponding action class in *getSecurity** method*. There is class > > ActivityMapper.java that will map the corresponding activity, it also > > loads the activity from the action class and put it into activityMap.Before > > any activity is processed it will check in that activityMap, whether > > it is allowed or not. > > > > > > > > I think this will help you out… > > > > > > > > > > > > -----Original Message----- > > *From:* [EMAIL PROTECTED] [mailto: > > [EMAIL PROTECTED] *On Behalf Of *Renju > > *Sent:* Monday, September 10, 2007 10:09 AM > > *To:* Mifos functional discussions > > *Subject:* Re: [Mifos-functional] Please help > > > > > > > > Hi Mayank, > > > > Good morning. I am trying to see whether I can customise mifos gui. > > As the first step, I tried to add a new tab with the exisitng tabs > > (home,clients&accounts,reports,admin) and I added it by modifying the > > homeheader jsp. I wrote form and actions for the same and modified struts > > config.xml accordingly for maping. > > > > But when I clicked the new link that I created an error message is > > shown as follows : > > > > > > > > · *You do not have permissions to perform this activity. Contact > > your system administrator to grant you the required permissions and try > > again.* > > > > > > > > can you please tell me how to proceed to avoid this error? > > > > > > > > Thanks and regards, > > > > Renju. > > > > > > > > > > > > ----- Original Message ----- > > > > *From:* Mayank Upadhayay <[EMAIL PROTECTED]> > > > > *To:* Mifos functional discussions<[EMAIL PROTECTED]> > > > > *Sent:* Thursday, September 06, 2007 5:41 PM > > > > *Subject:* Re: [Mifos-functional] Please help > > > > > > > > Hi Renju, > > > > First you need to download the source code for it from the > > location https://mifos.dev.java.net/svn/mifos/trunk. For that you need > > to install svn client. Check this link it will help you out > > http://www.mifos.org/developers/developers/install-mifos/get-source-code. > > The required steps needed to install is mentioned in the file at location ( > > https://mifos.dev.java.net/source/browse/*checkout*/mifos/trunk/mifos/README). > > Hope it will solve your problem… > > > > > > > > -----Original Message----- > > *From:* [EMAIL PROTECTED] [mailto: > > [EMAIL PROTECTED] *On Behalf Of *Renju > > *Sent:* Thursday, September 06, 2007 5:34 PM > > *To:* Mifos functional discussions > > *Subject:* [Mifos-functional] Please help > > > > > > > > Hai all, > > > > I am very new to mifos. I downloaded mifos war file and sql from > > java.net and deployed the same using jetty. The software is working > > perfectly and I am able to login. But I need to know how I can change or add > > to existing code. I got only the class files for the action java files. I > > decompiled one of them(loginAction.java) and tried to change and compile > > it back. But after I did so, I could'nt login. > > > > > > > > The error I got is a Nullpointer exception as follows : > > > > > > > > > > > > > > *HTTP ERROR: 500* > > > > INTERNAL_SERVER_ERROR > > > > RequestURI=/mifos/loginAction.do > > *Caused by:* > > > > java.lang.NullPointerException > > > > at > > org.mifos.application.login.struts.action.LoginAction.setFlow(LoginAction.java:169) > > > > at > > org.mifos.application.login.struts.action.LoginAction.login(LoginAction.java:69) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > > at > > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) > > > > at > > org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) > > > > at > > org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:66) > > > > at > > org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:210) > > > > at > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > > > > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) > > > > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) > > > > at > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050) > > > > at > > org.mifos.framework.security.util.LoginFilter.doFilter(LoginFilter.java:98) > > > > at > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) > > > > at > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354) > > > > at > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) > > > > at > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) > > > > at > > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) > > > > at > > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) > > > > at > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) > > > > at org.mortbay.jetty.Server.handle(Server.java:269) > > > > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) > > > > at > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701) > > > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617) > > > > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199) > > > > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339) > > > > at > > org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270) > > > > at > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > > > *Powered by Jetty:// <http://jetty.mortbay.org/>* > > > > > > > > > > > > Thanks and Regards, > > > > Renju. > > > > > > ------------------------------ > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > > > _______________________________________________ > > Mifos-functional mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/mifos-functional > > ------------------------------ > > > > Internal Virus Database is out-of-date. > > Checked by AVG Free Edition. > > Version: 7.5.476 / Virus Database: 269.9.6/865 - Release Date: 6/24/2007 > > 8:33 AM > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
