Hi
We are trying to configure GenericSearch 2.2 with our Fedroa 3.2 repository.
Our Fedora was installed to use SSL with API-M operation. We followed the
standard installation procedure and we configured GSearch to use Solr plugin.
Problems started when I've tried to update index using REST web interface.
Using "updateIndexfromPid" with particular PID resulted with the following
exception:
INFO 2009-09-02 15:10:31,642 (RESTImpl)
request=operation=updateIndex&action=fromPid&value=UkDhU%3A014db46e-7a00-4b72-894b-f7aa408eae81
remoteUser=null
DEBUG 2009-09-02 15:10:31,643 (GenericOperationsImpl) updateIndex
action=fromPid value=UkDhU:014db46e-7a00-4b72-894b-f7aa408eae81 repositoryName=
indexNames=
indexDocXslt= resultPageXslt=
DEBUG 2009-09-02 15:10:31,643 (Config) indexName=DemoOnSolr
operationsImpl=dk.defxws.fgssolr.OperationsImpl
DEBUG 2009-09-02 15:10:31,643 (Config) operationsImplClass=class
dk.defxws.fgssolr.OperationsImpl
DEBUG 2009-09-02 15:10:31,643 (Config)
ops=dk.defxws.fgssolr.operationsi...@3590efa8
DEBUG 2009-09-02 15:10:31,647 (OperationsImpl) getIndexReader
indexName=DemoOnSolr docCount=0
INFO 2009-09-02 15:10:31,647 (GenericOperationsImpl) getFoxmlFromPid
pid=UkDhU:014db46e-7a00-4b72-894b-f7aa408eae81 repositoryName=DemoAtDtu
DEBUG 2009-09-02 15:10:31,661 (OperationsImpl) getIndexReader
indexName=DemoOnSolr docCount=0
DEBUG 2009-09-02 15:10:31,661 (OperationsImpl) closeIndexReader
indexName=DemoOnSolr docCount=0
DEBUG 2009-09-02 15:10:31,661 (OperationsImpl) initDocCount=0 docCount=0
updateTotal=0
ERROR 2009-09-02 15:10:31,661 (RESTImpl)
dk.defxws.fedoragsearch.server.errors.FedoraObjectNotFoundException: Fedora
Object UkDhU:014db46e-7a00-4b72-894b-f7aa
408eae81 not found at DemoAtDtu; nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter
must be non-empty
With additional logs from Tomcat server.
Fedora Object UkDhU:014db46e-7a00-4b72-894b-f7aa408eae81 not found at
DemoAtDtu; nested exception is: javax.net.ssl.SSLException:
java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter
must be non-empty
at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:340)
at dk.defxws.fgssolr.OperationsImpl.fromPid(OperationsImpl.java:389)
at dk.defxws.fgssolr.OperationsImpl.updateIndex(OperationsImpl.java:241)
at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.updateIndex(GenericOperationsImpl.java:308)
at
dk.defxws.fedoragsearch.server.RESTImpl.updateIndex(RESTImpl.java:261)
at dk.defxws.fedoragsearch.server.RESTImpl.doGet(RESTImpl.java:114)
'''
Due to nature of the error (javax.net.ssl.SSLException) I modified generated
repository properties "repository/DemoAtDtu/repository.properties"
configuration both in config and configDemoOnSolr directories from
fgsrepository.trustStorePath = TRUSTSTOREPATH
fgsrepository.trustStorePass = TRUSTSTOREPASS
to my truststore values.
fgsrepository.trustStorePath = /home/systems/fedora/server/truststore
fgsrepository.trustStorePass = xxx
Unfortunately, this didn't solve the problem. I had a quick look into class
source at
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:340),
and it looks that this is buried down into the FedoraAPIM code. In addition,
our trust/keystore contains generated certificate and it works pretty OK with
external feoraAdminClient once copied to its subdirectory.
My question is do anybody resemble similar problems and what was successful
solution. Or maybe as was suggested in some recent post should we avoid using
SSL with Tomcat?
Many thanks for help.
Sebastian
===
Sebastian PaĆucha
Web Developer
Durham Main Library
UK
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users