[GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a
Windows service, so it keeps running when I log out of the server (Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -
but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On 4/19/11 8:44 AM, jonathanmoules@anonymised.com wrote:

Hi Guy's
         I was wondering how to get GeoNetwork (i.e., Jetty) working as a
Windows service, so it keeps running when I log out of the server (Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

There is a program sc.exe program for Windows Server (2003-2008) that is used to add services by command-line invocation. This could be used to run "start.bat" or similar, and it is added to the Services panel for management.

http://support.microsoft.com/kb/251192

See in particular "sc create":
sc [Servername] create Servicename [Optionname= Optionvalue...

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -
but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Douglas D. Nebert
Senior Advisor for Geospatial Technology, System-of-Systems Architect
FGDC Secretariat T:703 648 4151 F:703 648-5755 C:703 459-5860

IFF you want to run Geonetwork in Tomcat (that's a big if), Tomcat has native windows installers and service configurations which integrate nicely with windows server platforms.
32-bit/64-bit Windows Service Installer<http://apache.mirror.aussiehq.net.au/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.exe&gt;

You can then install Geonetwork into the server instance of tomcat, and you should be good to go.

I have not seen a nice UI for controlling 'service instances of jetty'

Regards,
Terry
________________________________
From: jonathanmoules@anonymised.com [jonathanmoules@anonymised.com]
Sent: Tuesday, 19 April 2011 8:44 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a
Windows service, so it keeps running when I log out of the server (Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -
but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Try this

http://metageta.googlecode.com/svn/!svn/bc/533/tools/geonetwork-service/

or this - if you're viewing in an open source browser:
http://code.google.com/p/metageta/source/browse/tools/geonetwork-service

Regards

Simon Oliver
-----------------------------------------------------------------------
Remote Sensing Coordinator
Department of Sustainability, Environment, Water
Population and Communities
Ph. +61 2 6275 9332
simon.oliver@anonymised.com
-----------------------------------------------------------------------

-----Original Message-----
From: jonathanmoules@anonymised.com
[mailto:jonathanmoules@anonymised.com]
Sent: Tuesday, 19 April 2011 22:45
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a

Windows service, so it keeps running when I log out of the server
(Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-ta
sk-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -

but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it,
or disclose it to anyone else. If you have received this transmission in
error please notify the sender immediately. All email traffic sent to or
from us, including without limitation all GCSX traffic, may be subject
to recording and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------
------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and
improve
application availability and disaster protection. Learn more about
boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver of any confidentiality, privilege or copyright in respect of information in the e-mail or attachments.

Please consider the environment before printing this email.

Hi Jonathan,

Sorry about the 404 - it's still there just moved into the tags:

Cheers,
Simon
________________________________________
From: jonathanmoules@anonymised.com [jonathanmoules@anonymised.com]
Sent: Tuesday, 19 April 2011 10:44 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a
Windows service, so it keeps running when I log out of the server (Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
Make Jetty as Windows Service | Eureka! -
but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi Simon,
        Thanks. That works great. And for bonus points less effort than
the other options suggested. :wink:
Cheers,
Jonathan

From: <Simon.Pigot@anonymised.com>
To: <jonathanmoules@anonymised.com>,
<geonetwork-users@lists.sourceforge.net>
Date: 20/04/2011 17:18
Subject: RE: [GeoNetwork-users] GeoNetwork as a windows service

Hi Jonathan,

Sorry about the 404 - it's still there just moved into the tags:

http://geonetwork.svn.sourceforge.net/viewvc/geonetwork/sandbox/tags/BlueNetMEST-1.4.5-170311/bin/

Cheers,
Simon
________________________________________
From: jonathanmoules@anonymised.com
[jonathanmoules@anonymised.com]
Sent: Tuesday, 19 April 2011 10:44 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a
Windows service, so it keeps running when I log out of the server (Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-td5843356.html

- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -
but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in
error please notify the sender immediately. All email traffic sent to or
from us, including without limitation all GCSX traffic, may be subject to
recording and/or monitoring in accordance with relevant legislation.

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi

I tried to implement the Geonetwork windows service below as a test on my
local PC running Windows XP, have installed the Windows service but when I
try to run it I get the following message:-

'The GeoNetwork OpenSource service on Local Computer started and then
stopped. Some services stop automatically if they have no work to do, for
example, the Performance Logs and Alerts service.'

I had a look in the Event Viewer and it appears there is some kind of issue
with the geonetwork-service python script:-

'Python could not import the service's module

<type 'exceptions.ImportError'>: No module named geonetwork-service'

Is this an issue with where I have saved the geonetwork-service.py file at
all? I have saved this and the bat files to my geonetwork install folder, do
I need to save the py file somewhere specific? Anyone else encountered this
problem when trying to implement the windows service mentioned below?

Thanks, Chris

Oliver, Simon wrote

Try this

http://metageta.googlecode.com/svn/!svn/bc/533/tools/geonetwork-service/

or this - if you're viewing in an open source browser:
http://code.google.com/p/metageta/source/browse/tools/geonetwork-service

Regards

Simon Oliver
-----------------------------------------------------------------------
Remote Sensing Coordinator
Department of Sustainability, Environment, Water
Population and Communities
Ph. +61 2 6275 9332

simon.oliver@anonymised.com

-----------------------------------------------------------------------

-----Original Message-----
From:

jonathanmoules@anonymised.com

[mailto:

jonathanmoules@anonymised.com

]
Sent: Tuesday, 19 April 2011 22:45
To:

geonetwork-users@anonymised.com

Subject: [GeoNetwork-users] GeoNetwork as a windows service

Hi Guy's
        I was wondering how to get GeoNetwork (i.e., Jetty) working as a

Windows service, so it keeps running when I log out of the server
(Windows
Server 2008 R2).
My research found this thread:
http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-ta
sk-td5843356.html
- which does exactly what I want, but the URL provided by Simon for his
app is a 404 now, so that doesn't work.

The other option is to use the Jetty "Windows Service Wrapper" - per
https://ykyuen.wordpress.com/2010/03/15/make-jetty-as-windows-service/ -

but the GeoNetwork install doesn't include any of the elements listed
there so that's a loss too.

Anyone know of how to do this, or where I can aquire a copy of Simon's
little VB program?
Thanks
Jonathan Moules

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it,
or disclose it to anyone else. If you have received this transmission in
error please notify the sender immediately. All email traffic sent to or
from us, including without limitation all GCSX traffic, may be subject
to recording and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------
------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and
improve
application availability and disaster protection. Learn more about
boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list

GeoNetwork-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

If you have received this transmission in error please notify us
immediately by return e-mail and delete all copies. If this e-mail or any
attachments have been sent to you in error, that error does not constitute
waiver of any confidentiality, privilege or copyright in respect of
information in the e-mail or attachments.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about
boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list

GeoNetwork-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-as-a-windows-service-tp3860916p5071472.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.