Solved

Help setting up the Handle Server as a Windows service

Posted on 2010-09-21
2
519 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
2 Comments
 
LVL 35

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 52
login jsp example 24 65
Enterprise Mode 4 47
Java Eclipse Loop 3 20
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

856 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