Dave Wynne
Senior Technical Officer
School of
Computing and Maths
Liverpool John Moores University
Byrom
Street
Liverpool L2 2AF
E-Mail:
D.W...@ljmu.ac.uk
Tel:0151-231-2108
I've recently installed DSpace. Build & install went without a single error.
I then copied the jspui directory to where Tomcat 6 is looking:/var/lib/tomcat6/webappsStopped & restarted Tomcat6, but the following error is in localhost.2009-10-07.log:DSpace has failed to initialize, during stage 2. Error while attempting to read
the
DSpace configuration file (Path: '/usr/local/dspace-1.5.2/config/dspace.cfg').
The file is there:-rw-r--r-- 1 tomcat6 tomcat6 68726 2009-10-06 17:19 /usr/local/dspace-1.5.2/config/dspace.cfg
From: Stuart Lewis [mailto:s.l...@auckland.ac.nz]
Sent: 07 October 2009 21:00
To: Wynne, David
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Problem with DSpace-1.5.2 on Ubuntu linux
I've configured & tested openldap on my ubuntu system & ldapsearch all works as expected.The problem is that our Active Directory has a rather unusual setup.
At the moment in ther dspace.log file:2009-10-15 13:27:53,489 INFO org.dspace.authenticate.LDAPHierarchicalAuthentica
tion @ anonymous:session_id=116B1778D9539B1DDC5B49BF0820463B:ip_addr=150.204.48.
5:auth:attempting trivial auth of user=cmsdwynn
2009-10-15 13:27:53,493 WARN org.dspace.app.webui.servlet.InternalErrorServlet
@ :session_id=116B1778D9539B1DDC5B49BF0820463B:internal_error:-- URL Was: http:/
/dspace.cms.livjm.ac.uk:8080/jspui/password-login
-- Method: POST
-- Parameters were:
-- login_email: "cmsdwynn"
-- login_password: *not logged*
-- login_submit: "Log In"java.lang.NullPointerException
From: Stuart Lewis [mailto:s.l...@auckland.ac.nz]
Sent: 15 October 2009 15:04
Subject: Re: [Dspace-tech] DSpace & Active Directory
I've not tried doing this, but after looking around, I would attempt the following as a non-invasive way of making this work.
http://www.coderanch.com/t/413965/Servlets/java/Force-URL-redirect-from-http
Create a security constraint in your web.xml, that will force certain URLs to use a secure transport.
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL Pages</web-resource-name>
<url-pattern>/ldap-login*</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
If this doesn't work, the next best option would be to write a servlet filter that checks for secure transport, and redirects if it isn't - then map it to the login pages in the web.xml.
Graham Triggs
Technical Architect
Open Repository
http://www.openrepository.com/