[Dspace-tech] mod_proxy versus mod_jk with DSpace Tomcat
Has anyone tried using mod_proxy with Tomcat and Apache? We have been using mod_jk for years in connecting Tomcat with Apache. It has worked failry well, allthough mod_jk sometimes seems to make Apache hang which then needs to be restarted. Recently I started experiencing with mod_proxy. It seems to work well, but today I noticed that I cannot login to DSpace on proxied address?? After entering my userid and password I am subsequently being thrown back to login page. If I try to login on the real address (non proxied) of the instance, everything works fine. Any clues what might be causing this and how to fix this? Thanks, Mika -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Install dspace unsucessful
Hi, It looks like you have a permissions problem somewhere. See the error in the log... access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read) Could you enter ls -l /usr/share/java/jsp-api-2.1.jar And tell me what it says ? Could you also run ls -l against the directory where you have installed tomcat and the 'dspace' directory ? Cheers, Robin. Actually I'm a little surprised that it is looking for that jar in that directory but that is another problem. Robin Taylor Main Library University of Edinburgh Tel. 0131 6515208 -Original Message- From: Panyarak Ngamsritragul [mailto:pa...@me.psu.ac.th] Sent: 02 April 2009 01:10 To: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Install dspace unsucessful Maybe my last post contains too much information... In the process of 'mvn package', there is a warning: [WARNING] The following patterns were never triggered in this artifact exclusion filter: o '*:war:*' It reported finally that the process was successful. Running 'ant fresh_install' was also successful. I created dspace.xml containing Context path=/dspace docBase=/dspace/webapps/jspui debug=0 reloadable=true AllowLinking=true CachingAllowed=false/ in /etc/tomcat6/Catalina/localhost and then restart tomcat6. When I read the tomcat6's log file, it contains warnings and errors like: Apr 1, 2009 10:37:15 PM org.apache.catalina.users.MemoryUserDatabase save WARNING: User database is not persistable - no write permissions on directory Apr 1, 2009 10:37:16 PM org.apache.catalina.core.StandardContext processTlds SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/fmt.tld in context /dspace javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/fmt.tld in context /dspace at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295) at org.apache.catalina.core.StandardContext.processTlds(StandardC ontext.java:4448) at org.apache.catalina.core.StandardContext.start(StandardContext .java:4248) at org.apache.catalina.core.ContainerBase.addChildInternal(Contai nerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBas e.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase. java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostCo nfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostC onfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf ig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L ifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService .java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoa der.java:177) Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read) at java.security.AccessControlContext.checkPermission(AccessContr olContext.java:342) at java.security.AccessController.checkPermission(AccessControlle r.java:553)
[Dspace-tech] How to enable statistics in Dspace 1.5
Dear All, We are using fedora 9 with dspace 1.5 , can anyone tell me which flatfrom is better for Dspace. People are using Debian, Ubontu also, is there any different in technical context which may effect dspace. and another query how to enable statistics in Dspace 1.5. thanks -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] journal volumes, issues, article and the introductory text metadata
I am planning to use model journals, volumes, issues and articles by having a journal as a collection and all the articles as items within that collection. I plan to use the introductory text metadata in a collection to hold the volume, issue, article ordering id, year, month and page range for each article. The problem I worried about is this: will the intro text metadata field be big enough. I will have lots of back files over decades for each journal. So a journal with 50 years, say, and an issue per month with around 20 articles per issue, will require 12000 metadata 'rows' for this field. That's a lorra lorra data to put in one field! Do people think this is doable? What limit, if any, is there for this field? -- Regards, Andrew M. http://www.andrewpetermarlow.co.uk -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] PSQLException OID ### does not exist
Message: 2 Date: Wed, 01 Apr 2009 21:01:58 -0700 From: Kim Griggs kim.gri...@oregonstate.edu Subject: [Dspace-tech] PSQLException OID ### does not exist To: dspace-tech@lists.sourceforge.net dspace-tech@lists.sourceforge.net Message-ID: c5f986c6.a42c%kim.gri...@oregonstate.edu Content-Type: text/plain; charset=US-ASCII We are upgrading to 1.4.2 to 1.5. Java 1.5. Postgres 8.1. After running the indexer we are getting internal errors on the high level browse by pages. The error is: org.postgresql.util.PSQLException: ERROR: relation with OID 54778762 does not exist Oddly the community level browse bys work. I read that it might be a postgres thing and upgrading to 8.3 might fix it. Before I go through that I am looking for confirmation. Has anyone seen this problem and how did you fix it? Thanks. Hi Kim You need to stop the handle-server, tomcat, and then postgres in that order. Then just restart them in the reverse order. Wait 30 seconds for each command to complete before executing the next command. Example: 1.) svcadm disable handle-server 2.) svcadm disable dspace 3.) svcadm disable postgres 4.) svcadm enable postgres 5.) svcadm enable dspace 6.) svcadm enable handle-server This is how I resolved this issue. Ron Stevenhaagen Technical Specialist Information Technology Services Queens University Kingston Ontario -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] mod_proxy versus mod_jk with DSpace Tomcat
We are using mod_proxy_http very successfully. We've also tested mod_proxy-ajp with success. --jat Jeffrey Trimble System LIbrarian William F. Maag Library Youngstown State University 330.941.2483 (Office) jtrim...@cc.ysu.edu http://www.maag.ysu.edu http://digital.maag.ysu.edu On Apr 2, 2009, at 4:11 AM, mikan.d.dspace listmail wrote: Has anyone tried using mod_proxy with Tomcat and Apache? We have been using mod_jk for years in connecting Tomcat with Apache. It has worked failry well, allthough mod_jk sometimes seems to make Apache hang which then needs to be restarted. Recently I started experiencing with mod_proxy. It seems to work well, but today I noticed that I cannot login to DSpace on proxied address?? After entering my userid and password I am subsequently being thrown back to login page. If I try to login on the real address (non proxied) of the instance, everything works fine. Any clues what might be causing this and how to fix this? Thanks, Mika -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin and Admin Utilities With Apache Redirection
2009/4/1 Sean Carte sean.ca...@gmail.com: I've been trying to get the XMLUI interface to work with Apache redirection, but I can't access the admin utilities (everything else works): For example, this URL: http://10.4.36.18/admin/metadata-registry results in this error: HTTP Status 404 - /admin/metadata-registry type Status report message /admin/metadata-registry description The requested resource (/admin/metadata-registry) is not available. ... I have noticed that, when using the xml ui, if I append xmlui to the URL, everything works, e.g.: http://10.4.36.18/xmlui/admin/metadata-registry Here's a simple workaround: Override the header in your xsl file and replace a xsl:attribute name=href xsl:value-of select=/dri:document/dri:meta/dri:userMeta/ dri:metada...@element='identifier' and @qualifier='loginURL']/ /xsl:attribute with: a href=xmlui/login This makes the 'Login' link at the top right of the screen include the 'xmlui', which from then on will be part of the path. Thereafter, it's a simple matter of persuading admin users to use that link to log in. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Problems of authentication
I began again. I eliminated the database and the user in postgres. I have created the database and the user with the following instructions: # su --login postgres -c 'createuser -U postgres -S -R -c 35 -d dspace' # su --login dspace -c 'createdb -U dspace -E UTF8 -T template0 dspace dspace= SELECT * FROM pg_user; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig --+--+-+--+---+--+--+--- postgres | 10 | t | t| t | | | dspace |16389 | t | f| f | | | (2 filas) dspace= SELECT * FROM pg_database; datname | datdba | encoding | datistemplate | datallowconn | datconnlimit | datlastsysoid | datvacuumxid | datfrozenxid | dattablespace | datconfig | datacl ---++--+---+--+--+---+--+--+---+---+ postgres | 10 |8 | f | t| -1 | 10792 | 499 | 499 | 1663 | | dspace| 16389 |6 | f | t| -1 | 10792 | 651 | 651 | 1663 | | template1 | 10 |8 | t | t| -1 | 10792 | 499 | 499 | 1663 | | {postgres=CT/postgres} template0 | 10 |8 | t | f| -1 | 10792 | 499 | 499 | 1663 | | {postgres=CT/postgres} (4 filas) In the file dspace.cfg have the following thing: # the servlet engine. dspace.url = http://tesis.udea.edu.co/dspace # DSpace host name - should match base URL. Do not include port number dspace.hostname = tesis.udea.edu.co # Name of the site dspace.name = UdeA # Database settings # # Database name (oracle, or postgres) #db.name = ${default.db.name} db.name = postgres #db.name = oracle # URL for connecting to database #db.url = ${default.db.url} db.url = jdbc:postgresql://localhost:5432/dspace # JDBC Driver #db.driver = ${default.db.driver} db.driver = org.postgresql.Driver # Database username and password db.username = dspace db.password = dspace The error when I execute ant fresh_install is: [java] 2009-04-02 09:06:28,764 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2009-04-02 09:06:28,811 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception: [java] org.postgresql.util.PSQLException: FATAL: la autentificación Ident falló para el usuario ?dspace ? I am grateful for your nice collaboration. Really I am not experienced at postgres - Serbe León Rojas Yepes Sistema de Bibliotecas Universidad de Antioquia Medellin - Colombia Somos el Alma de la Universidad -- -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Minho Stats add-on 2.1 for Dspace 1.5.1 XMLUI
Can anybody confirm if the Minho stats v2.1 works for DSpace 1.5.1 XMLUI or not? -- Smile, Sakshi :) -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Install dspace unsucessful
ls -l /usr/share/java/jsp-api-2.1.jar gives: -rw-r--r-- 1 root root 73029 2009-01-20 15:39 /usr/share/java/jsp-api-2.1.jar ls -l /dspace/ gives: total 44 drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 assetstore drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 bin drwxrwxrwx 6 tomcat6 tomcat6 4096 2009-04-01 22:00 config drwxrwxrwx 3 tomcat6 tomcat6 4096 2009-04-01 22:00 etc drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 handle-server drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 lib drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:19 log drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 reports drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 search drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 upload drwxrwxrwx 7 tomcat6 tomcat6 4096 2009-04-01 22:00 webapps ls -l /etc/tomcat6/ gives: total 88 drwxrwxr-x 3 root tomcat6 4096 2009-03-26 20:36 Catalina -rw-r--r-- 1 root root 3665 2008-07-22 07:01 catalina.properties -rw-r--r-- 1 root root 1396 2008-07-22 07:01 context.xml -rw-r--r-- 1 root root 2370 2009-01-20 15:39 logging.properties drwxr-xr-x 2 root root 4096 2009-04-01 20:29 policy.d -rw-r--r-- 1 root root 6487 2009-04-01 22:32 server.xml -rw-r- 1 root tomcat6 1274 2009-03-26 21:14 tomcat-users.xml -rw-r--r-- 1 root root50106 2008-07-22 07:01 web.xml ls -l /var/lib/tomcat6/ gives: total 12 lrwxrwxrwx 1 rootroot 12 2009-04-01 20:29 conf - /etc/tomcat6 drwxr-xr-x 2 rootroot4096 2009-04-01 20:29 lib lrwxrwxrwx 1 rootroot 17 2009-04-01 20:29 logs - ../../log/tomcat6 drwxr-xr-x 2 tomcat6 root4096 2009-01-20 15:40 temp drwxrwxr-x 5 roottomcat6 4096 2009-04-01 22:09 webapps lrwxrwxrwx 1 rootroot 19 2009-04-01 20:29 work - ../../cache/tomcat6 -- Panyarak On Thu, 2 Apr 2009, Robin Taylor wrote: Hi, It looks like you have a permissions problem somewhere. See the error in the log... access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read) Could you enter ls -l /usr/share/java/jsp-api-2.1.jar And tell me what it says ? Could you also run ls -l against the directory where you have installed tomcat and the 'dspace' directory ? Cheers, Robin. Actually I'm a little surprised that it is looking for that jar in that directory but that is another problem. Robin Taylor Main Library University of Edinburgh Tel. 0131 6515208 -- This message has been scanned for viruses and dangerous content by MailScanner. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Install dspace unsucessful
On Thu, Apr 02, 2009 at 07:10:15AM +0700, Panyarak Ngamsritragul wrote: In the process of 'mvn package', there is a warning: [WARNING] The following patterns were never triggered in this artifact exclusion filter: o '*:war:*' I always see that too. It seems to be something we can ignore. It reported finally that the process was successful. Running 'ant fresh_install' was also successful. I created dspace.xml containing Context path=/dspace docBase=/dspace/webapps/jspui debug=0 reloadable=true AllowLinking=true CachingAllowed=false/ The 'path' attribute should only be used when the Context is defined in server.xml -- which should not be done. When a Context is defined in a separate file, the name of the file (minus '.xml') determines the path. So, naming the file 'dspace.xml' has already specified that the context path will be '/dspace'. in /etc/tomcat6/Catalina/localhost and then restart tomcat6. When I read the tomcat6's log file, it contains warnings and errors like: Apr 1, 2009 10:37:15 PM org.apache.catalina.users.MemoryUserDatabase save WARNING: User database is not persistable - no write permissions on directory That should not be a problem. I consider it a bug in Tomcat that it wants to open that file read-write. It is complaining that tomcat-users.xml is read-only for user 'tomcat'. This should not affect your application. Apr 1, 2009 10:37:16 PM org.apache.catalina.core.StandardContext processTlds SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/fmt.tld in context /dspace javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/fmt.tld in context /dspace [backtrace] Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) at java.security.AccessController.checkPermission(AccessController.java:553) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkRead(SecurityManager.java:888) at java.util.zip.ZipFile.init(ZipFile.java:126) at java.util.jar.JarFile.init(JarFile.java:150) at java.util.jar.JarFile.init(JarFile.java:87) [etc.] That's your problem: access to jsp-api-1.2.jar denied. You later posted some 'ls' output which indicates that the file should be readable. I'm not very familiar with the SecurityManager, but seeing it in the call stack suggests that your Java environment has been configured to forbid fetching JARs from that path. There's something about this that doesn't look to me like an ordinary filesystem access problem. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents. pgp5V38rFQmJ7.pgp Description: PGP signature -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Problems of authentication
I would suggest *not* using Ident authentication for DSpace's access to the database. Since you are providing the driver a username and a password, you should be using one of the password authentication methods. I usually use 'md5'. This is set in the fifth column (METHOD) of the pg_hba.conf file. Ident authentication requires that either: o the username in which the process runs is identical to the database username used to establish the database connection; or o you have set up an ident map file to map the OS username to the DBMS username. Unless you have rather unusual requirements, Ident authentication is probably not what you want. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents. pgp56qzUC4YN7.pgp Description: PGP signature -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] digital image collections
I've created a Wiki page for snippets/recipes, hopefully themes can be linked to from there as well: http://wiki.dspace.org/index.php/Manakin_Themes_and_Recipes My initial layout might need tweaking, but I thought I'd have a go at getting the ball rolling on this while I had a snippet to share. I have a few more recipes to put up, but will wait until I know I'm on the right track with this wiki page.. Cheers, Kim -Original Message- From: dspace-general-boun...@mit.edu [mailto:dspace-general- boun...@mit.edu] On Behalf Of Dorothea Salo Sent: Friday, 3 April 2009 1:58 a.m. To: dspace Subject: Re: [Dspace-general] digital image collections 2009/4/2 Joachim Räth j.ra...@stadtteilgeschichten.net: Here is another example from Germany, mixing library records and historic images: http://stadtteilgeschichten.net/browse-date We are actually in the process of designing a new - less technical - layout using Manakin, but are still in need of some help. A central source for open DSpace Manakin themes would therefor be greatly appreciated. I agree, and have for some time... but to get forward motion on this, best to bring it forward on the dspace-tech list. If we could get a small flash mob together asking for this, it might actually happen. :) Just me asking for it (as I have, several times) is unlikely to accomplish anything, as I am a notorious annoyance. Dorothea -- Dorothea Salods...@library.wisc.edu Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 ___ Dspace-general mailing list dspace-gene...@mit.edu http://mailman.mit.edu/mailman/listinfo/dspace-general -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech