Re: [Dspace-tech] sword setup
On Wed, Aug 1, 2012 at 1:26 PM, Domingo Iglesias digles...@ub.edu wrote: Thanks for the suggestion. I have checked web.xml and it's correct. I'm glad it worked. authenticating with BASIC 'weblogic'@dipositint9.ub.edu:8 Sorry, no idea. But this line looks wrong - 1) there are apotrophes around weblogic and 2) port number is 8? Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] sword setup
Confirmed: it is a problem related to how weblogic handles authorization by default. The solution is to add the stanza: enforce-valid-basic-auth-credentialsfalse/enforce-valid-basic-auth-credentials in the config.xml of the domain. 2012/8/2 helix84 heli...@centrum.sk: On Wed, Aug 1, 2012 at 1:26 PM, Domingo Iglesias digles...@ub.edu wrote: Thanks for the suggestion. I have checked web.xml and it's correct. I'm glad it worked. authenticating with BASIC 'weblogic'@dipositint9.ub.edu:8 Sorry, no idea. But this line looks wrong - 1) there are apotrophes around weblogic and 2) port number is 8? Regards, ~~helix84 Aquest correu electrònic i els annexos poden contenir informació confidencial o protegida legalment i està adreçat exclusivament a la persona o entitat destinatària. Si no sou el destinatari final o la persona encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest correu electrònic per error, us preguem que n’informeu al remitent i que elimineu del sistema el missatge i el material annex que pugui contenir. Gràcies per la vostra col·laboració. Este correo electrónico y sus anexos pueden contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no es el destinatario final o la persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico por error, le rogamos que informe al remitente y elimine del sistema el mensaje y el material anexo que pueda contener. Gracias por su colaboración. This email message and any documents attached to it may contain confidential or legally protected material and are intended solely for the use of the individual or organization to whom they are addressed. We remind you that if you are not the intended recipient of this email message or the person responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any of its contents. If you have received this email message by mistake, we kindly ask you to inform the sender of this and to eliminate both the message and any attachments it carries from your account. Thank you for your collaboration. -- --- Domingo Iglesias Universitat de Barcelona Area de Tecnologies -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] sword setup
Hi Domingo, this post from Stuart describes the approach or separate configuration file for the sword webapp: http://dspace.2283337.n4.nabble.com/Dspace-tech-Shibboleth-Sword-problem-td3286764.html Maybe it will help or it just describes what you already tried. You should describe the details of your configuration (that doesn't work) so that someone here might help you. My best guess is that since DSpace authentication is now split off as a module ([dspace]/config/modules/authentication.cfg), pointing just to dspace.cfg doesn't work. Try to duplicate the whole config directory and point the swrod webapp to it (if that's not what you already tried - again, always describe what you tried so we don't have to guess). Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] sword setup
Hi Ivan, thanks for your response. I have followed Stuart's solution in the previous versions, and I am trying to implement it in 1.8.2 version of dspace as you propose. I have cloned all the [dpace.dir], so I have: ./dspace and ./dspace_sword In ./dspace_sword there are symlinks to all the ./dspace subdirs with the exception of config which points to config_sword subdir. In the latter there is a special dspace.cfg with dspace.dir pointing to ./dspace_sword, and in the modules directory a authentication.cfg with: plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \ org.dspace.authenticate.PasswordAuthentication I run maven and ant twice: one pointing to ./dspace/config/dspace.cfg and another pointing to ./dpace_sword/config/dspace.cfg, and deploy accordingly on the (weblogic) server. I wonder if there is an alternative solution ... Thanks! 2012/7/31 helix84 heli...@centrum.sk: Hi Domingo, this post from Stuart describes the approach or separate configuration file for the sword webapp: http://dspace.2283337.n4.nabble.com/Dspace-tech-Shibboleth-Sword-problem-td3286764.html Maybe it will help or it just describes what you already tried. You should describe the details of your configuration (that doesn't work) so that someone here might help you. My best guess is that since DSpace authentication is now split off as a module ([dspace]/config/modules/authentication.cfg), pointing just to dspace.cfg doesn't work. Try to duplicate the whole config directory and point the swrod webapp to it (if that's not what you already tried - again, always describe what you tried so we don't have to guess). Regards, ~~helix84 --- Domingo Iglesias Universitat de Barcelona Area de Tecnologies -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] sword setup
Sounds like exactly what I would do. I think I know what the problem might be. ConfigurationManager uses a different method of determining the modules directory - it's based on dspace.dir, not on location of dspace.cfg, look here: https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-api/src/main/java/org/dspace/core/ConfigurationManager.java#L796 Your dspace_sword directory is exactly what you need in this case. Edit [dspace]/webapps/sword/WEB-INF/web.xml and set dspace.dir to your dspace_sword directory (do this after the ant update step). param-namedspace.dir/param-name param-value/dspace_sword/param-value Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Sword setup
Hi all, thanks Stuart for the reply. You are right. The problem is solved changing the load order of the libraries. Oracle Application Server users can find more information at: http://download.oracle.com/docs/cd/B31017_01/web.1013/b28952/classload.htm#CIHFJEEF Regards! 2010/4/15 Stuart Lewis s.le...@auckland.ac.nz Hi Domingo, Caused by: org.jdom.JDOMException: http://apache.org/xml/features/validation/schema feature not recognized for SAX driver oracle.xml.parser.v2.SAXParser I suspect the error is related with the oracle parser since we are running dspace in a OC4J hosted on an OAS 10.1.3, but not really sure. Yes - it looks like that is the case. We normally only support the Sun Java JDK for DSpace as a lot of other versions, for example the IBM version suffer from small problems such as this. Are you able to use Sun's JDK? If not, then you'll need to make some changes to use the right xml libraries. If you perform an internet search for the error message, there are a few pages with some suggestions. One is to rename xerces*.jar (in [tomcat]/webapps/sword/WEB-INF/lib/) to something like aaaxerces.jar so that it loads before any other parsers in the classpath. Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 http://www.library.auckland.ac.nz/ -- --- Domingo Iglesias Universitat de Barcelona Area de Tecnologies -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Sword setup
Hi Domingo, Caused by: org.jdom.JDOMException: http://apache.org/xml/features/validation/schema feature not recognized for SAX driver oracle.xml.parser.v2.SAXParser I suspect the error is related with the oracle parser since we are running dspace in a OC4J hosted on an OAS 10.1.3, but not really sure. Yes - it looks like that is the case. We normally only support the Sun Java JDK for DSpace as a lot of other versions, for example the IBM version suffer from small problems such as this. Are you able to use Sun's JDK? If not, then you'll need to make some changes to use the right xml libraries. If you perform an internet search for the error message, there are a few pages with some suggestions. One is to rename xerces*.jar (in [tomcat]/webapps/sword/WEB-INF/lib/) to something like aaaxerces.jar so that it loads before any other parsers in the classpath. Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 http://www.library.auckland.ac.nz/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech