Re: [Dspace-tech] Help with non-running DSpace scripts

2010-09-20 Thread Stan Orlov
Hi Stuart,

In 1.5.1, we used to launch the handle server using:

dsrun -Ddspace.log.init.disable=true
-Dlog4j.configuration=log4j-handle-plugin.properties net.handle.server.Main
C:\DSpace\handle-server

I used your suggestion and set up the DSpace Handle Server as a Windows
server.  Now, when I start this service in Windows Services, it shows as
running and I can restart it there w/o any problems, but when I click on a
handle link in DSpace records, I have Error - Cannot Connect to Server.

On the other hand, even when the DSpace Handle Server service is not started
in the Services window, I can just run:

dspace-handle.bat

in the command prompt and the handle server starts just fine, asks me for
the passphrase and then I can resolve handles w/o any problem until I Ctrl+C
out of the command prompt.

So, it looks like the Windows service I set up is not launching the server,
or at least not what dspace-handle.bat is launching.  I think I should
change some settings somewhere, but I am not sure which ones.  Any advice is
most welcome!

Cheers,
Stan



On Sun, Sep 19, 2010 at 12:47 AM, Stuart Lewis s.le...@auckland.ac.nzwrote:

 Hi Stan,

  I've update 1.5.1 to 1.6.2 on a Windows 2003 server and it is running.
  However, when I try to start the handle server, I got an error.  It depends
 on what I use - dspace or dsrun:
 
  C:\DSpace\bindspace start-handle-server
  Using DSpace installation in: C:\DSpace
  Command not found: start-handle-server
 
  C:\DSpace\bindsrun start-handle-server
  Using DSpace installation in: C:\DSpace
  Error in launcher.xml: Invalid class name: start-handle-server

 How did you do this in 1.5.1?  I think that most people using Windows tend
 to use this approach:

  -
 https://wiki.duraspace.org/display/DSPACE/Handle+Server+Setup+as+Windows+Service+%28using+Tanuki%29

 This allows you to set it up as a Windows Service, so that it starts up
 automatically when the machines boots up.

 Thanks,


 Stuart Lewis
 IT Innovations Analyst and Developer
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help with non-running DSpace scripts

2010-09-18 Thread Stan Orlov
Greetings!

I've update 1.5.1 to 1.6.2 on a Windows 2003 server and it is running.
However, when I try to start the handle server, I got an error.  It depends
on what I use - dspace or dsrun:

C:\DSpace\bindspace start-handle-server
Using DSpace installation in: C:\DSpace
Command not found: start-handle-server

C:\DSpace\bindsrun start-handle-server
Using DSpace installation in: C:\DSpace
Error in launcher.xml: Invalid class name: start-handle-server

Could you help me figure it out?

Thanks and cheers,
Stan Orlov
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help with non-running DSpace scripts

2010-09-18 Thread Stuart Lewis
Hi Stan,

 I've update 1.5.1 to 1.6.2 on a Windows 2003 server and it is running.  
 However, when I try to start the handle server, I got an error.  It depends 
 on what I use - dspace or dsrun:
  
 C:\DSpace\bindspace start-handle-server
 Using DSpace installation in: C:\DSpace
 Command not found: start-handle-server
 
 C:\DSpace\bindsrun start-handle-server
 Using DSpace installation in: C:\DSpace
 Error in launcher.xml: Invalid class name: start-handle-server

How did you do this in 1.5.1?  I think that most people using Windows tend to 
use this approach:

 - 
https://wiki.duraspace.org/display/DSPACE/Handle+Server+Setup+as+Windows+Service+%28using+Tanuki%29

This allows you to set it up as a Windows Service, so that it starts up 
automatically when the machines boots up.

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help with non-running DSpace scripts

2010-01-25 Thread Stan Orlov
Dear colleagues,

We hope someone on this list can help us understand why some scripts in the
DSpace/bin directory on Windows run while some others don't.

We've installed the handle server and edited the config files.  We run
DSpace 1.5.1 on Win 2003 server.  However, when we try to run any handle
server related scripts from DSpace\bin, we have the following messages:

C:\DSpace\binupdate-handle-prefix 123456789 10587
'update-handle-prefix' is not recognized as an internal or external command,
operable program or batch file.

C:\DSpace\binstart-handle-server
'start-handle-server' is not recognized as an internal or external command,
operable program or batch file.

At the same time, dsrun in the same bin directory runs just fine.  What
should we do to make handle scripts work?

Your help is really appreciated!

Cheers,
Stan Orlov
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help with non-running DSpace scripts

2010-01-25 Thread Tim Donohue
Stan,

The reason for the problems that you see are that most scripts (all 
those without file extensions) in that [dspace]/bin directory are 
actually Linux Bourne Shell scripts.

In DSpace 1.5.x only the 'dsrun.bat' script works on Windows (it's a 
Windows/MS-DOS batch file).

