Solved

Help setting up the Handle Server as a Windows service

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

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 …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 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