My guess would be that your service is not registered in one of the user profiles.
Look inside the folder 'web/geonetwork/WEB-INF' for a file named 'user-profiles.xml'. I think that you need to add your service into one of the profile (according to the which profile can access your service Admin, Registered, etc...)
Simply add the following line:
<allow service="mytestservice"/>
And I think you should be able to access the service.
Best regards,
Guillaume
From: Neha Mehta [mailto:Neha.Mehta@…623…]
Sent: 10 December 2009 5:25
To: Polet Guillaume
Cc: geonetwork-devel@lists.sourceforge.net
Subject: RE: [GeoNetwork-devel] Unable to get chnages reflected in .xslfileand service
Hi,
Thank you so much for the reply. Actually the problem is :
I have created a new java service, Test.java and invoked the same as follows in config.xml.
<service name="mytestservice">
<class name=".services.test.Test" />
<output sheet="nextpage.xsl">
</output>
</service>
When I build the code, restart the server, I get the following error message :
“YOU MAY NOT HAVE THE PRIVILEGES TO DO THIS OPERATION.
ServiceNotAllowedEx : Service not allowed”
I am not able to understand the reason behind it… Please help me to get out of this…
Thanks and regards,
Neha Mehta.
-----Original Message-----
From: Polet Guillaume [mailto:guillaume.polet@…621…]
Sent: Wednesday, December 09, 2009 6:19 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Unable to get chnages reflected in .xslfile and service
It all depends on how you want to work.
During the development phase, you should only run the build script located at the root of the checked-out code, and then execute the start-geonetwork.bat/.sh file located in the 'bin' folder to test your changes.
Once you are done and you intend to deploy the application, you build the sources using the build script located at the root folder of the checked-out code, then you launch the build script located in the 'installer' folder to create the installer and finally you deploy the application using the newly created installer.
Guillaume Polet
From: Neha Mehta [mailto:Neha.Mehta@…623…]
Sent: 09 December 2009 11:13
To: tropicano@...31...
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Unable to get chnages reflected in .xslfile and service
Hi,
If I make a new java service, do I need to use ant command to build the code.
Then Is there a need to recreate the installer and reinstall the application again?? I mean recreating geonetwork-install-2.4.2-0.jar and again installing the application…?
From: heikki [mailto:tropicano@…31…]
Sent: Monday, December 07, 2009 5:56 PM
To: Neha Mehta
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Unable to get chnages reflected in .xsl file and service
hello,
normally your changes to main.xsl should be visible, certainly after you restart the application. But for your own, new (Java) service to be executed, it should be defined in config.xml.
Sounds like you want to execute your service upon going to the main page? In that case see the section on service "main.home" in config.xml, to see how to add it there.
Could it be that your change to main.xsl would only show up if your service is actually executed? That could explain why you do not see any changes. Try maybe putting <div style="font-size:48px;">TEST</div> somewhere in the page to verify you actually have your changes in the page.
Kind regards
Heikki Doeleman
On Mon, Dec 7, 2009 at 11:53 AM, Neha Mehta <Neha.Mehta@...623...> wrote:
Hi,
I am a newbie to GeoNetwork.I am trying to make changes in .xsl file, creating my own service and calling it but my changes are not being reflected on the GUI.
I have changed main-page.xsl but nothing was reflected when I restarted the server.
Do I need to register my new service anywhere ? Also I could not fine the reason for the changes not being reflected on main-page.xsl…
Please help me out
Thanks & Regards:
Neha Mehta,
Mumbai.
________________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
________________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
________________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________