In DSpace 1.5.x, if you want to run one of the other scripts on Windows, 
you'd need to open up the script file (e.g. update-handle-prefix) and 
type in the class name which appears after the $BINDIR/dsrun.

So, as an example, instead of running update-handle-prefix on Windows, 
you'd run:
dsrun org.dspace.handle.UpdateHandlePrefix

As another example, instead of running start-handle-server on Windows,
you'd run:

dsrun -Ddspace.log.init.disable=true 
-Dlog4j.configuration=log4j-handle-plugin.properties 
net.handle.server.Main [handle-dir]  [path to handle server log file]

Obviously, this is not ideal, and makes it difficult to run commands on 
Windows.  So, in DSpace 1.6.0 (to be released in Feb), we've reworked 
this, so that all commands (on Linux or Windows) can be run from a 
common dspace script.  So, in DSpace 1.6.0, you'd just run 
'[dspace]/bin/dspace update-handle-prefix' on either Linux, Mac or Windows.

- Tim

On 1/25/2010 11:39 AM, Stan Orlov wrote:
 Dear colleagues,

 We hope someone on this list can help us understand why some scripts in
 the DSpace/bin directory on Windows run while some others don't.

 We've installed the handle server and edited the config files.  We run
 DSpace 1.5.1 on Win 2003 server.  However, when we try to run any handle
 server related scripts from DSpace\bin, we have the following messages:

 C:\DSpace\binupdate-handle-prefix 123456789 10587
 'update-handle-prefix' is not recognized as an internal or external
 command, operable program or batch file.

 C:\DSpace\binstart-handle-server
 'start-handle-server' is not recognized as an internal or external
 command, operable program or batch file.

 At the same time, dsrun in the same bin directory runs just fine.  What
 should we do to make handle scripts work?

 Your help is really appreciated!

 Cheers,
 Stan Orlov



 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for Conference
 attendees to learn about information security's most important issues through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev



 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help with non-running DSpace scripts

2010-01-25 Thread Stan Orlov
Thank you, Tim!

Worked like a charm!  Looking forward to 1.6.0 now :)

Cheers,
Stan



On Mon, Jan 25, 2010 at 2:18 PM, Tim Donohue tdono...@duraspace.org wrote:

 Stan,

 The reason for the problems that you see are that most scripts (all
 those without file extensions) in that [dspace]/bin directory are
 actually Linux Bourne Shell scripts.

 In DSpace 1.5.x only the 'dsrun.bat' script works on Windows (it's a
 Windows/MS-DOS batch file).

 In DSpace 1.5.x, if you want to run one of the other scripts on Windows,
 you'd need to open up the script file (e.g. update-handle-prefix) and
 type in the class name which appears after the $BINDIR/dsrun.

 So, as an example, instead of running update-handle-prefix on Windows,
 you'd run:
 dsrun org.dspace.handle.UpdateHandlePrefix

 As another example, instead of running start-handle-server on Windows,
 you'd run:

 dsrun -Ddspace.log.init.disable=true
 -Dlog4j.configuration=log4j-handle-plugin.properties
 net.handle.server.Main [handle-dir]  [path to handle server log file]

 Obviously, this is not ideal, and makes it difficult to run commands on
 Windows.  So, in DSpace 1.6.0 (to be released in Feb), we've reworked
 this, so that all commands (on Linux or Windows) can be run from a
 common dspace script.  So, in DSpace 1.6.0, you'd just run
 '[dspace]/bin/dspace update-handle-prefix' on either Linux, Mac or Windows.

 - Tim

 On 1/25/2010 11:39 AM, Stan Orlov wrote:
  Dear colleagues,
 
  We hope someone on this list can help us understand why some scripts in
  the DSpace/bin directory on Windows run while some others don't.
 
  We've installed the handle server and edited the config files.  We run
  DSpace 1.5.1 on Win 2003 server.  However, when we try to run any handle
  server related scripts from DSpace\bin, we have the following messages:
 
  C:\DSpace\binupdate-handle-prefix 123456789 10587
  'update-handle-prefix' is not recognized as an internal or external
  command, operable program or batch file.
 
  C:\DSpace\binstart-handle-server
  'start-handle-server' is not recognized as an internal or external
  command, operable program or batch file.
 
  At the same time, dsrun in the same bin directory runs just fine.  What
  should we do to make handle scripts work?
 
  Your help is really appreciated!
 
  Cheers,
  Stan Orlov
 
 
 
 
 --
  Throughout its 18-year history, RSA Conference consistently attracts the
  world's best and brightest in the field, creating opportunities for
 Conference
  attendees to learn about information security's most important issues
 through
  interactions with peers, luminaries and emerging and established
 companies.
  http://p.sf.net/sfu/rsaconf-dev2dev
 
 
 
  ___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech


 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech