[Dspace-tech] Tomcat cluster configuration
Hi, I have been configuring Tomcat and DSpace to accomplish tomcat clustering and the persistence of sessions in two machines that are running Tomcat at the same time. First, I added the line of server.xml under the Engine line: Engine defaultHost=localhost name=Catalina Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ ... Moreover, we need to modify the objects that sessions of DSpace uses, consequently changing this objects for implementing the java.io.Serializable. In fact, DSpace's sessions only use one object, RequestInfo.java: public class RequestInfo implements java.io.Serializable{.} I made this changes with DSpace 1.4 , Tomcat 5.5.17 and Tomcat 6 and are working very well. I hope this explanations can help anyone. Best regards, Jesús Martín -- .. __ / / Jesús Martín García C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Can i build dspace having an old version of database tables?
Hi, is it possible to build DSpace with an old version of database tables? Any comment will be helpfull, thanks.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tomcat cluster configuration
Hi, It would be great if you could add some notes to the (embarrassingly incomplete) wiki page that I started a few months ago: http://wiki.dspace.org/HOWTO_Clustering The page is mostly focussed on clustering of the database layer, so it would be good to get more detailed information about setting up Tomcat. cheers, Jim On Wed, Jun 27, 2007 at 09:57:47AM +0200, Jesus Martin wrote: Hi, I have been configuring Tomcat and DSpace to accomplish tomcat clustering and the persistence of sessions in two machines that are running Tomcat at the same time. First, I added the line of server.xml under the Engine line: Engine defaultHost=localhost name=Catalina Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ ... Moreover, we need to modify the objects that sessions of DSpace uses, consequently changing this objects for implementing the java.io.Serializable. In fact, DSpace's sessions only use one object, RequestInfo.java: public class RequestInfo implements java.io.Serializable{.} I made this changes with DSpace 1.4 , Tomcat 5.5.17 and Tomcat 6 and are working very well. I hope this explanations can help anyone. Best regards, Jesús MartÃn -- .. __ / / Jesús MartÃn GarcÃa C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- James Rutherford | Hewlett-Packard Limited registered Office: Research Engineer | Cain Road, HP Labs | Bracknell, Bristol, UK | Berks +44 117 312 7066 | RG12 1HN. [EMAIL PROTECTED] | Registered No: 690597 England The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as HP CONFIDENTIAL. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tomcat cluster configuration
Hi, I added some notes to HOWTO_Clustering in DSpace's wiki fo clustering with Tomcat. http://wiki.dspace.org/index.php//HOWTO_Clustering cheers, Jesús James Rutherford wrote: Hi, It would be great if you could add some notes to the (embarrassingly incomplete) wiki page that I started a few months ago: http://wiki.dspace.org/HOWTO_Clustering The page is mostly focussed on clustering of the database layer, so it would be good to get more detailed information about setting up Tomcat. cheers, Jim On Wed, Jun 27, 2007 at 09:57:47AM +0200, Jesus Martin wrote: Hi, I have been configuring Tomcat and DSpace to accomplish tomcat clustering and the persistence of sessions in two machines that are running Tomcat at the same time. First, I added the line of server.xml under the Engine line: Engine defaultHost=localhost name=Catalina Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ ... Moreover, we need to modify the objects that sessions of DSpace uses, consequently changing this objects for implementing the java.io.Serializable. In fact, DSpace's sessions only use one object, RequestInfo.java: public class RequestInfo implements java.io.Serializable{.} I made this changes with DSpace 1.4 , Tomcat 5.5.17 and Tomcat 6 and are working very well. I hope this explanations can help anyone. Best regards, Jesús MartÃn -- .. __ / / Jesús MartÃn GarcÃa C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- .. __ / / Jesús Martín García C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tomcat cluster configuration
Thanks, Jesus. Since you and James are discussing it, I'll make some comments about what's unclear to me from reading this page, as a novice: -What is the path of server.xml? -How do we modify the objects that sessions of DSpace uses? The structure of this page http://wiki.dspace.org/index.php//HOWTO_Clustering is also unclear to me--it seems like a list of options that were tried. It would be preferable to me (as a novice), to have a recommendation at the top, clearly marked as such, followed by categorized alternatives. (For instance, how does Terracotta relate to Tomcat)? Scalability is definitely important, so and I hope that those who understand it will continue improving these instructions, and provide some scalability metrics as well at the stub http://wiki.dspace.org/index.php/ScalabilityMetrics Thanks again for your improvements! -Jodi On 6/27/07, Jesus Martin [EMAIL PROTECTED] wrote: Hi, I added some notes to HOWTO_Clustering in DSpace's wiki fo clustering with Tomcat. http://wiki.dspace.org/index.php//HOWTO_Clustering cheers, Jesús James Rutherford wrote: Hi, It would be great if you could add some notes to the (embarrassingly incomplete) wiki page that I started a few months ago: http://wiki.dspace.org/HOWTO_Clustering The page is mostly focussed on clustering of the database layer, so it would be good to get more detailed information about setting up Tomcat. cheers, Jim On Wed, Jun 27, 2007 at 09:57:47AM +0200, Jesus Martin wrote: Hi, I have been configuring Tomcat and DSpace to accomplish tomcat clustering and the persistence of sessions in two machines that are running Tomcat at the same time. First, I added the line of server.xml under the Engine line: Engine defaultHost=localhost name=Catalina Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ ... Moreover, we need to modify the objects that sessions of DSpace uses, consequently changing this objects for implementing the java.io.Serializable. In fact, DSpace's sessions only use one object, RequestInfo.java: public class RequestInfo implements java.io.Serializable{.} I made this changes with DSpace 1.4 , Tomcat 5.5.17 and Tomcat 6 and are working very well. I hope this explanations can help anyone. Best regards, Jesús MartÃn -- .. __ / / Jesús MartÃn GarcÃa C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- .. __ / / Jesús Martín García C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tomcat cluster configuration
On Wed, Jun 27, 2007 at 09:10:53AM -0400, Jodi Schneider wrote: -What is the path of server.xml? -How do we modify the objects that sessions of DSpace uses? This depends on where you installed Tomcat. For me, it's here: /etc/tomcat-5.5/server.xml The structure of this page http://wiki.dspace.org/index.php//HOWTO_Clustering is also unclear to me--it seems like a list of options that were tried. That's pretty much exactly what it is :) It would be preferable to me (as a novice), to have a recommendation at the top, clearly marked as such, followed by categorized alternatives. (For instance, how does Terracotta relate to Tomcat)? Well until Jesus filled in some blanks, the page was mostly a collection of failed experiments, and so there wasn't much to recommend. Scalability is definitely important, so and I hope that those who understand it will continue improving these instructions, and provide some scalability metrics as well at the stub http://wiki.dspace.org/index.php/ScalabilityMetrics Yes, indeed. I was going to start fleshing this page out with content once I had some kind of clustered setup running, but that never happened (I was only experimenting with the database aspect), so the whole effort lost momentum. cheers, Jim -- James Rutherford | Hewlett-Packard Limited registered Office: Research Engineer | Cain Road, HP Labs | Bracknell, Bristol, UK | Berks +44 117 312 7066 | RG12 1HN. [EMAIL PROTECTED] | Registered No: 690597 England The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as HP CONFIDENTIAL. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Tomcat cluster configuration
Jodi, the server.xml is in the /tomcat-directory/conf/. And you have to modify one class, in concrete RequestInfo.java making this class serializable adding the following code in RequestInfo.java: java class RequestInfo implements java.io.Serializable{ After this you have to recompile the DSpace code, stop Tomcat, copy the war in /tomcat-directory/webapps/ and start Tomcat. cheers, Jesús Jodi Schneider wrote: Thanks, Jesus. Since you and James are discussing it, I'll make some comments about what's unclear to me from reading this page, as a novice: -What is the path of server.xml? -How do we modify the objects that sessions of DSpace uses? The structure of this page http://wiki.dspace.org/index.php//HOWTO_Clustering is also unclear to me--it seems like a list of options that were tried. It would be preferable to me (as a novice), to have a recommendation at the top, clearly marked as such, followed by categorized alternatives. (For instance, how does Terracotta relate to Tomcat)? Scalability is definitely important, so and I hope that those who understand it will continue improving these instructions, and provide some scalability metrics as well at the stub http://wiki.dspace.org/index.php/ScalabilityMetrics Thanks again for your improvements! -Jodi On 6/27/07, *Jesus Martin* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I added some notes to HOWTO_Clustering in DSpace's wiki fo clustering with Tomcat. http://wiki.dspace.org/index.php//HOWTO_Clustering cheers, Jesús James Rutherford wrote: Hi, It would be great if you could add some notes to the (embarrassingly incomplete) wiki page that I started a few months ago: http://wiki.dspace.org/HOWTO_Clustering http://wiki.dspace.org/HOWTO_Clustering The page is mostly focussed on clustering of the database layer, so it would be good to get more detailed information about setting up Tomcat. cheers, Jim On Wed, Jun 27, 2007 at 09:57:47AM +0200, Jesus Martin wrote: Hi, I have been configuring Tomcat and DSpace to accomplish tomcat clustering and the persistence of sessions in two machines that are running Tomcat at the same time. First, I added the line of server.xml under the Engine line: Engine defaultHost=localhost name=Catalina Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ ... Moreover, we need to modify the objects that sessions of DSpace uses, consequently changing this objects for implementing the java.io.Serializable. In fact, DSpace's sessions only use one object, RequestInfo.java: public class RequestInfo implements java.io.Serializable{.} I made this changes with DSpace 1.4 , Tomcat 5.5.17 and Tomcat 6 and are working very well. I hope this explanations can help anyone. Best regards, Jesús MartÃn -- .. __ / / Jesús MartÃn GarcÃa C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net mailto:DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- .. __ / / Jesús Martín García C E / S / C A Tècnic en Sistemes /_/Centre de Supercomputació de Catalunya Gran Capità 2-4 (Edifici Nexus) 08034 Barcelona T. 93 205 6464 F. 93 205 6979 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] .. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/