Re: [Dspace-tech] Problems since upgrade to 1.8
OK, I've reset JAVA_OPTS to 1024, but I can't start the handle server. I'm getting this: Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Is there something else I need to change too? Thanks, -- Karen Savage Baylor University Libraries Electronic Library Library Systems karen_sav...@baylor.edu (254) 710-3275 On 9/21/12 2:28 PM, Tim Donohue tdono...@duraspace.org wrote: Hi Karen, The Java heap space error would be why things are slowing down / locking up. It is telling you that the 512MB of memory you set in $JAVA_OPTS is unfortunately not enough for Tomcat (and thus Tomcat essentially crashes). Although we do recommend *at least* 512MB of memory for DSpace, some sites may require more memory if they are active (decent amount of visits or downloads). Here's more info in the online docs about dealing with Java Heap space errors: https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace#Perfo rmanceTuningDSpace-GiveTomcatMoreJavaHeapMemory If you have more memory available on that server, you may want to allow Tomcat to use more like 1GB of memory, e.g.: JAVA_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8 - Tim On 9/21/2012 1:17 PM, Savage, Karen R. wrote: I think I've sorted the problem with tomcat not finding the webapps when restarting it. It seems some of the files in the tomcat directory now belonged to root instead of dspace, so it was a permissions problem. As for the other problem: In the cocoon log it just says Failed to process pipeline caused by Page cannot be found. The dspace log is showing ClientAbortException: java.net.SocketException: Broken pipe. The catalina log is showing some java out of memory errors SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: Java heap space I've double-checked, and I do have my $JAVA_OPTS set to -Xmx512M -Xms64M -Dfile.encoding=UTF-8 as the installation instructions say. The three logs are attached. Thanks, Karen S. On 9/21/12 12:41 PM, Tim Donohue tdono...@duraspace.org wrote: Hi Karen, Is there anything reported in the dspace or tomcat logs when your site starts to have issues? Here's a guide for locating error messages in the dspace/tomcat logs: https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error If you can forward to this mailing list any errors appearing in the logs, we may be able to narrow down what the issue could be. But, unfortunately without more information, it may be rather difficult for us to guess what is going on. Thanks, - Tim On 9/21/2012 12:35 PM, Savage, Karen R. wrote: About a month ago we upgraded our instance of dspace from 1.7 to 1.8. Since then, the site doesn't seem to stay online for more than a week at a time without having to restart tomcat; and when tomcat is restarted, it can't find the webapp and throws up a 404 error. The server has to be rebooted in order to get everything working again. Any ideas on what may be going wrong? Thanks! Linux RedHat 5.3 Tomcat 6.0.20 Java jdk1.6.0_18 -- Karen Savage Baylor University Libraries Electronic Library Library Systems karen_sav...@baylor.edu (254) 710-3275 --- -- - Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Live Security Virtual Conference Exclusive live event will cover all the ways today's
Re: [Dspace-tech] Problems since upgrade to 1.8
Did you happen to forget the dash (-) before Xmx1024m? It should look like: JAVA_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8 That'd be my best guess as to why it's throwing that error. If you do have the dash, you could think about just setting CATALINA_OPTS *instead of* JAVA_OPTS. CATALINA_OPTS is only used by Tomcat and will be ignored by the handle server. For more explanation see: https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace#PerformanceTuningDSpace-GiveTomcatMoreJavaHeapMemory - Tim On 9/24/2012 9:06 AM, Savage, Karen R. wrote: OK, I've reset JAVA_OPTS to 1024, but I can't start the handle server. I'm getting this: Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Is there something else I need to change too? Thanks, -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Problems since upgrade to 1.8
And as a follow-up, I tried reverting to the previous JAVA_OPTS, but am still getting the error when starting the handle server: Exception in thread main java.lang.NoClassDefFoundError: Xmx512m Caused by: java.lang.ClassNotFoundException: Xmx512m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx512m. Program will exit. Exception in thread main java.lang.NoClassDefFoundError: Xmx512m Caused by: java.lang.ClassNotFoundException: Xmx512m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx512m. Program will exit. Thanks, Karen S. On 9/24/12 9:06 AM, Savage, Karen R. karen_sav...@baylor.edu wrote: OK, I've reset JAVA_OPTS to 1024, but I can't start the handle server. I'm getting this: Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Is there something else I need to change too? Thanks, -- Karen Savage Baylor University Libraries Electronic Library Library Systems karen_sav...@baylor.edu (254) 710-3275 On 9/21/12 2:28 PM, Tim Donohue tdono...@duraspace.org wrote: Hi Karen, The Java heap space error would be why things are slowing down / locking up. It is telling you that the 512MB of memory you set in $JAVA_OPTS is unfortunately not enough for Tomcat (and thus Tomcat essentially crashes). Although we do recommend *at least* 512MB of memory for DSpace, some sites may require more memory if they are active (decent amount of visits or downloads). Here's more info in the online docs about dealing with Java Heap space errors: https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace#Perf o rmanceTuningDSpace-GiveTomcatMoreJavaHeapMemory If you have more memory available on that server, you may want to allow Tomcat to use more like 1GB of memory, e.g.: JAVA_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8 - Tim On 9/21/2012 1:17 PM, Savage, Karen R. wrote: I think I've sorted the problem with tomcat not finding the webapps when restarting it. It seems some of the files in the tomcat directory now belonged to root instead of dspace, so it was a permissions problem. As for the other problem: In the cocoon log it just says Failed to process pipeline caused by Page cannot be found. The dspace log is showing ClientAbortException: java.net.SocketException: Broken pipe. The catalina log is showing some java out of memory errors SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: Java heap space I've double-checked, and I do have my $JAVA_OPTS set to -Xmx512M -Xms64M -Dfile.encoding=UTF-8 as the installation instructions say. The three logs are attached. Thanks, Karen S. On 9/21/12 12:41 PM, Tim Donohue tdono...@duraspace.org wrote: Hi Karen, Is there anything reported in the dspace or tomcat logs when your site starts to have issues? Here's a guide for locating error messages in the dspace/tomcat logs: https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error If you can forward to this mailing list any errors appearing in the logs, we may be able to narrow down what the issue could be. But, unfortunately without more
Re: [Dspace-tech] Problems since upgrade to 1.8
I think that might have been it. I copied and pasted from your previous message starting after the =, but must have missed the dash. Thanks! Karen S. On 9/24/12 9:13 AM, Tim Donohue tdono...@duraspace.org wrote: Did you happen to forget the dash (-) before Xmx1024m? It should look like: JAVA_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8 That'd be my best guess as to why it's throwing that error. If you do have the dash, you could think about just setting CATALINA_OPTS *instead of* JAVA_OPTS. CATALINA_OPTS is only used by Tomcat and will be ignored by the handle server. For more explanation see: https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace#Perfo rmanceTuningDSpace-GiveTomcatMoreJavaHeapMemory - Tim On 9/24/2012 9:06 AM, Savage, Karen R. wrote: OK, I've reset JAVA_OPTS to 1024, but I can't start the handle server. I'm getting this: Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Exception in thread main java.lang.NoClassDefFoundError: Xmx1024m Caused by: java.lang.ClassNotFoundException: Xmx1024m at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Xmx1024m. Program will exit. Is there something else I need to change too? Thanks, -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Shibboleth Authentication in XMLUI
Hi, I have successfully set up Shibboleth authentication for the 1.8.2 JSPUI, but in the XMLUI it fails. A look into the log file tells me that the needed credentials cannot be found: 2012-09-24 16:36:20,515 ERROR org.dspace.authenticate.ShibAuthentication @ Unable to register new eperson because we are unable to find an email address along with first and last name for the user. NetId Header: 'eppn'='null' (Optional) Email Header: 'mail'='null' First Name Header: 'givenName'='null' Last Name Header: 'surname'='null' As said, this works for the JSPUI. The respective property names (eppn, mail, givenName, surname) are correctly set, this is how the IdP returns them. Thanks in advance for your help, Joachim -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim +49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Shibboleth Authentication in XMLUI
Joachim, Can you send the part of the log before the error message that lists what headers have been passed? Also can you say what Shibboleth SP you are using (version, platform, OS etc) and details of the attribute-map.xml plus the config that you are using in Apache to get the attributes passed to Tomcat. Regards, Ben -- Dr Ben Ryan Jorum Technical Manager 5.12 Roscoe Building The University of Manchester Oxford Road Manchester M13 9PL Tel: 0160 275 6039 E-mail: benjamin.r...@manchester.ac.uk -- -Original Message- From: Joachim Bingel [mailto:bin...@ids-mannheim.de] Sent: 24 September 2012 15:41 To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Shibboleth Authentication in XMLUI Hi, I have successfully set up Shibboleth authentication for the 1.8.2 JSPUI, but in the XMLUI it fails. A look into the log file tells me that the needed credentials cannot be found: 2012-09-24 16:36:20,515 ERROR org.dspace.authenticate.ShibAuthentication @ Unable to register new eperson because we are unable to find an email address along with first and last name for the user. NetId Header: 'eppn'='null' (Optional) Email Header: 'mail'='null' First Name Header: 'givenName'='null' Last Name Header: 'surname'='null' As said, this works for the JSPUI. The respective property names (eppn, mail, givenName, surname) are correctly set, this is how the IdP returns them. Thanks in advance for your help, Joachim -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim +49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] CC license step in DSpace
Hi all, Using 1.8.0/1.8.1 and JSPUI in both cases. I am wondering if it is possible to enable the CCLicense step (and have the default license not show up) for some collections, and have the opposite in other collections? Is there a way to do this built-in? Thanks in advance for any help/advice. Good-day and be well. Darren Arsenault Programmer Algonquin College 1385 Woodroffe Avenue Ottawa, ON, K2G 1V8 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] CC license step in DSpace
Hi Darren Reference: https://wiki.duraspace.org/display/DSDOC18/Submission+User+Interface#SubmissionUserInterface-Reordering%2FRemovingSubmissionSteps El 24/09/2012 21:48, Darren Arsenault escribió: Using 1.8.0/1.8.1 and JSPUI in both cases. I am wondering if it is possible to enable the CCLicense step (and have the default license not show up) for some collections, and have the opposite in other collections? You can have different workflows defined for different collection and/or communities. Just use the submission-map section on top of item-submission.xml to define the flows. Example: /submission-map name-map collection-handle=/15 submission-name=licence_1/name-map name-map collection-handle=/14 submission-name=licencia_2/name-map name-map collection-handle=default submission-name=licence_3 / /submission-map/ this example assignssubmission-process name=licence_1 to collection /15,submission-process name=licence_2 to collection /14, and submission-process name=licence_2 to the rest of collections/communities... since you can reorder/ suppress/etc the steps in licence_1, 2 3, just define them in the desired order and combination... example: Licence_1 will have the normal licence and Licence_2 just the Licence_CC step. Other combinations are possible... / submission-process name=licence_1 step headingsubmit.progressbar.license/heading . /step submission-process name=licence_2 step headingsubmit.progressbar.CClicense/heading . /step/ RegardS Emilio Lorenzo -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech