[Dspace-tech] The file update-discovery-index not found...

2011-06-09 Thread Sergiu Ioan Irimia
I've just upgraded from 1.6.2. to 1.7.2 and I wanted to enable discovery...
I'm stuck to the execution of update-discovery-index file from the /bin 
directory for the indexation of the content of DSpace instance into Discovery. 
Can't find it anywhere...not in the bin directory and not even in the source of 
dspace...
Could someone please tell me where to find it, or send it through email?
Thank you for your time!

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] The file update-discovery-index not found...

2011-06-09 Thread Graham Triggs
Hi,

All of the batch scripts have been replaced by a launcher. Typically, you
would replace:

bin/script name

with

bin/dspace script name

So, in this case, you need to run 'bin/dspace update-discovery-index'.

Regards,
G

On 9 June 2011 10:50, Sergiu Ioan Irimia sergiu.iri...@yahoo.com wrote:

 I've just upgraded from 1.6.2. to 1.7.2 and I wanted to enable discovery...
 I'm stuck to the execution of update-discovery-index file from the /bin
 directory for the indexation of the content of DSpace instance into
 Discovery. Can't find it anywhere...not in the bin directory and not even in
 the source of dspace...
 Could someone please tell me where to find it, or send it through email?
 Thank you for your time!


 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] The file update-discovery-index not found...

2011-06-09 Thread Graham Triggs
Hi Sergiu,

The dspace launcher does not use other scripts within the bin directory, so
there presence or lack is not the issue here.

Commands for the launcher are configured in the config/launcher.xml - the
current version is here:

http://scm.dspace.org/svn/repo/dspace/trunk/dspace/config/launcher.xml

As you can see, it has an 'update-discovery-index' command (configured to
use the org.dspace.discovery.IndexClient class)

Regards,
G

On 9 June 2011 14:33, Sergiu Ioan Irimia sergiu.iri...@yahoo.com wrote:

 Mr. Graham Triggs,

 I know how to use the dspace launcher:

 -server:Windows 2003

 - run cmd

 - cd /d D:\DSpace\bin

 - D:\DSpace\bindspace update-discovery-index

 - error: command not found: update-discovery-index

 because the file update-discovery-index is not in D:\DSpace\bin and I
 can't seem to find it anywhere...

 So I need the file update-discovery-index so that the dspace launcher shall
 have what to launch...

 I've uploaded a jpg... maybe I failed to explain the problem...

 Or maybe I failed to understand your solution...

 Thank you for your understanding and for your time...

 --- On *Thu, 6/9/11, Graham Triggs grahamtri...@gmail.com* wrote:


 From: Graham Triggs grahamtri...@gmail.com
 Subject: Re: [Dspace-tech] The file update-discovery-index not found...
 To: Sergiu Ioan Irimia sergiu.iri...@yahoo.com
 Cc: dspace-tech@lists.sourceforge.net
 Date: Thursday, June 9, 2011, 12:18 PM


 Hi,

 All of the batch scripts have been replaced by a launcher. Typically, you
 would replace:

 bin/script name

 with

 bin/dspace script name

 So, in this case, you need to run 'bin/dspace update-discovery-index'.

 Regards,
 G

 On 9 June 2011 10:50, Sergiu Ioan Irimia 
 sergiu.iri...@yahoo.comhttp://mc/compose?to=sergiu.iri...@yahoo.com
  wrote:

 I've just upgraded from 1.6.2. to 1.7.2 and I wanted to enable discovery...
 I'm stuck to the execution of update-discovery-index file from the /bin
 directory for the indexation of the content of DSpace instance into
 Discovery. Can't find it anywhere...not in the bin directory and not even in
 the source of dspace...
 Could someone please tell me where to find it, or send it through email?
 Thank you for your time!


 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.nethttp://mc/compose?to=DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] The file update-discovery-index not found...

2011-06-09 Thread Sergiu Ioan Irimia
Got it... this was not working because I didn't noticed the fact that the 
upgrade has putt in my directories a lot of duplicate files with .new 
extension. so during the upgrade a lot of old files remained active, including 
launcher.xml . 
(this was my first upgrade...so don't shoot me:))
Now I've searched the manual and this thing is mentioned only for the 
instructions to upgrade from 1.5.0 to 1.5.2 (page 69), and not in the 
instructions for ALL upgrades. I believe this should be corrected... There may 
be more dummies like me out there...Also I've got this error:
D:\DSpace\bindspace update-discovery-index
Using DSpace installation in: D:\DSpace
Exception: java.net.ConnectException: Connection refused: connect
org.dspace.discovery.SearchServiceException: java.net.ConnectException: Connecti
on refused: connect
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:
380)
at org.dspace.discovery.IndexClient.main(IndexClient.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.client.solrj.SolrServerException: java.net.ConnectExc
eption: Connection refused: connect
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:483)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:244)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryReques
t.java:89)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:105
)
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:
353)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
reateSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
reateSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:323)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:427)
... 11 more

D:\DSpace\binorg.dspace.discovery.SearchServiceException: java.net.ConnectExcep
tion: Connecti
'org.dspace.discovery.SearchServiceException:' is not recognized as an internal
or external command,
operable program or batch file.

I found another mentions of this error at:http://pastebin.com/mvJe1RJ1
The reason for this was that I've stopped the tomcat during the execution of 
update-discovery-index command
... so it must be ON...good to know

Thank you for your help!
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] The file update-discovery-index not found...

2011-06-09 Thread Sergiu Ioan Irimia
I rectify this error stopped when I replaced solr.search.server = 
http://localhost/solr/search; from config/dspace-solr-search.cfg with 
solr.search.server = ${dspace.baseUrl}/solr/search...So this has nothing to 
do with the fact that the tomcat is on or off...

--- On Thu, 6/9/11, Sergiu Ioan Irimia sergiu.iri...@yahoo.com wrote:

From: Sergiu Ioan Irimia sergiu.iri...@yahoo.com
Subject: Re: [Dspace-tech] The file update-discovery-index not found...
To: Graham Triggs grahamtri...@gmail.com
Cc: dspace dspace-tech@lists.sourceforge.net
Date: Thursday, June 9, 2011, 3:38 PM

Got it... this was not working because I didn't noticed the fact that the 
upgrade has putt in my directories a lot of duplicate files with .new 
extension. so during the upgrade a lot of old files remained active, including 
launcher.xml . 
(this was my first upgrade...so don't shoot me:))
Now I've searched the manual and this thing is mentioned only for the 
instructions to upgrade from 1.5.0 to 1.5.2 (page 69), and not in the 
instructions for ALL upgrades. I believe this should be corrected... There may 
be more dummies like me out there...Also I've got this error:
D:\DSpace\bindspace update-discovery-index
Using DSpace installation in: D:\DSpace
Exception: java.net.ConnectException: Connection refused: connect
org.dspace.discovery.SearchServiceException: java.net.ConnectException: Connecti
on refused: connect
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:
380)
at org.dspace.discovery.IndexClient.main(IndexClient.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  
  at java.lang.reflect.Method.invoke(Unknown Source)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.client.solrj.SolrServerException: java.net.ConnectExc
eption: Connection refused: connect
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:483)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:244)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryReques
t.java:89)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:105
)
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:
353)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at
 java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
reateSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
reateSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
:707)
at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:323)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(Commo
nsHttpSolrServer.java:427)
... 11 more

D:\DSpace\binorg.dspace.discovery.SearchServiceException: java.net.ConnectExcep
tion: Connecti
'org.dspace.discovery.SearchServiceException:' is not recognized as an internal
or external command,
operable program or batch file.

I
 found another mentions of this error at:http://pastebin.com/mvJe1RJ1
The reason for this was that I've stopped the tomcat during the execution of 
update-discovery-index command
... so it must be ON...good to know

Thank you for your help!

-Inline Attachment Follows-

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant