[GeoNetwork-devel] Unable to get chnages reflected in .xsl file and service

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.


(attachments)

image001.gif

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

TEST
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@anonymised.com> 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

(attachments)

image001.gif

Hi,

Thank you so much for the reply. Could you please specify, does restarting the application means restarting the server?

I tried using <div ….> , but still I did not get my changes reflected.

I had taken code from the repository, I built the code using ant tool , inside geonetwork home directory as well as inside geonetwork/installer/. I got geonetwork-install-2.4.2-0.jar and I installed the application on my machine. I started the server. I made changes and restarted the server.

Could you please let me know if I am missing something…

Thanks and regards

Neha Mehta.

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

TEST
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.


(attachments)

image001.gif

yes, restart the server if you’re running it using the start script in the bin folder–in that way it runs the server (Jetty) embedded in with the application (but if you deployed in Tomcat just restarting the application would be enough).

So the steps you mention sound OK, you should definitely see your changes to the page.

On Tue, Dec 8, 2009 at 12:09 PM, Neha Mehta <Neha.Mehta@anonymised.com> wrote:

Hi,

Thank you so much for the reply. Could you please specify, does restarting the application means restarting the server?

I tried using <div ….> , but still I did not get my changes reflected.

I had taken code from the repository, I built the code using ant tool , inside geonetwork home directory as well as inside geonetwork/installer/. I got geonetwork-install-2.4.2-0.jar and I installed the application on my machine. I started the server. I made changes and restarted the server.

Could you please let me know if I am missing something…

Thanks and regards

Neha Mehta.

From: heikki [mailto:tropicano@anonymised.com]
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

TEST
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@anonymised.com> 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.


Hi,

Either I completely misunderstood what you are saying (and then you can just ignore the rest of this message) or it seems that you have used the installer to deploy the application and you access this installed version but you make changes in the sources. Since the source and the installed version are in two different locations, changes you make on one side will not appear on the other one.
If this is the case, then in order to see your changes, you need to reinstall GN each time you want to see your changes, which is of course very painful.
To avoid this, you have two options:
1) Make your changes directly in the installed version (but this is not really a solution on the long-term since you can only change resources, like XML files)
2) Make your changes on the sources, you relaunch the Ant build script (the one at the root) so that Java classes and jars are rebuilt (if you don't change the Java classes, then I think you can skip the build part) and then you use the .bat/.sh file located in /bin directory to launch the application (this will actually initiate Jetty which in turn will start GN).

The first solution is not much of a solution and I would definitely go for the second one.
This article also explains some good stuff: http://trac.osgeo.org/geonetwork/wiki/HowToCompile

Guillaume

From: Neha Mehta [mailto:Neha.Mehta@…623…]
Sent: 08 December 2009 12:09
To: tropicano@...31...
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Unable to get chnages reflected in .xsl file and service

Hi,

Thank you so much for the reply. Could you please specify, does restarting the application means restarting the server?

I tried using <div ….> , but still I did not get my changes reflected.
I had taken code from the repository, I built the code using ant tool , inside geonetwork home directory as well as inside geonetwork/installer/. I got geonetwork-install-2.4.2-0.jar and I installed the application on my machine. I started the server. I made changes and restarted the server.

Could you please let me know if I am missing something…

Thanks and regards

Neha Mehta.

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.

______________________________________________________________________

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

TEST
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.


(attachments)

image001.gif

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.

______________________________________________________________________

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.

______________________________________________________________________