Solved

Help setting up the Handle Server as a Windows service

Posted on 2010-09-21
2
521 Views
Last Modified: 2012-05-10
Greetings!

We have a DSpace (institutional repository) running on a Windows 2003 server.  It is Java based and is using Apache and Tomcat to display webapps and the Handle Server (http://www.handle.net/start.html) to convert handles (like http://hdl.handle.net/12345/903) into our addresses like (http://mywebsite.com:8080/xmlui/handle/12345/903).

Previously, we used to launch the handle server manually, typing:

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

in the command prompt.  It would ask for a passphrase and then launch the server.

I tried to set up the DSpace Handle Server as a Windows server.  The procedure is described here:

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

Chances are, I mixed up something.  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!
0
Comment
Question by:lolekbolek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 500 total points
ID: 33730382
I have ZERO knowledge on DSpace or Handle servers or any of that, but I do have a suggestion of where to start looking. You mention that even running "dspace-handle.bat" asks you for a passphrase before starting the server. Well this is probably what the service is waiting for, the passphrase. I think this is why is still shows that the service has started (but internally it only gets as far as asking for the passphrase, but there is no way of providing it).

So my suggestion of where to look is either someway of providing this passphrase in a DSpace/Handle configuration file, or someway to disable needing a passphrase altogether. If you can get to a point where "dspace-handle.bat" does NOT ask for a passphrase, I think your service would then start fine and resolve handles for you.
0
 

Author Closing Comment

by:lolekbolek
ID: 33739624
People who created and are running the Handle server suggested to re-do the server setup, this time w/o the passphrase, so mccarl's suggestions should be correct.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question