Solved

Help setting up the Handle Server as a Windows service

Posted on 2010-09-21
2
509 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now