Re: [Dspace-tech] Half-OT: Tomcat won't start
First check: do you have servlet-api.jar in common/lib? If not, try placing a copy to there. If it does not help, it could involve some harder classpath issues. Perhaps reinstalling a new version of Tomcat is easier than fixing it. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Sergio Belkin wrote: DSpace dspace-tech@lists.sourceforge.net Hi, Tomcat was running well and suddenly stop of working. I am using tomcat5-5.5.23-0jpp.7.el5_2.1 on Centos 5.2 /etc/tomcat5/tomcat5.conf looks like as follows: JAVA_HOME=/usr/lib/jvm/java CATALINA_HOME=/usr/share/tomcat5 JASPER_HOME=/usr/share/tomcat5 CATALINA_TMPDIR=/usr/share/tomcat5/temp JAVA_ENDORSED_DIRS=/usr/share/tomcat5/common/endorsed JAVA_OPTS=$JAVA_OPTS -Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HOME/common/lib TOMCAT_USER=tomcat SHUTDOWN_WAIT=30 CATALINA_PID=/var/run/tomcat5.pid And var/log/tomcat5/catalina.out has: SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Fault of authentication
Estimated friends, I am Serbe León of the UdeA (Medellin, Colombia), entrusted of Dspace's implementation in the above mentioned institution. Approximately 15 days ago I began with the study of this project and the respective manuals of installation of the product. I have followed the steps recommended in the official manual and another special manual for Red Hat that I found in the wiki of the product. Coming to the final step of generation of the application with the instruction ant fresh_install the following mistake goes out for me: -bash-3.2$ ant fresh_install Buildfile: build.xml init_installation: init_configs: [copy] Copying 43 files to /usr/local/dspace/config setup_database: [java] 2009-03-30 14:25:44,295 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg [java] 2009-03-30 14:25:44,299 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if uninitended, check your dspace.cfg for (log.init.config) [java] 2009-03-30 14:25:44,299 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2009-03-30 14:25:44,365 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception: [java] org.postgresql.util.PSQLException: FATAL: la autentificaci?n Ident fall? para el usuario ?dspace ? [java] at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275) [java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94) [java] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65) [java] at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection.java:116) [java] at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection.java:30) [java] at org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java:24) [java] at org.postgresql.Driver.makeConnection(Driver.java:369) [java] at org.postgresql.Driver.connect(Driver.java:245) [java] at java.sql.DriverManager.getConnection(DriverManager.java:620) [java] at java.sql.DriverManager.getConnection(DriverManager.java:200) [java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65) [java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) [java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) [java] at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176) [java] at java.sql.DriverManager.getConnection(DriverManager.java:620) [java] at java.sql.DriverManager.getConnection(DriverManager.java:222) [java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:550) [java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:923) [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100) BUILD FAILED /home/dspace/src/dspace-1.5.1-src-release/dspace/target/dspace-1.5.1-build.dir/build.xml:380: Java returned: 1 Total time: 1 second I eliminated the user dspace, I have turned it to creating, as the database, but this mistake continues going out for me. I am grateful for the nice collaboration that they could give me Platform for implementation: Servant: HP Proliant ML350 SO: Linux Red Hat 5.0 Dspace: 1.5.1 Cordial greeting - Serbe León Rojas Yepes Sistema de Bibliotecas Universidad de Antioquia Medellin - Colombia Somos el Alma de la Universidad -- El contenido de este mensaje es responsabilidad del funcionario al cual pertenece la dirección electrónica. El Sistema de Bibliotecas de la Universidad de Antioq -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Fault of authentication
Accidentally sent this directly to Serbe this morning, forwarding it to the list now... Hi Serbe, Welcome to DSpace. I think your pg_hba.conf file is not configured correctly, or you are not running the installation as the dspace (*nix) user. Let us know: i) ownership of your dspace source code files ii) the *nix user that is running your install script iii) the *nix user which tomcat runs under And post a copy of your pg_hba.conf file (usually somewhere like /var/lib/pgsql/data). Thanks Gary Gary Browne Development Programmer Library IT Services University of Sydney ph: 9351-5946 -Original Message- From: Serbe Leon Rojas [mailto:serbe.ro...@biblioteca.udea.edu.co] Sent: Tuesday, 31 March 2009 7:33 AM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Fault of authentication Estimated friends, I am Serbe León of the UdeA (Medellin, Colombia), entrusted of Dspace's implementation in the above mentioned institution. Approximately 15 days ago I began with the study of this project and the respective manuals of installation of the product. I have followed the steps recommended in the official manual and another special manual for Red Hat that I found in the wiki of the product. Coming to the final step of generation of the application with the instruction ant fresh_install the following mistake goes out for me: -bash-3.2$ ant fresh_install Buildfile: build.xml init_installation: init_configs: [copy] Copying 43 files to /usr/local/dspace/config setup_database: [java] 2009-03-30 14:25:44,295 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg [java] 2009-03-30 14:25:44,299 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if uninitended, check your dspace.cfg for (log.init.config) [java] 2009-03-30 14:25:44,299 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2009-03-30 14:25:44,365 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception: [java] org.postgresql.util.PSQLException: FATAL: la autentificaci?n Ident fall? para el usuario ?dspace ? [java] at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication( ConnectionFactoryImpl.java:275) [java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImp l(ConnectionFactoryImpl.java:94) [java] at org.postgresql.core.ConnectionFactory.openConnection(Connectio nFactory.java:65) [java] at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJd bc2Connection.java:116) [java] at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJd bc3Connection.java:30) [java] at org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java:24) [java] at org.postgresql.Driver.makeConnection(Driver.java:369) [java] at org.postgresql.Driver.connect(Driver.java:245) [java] at java.sql.DriverManager.getConnection(DriverManager.java:620) [java] at java.sql.DriverManager.getConnection(DriverManager.java:200) [java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.createC onnection(DriverManagerConnectionFactory.java:65) [java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(P oolableConnectionFactory.java:294) [java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Ge nericObjectPool.java:974) [java] at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176) [java] at java.sql.DriverManager.getConnection(DriverManager.java:620) [java] at java.sql.DriverManager.getConnection(DriverManager.java:222) [java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(Databas eManager.java:550) [java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManag er.java:923) [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDat abase.java:100) BUILD FAILED /home/dspace/src/dspace-1.5.1-src-release/dspace/target/dspace -1.5.1-build.dir/build.xml:380: Java returned: 1 Total time: 1 second I eliminated the user dspace, I have turned it to creating, as the database, but this mistake continues going out for me. I am grateful for the nice collaboration that they could give me Platform for implementation: Servant: HP Proliant ML350 SO: Linux Red Hat 5.0 Dspace: 1.5.1 Cordial greeting - Serbe León Rojas Yepes Sistema de Bibliotecas Universidad de Antioquia Medellin - Colombia Somos el Alma de la Universidad -- El contenido de este mensaje es
Re: [Dspace-tech] Half-OT: Tomcat won't start
Hi, I've finally fixed the problem so: 1)Backup importantes files of tomcat5 package 2)Uninstall tomcat5 package 3) Reinstall tomcat5 package 4)Restore /var/lib/tomcat5/, /usr/share/tomcat, /etc/tomcat5 , /var/cache/tomcat from backup 5) And finally: cp /usr/share/java/tomcat5-servlet-2.4-api-5.5.23.jar /var/lib/tomcat5/common/lib/\[servlet\].jar Now it works! Sorry for my ignorance but what is such a .jar file? Thanks in advance! -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Half-OT: Tomcat won't start
The exception is caused by Tomcat being unable to find a class called HttpServletRequest. This class is included with servlet-api.jar, which should have come handy with tomcat package. Tomcat discovers its libraries from common/lib. Try placing a copy of the jar in /usr/share/tomcat5/common/lib or var/lib/tomcat5/common/lib/ When you see similar error when you are running a webapp, place the jar in your application's WEB-INF/lib Hope it helps. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Sergio Belkin wrote: Hi, I reinstalled tomcat and problem persists, this the content of var/lib/tomcat5/common/lib/ total 0 lrwxrwxrwx 1 root root 44 Dec 17 12:27 naming-resources.jar - /usr/share/java/tomcat5/naming-resources.jar lrwxrwxrwx 1 root root 42 Dec 17 12:27 naming-factory.jar - /usr/share/java/tomcat5/naming-factory.jar lrwxrwxrwx 1 root root 27 Dec 17 12:27 jdtcore.jar - /usr/share/java/jdtcore.jar lrwxrwxrwx 1 root root 23 Mar 30 16:10 [jsp].jar - /usr/share/java/jsp.jar lrwxrwxrwx 1 root root 34 Mar 30 16:10 [jndi].jar - /usr/lib/jvm-exports/java/jndi.jar lrwxrwxrwx 1 root root 41 Mar 30 16:10 [jdbc-stdext].jar - /usr/lib/jvm-exports/java/jdbc-stdext.jar lrwxrwxrwx 1 root root 28 Mar 30 16:10 [javamail].jar - /usr/share/java/javamail.jar lrwxrwxrwx 1 root root 35 Mar 30 16:10 [jasper5-runtime].jar - /usr/share/java/jasper5-runtime.jar lrwxrwxrwx 1 root root 36 Mar 30 16:10 [jasper5-compiler].jar - /usr/share/java/jasper5-compiler.jar lrwxrwxrwx 1 root root 23 Mar 30 16:10 [jaf].jar - /usr/share/java/jaf.jar lrwxrwxrwx 1 root root 32 Mar 30 16:10 [commons-pool].jar - /usr/share/java/commons-pool.jar lrwxrwxrwx 1 root root 39 Mar 30 16:10 [commons-logging-api].jar - /usr/share/java/commons-logging-api.jar lrwxrwxrwx 1 root root 30 Mar 30 16:10 [commons-el].jar - /usr/share/java/commons-el.jar lrwxrwxrwx 1 root root 32 Mar 30 16:10 [commons-dbcp].jar - /usr/share/java/commons-dbcp.jar lrwxrwxrwx 1 root root 39 Mar 30 16:10 [commons-collections].jar - /usr/share/java/commons-collections.jar lrwxrwxrwx 1 root root 42 Mar 30 16:10 [ant]ant-jakarta-regexp.jar - /usr/share/java/ant/ant-jakarta-regexp.jar lrwxrwxrwx 1 root root 41 Mar 30 16:10 [ant]ant-apache-regexp.jar - /usr/share/java/ant/ant-apache-regexp.jar lrwxrwxrwx 1 root root 47 Mar 30 16:10 [ant]ant-apache-regexp-1.6.5.jar - /usr/share/java/ant/ant-apache-regexp-1.6.5.j 2009/3/30 Allen Lam allen.dsp...@gmail.com: First check: do you have servlet-api.jar in common/lib? If not, try placing a copy to there. If it does not help, it could involve some harder classpath issues. Perhaps reinstalling a new version of Tomcat is easier than fixing it. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Sergio Belkin wrote: DSpace dspace-tech@lists.sourceforge.net Hi, Tomcat was running well and suddenly stop of working. I am using tomcat5-5.5.23-0jpp.7.el5_2.1 on Centos 5.2 /etc/tomcat5/tomcat5.conf looks like as follows: JAVA_HOME=/usr/lib/jvm/java CATALINA_HOME=/usr/share/tomcat5 JASPER_HOME=/usr/share/tomcat5 CATALINA_TMPDIR=/usr/share/tomcat5/temp JAVA_ENDORSED_DIRS=/usr/share/tomcat5/common/endorsed JAVA_OPTS=$JAVA_OPTS -Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HOME/common/lib TOMCAT_USER=tomcat SHUTDOWN_WAIT=30 CATALINA_PID=/var/run/tomcat5.pid And var/log/tomcat5/catalina.out has: SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech