Re: [Dspace-tech] Correct procedure to cutomize dspace xmlui from [dspace-source] folder

2012-12-06 Thread Alexander Kocisky
Thanks again Helix84, i've created a new theme and rebuild everything and
it worked!

- create new theme (copied Mirage and changed name)

cd
/home/dspace/dspace-1.8.2-src-release/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes
cp -r Mirage MyTheme
cd MyTheme

modified the following on sitemap.xmap:

theme-pathMyTheme/theme-path
theme-nameMyTheme/theme-name
!-- map:transform src=MyTheme.xsl/ --

mv Mirage.xsl MyTheme.xsl

vim ./lib/xsl/core/page-structure.xsl  (e.g. changed logo)
vim /home/dspace/dspace-1.8.2-src-release/dspace/config/xmlui.xconf :

and commented out the old theme and added:
theme name=My Theme Theme regex=.* path=MyTheme/ /

cd /home/dspace/dspace-1.8.2-src-release/
mvn package
cd dspace/target/dspace-1.8.2-build/
ant update
cd /usr/local/dspace
../tomcat/bin/shutdown.sh
cp -r webapps/* ../tomcat/webapps/
../tomcat/bin/startup.sh

and the chages are effective, i suppose that when developing the changes
will be made directly on the webapp running and applied back to the source
afterwords.

Cheers,
alex


On 6 December 2012 12:17, helix84 heli...@centrum.sk wrote:

 On Thu, Dec 6, 2012 at 6:02 PM, Alexander Kocisky
 alexander.koci...@gmail.com wrote:
  in particular i've seen that the modules are available in the
  [dspace-source] path but also under [dspace-source]/dspace/modules, what
 is
  the relation between these to versions?

 In my email I mentioned overlays. That's what the modules directory
 contains. It duplicates the module structure and anything that the
 overlay directory ([dspace-source]/dspace/modules/[module]) contains
 will replace what the stock module ([dspace-source]/[module])
 contains.

 That's why this is a good place to keep local Java modifications. I
 haven't tried putting a customized theme there, a different procedure
 is recommended for theme customization, with the goal of reducing
 headaches when upgrading:

 https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial

 Just create a new theme (i.e a new directory) in the themes directory.
 Inside your theme import the contents of Mirage and overlay any
 templates you want. The rest of the templates will thus fall back to
 Mirage.

 xsl:import href=../Mirage/Mirage.xsl/

  i though that packaging the source will update also the modules in
  [dspace-source]/dspace/modules, so this is what i've done:
 
  [root@repository dspace-xmlui]# pwd
  /home/dspace/dspace-1.8.2-src-release/dspace-xmlui
 
  vim
 
 ./dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl
  changed: span id=ds-header-logo-textmirage/span to span
  id=ds-header-logo-text/span
  mvn package

 No, it doesn't work like that in Java (Maven). You can't expect to
 build an individual module. You have to build from [dspace-source],
 not from a module directory. I know it takes forever, I also have a
 problem with that.

 You have only 2 options, full build and quick build, and they should
 be used exactly as described in the Building DSpace link I sent you.
 In case quick build behaves strangely, you know you have to use full build.

 
 dspace/modules/xmlui/target/xmlui-1.8.2/themes/Mirage/lib/xsl/core/page-structure.xsl
 
  so i've modified that file but after the mvn package it's restored from
  the original, and it's not coming from:

 Ignore the target directory, just like you ignore .o files when you're
 compiling C code. It's only a temporary location for compiled code.
 This is the grep command I generally use:

 grep -RnI --exclude-dir=.git --exclude-dir=target 'foo' *


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Correct procedure to cutomize dspace xmlui from [dspace-source] folder

2012-12-05 Thread Alexander Kocisky
Hi all,

i was trying to figure out how to customize the dspace-xmlui web app (for
the logo and other small details) from the [dspace-source], build it
and package it for a correct deployment to the [dspace] installation
directory.

i've tried to:

cd [dspace-source]/dspace-xmlui
[modify the code]
mvn package
cd [dspace-source]/dspace-xmlui/target/dspace-xmlui-webapp-1.8.2
cp -rf * /usr/local/dspace/webapps/xmlui/
cp -r webapps/* ../tomcat/webapps/
../tomcat/bin/startup.sh

but i got this exception:

log4j:WARN No appenders could be found for logger
(org.dspace.servicemanager.DSpaceKernelInit).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
FATAL: Can't load configuration:
file:/usr/local/dspace-1.8.2/$%7Bdspace.dir%7D/config/dspace.cfg
java.io.FileNotFoundException:
/usr/local/dspace-1.8.2/${dspace.dir}/config/dspace.cfg (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:137)
at java.io.FileInputStream.init(FileInputStream.java:96)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:87)

so i've tried to:

[root@repository xmlui]# pwd
/home/dspace/dspace-1.8.2-src-release/dspace/modules/xmlui
[root@repository xmlui]# vim
./target/xmlui-1.8.2/themes/Mirage/lib/css/style.css
[modify the code]
ant update_code   - Update compiled code (bin, lib, and etc
directories)
ant update_webapps  - Update web applications

but no code in the xmlui was updated in the [dspace] installation directory
nor in [dspace-source]/target folder

just to try i've modified directly:

[root@repository tomcat]# vim
./webapps/xmlui/themes/Mirage/lib/xsl/core/page-structure.xsl
[root@repository tomcat]# vim
../tomcat/webapps/xmlui/themes/Mirage/lib/css/style.css

but obviously the changes get rewritten with fresh deployments. What is the
correct procedure that enables me to update the code of the dspace-xmlui
(or other modules) in order to deploy them to the [dspace] directory?

Thanks !!!
Alex
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Fwd: dspace 1.7.1 SRW The statement has been closed

2011-06-20 Thread Kocisky
)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:407)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
2011-06-20 09:59:26,522 INFO
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl @ dc.creator =
smith==4 (26ms)
2011-06-20 09:59:26,532 INFO
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06
2011-06-20 09:59:26,574 INFO
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06
2011-06-20 09:59:26,575 INFO
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06
2011-06-20 09:59:26,581 INFO
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06
2011-06-20 09:59:26,582 INFO
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06

so i was wondering if the problem was more related to the database but i
doesn't seems, this is the log from postgreSQL (i've tried with postgresql
8.3 and 9, same behaviour):

LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection

any ideas? i'm going to look into it more but please any suggestment are
very helpful !!
thanks!!

kocisky
--
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] dspace 1.7.1 SRW The statement has been closed

2011-06-20 Thread Kocisky
ok, it seems that the SRW module (web interface) works fine until my
application doesn't broken something.
I think that the module shouldn't be affected by an external application but
in any case there is an incorrect behavior in my application :)

thanks!!
kocisky

On 20 June 2011 10:31, Kocisky koci...@autistici.org wrote:

 Hi all,

 I've been using dspace 1.7.0 and SRW for accessing the repository with a
 client web application. Recently i've updated dspace to 1.7.1 and i'm
 getting the following error:


 http://10.0.102.11:8480/SRW/search/DSpace?query=dc.creator+%3D+%22smith%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=0recordPacking=xmlrecordXPath=sortKeys=


 ###

 Identifier:info:srw/diagnostic/1/1Meaning: General System ErrorDetails:This
 statement has been closed.Results for Search: dc.creator = smith
 Records found: 4
 Next 
 Record(s)http://10.0.102.11:8480/SRW/search/DSpace?operation=searchRetrievequery=dc.creator%20=%20%22smith%22maximumRecords=10resultSetTTL=0recordSchema=info:srw/schema/1/dc-v1.1sortKeys=recordPacking=xmlstartRecord=1
 Record: of 4
 Record: of 4
 Record: of 4
 Record: of 4
 Next 
 Record(s)http://10.0.102.11:8480/SRW/search/DSpace?operation=searchRetrievequery=dc.creator%20=%20%22smith%22maximumRecords=10resultSetTTL=0recordSchema=info:srw/schema/1/dc-v1.1sortKeys=recordPacking=xmlstartRecord=1



 ###

 or sometimes i get:

 Links: Back to Search http://10.0.102.11:8480/SRW/search/DSpace?
 Results for Search: dc.creator = smith
 Records found: 4
 Record: 1 of 4
 Schema: Dublin Core
 Record: 2 of 4
 Schema: Dublin Core
 Record: 3 of 4
 Schema: Dublin Core
 Record: 4 of 4
 Schema: Dublin Core



 ###

 and sometimes i get to correct 4 objects. In the Dspace logs i get:

 2011-06-20 09:59:26,478 INFO
 org.tuckey.web.filters.urlrewrite.UrlRewriteFilter @ giving request to
 urlRewriter: org.tuckey.web.filters.urlrewrite.UrlRewriter@1bc2e06
 2011-06-20 09:59:26,494 INFO  ORG.oclc.os.SRW.SRWServlet @
 query=dc.creator+%3D+%22smith%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=0recordPacking=xmlrecordXPath=sortKeys=
 2011-06-20 09:59:26,494 INFO  ORG.oclc.os.SRW.SRWServletInfo @
 pathInfo=/DSpace
 2011-06-20 09:59:26,494 INFO  ORG.oclc.os.SRW.SRWServletInfo @
 dbname=DSpace
 2011-06-20 09:59:26,494 INFO  ORG.oclc.os.SRW.SRWServlet @
 mimeType=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 and
 mediaType= from IP=10.0.102.11
 2011-06-20 09:59:26,520 INFO  ORG.oclc.os.SRW.SRWDatabase @ 'dc.creator =
 smith'== 4
 2011-06-20 09:59:26,521 ERROR ORG.oclc.os.SRW.SRWDatabase @
 java.lang.InstantiationException: This statement has been closed.
 java.lang.InstantiationException: This statement has been closed.
 at
 ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.init(LuceneQueryResult.java:113)
 at
 ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.newRecordIterator(LuceneQueryResult.java:142)
 at ORG.oclc.os.SRW.QueryResult.recordIterator(QueryResult.java:72)
 at ORG.oclc.os.SRW.SRWDatabase.doRequest(SRWDatabase.java:759)
 at
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.searchRetrieveOperation(SRWSoapBindingImpl.java:138)
 at
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.searchRetrieveOperation(SRWSoapBindingSkeleton.java:68)
 at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
 at
 org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
 at
 org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
 at
 org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at
 org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
 at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
 at
 ORG.oclc.os.SRW.SRWServlet.processMethodRequest(SRWServlet.java:1501)
 at ORG.oclc.os.SRW.SRWServlet.doGet(SRWServlet.java:375)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at
 org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java

Re: [Dspace-tech] Dspace SRW/SRU search problem

2011-06-15 Thread Kocisky
Hi, i would suggest you to post the issue at
http://code.google.com/p/oclcsrw/issues/list.

K

2011/6/2 Marianna Mühlhölzer mmue...@sub.uni-goettingen.de

 Dear all,

 several month ego I installed the Dspace SRW/SRU Service for DSpace
 1.6.2 and it worked without any problems. But after an update to DSpace
 1.7.2 I get the following error message:

 2011-06-02 19:07:36,365 DEBUG ORG.oclc.os.SRW.SRWDatabase @ query:
  64 63 2e 74 69 74 6c 65 20 3d 20 22 74 65 73 74  dc.title = test
  22   


 2011-06-02 19:07:37,091 INFO  ORG.oclc.os.SRW.SRWDatabase @ 'dc.title =
 test'== 9
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ keeping
 resultSet 'i28ewp' for 300 seconds
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @
 schemaName=info:srw/schema/1/dc-v1.1,
 schemaID=info:srw/schema/1/dc-v1.1,
 sortKeys=
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ making
 RecordIterator, startPoint=1, schemaID=info:srw/schema/1/dc-v1.1
 2011-06-02 19:07:37,113 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1
 f001f, startPoint=1, numRecs=9
 2011-06-02 19:07:37,113 DEBUG ORG.oclc.os.SRW.SRWDatabase @ trying to
 get 9 records starting with record 1 from a set of 9 records
 2011-06-02 19:07:37,114 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in hasNext:
 whichRecord=0, numRecs=9, resultItems.le
 ngth=9
 2011-06-02 19:07:37,114 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in nextRecord:
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1f001f, startPoint=1,
 whichRecord=0
 2011-06-02 19:07:37,116 ERROR
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl @
 java.lang.NullPointerException
 java.lang.NullPointerException
 at
 org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:220)

 at org.dspace.content.Item
 $MetadataCache.retrieveMetadata(Item.java:2710)
 at org.dspace.content.Item$MetadataCache.get(Item.java:2643)
 at org.dspace.content.Item.getMetadata(Item.java:2616)
 at org.dspace.content.Item.getMetadata(Item.java:457)


 It looks as if the number of the query results is retrieved and the
 records cannot be fetched.

 Can anybody help me with this problem?

 Thanks with regards,
 Marianna Mühlhölzer

 --
 View this message in context: Dspace SRW/SRU search 
 problemhttp://dspace.2283337.n4.nabble.com/Dspace-SRW-SRU-search-problem-tp3568912p3568912.html
 Sent from the DSpace - Tech mailing list 
 archivehttp://dspace.2283337.n4.nabble.com/DSpace-Tech-f3276945.htmlat 
 Nabble.com.


 --
 Simplify data backup and recovery for your virtual environment with
 vRanger.
 Installation's a snap, and flexible recovery options mean your data is
 safe,
 secure and there when you need it. Discover what all the cheering's about.
 Get your free trial download today.
 http://p.sf.net/sfu/quest-dev2dev2
 ___
 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] Dspace SRW/SRU search problem

2011-06-15 Thread Kocisky
i mean here: http://code.google.com/p/oclcsrwdspacelucene/issues/list

2011/6/15 Kocisky koci...@autistici.org

 Hi, i would suggest you to post the issue at
 http://code.google.com/p/oclcsrw/issues/list.

 K

 2011/6/2 Marianna Mühlhölzer mmue...@sub.uni-goettingen.de

 Dear all,

 several month ego I installed the Dspace SRW/SRU Service for DSpace
 1.6.2 and it worked without any problems. But after an update to DSpace
 1.7.2 I get the following error message:

 2011-06-02 19:07:36,365 DEBUG ORG.oclc.os.SRW.SRWDatabase @ query:
  64 63 2e 74 69 74 6c 65 20 3d 20 22 74 65 73 74  dc.title = test
  22   


 2011-06-02 19:07:37,091 INFO  ORG.oclc.os.SRW.SRWDatabase @ 'dc.title =
 test'== 9
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ keeping
 resultSet 'i28ewp' for 300 seconds
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @
 schemaName=info:srw/schema/1/dc-v1.1,
 schemaID=info:srw/schema/1/dc-v1.1,
 sortKeys=
 2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ making
 RecordIterator, startPoint=1, schemaID=info:srw/schema/1/dc-v1.1
 2011-06-02 19:07:37,113 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1
 f001f, startPoint=1, numRecs=9
 2011-06-02 19:07:37,113 DEBUG ORG.oclc.os.SRW.SRWDatabase @ trying to
 get 9 records starting with record 1 from a set of 9 records
 2011-06-02 19:07:37,114 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in hasNext:
 whichRecord=0, numRecs=9, resultItems.le
 ngth=9
 2011-06-02 19:07:37,114 INFO
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in nextRecord:
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1f001f, startPoint=1,
 whichRecord=0
 2011-06-02 19:07:37,116 ERROR
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl @
 java.lang.NullPointerException
 java.lang.NullPointerException
 at
 org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:220)

 at org.dspace.content.Item
 $MetadataCache.retrieveMetadata(Item.java:2710)
 at org.dspace.content.Item$MetadataCache.get(Item.java:2643)
 at org.dspace.content.Item.getMetadata(Item.java:2616)
 at org.dspace.content.Item.getMetadata(Item.java:457)


 It looks as if the number of the query results is retrieved and the
 records cannot be fetched.

 Can anybody help me with this problem?

 Thanks with regards,
 Marianna Mühlhölzer

 --
 View this message in context: Dspace SRW/SRU search 
 problemhttp://dspace.2283337.n4.nabble.com/Dspace-SRW-SRU-search-problem-tp3568912p3568912.html
 Sent from the DSpace - Tech mailing list 
 archivehttp://dspace.2283337.n4.nabble.com/DSpace-Tech-f3276945.htmlat 
 Nabble.com.


 --
 Simplify data backup and recovery for your virtual environment with
 vRanger.
 Installation's a snap, and flexible recovery options mean your data is
 safe,
 secure and there when you need it. Discover what all the cheering's about.
 Get your free trial download today.
 http://p.sf.net/sfu/quest-dev2dev2
 ___
 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] Can't access the web site dspace.org from China

2011-04-19 Thread Kocisky
Hi Jingwei,

the website may be blocked from the great firewall although i don't see
many reasons for it!
there are many ways to bypass it.. you can try a web proxy (
http://www.google.com/search?q=free+proxyie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:official),
a vpn service or TOR (https://www.torproject.org/).

Regards,
Kocisky

2011/4/17 morndata men...@morndata.com

 Hi!

  I’m a software engineer working for MornData from China ! I can’t
 access the http://www.dspace.org now in Beijing , China .

  Would you please tell me the reason ? Or would you tell me any
 other methods to access the home page of the dspace?



  We developed a software based on the DSpace1.5 in 2009, and now we
 want to develop another software for a publisher

 based on the latest DSpace release , and the software is used to preserve
 and search all of their digital assets.

 We plan to treat a book as an Item , which composes of metadata , Cover ,
 illustrations , content , and we want to treat the Cover as an Item as well
 ,

 which composes of metadata and content.

 The different employees can access the different data of a Item based on
 their roles , for example some employees can access the Cover and others
 can’t.



 Would you please tell me that whether we could realize the function or not?



 Yours sincerely!



Jingwei Meng

2011-04-17




 *

 *北京晨朗数据技术有限公司*

 孟京伟

 地址:北京市海淀区中关村南大街甲12号寰太大厦805室

 邮编:100101

 电话:(010)62416189 13693695050

 Email:men...@morndata.com

 URL:  morndata.com


 *




 --
 Benefiting from Server Virtualization: Beyond Initial Workload
 Consolidation -- Increasing the use of server virtualization is a top
 priority.Virtualization can reduce costs, simplify management, and improve
 application availability and disaster protection. Learn more about boosting
 the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Selecting multiple files to upload

2011-04-05 Thread Kocisky
Hi,

I would like to select and upload multiples files (bitstreams) from the web
interface: item submission process.
I've seen the possibility of using the batch command line importer tool but
i was thinking of something more end user oriented.
do you have any ideas?

it seems that you can upload only one bitstream at the time in the web
submission process, and if you are uploading pages of a book or a collection
of photos
it becomes a very long process! (what is the best practice?!) So i was
wondering what would be the best solution and if none available what would
be the best development approach.

In the documentation i've found how to customize the process (
https://wiki.duraspace.org/display/DSDOC/Submission+User+Interface#SubmissionUserInterface-ConfiguringtheFileUploadstep)
but I didn't find any options or addons to implement this functionality.

I've seen that on the server side there is Servlet request doProssessing
that calls processUploadFile (org.dspace.submit.step.
UploadStep.java) and on the client side
org.dspace.app.xmlui.aspect.submission.submit.UploadStep.java is taking care
of providing the logic of the form.

Do you see any issues in embedding a java applet that sends the multiple
bitstreams to the servlet? something like JUpload maybe (
http://jupload.sourceforge.net/index.html). Do you see a better solution?
i've check out also other projects, this one is based on jquery
http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples

any suggestion are very appretiated :)
thanks!
Kociscky
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection pool(resultSetTTL)

2011-03-31 Thread Kocisky
it seems that increasing the connection pool in dspace.cfg resolves the
problem (keeping the ResultTTL=0):

i've increased the db.maxconnection = 30 to db.maxconnection = 500 and
it seems working fine. I do not know how much this will affect the server!
I can't really troubleshoot the problem but it seems that even with
ResultTTL = 0 the connection pool is not freed right away, and if the
connection pool is small it finishes its resources, does that make sense?
I've tried also with db.maxconnection = 500 and resultTTL=300: after 20
queries or so (2 queries per sec) i get the 404.

from the last troubleshoot (db.maxconnection = 500 and resultTTL=300) it
seems that the 2 parameters are just a secondary factor, it doesn't make
much sense to me.
again i dont know the infrastructure/implementation to understand it, how do
you see it?

Kocisky

On 29 March 2011 11:25, LeVan,Ralph le...@oclc.org wrote:

 Have you been able to make any progress on this?



 Ralph



 *From:* LeVan,Ralph
 *Sent:* Thursday, March 24, 2011 4:42 PM
 *To:* Kocisky
 *Cc:* dspace-tech@lists.sourceforge.net

 *Subject:* RE: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
 pool(resultSetTTL)



 With the resultSetTTL set to zero, how many requests can you make before
 you get an error?  How long do you have to wait until you can continue
 searching?



 Everyone else using the SRW interface has the same issues and you’re the
 first to report a problem.  You might try increasing the size of your
 connection pool.



 Ralph



 *From:* Kocisky [mailto:koci...@autistici.org]
 *Sent:* Thursday, March 24, 2011 4:33 PM
 *To:* LeVan,Ralph
 *Cc:* dspace-tech@lists.sourceforge.net
 *Subject:* Re: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
 pool(resultSetTTL)



 Ralph,

 the problem reported in my last email was generated by this URL:


 http://10.0.102.11:8280/SRW/search/DSpace?query=dc.creator+%3D+%22smith%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=0recordPacking=xmlrecordXPath=sortKeys=

 this is another example:

 Links: Back to Search http://10.0.102.11:8280/SRW/search/DSpace?
 Results for Search: dc.creator = smith

 Records found: 3
 Record: 1 of 3

 Schema: Dublin Core
 Record: 2 of 3

 Schema: Dublin Core
 Record: 3 of 3

 Schema: Dublin Core

 I have to say that with resultSetTTL=0 it happens less frequently, but if
 you make a request each second i think you will definitely experience the
 problem.
 I was thinking to use SRW for making the queries from a client web
 application to a dspace instance.

 I guess that you aren't experiencing this issue, can i ask you what is your
 environment?
 thank you!

 Kociscky



 On 22 March 2011 14:17, LeVan,Ralph le...@oclc.org wrote:

 The more I think about this, the more I am convinced that the problem is
 confusion at your end.  The fact that the searching problem clears up
 after 3 minutes is pretty much proof that the cache is being cleared
 appropriately.  The issue is how to get it cleared out more quickly.

 I think the root problem is the resultSetTTL parameter in your request.
 Through it, you are explicitly asking the server to keep the result set
 for 300 seconds.  No matter what you set the default value to, your
 explicit request will override that.  You need to omit that parameter
 for the default to take effect.  Better yet, you should explicitly
 specify a resultSetTTL=0 to let the server know you do not want any
 caching of results.

 Let me know if this helps.

 Ralph


  -Original Message-
  From: LeVan,Ralph
  Sent: Tuesday, March 22, 2011 11:42 AM
  To: 'Kocisky'; dspace-tech@lists.sourceforge.net
  Subject: RE: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
  pool(resultSetTTL)
 
  Kocisky, does that search actually return records when it doesn't
 return the 404
  response?
 
  The root problem is that the search opens a connection to the DSpace
 database
  and SRU caches that connection for the life of the search result.
 Typically,
  those result sets are cleared from the cache after a configurable
 period of
  idleness.  That configuration happen through the specification of a
 default value
  in the database configuration file, but can be overridden in the
 request through
  the resultSetTTL parameter (which I note you still have set to 300
 seconds in the
  request you have shared.)
 
  I have spotted a path in my code where the result set would not be
 freed if no
  records had be found as the result of the query.
 
  So, does that search for creator=smith actually find documents?
 
  Ralph
 
   -Original Message-
   From: Kocisky [mailto:koci...@autistici.org]
   Sent: Monday, March 21, 2011 4:04 PM
   To: dspace-tech@lists.sourceforge.net

   Subject: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
   pool(resultSetTTL)
  
   Hi all,
  
   I've been trying the SRW module
   (http://code.google.com/p/oclcsrwdspacelucene/) with dspace 1.7

Re: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection pool(resultSetTTL)

2011-03-24 Thread Kocisky
Ralph, sorry i've been outside the while for a bit !

yes, the query returns the correct items from the dspace instance until you
get the 404. I've tried also with resultSetTTL=0... i think you can easily
replicate the same scenario, we dont have any customizations, just dspace
1.7 and SRW.

this is an example, i've received this message after a 404 message (note
that i correctly receive the number of items: 3):

A Project of OCLC Research http://www.oclc.org/research
[image: OCLC] http://www.oclc.org/default.htm
Links: Back to Search http://10.0.102.11:8280/SRW/search/DSpace?
DiagnosticsIdentifier:info:srw/diagnostic/1/1Meaning:General System Error
Details:Cannot get a connection, pool error Timeout waiting for idle object
Identifier:info:srw/diagnostic/1/1Meaning:General System ErrorDetails:Cannot
get a connection, pool error Timeout waiting for idle objectIdentifier:
info:srw/diagnostic/1/1Meaning:General System ErrorDetails:Cannot get a
connection, pool error Timeout waiting for idle objectIdentifier:
info:srw/diagnostic/1/1Meaning:General System ErrorDetails:Cannot get a
connection, pool error Timeout waiting for idle objectResults for Search:
dc.creator = smith
Records found: 3
Next 
Record(s)http://10.0.102.11:8280/SRW/search/DSpace?operation=searchRetrievequery=dc.creator%20=%20%22smith%22maximumRecords=10resultSetTTL=0recordSchema=info:srw/schema/1/dc-v1.1sortKeys=recordPacking=xmlstartRecord=1
Record: 1 of 3
Schema: Dublin Core
Record: 2 of 3
Schema: Dublin Core
Record: 3 of 3
Schema: Dublin Core
Next 
Record(s)http://10.0.102.11:8280/SRW/search/DSpace?operation=searchRetrievequery=dc.creator%20=%20%22smith%22maximumRecords=10resultSetTTL=0recordSchema=info:srw/schema/1/dc-v1.1sortKeys=recordPacking=xmlstartRecord=1


if i can be more helpful let me know,
Kociscky

On 22 March 2011 11:42, LeVan,Ralph le...@oclc.org wrote:

 Kocisky, does that search actually return records when it doesn't return
 the 404 response?

 The root problem is that the search opens a connection to the DSpace
 database and SRU caches that connection for the life of the search
 result.  Typically, those result sets are cleared from the cache after a
 configurable period of idleness.  That configuration happen through the
 specification of a default value in the database configuration file, but
 can be overridden in the request through the resultSetTTL parameter
 (which I note you still have set to 300 seconds in the request you have
 shared.)

 I have spotted a path in my code where the result set would not be freed
 if no records had be found as the result of the query.

 So, does that search for creator=smith actually find documents?

 Ralph

  -Original Message-
  From: Kocisky [mailto:koci...@autistici.org]
  Sent: Monday, March 21, 2011 4:04 PM
  To: dspace-tech@lists.sourceforge.net
  Subject: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
  pool(resultSetTTL)
 
  Hi all,
 
  I've been trying the SRW module
  (http://code.google.com/p/oclcsrwdspacelucene/) with dspace 1.7 and
  i've being facing a problem when I repetitively make the same query:
 
  http://10.0.102.1:8080/SRW/search/?query=dc.creator+%3D+%22smith%22ve
  rsion=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema
  %2F1%2Fdc-
  v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=
  xmlrecordXPath=sortKeys=
 
  i will get:
 
  404: Document not found (No searchRetrieveResponse)
  OCLC SRW/SRU Server
 
  after 3 minutes or so it will restart working. With some extra
  debugging (thanks to Ralph):
 
  ORG.oclc.os.SRW.HouseKeeping=DEBUG
  ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG
 
  log4j.logger.ORG.oclc.os.SRW.HouseKeeping=DEBUG
  log4j.logger.ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG
 
  i will get the following exception in dspace.cfg:
 
  2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ exit
  processMethodRequest
  2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ Exit:
  doGet()
  2011-03-10 16:15:34,318 ERROR
  ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
  java.lang.InstantiationException: Cannot get a connection, pool error
  Timeout waiting for idle object
  java.lang.InstantiationException: Cannot get a connection, pool error
  Timeout waiting for idle object
  at
  ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.init(LuceneQueryRes
  ult.java:113)
  at
  ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase.getQueryResult(SRW
  LuceneDatabase.java:209)
  at ORG.oclc.os.SRW.SRWDatabase.doRequest(SRWDatabase.java:598)
  at
 
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.searchRetrieveOpera
  tion(SRWSoapBindingImpl.java:138)
  at
 
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.searchRetrieveO
  peration(SRWSoapBindingSkeleton.java:68)
  at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 I
  mpl.java:25

Re: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection pool(resultSetTTL)

2011-03-24 Thread Kocisky
Ralph,

the problem reported in my last email was generated by this URL:

http://10.0.102.11:8280/SRW/search/DSpace?query=dc.creator+%3D+%22smith%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=0recordPacking=xmlrecordXPath=sortKeys=

this is another example:

Links: Back to Search http://10.0.102.11:8280/SRW/search/DSpace?
Results for Search: dc.creator = smith
Records found: 3
Record: 1 of 3
Schema: Dublin Core
Record: 2 of 3
Schema: Dublin Core
Record: 3 of 3
Schema: Dublin Core

I have to say that with resultSetTTL=0 it happens less frequently, but if
you make a request each second i think you will definitely experience the
problem.
I was thinking to use SRW for making the queries from a client web
application to a dspace instance.

I guess that you aren't experiencing this issue, can i ask you what is your
environment?
thank you!

Kociscky



On 22 March 2011 14:17, LeVan,Ralph le...@oclc.org wrote:

 The more I think about this, the more I am convinced that the problem is
 confusion at your end.  The fact that the searching problem clears up
 after 3 minutes is pretty much proof that the cache is being cleared
 appropriately.  The issue is how to get it cleared out more quickly.

 I think the root problem is the resultSetTTL parameter in your request.
 Through it, you are explicitly asking the server to keep the result set
 for 300 seconds.  No matter what you set the default value to, your
 explicit request will override that.  You need to omit that parameter
 for the default to take effect.  Better yet, you should explicitly
 specify a resultSetTTL=0 to let the server know you do not want any
 caching of results.

 Let me know if this helps.

 Ralph

  -Original Message-
  From: LeVan,Ralph
  Sent: Tuesday, March 22, 2011 11:42 AM
  To: 'Kocisky'; dspace-tech@lists.sourceforge.net
  Subject: RE: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
  pool(resultSetTTL)
 
  Kocisky, does that search actually return records when it doesn't
 return the 404
  response?
 
  The root problem is that the search opens a connection to the DSpace
 database
  and SRU caches that connection for the life of the search result.
 Typically,
  those result sets are cleared from the cache after a configurable
 period of
  idleness.  That configuration happen through the specification of a
 default value
  in the database configuration file, but can be overridden in the
 request through
  the resultSetTTL parameter (which I note you still have set to 300
 seconds in the
  request you have shared.)
 
  I have spotted a path in my code where the result set would not be
 freed if no
  records had be found as the result of the query.
 
  So, does that search for creator=smith actually find documents?
 
  Ralph
 
   -Original Message-
   From: Kocisky [mailto:koci...@autistici.org]
   Sent: Monday, March 21, 2011 4:04 PM
   To: dspace-tech@lists.sourceforge.net
   Subject: [Dspace-tech] SRW Dspace 1.7 Cannot get a connection
   pool(resultSetTTL)
  
   Hi all,
  
   I've been trying the SRW module
   (http://code.google.com/p/oclcsrwdspacelucene/) with dspace 1.7 and
   i've being facing a problem when I repetitively make the same query:
  
  
  http://10.0.102.1:8080/SRW/search/?query=dc.creator+%3D+%22smith%22ve
  
  rsion=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema
   %2F1%2Fdc-
  
  v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=
   xmlrecordXPath=sortKeys=
  
   i will get:
  
   404: Document not found (No searchRetrieveResponse)
   OCLC SRW/SRU Server
  
   after 3 minutes or so it will restart working. With some extra
   debugging (thanks to Ralph):
  
   ORG.oclc.os.SRW.HouseKeeping=DEBUG
   ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG
  
   log4j.logger.ORG.oclc.os.SRW.HouseKeeping=DEBUG
   log4j.logger.ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG
  
   i will get the following exception in dspace.cfg:
  
   2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ exit
   processMethodRequest
   2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ Exit:
   doGet()
   2011-03-10 16:15:34,318 ERROR
   ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
   java.lang.InstantiationException: Cannot get a connection, pool
 error
   Timeout waiting for idle object
   java.lang.InstantiationException: Cannot get a connection, pool
 error
   Timeout waiting for idle object
   at
  
  ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.init(LuceneQueryRes
   ult.java:113)
   at
  
  ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase.getQueryResult(SRW
   LuceneDatabase.java:209)
   at ORG.oclc.os.SRW.SRWDatabase.doRequest(SRWDatabase.java:598)
   at
  
 
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.searchRetrieveOpera
   tion(SRWSoapBindingImpl.java:138)
   at
  
 
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.searchRetrieveO
   peration

[Dspace-tech] SRW Dspace 1.7 Cannot get a connection pool (resultSetTTL)

2011-03-21 Thread Kocisky
Hi all,

I've been trying the SRW module
(http://code.google.com/p/oclcsrwdspacelucene/) with dspace 1.7 and
i've being facing a problem when I repetitively make the same query:

http://10.0.102.1:8080/SRW/search/?query=dc.creator+%3D+%22smith%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

i will get:

404: Document not found (No searchRetrieveResponse)
OCLC SRW/SRU Server

after 3 minutes or so it will restart working. With some extra
debugging (thanks to Ralph):

ORG.oclc.os.SRW.HouseKeeping=DEBUG
ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG

log4j.logger.ORG.oclc.os.SRW.HouseKeeping=DEBUG
log4j.logger.ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult=DEBUG

i will get the following exception in dspace.cfg:

2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ exit
processMethodRequest
2011-03-10 16:15:33,978 DEBUG ORG.oclc.os.SRW.SRWServlet @ Exit: doGet()
2011-03-10 16:15:34,318 ERROR
ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
java.lang.InstantiationException: Cannot get a connection, pool error
Timeout waiting for idle object
java.lang.InstantiationException: Cannot get a connection, pool error
Timeout waiting for idle object
at 
ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.init(LuceneQueryResult.java:113)
at 
ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase.getQueryResult(SRWLuceneDatabase.java:209)
at ORG.oclc.os.SRW.SRWDatabase.doRequest(SRWDatabase.java:598)
at 
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.searchRetrieveOperation(SRWSoapBindingImpl.java:138)
at 
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.searchRetrieveOperation(SRWSoapBindingSkeleton.java:68)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)

i've been suggested to try with resultSetTTL=0 in the URL and the
configuration, but i didn't see any improvements, does anybody
faced/resolved the same issue?
thanks

Kocisky

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] SRW/Lucene/Dspace - dc schema customization, index and search

2011-03-16 Thread Kocisky
Hi all !

i'm quite new to the dspace/lucene/SRW environment. I've set up a
dspace 1.7 instance with the SRW module. I'm now able to do the
following queries:

http://localhost:8080/SRW/search/DSpace/?query=dc.identifier+%3D+%2211%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

with the default fields in the SRW search interface:

cql.resultSetId
cql.serverChoice
dc.contributor
dc.creator
dc.description.abstract
dc.description.sponsorship
dc.description.statementofresponsibility
dc.description.tableofcontents
dc.format.mimetype
dc.identifier
dc.relation.ispartofseries
dc.subject
dc.title

after i've added some additional fields in the dc schema (from
http://10.0.102.11:8080/xmlui/admin/metadata-registry): dc.test.kind
and dc.test.content (if more easy it wouldn't be a problem to create
them in separate new schema). This because i would like to use those
fields from an external application (for internal purposes).

Following the documentation i've tried to configure SRW/Dspace with
the following configuration:

dspace/config/DSpace.SRWDatabase.props

indexSynonym.dc.creator=author
indexSynonym.dc.contributor=author
indexSynonym.dc.description.statementofresponsibility=author
indexSynonym.dc.title=title
indexSynonym.dc.subject=keyword
indexSynonym.dc.description.abstract=abstract
indexSynonym.dc.description.tableofcontents=abstract
indexSynonym.dc.relation.ispartofseries=series
indexSynonym.dc.format.mimetype=mime
indexSynonym.dc.description.sponsorship=sponsor
indexSynonym.dc.identifier=identifier
indexSynonym.cql.serverChoice=default

indexSynonym.dc.test.kind=kind
indexSynonym.dc.test.content=content


dspace.cfg

# Fields to Index for Search #

# DC metadata elements.qualifiers to be indexed for search
# format: - search.index.[number] = [search field]:element.qualifier
# - * used as wildcard

###  changing these will change your search results, ###
###  but will NOT automatically change your search displays  ###

search.index.1 = author:dc.contributor.*
search.index.2 = author:dc.creator.*
search.index.3 = title:dc.title.*
search.index.4 = keyword:dc.subject.*
search.index.5 = abstract:dc.description.abstract
search.index.6 = author:dc.description.statementofresponsibility
search.index.7 = series:dc.relation.ispartofseries
search.index.8 = abstract:dc.description.tableofcontents
search.index.9 = mime:dc.format.mimetype
search.index.10 = sponsor:dc.description.sponsorship
search.index.11 = identifier:dc.identifier.*
search.index.12 = language:dc.language.iso
search.index.13 = kind:dc.test.kind
search.index.14 = content:dc.test.content

then i've tried to rebuild the index but i couldn't find the script
/[dspace]/bin/index-init, i've check also in [dspace-source] but
nothing, should i download something separately?
i was looking at this documentation:
https://wiki.duraspace.org/display/DSDOC/Configuration#Configuration-ConfiguringLuceneSearchIndexes

Now what i would like to do is to search with SRW in the Dspace/Lucene
index with the customized metadata, for example by
dc.test.kind=video with a query like this:

http://localhost:8080/SRW/search/DSpace/?query=dc.test.kind+%3D+%22video%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

but i'm definitively doing something wrong because it's not working!! :)
i'm i missing something? is there some interesting
documentation/tutorial on this subject?

thank you!!
Kocisky

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] SRW/Lucene/Dspace - dc schema customization, index and search

2011-03-16 Thread Kocisky
When i'm fetching a record :

http://localhost:8080/SRW/search/DSpace/?query=dc.identifier+%3D+%2211%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

it fetches also the customized dc metadata:

Results for Search: dc.identifier = 11
Result Set Identifier: hqwurd
Records found: 1
Record: 1 of 1
Schema: Dublin Core
dc:contributor.author:  Administrator
dc:date.accessioned:2011-03-10T19:02:35Z
dc:date.available:  2011-03-10T19:02:35Z
dc:date.issued: 2011-03-10
dc:identifier.uri:  http://hdl.handle.net/123456789/11
dc:description.provenance:  Submitted by admin (ad...@domain.org) on
2011-03-10T19:02:35Z No. of bitstreams: 1 Dovetail.Tasting.pdf: 234082
bytes, checksum: bd7989f5f5d9b5c95ffef358b2a67fa4 (MD5)
dc:description.provenance:  Made available in DSpace on
2011-03-10T19:02:35Z (GMT). No. of bitstreams: 1 Dovetail.Tasting.pdf:
234082 bytes, checksum: bd7989f5f5d9b5c95ffef358b2a67fa4 (MD5)
dc:language.iso:en_US
dc:subject: Books/Canon/Misc
dc:subject: People
dc:title:   Development Item 1
dc:test.kind:   video
dc:test.content:rafting

hope it helps,
K

On 16 March 2011 15:19, Kocisky koci...@autistici.org wrote:
 Hi all !

 i'm quite new to the dspace/lucene/SRW environment. I've set up a
 dspace 1.7 instance with the SRW module. I'm now able to do the
 following queries:

 http://localhost:8080/SRW/search/DSpace/?query=dc.identifier+%3D+%2211%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

 with the default fields in the SRW search interface:

 cql.resultSetId
 cql.serverChoice
 dc.contributor
 dc.creator
 dc.description.abstract
 dc.description.sponsorship
 dc.description.statementofresponsibility
 dc.description.tableofcontents
 dc.format.mimetype
 dc.identifier
 dc.relation.ispartofseries
 dc.subject
 dc.title

 after i've added some additional fields in the dc schema (from
 http://10.0.102.11:8080/xmlui/admin/metadata-registry): dc.test.kind
 and dc.test.content (if more easy it wouldn't be a problem to create
 them in separate new schema). This because i would like to use those
 fields from an external application (for internal purposes).

 Following the documentation i've tried to configure SRW/Dspace with
 the following configuration:

 dspace/config/DSpace.SRWDatabase.props

 indexSynonym.dc.creator=author
 indexSynonym.dc.contributor=author
 indexSynonym.dc.description.statementofresponsibility=author
 indexSynonym.dc.title=title
 indexSynonym.dc.subject=keyword
 indexSynonym.dc.description.abstract=abstract
 indexSynonym.dc.description.tableofcontents=abstract
 indexSynonym.dc.relation.ispartofseries=series
 indexSynonym.dc.format.mimetype=mime
 indexSynonym.dc.description.sponsorship=sponsor
 indexSynonym.dc.identifier=identifier
 indexSynonym.cql.serverChoice=default

 indexSynonym.dc.test.kind=kind
 indexSynonym.dc.test.content=content


 dspace.cfg

 # Fields to Index for Search #

 # DC metadata elements.qualifiers to be indexed for search
 # format: - search.index.[number] = [search field]:element.qualifier
 # - * used as wildcard

 ###  changing these will change your search results, ###
 ###  but will NOT automatically change your search displays  ###

 search.index.1 = author:dc.contributor.*
 search.index.2 = author:dc.creator.*
 search.index.3 = title:dc.title.*
 search.index.4 = keyword:dc.subject.*
 search.index.5 = abstract:dc.description.abstract
 search.index.6 = author:dc.description.statementofresponsibility
 search.index.7 = series:dc.relation.ispartofseries
 search.index.8 = abstract:dc.description.tableofcontents
 search.index.9 = mime:dc.format.mimetype
 search.index.10 = sponsor:dc.description.sponsorship
 search.index.11 = identifier:dc.identifier.*
 search.index.12 = language:dc.language.iso
 search.index.13 = kind:dc.test.kind
 search.index.14 = content:dc.test.content

 then i've tried to rebuild the index but i couldn't find the script
 /[dspace]/bin/index-init, i've check also in [dspace-source] but
 nothing, should i download something separately?
 i was looking at this documentation:
 https://wiki.duraspace.org/display/DSDOC/Configuration#Configuration-ConfiguringLuceneSearchIndexes

 Now what i would like to do is to search with SRW in the Dspace/Lucene
 index with the customized metadata, for example by
 dc.test.kind=video with a query like this:

 http://localhost:8080/SRW/search/DSpace/?query=dc.test.kind+%3D+%22video%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

 but i'm definitively doing something wrong because it's not working!! :)
 i'm i missing something? is there some interesting
 documentation/tutorial

Re: [Dspace-tech] SRW/Lucene/Dspace - dc schema customization, index and search

2011-03-16 Thread Kocisky
ok, never mind... the right command is [dspace]/bin/dspace index-init

and now:

http://10.0.102.11:8080/SRW/search/DSpace/?query=dc.test.kind+%3D+%22video%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

works ! nice...
K

On 16 March 2011 15:26, Kocisky koci...@autistici.org wrote:
 When i'm fetching a record :

 http://localhost:8080/SRW/search/DSpace/?query=dc.identifier+%3D+%2211%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

 it fetches also the customized dc metadata:

 Results for Search: dc.identifier = 11
 Result Set Identifier: hqwurd
 Records found: 1
 Record: 1 of 1
 Schema: Dublin Core
 dc:contributor.author:  Administrator
 dc:date.accessioned:    2011-03-10T19:02:35Z
 dc:date.available:      2011-03-10T19:02:35Z
 dc:date.issued:         2011-03-10
 dc:identifier.uri:      http://hdl.handle.net/123456789/11
 dc:description.provenance:      Submitted by admin (ad...@domain.org) on
 2011-03-10T19:02:35Z No. of bitstreams: 1 Dovetail.Tasting.pdf: 234082
 bytes, checksum: bd7989f5f5d9b5c95ffef358b2a67fa4 (MD5)
 dc:description.provenance:      Made available in DSpace on
 2011-03-10T19:02:35Z (GMT). No. of bitstreams: 1 Dovetail.Tasting.pdf:
 234082 bytes, checksum: bd7989f5f5d9b5c95ffef358b2a67fa4 (MD5)
 dc:language.iso:        en_US
 dc:subject:     Books/Canon/Misc
 dc:subject:     People
 dc:title:       Development Item 1
 dc:test.kind:   video
 dc:test.content:        rafting

 hope it helps,
 K

 On 16 March 2011 15:19, Kocisky koci...@autistici.org wrote:
 Hi all !

 i'm quite new to the dspace/lucene/SRW environment. I've set up a
 dspace 1.7 instance with the SRW module. I'm now able to do the
 following queries:

 http://localhost:8080/SRW/search/DSpace/?query=dc.identifier+%3D+%2211%22version=1.1operation=searchRetrieverecordSchema=info%3Asrw%2Fschema%2F1%2Fdc-v1.1maximumRecords=10startRecord=1resultSetTTL=300recordPacking=xmlrecordXPath=sortKeys=

 with the default fields in the SRW search interface:

 cql.resultSetId
 cql.serverChoice
 dc.contributor
 dc.creator
 dc.description.abstract
 dc.description.sponsorship
 dc.description.statementofresponsibility
 dc.description.tableofcontents
 dc.format.mimetype
 dc.identifier
 dc.relation.ispartofseries
 dc.subject
 dc.title

 after i've added some additional fields in the dc schema (from
 http://10.0.102.11:8080/xmlui/admin/metadata-registry): dc.test.kind
 and dc.test.content (if more easy it wouldn't be a problem to create
 them in separate new schema). This because i would like to use those
 fields from an external application (for internal purposes).

 Following the documentation i've tried to configure SRW/Dspace with
 the following configuration:

 dspace/config/DSpace.SRWDatabase.props

 indexSynonym.dc.creator=author
 indexSynonym.dc.contributor=author
 indexSynonym.dc.description.statementofresponsibility=author
 indexSynonym.dc.title=title
 indexSynonym.dc.subject=keyword
 indexSynonym.dc.description.abstract=abstract
 indexSynonym.dc.description.tableofcontents=abstract
 indexSynonym.dc.relation.ispartofseries=series
 indexSynonym.dc.format.mimetype=mime
 indexSynonym.dc.description.sponsorship=sponsor
 indexSynonym.dc.identifier=identifier
 indexSynonym.cql.serverChoice=default

 indexSynonym.dc.test.kind=kind
 indexSynonym.dc.test.content=content


 dspace.cfg

 # Fields to Index for Search #

 # DC metadata elements.qualifiers to be indexed for search
 # format: - search.index.[number] = [search field]:element.qualifier
 # - * used as wildcard

 ###  changing these will change your search results, ###
 ###  but will NOT automatically change your search displays  ###

 search.index.1 = author:dc.contributor.*
 search.index.2 = author:dc.creator.*
 search.index.3 = title:dc.title.*
 search.index.4 = keyword:dc.subject.*
 search.index.5 = abstract:dc.description.abstract
 search.index.6 = author:dc.description.statementofresponsibility
 search.index.7 = series:dc.relation.ispartofseries
 search.index.8 = abstract:dc.description.tableofcontents
 search.index.9 = mime:dc.format.mimetype
 search.index.10 = sponsor:dc.description.sponsorship
 search.index.11 = identifier:dc.identifier.*
 search.index.12 = language:dc.language.iso
 search.index.13 = kind:dc.test.kind
 search.index.14 = content:dc.test.content

 then i've tried to rebuild the index but i couldn't find the script
 /[dspace]/bin/index-init, i've check also in [dspace-source] but
 nothing, should i download something separately?
 i was looking at this documentation:
 https://wiki.duraspace.org/display/DSDOC/Configuration#Configuration-ConfiguringLuceneSearchIndexes

 Now what i would like to do is to search with SRW in the Dspace/Lucene
 index with the customized metadata, for example by
 dc.test.kind

Re: [Dspace-tech] Failing compilation on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-17 Thread Kocisky
shame one me :/ the schema was wrong... thanks again Tim,
regards, K

On 14 January 2011 16:27, Tim Donohue tdono...@duraspace.org wrote:
 Kocisky,

 DSpace should be finding those columns from the Database table itself.

 I noticed from your other email that you had this setting in dspace.cfg:

 db.schema = dspace

 So, I'm assuming you are working in a PostgreSQL database that is using
 multiple schemas. Is the table being created under the proper schema? So,
 rather than it being created under the public schema (which I think is the
 default), it should be appearing under the dspace schema for you.

 Also, did you create this dspace schema in your database?  If not, then
 your 'db.schema' setting may be causing these problems.

 By default, the dspace.cfg has the 'db.schema' setting commented out (which
 tells DSpace you want to use the default schema in Postgres).  If you
 uncomment this setting, and give it a value, then you must first *create*
 that Schema in your database (as DSpace doesn't have permissions to create
 the schema for you, just as it doesn't create the database for you).

 Hopefully this helps,

 - Tim



 On 1/13/2011 10:38 AM, Kocisky wrote:

 Tim,

 you are right, i miss that, thanks! below further details:

 On 11 January 2011 18:17, Tim Donohuetdono...@duraspace.org  wrote:

 Kocisky,

 Actually those logs are helpful.  It shows me that for some reason your
 install process is not able to load data into your
 'bitstreamformatregistry'
 table.

 Can you check to make sure this table is created properly in your DB?

 It should be created with the following columns:

 bitstream_format_id integer NOT NULL,
 mimetype character varying(256),
 short_description character varying(128),
 description text,
 support_level integer,
 internal boolean

 yes the table is in the db as you reported


 You also may want to look at your PostgreSQL log files, to see if it has
 reported any errors.

 the postgresql-8.3-main.log report these errors:

 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_item_pkey for table bi_item
 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_withdrawn_pkey for table bi_withdrawn
 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_2_dis_pkey for table bi_2_dis
 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_2_dmap_pkey for table bi_2_dmap
 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_4_dis_pkey for table bi_4_dis
 2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
 create implicit index bi_4_dmap_pkey for table bi_4_dmap
 2011-01-13 11:08:04 EST LOG:  unexpected EOF on client connection
 2011-01-13 11:08:04 EST LOG:  unexpected EOF on client connection
 2011-01-13 11:08:05 EST ERROR:  relation bi_1 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_1 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_1_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_1_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_2 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_2 LIMIT 1
 2011-01-13 11:08:05 EST NOTICE:  drop cascades to constraint
 bi_2_dmap_distinct_id_fkey on table bi_2_dmap
 2011-01-13 11:08:05 EST ERROR:  relation bi_3 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_3 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_3_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_3_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_4 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_4 LIMIT 1
 2011-01-13 11:08:05 EST NOTICE:  drop cascades to constraint
 bi_4_dmap_distinct_id_fkey on table bi_4_dmap
 2011-01-13 11:08:05 EST ERROR:  relation bi_5 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_5 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_5_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_5_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_6 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_6 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_6_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_6_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_7 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_7 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_7_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_7_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_8 does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_8 LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_8_dis does not exist
 2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_8_dis LIMIT 1
 2011-01-13 11:08:05 EST ERROR:  relation bi_9 does not exist
 2011-01-13 11:08:05 EST STATEMENT

[Dspace-tech] build/install dspace 1.7 fails with mvn 3.0, ant 1.8, java 1.6.0_22 or conf?

2011-01-14 Thread Kocisky
 not exist at character 15
STATEMENT:  SELECT * FROM bi_item LIMIT 1
ERROR:  relation bi_withdrawn does not exist at character 15
STATEMENT:  SELECT * FROM bi_withdrawn LIMIT 1
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_item_pkey for table bi_item
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_withdrawn_pkey for table bi_withdrawn
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_2_dis_pkey for table bi_2_dis
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_2_dmap_pkey for table bi_2_dmap
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_4_dis_pkey for table bi_4_dis
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_4_dmap_pkey for table bi_4_dmap
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  disconnection: session time: 0:00:00.112 user=postgres
database=dspace host=127.0.0.1 port=45066
LOG:  disconnection: session time: 0:00:00.601 user=postgres
database=dspace host=127.0.0.1 port=45065
LOG:  connection received: host=127.0.0.1 port=45068
LOG:  connection authorized: user=postgres database=dspace
LOG:  connection received: host=127.0.0.1 port=45069
LOG:  connection authorized: user=postgres database=dspace
ERROR:  relation bi_1 does not exist at character 15
STATEMENT:  SELECT * FROM bi_1 LIMIT 1
ERROR:  relation bi_1_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_1_dis LIMIT 1
ERROR:  relation bi_2 does not exist at character 15
STATEMENT:  SELECT * FROM bi_2 LIMIT 1
NOTICE:  drop cascades to constraint bi_2_dmap_distinct_id_fkey on
table bi_2_dmap
ERROR:  relation bi_3 does not exist at character 15
STATEMENT:  SELECT * FROM bi_3 LIMIT 1
ERROR:  relation bi_3_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_3_dis LIMIT 1
ERROR:  relation bi_4 does not exist at character 15
STATEMENT:  SELECT * FROM bi_4 LIMIT 1
NOTICE:  drop cascades to constraint bi_4_dmap_distinct_id_fkey on
table bi_4_dmap
ERROR:  relation bi_5 does not exist at character 15
STATEMENT:  SELECT * FROM bi_5 LIMIT 1
ERROR:  relation bi_5_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_5_dis LIMIT 1
ERROR:  relation bi_6 does not exist at character 15
STATEMENT:  SELECT * FROM bi_6 LIMIT 1
ERROR:  relation bi_6_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_6_dis LIMIT 1
ERROR:  relation bi_7 does not exist at character 15
STATEMENT:  SELECT * FROM bi_7 LIMIT 1
ERROR:  relation bi_7_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_7_dis LIMIT 1
ERROR:  relation bi_8 does not exist at character 15
STATEMENT:  SELECT * FROM bi_8 LIMIT 1
ERROR:  relation bi_8_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_8_dis LIMIT 1
ERROR:  relation bi_9 does not exist at character 15
STATEMENT:  SELECT * FROM bi_9 LIMIT 1
ERROR:  relation bi_9_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_9_dis LIMIT 1
ERROR:  relation bi_10 does not exist at character 15
STATEMENT:  SELECT * FROM bi_10 LIMIT 1
ERROR:  relation bi_10_dis does not exist at character 15
STATEMENT:  SELECT * FROM bi_10_dis LIMIT 1
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_item_pkey for table bi_item
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_withdrawn_pkey for table bi_withdrawn
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_2_dis_pkey for table bi_2_dis
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_2_dmap_pkey for table bi_2_dmap
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_4_dis_pkey for table bi_4_dis
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
bi_4_dmap_pkey for table bi_4_dmap
LOG:  unexpected EOF on client connection
LOG:  disconnection: session time: 0:00:00.159 user=postgres
database=dspace host=127.0.0.1 port=45069
LOG:  unexpected EOF on client connection
LOG:  disconnection: session time: 0:00:00.246 user=postgres
database=dspace host=127.0.0.1 port=45068
LOG:  connection received: host=127.0.0.1 port=45071
LOG:  connection authorized: user=postgres database=dspace
LOG:  connection received: host=127.0.0.1 port=45072
LOG:  connection authorized: user=postgres database=dspace
ERROR:  syntax error at or near ) at character 39
STATEMENT:  INSERT INTO bitstreamformatregistry ( ) VALUES ( ) RETURNING null
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  disconnection: session time: 0:00:00.054 user=postgres
database=dspace host=127.0.0.1 port=45072
LOG:  disconnection: session time: 0:00:00.513 user=postgres
database=dspace host=127.0.0.1 port=45071

Does anybody understand where the problem is located? i've tried to
install dspace on Mac and Debian, with the packages required compiled
from the sources but i gor the same problem...
thank you !

Kocisky

--
Protect Your Site

Re: [Dspace-tech] Failing compilation on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-13 Thread Kocisky
Tim,

you are right, i miss that, thanks! below further details:

On 11 January 2011 18:17, Tim Donohue tdono...@duraspace.org wrote:
 Kocisky,

 Actually those logs are helpful.  It shows me that for some reason your
 install process is not able to load data into your 'bitstreamformatregistry'
 table.

 Can you check to make sure this table is created properly in your DB?

 It should be created with the following columns:

 bitstream_format_id integer NOT NULL,
 mimetype character varying(256),
 short_description character varying(128),
 description text,
 support_level integer,
 internal boolean

yes the table is in the db as you reported


 You also may want to look at your PostgreSQL log files, to see if it has
 reported any errors.

the postgresql-8.3-main.log report these errors:

2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_item_pkey for table bi_item
2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_withdrawn_pkey for table bi_withdrawn
2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_2_dis_pkey for table bi_2_dis
2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_2_dmap_pkey for table bi_2_dmap
2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_4_dis_pkey for table bi_4_dis
2011-01-13 11:08:04 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_4_dmap_pkey for table bi_4_dmap
2011-01-13 11:08:04 EST LOG:  unexpected EOF on client connection
2011-01-13 11:08:04 EST LOG:  unexpected EOF on client connection
2011-01-13 11:08:05 EST ERROR:  relation bi_1 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_1 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_1_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_1_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_2 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_2 LIMIT 1
2011-01-13 11:08:05 EST NOTICE:  drop cascades to constraint
bi_2_dmap_distinct_id_fkey on table bi_2_dmap
2011-01-13 11:08:05 EST ERROR:  relation bi_3 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_3 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_3_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_3_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_4 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_4 LIMIT 1
2011-01-13 11:08:05 EST NOTICE:  drop cascades to constraint
bi_4_dmap_distinct_id_fkey on table bi_4_dmap
2011-01-13 11:08:05 EST ERROR:  relation bi_5 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_5 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_5_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_5_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_6 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_6 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_6_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_6_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_7 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_7 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_7_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_7_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_8 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_8 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_8_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_8_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_9 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_9 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_9_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_9_dis LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_10 does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_10 LIMIT 1
2011-01-13 11:08:05 EST ERROR:  relation bi_10_dis does not exist
2011-01-13 11:08:05 EST STATEMENT:  SELECT * FROM bi_10_dis LIMIT 1
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_item_pkey for table bi_item
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_withdrawn_pkey for table bi_withdrawn
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_2_dis_pkey for table bi_2_dis
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_2_dmap_pkey for table bi_2_dmap
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_4_dis_pkey for table bi_4_dis
2011-01-13 11:08:05 EST NOTICE:  CREATE TABLE / PRIMARY KEY will
create implicit index bi_4_dmap_pkey for table bi_4_dmap
2011-01-13 11:08:05 EST LOG:  unexpected EOF on client connection
2011-01-13 11:08:05 EST LOG

[Dspace-tech] Fwd: Failing compilation on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-11 Thread Kocisky
Previous message not sent to the ml


-- Forwarded message --
From: Kocisky koci...@autistici.org
Date: 10 January 2011 15:12
Subject: Re: [Dspace-tech] Failing compilation on debian lenny,
PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20,
tomcat 5.5
To: Tim Donohue tdono...@duraspace.org


Dear Tim,

i've tried to install the last version of java (directly from the
oracle site and not the version on the debian repository) but got the
same problem.
below the error log you can also verify the versions of the
applications required by dspace (from the doc).
I've tried also with another environment (MacOSX 10.6.6) with the
latest tomcat 6.0.29 and postgreSQL 9.0 but had the same error (check
the tread: Syntax error on ant fresh_install with dspace 1.7.0 in
the same ml).

i didn't really understood where the postgres/JDBC connector resides
and which version is compatible...
since i'm not confident with this environment i dont even know how to
follow the code, should i post it on the dev mailing list ?

thank you!
K

dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
java -version
java version 1.6.0_23
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
ant -version
Apache Ant version 1.7.0 compiled on April 29 2008
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
mvn -version
Maven version: 2.0.9
Java version: 1.6.0_22
OS name: linux version: 2.6.26-2-686 arch: i386 Family: unix
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
 psql --version
psql (PostgreSQL) 8.3.12
contains support for command-line editing
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
perl -version

This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using man perl or perldoc perl.  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[]

[INFO] Copying files to
/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir
[INFO]
[INFO]
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] DSpace Addon Modules .. SUCCESS [10.229s]
[INFO] DSpace XML-UI (Manakin) :: Web Application  SUCCESS [29.401s]
[INFO] DSpace LNI :: Web Application . SUCCESS [9.994s]
[INFO] DSpace OAI :: Web Application . SUCCESS [8.520s]
[INFO] DSpace JSP-UI :: Web Application .. SUCCESS [7.514s]
[INFO] DSpace SWORD :: Web Application ... SUCCESS [9.485s]
[INFO] DSpace SOLR :: Web Application  SUCCESS [20.712s]
[INFO] DSpace Assembly and Configuration . SUCCESS [59.814s]
[INFO] 
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 minutes 36 seconds
[INFO] Finished at: Mon Jan 10 14:37:19 EST 2011
[INFO] Final Memory: 40M/97M
[INFO] 
dev:/home/user/Desktop/dspace-1.7.0-release/dspace# cd
/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
java -version
java version 1.6.0_23
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
ls
bin  build.xml  CHANGES  config  docs  etc  KNOWN_BUGS  lib  LICENSE
README  solr  webapps
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
ant fresh_install
Buildfile: build.xml

init_installation:
   [mkdir] Created dir: /usr/local/dspace/bin
   [mkdir] Created dir: /usr/local/dspace/config
   [mkdir] Created dir: /usr/local/dspace/lib
   [mkdir] Created dir: /usr/local/dspace/etc
   [mkdir] Created dir: /usr/local/dspace/webapps
   [mkdir] Created dir: /usr/local/dspace/exports

Re: [Dspace-tech] Failing compilation on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-11 Thread Kocisky
] 2011-01-11 15:13:02,432 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java] 2011-01-11 15:13:03,640 FATAL
org.dspace.administer.RegistryLoader @
anonymous::error_loading_registries:
 [java] org.postgresql.util.PSQLException: ERROR: syntax error at
or near )
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1755)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:451)
 [java] at
org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403)
 [java] at
org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172)
 [java] at
org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138)
 [java] at
org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75)
 [java] Error:
 [java]  - ERROR: syntax error at or near )

BUILD FAILED
/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir/build.xml:809:
Java returned: 1

Total time: 16 seconds
dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
mvn -version
Apache Maven 3.0.1 (r1038046; 2010-11-23 05:58:32-0500)
Java version: 1.6.0_22
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux version: 2.6.26-2-686 arch: i386 Family: unix

any suggestions?
thanks a lot,

K


 On 1/10/2011 2:12 PM, Kocisky wrote:

 Dear Tim,

 i've tried to install the last version of java (directly from the
 oracle site and not the version on the debian repository) but got the
 same problem.
 below the error log you can also verify the versions of the
 applications required by dspace (from the doc).
 I've tried also with another environment (MacOSX 10.6.6) with the
 latest tomcat 6.0.29 and postgreSQL 9.0 but had the same error (check
 the tread: Syntax error on ant fresh_install with dspace 1.7.0 in
 the same ml).

 i didn't really understood where the postgres/JDBC connector resides
 and which version is compatible...
 since i'm not confident with this environment i dont even know how to
 follow the code, should i post it on the dev mailing list ?

 thank you!
 K


 dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
 java -version
 java version 1.6.0_23
 Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
 Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

 dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
 ant -version
 Apache Ant version 1.7.0 compiled on April 29 2008

 dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
 mvn -version
 Maven version: 2.0.9
 Java version: 1.6.0_22
 OS name: linux version: 2.6.26-2-686 arch: i386 Family: unix

 dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
  psql --version
 psql (PostgreSQL) 8.3.12
 contains support for command-line editing

 dev:/home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir#
 perl -version

 This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

 Copyright 1987-2007, Larry Wall

 Perl may be copied only under the terms of either the Artistic License or
 the
 GNU General Public License, which may be found in the Perl 5 source kit.

 Complete documentation for Perl, including FAQ lists, should be found on
 this system using man perl or perldoc perl.  If you have access to the
 Internet, point your browser at http://www.perl.org/, the Perl Home Page.

 []

 [INFO] Copying files to

 /home/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir
 [INFO]
 [INFO]
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO

Re: [Dspace-tech] Failing compilation on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-11 Thread Kocisky
Tim, i think that the DEBUG flag is not helping us much, in the mean
while i've tried also to update ant to 1.8.2 but nothing...
should we enable other debug flags? maybe in org.postgresql.util package ?

thank you,
K

[java] 2011-01-11 17:19:37,432 DEBUG
org.dspace.storage.rdbms.DatabaseManager @ Running query CREATE INDEX
bi_4_dis_value_idx ON bi_4_dis(value)  with parameters:
 [java] 2011-01-11 17:19:37,433 DEBUG
org.dspace.storage.rdbms.DatabaseManager @ Running query CREATE INDEX
bi_4_dis_uvalue_idx ON bi_4_dis(UPPER(value))  with parameters:
 [java] 2011-01-11 17:19:37,435 DEBUG
org.dspace.storage.rdbms.DatabaseManager @ Running query CREATE INDEX
bi_4_dmap_item_id_idx ON bi_4_dmap(item_id)  with parameters:
 [java] 2011-01-11 17:19:37,436 DEBUG
org.dspace.storage.rdbms.DatabaseManager @ Running query CREATE INDEX
bi_4_dmap_dist_idx ON bi_4_dmap(distinct_id)  with parameters:
 [java] Started: 1294784376950
 [java] Ended: 1294784377438
 [java] Elapsed time: 0 secs (488 msecs)

load_registries:
 [java] 2011-01-11 17:19:38,273 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-11 17:19:38,281 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java] 2011-01-11 17:19:39,283 DEBUG
org.dspace.storage.rdbms.DatabaseManager @ Running query INSERT INTO
bitstreamformatregistry ( ) VALUES ( ) RETURNING null
 [java] 2011-01-11 17:19:39,292 FATAL
org.dspace.administer.RegistryLoader @
anonymous::error_loading_registries:
 [java] org.postgresql.util.PSQLException: ERROR: syntax error at
or near )
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 [java] at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 [java] at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeError:
 [java]  - ERROR: syntax error at or near )
 [java] Query(DelegatingPreparedStatement.java:96)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1755)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:451)
 [java] at
org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403)
 [java] at
org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172)
 [java] at
org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138)
 [java] at
org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75)

BUILD FAILED
/home/user/Desktop/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir/build.xml:809:
Java returned: 1

Total time: 13 seconds

On 11 January 2011 16:31, Tim Donohue tdono...@duraspace.org wrote:
 Hi Kocisky,

 Your Maven build part is working properly.  I didn't notice you were using
 the 'dspace-1.7.0-release' version (which has pre-compiled code, and
 therefore responds as having built fewer modules).  I had thought you were
 still using the 'dspace-1.7.0-src-release' version.

 Here's something else you can try:

 (1) From [dspace-src]/dspace/ run this command:
    'mvn clean package'
 (WARNING: this will first delete the entire /target/dspace-1.7.0-build.dir ,
 before it rebuilds DSpace.)

 (2) After DSpace has been rebuilt, edit the following configuration file:

 [dspace-src]/dspace/target/dspace-1.7.0-build.dir/config/log4j-console.properties

 In that text file, temporarily change the following line:

 log4j.rootCategory=INFO, A1

 Replace INFO with DEBUG like this:

 log4j.rootCategory=DEBUG, A1

 This changes the logging mode to debug. That means that the DSpace
 installer will now report a lot more information to you about what is going
 on while DSpace is being installed.

 (3) Finally, re-run the 'ant fresh_install' command.

 This time, you should see a ton of extra information be logged to your
 command line (since you are now in debug mode).  Once it errors out again,
 please email us the lines just *before* that error message.  This time,
 those lines should

[Dspace-tech] Syntax error on ant fresh_install with dspace 1.7.0

2011-01-10 Thread Kocisky
Hi all,

i've tried to install dspace 1.7.0 but i've got the following syntax
error with ant fresh_install.

i've tried to update tomcat to 6.0.29, and postgresql to 9.0 but i get
the same error. This time on mac environment, see: Failing compilation
on debian lenny, PostgreSQL 8.3.12, libpg-java 8.2-504-2, java version
1.6.0_20, tomcat 5.5

any idea? am i missing something? i dont even understand where should
i look for the problem, is it the JDBC connector?
thank you very much,

K

bash-3.2# ant fresh_install
Buildfile: 
/Users/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir/build.xml

init_installation:

init_configs:
 [copy] Copying 1 file to /opt/dspace/config

test_database:
 [java] 2011-01-10 11:58:12,202 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-10 11:58:12,210 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java]
 [java] Attempting to connect to database:
 [java]  - URL: jdbc:postgresql://localhost:5433/dspace
 [java]  - Driver: org.postgresql.Driver
 [java]  - Username: postgres
 [java]  - Password: zsx
 [java]  - Schema: dspace
 [java]
 [java] Testing connection...
 [java] Connected successfully!
 [java]

setup_database:
 [java] 2011-01-10 11:58:13,418 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-10 11:58:13,425 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java] 2011-01-10 11:58:13,426 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2011-01-10 11:58:15,837 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-10 11:58:15,851 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java] Started: 1294678695831
 [java] Ended: 1294678696304
 [java] Elapsed time: 0 secs (473 msecs)

load_registries:
 [java] 2011-01-10 11:58:17,192 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-10 11:58:17,199 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if unintended, check your dspace.cfg for
(log.init.config)
 [java] Error:
 [java]  - ERROR: syntax error at or near )
 [java] 2011-01-10 11:58:17,781 FATAL
org.dspace.administer.RegistryLoader @
anonymous::error_loading_registries:
 [java] org.postgresql.util.PSQLException: ERROR: syntax error at
or near )
 [java]     at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 [java]     at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 [java]     at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 [java]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 [java]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 [java]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 [java]     at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java]     at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java]     at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java]     at
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1755)
 [java]     at
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675)
 [java]     at
org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:451)
 [java]     at
org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403)
 [java]     at
org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172)
 [java]     at
org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138)
 [java]     at
org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75)

BUILD FAILED
/Users/user/Desktop/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir/build.xml:809:
Java returned: 1

Total time: 7 seconds

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted 

Re: [Dspace-tech] Failing compilation on debian lenny, Po stgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-07 Thread Kocisky
 sorry it didn't copy all the console buffer, below the important part:


 [INFO] 
 
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 
 [INFO] Total time: 5 minutes 5 seconds
 [INFO] Finished at: Fri Jan 07 09:46:00 EST 2011
 [INFO] Final Memory: 84M/203M
 [INFO] 
 
 dev:/home/user/Desktop/dspace-1.7.0-src-release/dspace# cd 
 
/home/user/Desktop/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir
 
dev:/home/user/Desktop/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir#
 
 ant fresh_install
 Buildfile: build.xml

 init_installation:
[mkdir] Created dir: /usr/local/dspace_src/bin
[mkdir] Created dir: /usr/local/dspace_src/config
[mkdir] Created dir: /usr/local/dspace_src/lib
[mkdir] Created dir: /usr/local/dspace_src/etc
[mkdir] Created dir: /usr/local/dspace_src/webapps
[mkdir] Created dir: /usr/local/dspace_src/exports
[mkdir] Created dir: /usr/local/dspace_src/exports/download
[mkdir] Created dir: /usr/local/dspace_src/assetstore
[mkdir] Created dir: /usr/local/dspace_src/handle-server
[mkdir] Created dir: /usr/local/dspace_src/search
[mkdir] Created dir: /usr/local/dspace_src/log
[mkdir] Created dir: /usr/local/dspace_src/upload
[mkdir] Created dir: /usr/local/dspace_src/reports
[mkdir] Created dir: /usr/local/dspace_src/solr

 init_configs:
 [copy] Copying 61 files to /usr/local/dspace_src/config
 [copy] Copying 1 file to /usr/local/dspace_src/config

 test_database:
 [java] 2011-01-07 09:46:35,471 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:35,477 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java]
 [java] Attempting to connect to database:
 [java]  - URL: jdbc:postgresql://localhost:5432/dspace
 [java]  - Driver: org.postgresql.Driver
 [java]  - Username: postgres
 [java]  - Password: zsx
 [java]  - Schema: dspace
 [java]
 [java] Testing connection...
 [java] Connected successfully!
 [java]

 setup_database:
 [java] 2011-01-07 09:46:36,156 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:36,162 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] 2011-01-07 09:46:36,162 INFO  
 org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2011-01-07 09:46:43,759 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:43,765 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] Started: 1294411603751
 [java] Ended: 1294411604212
 [java] Elapsed time: 0 secs (461 msecs)

 load_registries:
 [java] 2011-01-07 09:46:44,518 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:44,524 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] 2011-01-07 09:46:45,215 FATAL 
 org.dspace.administer.RegistryLoader @ 
 anonymous::error_loading_registries:
 [java] org.postgresql.util.PSQLException: ERROR: syntax error at or 
 near )
 [java] at 
 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 [java] at 
 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 [java] at 
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at 
 

Re: [Dspace-tech] Failing compilation on debian lenny, Po stgreSQL 8.3.12, libpg-java 8.2-504-2, java version 1.6.0_20, tomcat 5.5

2011-01-07 Thread Kocisky
 below the important part:


 [INFO] 
 
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 
 [INFO] Total time: 5 minutes 5 seconds
 [INFO] Finished at: Fri Jan 07 09:46:00 EST 2011
 [INFO] Final Memory: 84M/203M
 [INFO] 
 
 dev:/home/user/Desktop/dspace-1.7.0-src-release/dspace# cd 
 
/home/user/Desktop/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir
 
dev:/home/user/Desktop/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir#
 
 ant fresh_install
 Buildfile: build.xml

 init_installation:
[mkdir] Created dir: /usr/local/dspace_src/bin
[mkdir] Created dir: /usr/local/dspace_src/config
[mkdir] Created dir: /usr/local/dspace_src/lib
[mkdir] Created dir: /usr/local/dspace_src/etc
[mkdir] Created dir: /usr/local/dspace_src/webapps
[mkdir] Created dir: /usr/local/dspace_src/exports
[mkdir] Created dir: /usr/local/dspace_src/exports/download
[mkdir] Created dir: /usr/local/dspace_src/assetstore
[mkdir] Created dir: /usr/local/dspace_src/handle-server
[mkdir] Created dir: /usr/local/dspace_src/search
[mkdir] Created dir: /usr/local/dspace_src/log
[mkdir] Created dir: /usr/local/dspace_src/upload
[mkdir] Created dir: /usr/local/dspace_src/reports
[mkdir] Created dir: /usr/local/dspace_src/solr

 init_configs:
 [copy] Copying 61 files to /usr/local/dspace_src/config
 [copy] Copying 1 file to /usr/local/dspace_src/config

 test_database:
 [java] 2011-01-07 09:46:35,471 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:35,477 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java]
 [java] Attempting to connect to database:
 [java]  - URL: jdbc:postgresql://localhost:5432/dspace
 [java]  - Driver: org.postgresql.Driver
 [java]  - Username: postgres
 [java]  - Password: zsx
 [java]  - Schema: dspace
 [java]
 [java] Testing connection...
 [java] Connected successfully!
 [java]

 setup_database:
 [java] 2011-01-07 09:46:36,156 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:36,162 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] 2011-01-07 09:46:36,162 INFO  
 org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2011-01-07 09:46:43,759 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:43,765 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] Started: 1294411603751
 [java] Ended: 1294411604212
 [java] Elapsed time: 0 secs (461 msecs)

 load_registries:
 [java] 2011-01-07 09:46:44,518 INFO  
 org.dspace.core.ConfigurationManager @ Loading system provided config 
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2011-01-07 09:46:44,524 INFO  
 org.dspace.core.ConfigurationManager @ Using default log4j provided log 
 configuration,if unintended, check your dspace.cfg for (log.init.config)
 [java] 2011-01-07 09:46:45,215 FATAL 
 org.dspace.administer.RegistryLoader @ 
 anonymous::error_loading_registries:
 [java] org.postgresql.util.PSQLException: ERROR: syntax error at or 
 near )
 [java] at 
 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 [java] at 
 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 [java] at 
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 [java] at 
 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at 
 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 [java] at