Re: [Dspace-tech] DSpace Installation: Java-Problem
Oh. I thing You got me wrong! The trouble was made by the postgresql-8.2-506.jdbc4.jar in combination with my Java 1.5 installation. After replacing this by postgresql-8.2-506.jdbc3.jar, I could do the 'fresh_install'. So everything is fine with the PostgreSQL, Java and DSpace documentation in this point. Regards Robert Christian Voelker schrieb: Am 26.10.2007 um 10:09 schrieb Robert Roggenbuck: Thanks! That was the Problem. In downloaded postgresql-8.2-506.jdbc4.jar instead of postgresql-8.2-506.jdbc3.jar! After replacing this. Starting the PostgreSQL (I solved my access problem with pgadmin), saying 'ant clean' and 'ant fresh_install' and I got finally the message 'BUILD SUCCESSFUL'! Great. It is a bit strange though. The jdbc4.jar is appropriate for Java 1.6 according to the docs, but you listed Java 1.5 as installed on your machine. I think, we cant easily change the docs for the jdbc driver, but we can keep this information in our own space. There is an installation description for Debian or Ubuntu in the wiki. You might want to add your experience there for future reference. Bye, Christian - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] DSpace Installation: Java-Problem
Dear All, I'd like to install DSpace to check whether we can use it for our planned OA-Repository. But reaching the point to say 'ant fresh_install' I get the following error message where I can not figure out the reason: Buildfile: build.xml compile: install_code: build_wars: init_configs: setup_database: [java] 2007-10-25 12:36:16,477 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2007-10-25 12:36:16,536 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.properties [java] Exception in thread main java.lang.UnsupportedClassVersionError: Bad version number in .class file [java] at java.lang.ClassLoader.defineClass1(Native Method) [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [java] at java.lang.Class.forName0(Native Method) [java] at java.lang.Class.forName(Class.java:164) [java] at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1607) [java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:715) [java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:1062) [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:71) BUILD FAILED /opt/dspace-1.4.2-source/build.xml:293: Java returned: 1 Total time: 3 seconds Any suggestions? I think its not directly a problem with dspace, but with my Java installation. But anyway I would be glad for any hint. Here some info about my environment: uname -a Linux OSU458 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux (in fact it's an Ubuntu 7.04) javac -version Eclipse Java Compiler v_686_R32x, 3.2.2 release, Copyright IBM Corp 2000, 2006. All rights reserved. java -version java version 1.5.0_11 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode) echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun psql --version psql (PostgreSQL) 8.2.5 Further I installed Tomcat 5.5.25 successfully. Best regards Robert -- === Robert Roggenbuck Universitaetsbibliothek Osnabrueck Germany === - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] DSpace Installation: Java-Problem
Install ant-optional to see if it can help. Example in Debian apt-get install ant-optional Obi | -Opprinnelig melding- | Fra: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] På vegne | av Robert Roggenbuck | Sendt: 25. oktober 2007 13:24 | Til: Graham Triggs | Kopi: DSpace-tech@lists.sourceforge.net | Emne: Re: [Dspace-tech] DSpace Installation: Java-Problem | | | Graham Triggs schrieb: | What is the output of: | | ant -diagnostics | | | Wow, ant is very verbose with its '-diagnostics': | | --- Ant diagnostics report --- | Apache Ant version 1.6.5 compiled on July 5 2006 | | --- | Implementation Version (JDK1.2+ only) | --- | core tasks : null | optional tasks : 1.6.5 | | --- | ANT_HOME/lib jar listing | --- | ant.home: /usr/share/ant | ant-nodeps.jar (421921 bytes) | ant-apache-bcel.jar (8765 bytes) | ant-commons-net.jar (35519 bytes) | ant-swing.jar (6768 bytes) | ant-bootstrap.jar (15970 bytes) | ant-junit.jar (72936 bytes) | junit.jar (68448 bytes) | tomcat5.5-jkstatus-ant.jar (20816 bytes) | ant-antlr.jar (5758 bytes) | ant-launcher.jar (9180 bytes) | catalina5.5-ant.jar (26712 bytes) | ant-apache-resolver.jar (4064 bytes) | ant-javamail.jar (6811 bytes) | ant-trax.jar (68529 bytes) | catalina5.5-ant-jmx.jar (23778 bytes) | ant-apache-bsf.jar (12574 bytes) | ant-apache-regexp.jar (3748 bytes) | ant-jsch.jar (22991 bytes) | ant-apache-oro.jar (48180 bytes) | ant-jdepend.jar (8172 bytes) | ant-commons-logging.jar (3990 bytes) | ant.jar (1060964 bytes) | ant-jmf.jar (6520 bytes) | ant-apache-log4j.jar (3012 bytes) | | --- | Tasks availability | --- | image : Not Available | sshexec : Missing dependency com.jcraft.jsch.UserInfo | wlrun : Not Available | icontract : Not Available | scp : Missing dependency com.jcraft.jsch.UserInfo | vajload : Not Available | stlist : Not Available | netrexxc : Not Available | starteam : Not Available | stylebook : Not Available | stlabel : Not Available | jdepend : Missing dependency jdepend.xmlui.JDepend | stcheckin : Not Available | vajexport : Not Available | stcheckout : Not Available | ejbc : Not Available | vajimport : Not Available | wlstop : Not Available | ddcreator : Not Available | | --- | org.apache.env.Which diagnostics | --- | Not available. | Download it at http://xml.apache.org/commons/ | | --- | XML Parser information | --- | XML Parser : org.apache.xerces.jaxp.SAXParserImpl | XML Parser Location: /usr/share/java/xercesImpl.jar | | --- | System properties | --- | java.runtime.name : Java(TM) 2 Runtime Environment, Standard | Edition sun.boot.library.path : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386 | java.vm.version : 1.5.0_11-b03 | ant.library.dir : /usr/share/ant/lib | java.vm.vendor : Sun Microsystems Inc. | java.vendor.url : http://java.sun.com/ | path.separator : : | java.vm.name : Java HotSpot(TM) Server VM | file.encoding.pkg : sun.io | user.country : DE | sun.java.launcher : SUN_STANDARD | sun.os.patch.level : unknown | java.vm.specification.name : Java Virtual Machine | Specification user.dir : /opt/dspace-1.4.2-source | java.runtime.version : 1.5.0_11-b03 java.awt.graphicsenv : | sun.awt.X11GraphicsEnvironment java.endorsed.dirs : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/endorsed | os.arch : i386 | java.io.tmpdir : /tmp | line.separator : | | java.vm.specification.vendor : Sun Microsystems Inc. | os.name : Linux | ant.home : /usr/share/ant | sun.jnu.encoding : UTF-8 | java.library.path : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/server:/usr/ | lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386:/usr/lib/jvm/java | -1.5.0-sun-1.5.0.11/jre/../lib/i386 | java.specification.name : Java Platform API Specification | java.class.version : 49.0 sun.management.compiler : HotSpot | Server Compiler os.version : 2.6.20-16-generic user.home : | /home/dspace user.timezone : java.awt.printerjob : | sun.print.PSPrinterJob file.encoding : UTF-8 | java.specification.version : 1.5 user.name : dspace java.class.path : | /usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserA | PIs.jar:/usr/share/java/xercesImpl.jar:/opt/apache-tomcat-5.5. | 25/common/lib/jsp-api.jar:/opt/apache-tomcat-5.5.25/common/lib | /servlet-api.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ | ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-commons-net .jar:/usr/share/ant/lib/ant-| swing.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/ | lib/ant-junit.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/ | lib/tomcat5.5
Re: [Dspace-tech] DSpace Installation: Java-Problem
I've 'ant-optional' already installed... Obiajulu Odu schrieb: Install ant-optional to see if it can help. Example in Debian apt-get install ant-optional Obi | -Opprinnelig melding- | Fra: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] På vegne | av Robert Roggenbuck | Sendt: 25. oktober 2007 13:24 | Til: Graham Triggs | Kopi: DSpace-tech@lists.sourceforge.net | Emne: Re: [Dspace-tech] DSpace Installation: Java-Problem | | | Graham Triggs schrieb: | What is the output of: | | ant -diagnostics | | | Wow, ant is very verbose with its '-diagnostics': | | --- Ant diagnostics report --- | Apache Ant version 1.6.5 compiled on July 5 2006 | | --- | Implementation Version (JDK1.2+ only) | --- | core tasks : null | optional tasks : 1.6.5 | | --- | ANT_HOME/lib jar listing | --- | ant.home: /usr/share/ant | ant-nodeps.jar (421921 bytes) | ant-apache-bcel.jar (8765 bytes) | ant-commons-net.jar (35519 bytes) | ant-swing.jar (6768 bytes) | ant-bootstrap.jar (15970 bytes) | ant-junit.jar (72936 bytes) | junit.jar (68448 bytes) | tomcat5.5-jkstatus-ant.jar (20816 bytes) | ant-antlr.jar (5758 bytes) | ant-launcher.jar (9180 bytes) | catalina5.5-ant.jar (26712 bytes) | ant-apache-resolver.jar (4064 bytes) | ant-javamail.jar (6811 bytes) | ant-trax.jar (68529 bytes) | catalina5.5-ant-jmx.jar (23778 bytes) | ant-apache-bsf.jar (12574 bytes) | ant-apache-regexp.jar (3748 bytes) | ant-jsch.jar (22991 bytes) | ant-apache-oro.jar (48180 bytes) | ant-jdepend.jar (8172 bytes) | ant-commons-logging.jar (3990 bytes) | ant.jar (1060964 bytes) | ant-jmf.jar (6520 bytes) | ant-apache-log4j.jar (3012 bytes) | | --- | Tasks availability | --- | image : Not Available | sshexec : Missing dependency com.jcraft.jsch.UserInfo | wlrun : Not Available | icontract : Not Available | scp : Missing dependency com.jcraft.jsch.UserInfo | vajload : Not Available | stlist : Not Available | netrexxc : Not Available | starteam : Not Available | stylebook : Not Available | stlabel : Not Available | jdepend : Missing dependency jdepend.xmlui.JDepend | stcheckin : Not Available | vajexport : Not Available | stcheckout : Not Available | ejbc : Not Available | vajimport : Not Available | wlstop : Not Available | ddcreator : Not Available | | --- | org.apache.env.Which diagnostics | --- | Not available. | Download it at http://xml.apache.org/commons/ | | --- | XML Parser information | --- | XML Parser : org.apache.xerces.jaxp.SAXParserImpl | XML Parser Location: /usr/share/java/xercesImpl.jar | | --- | System properties | --- | java.runtime.name : Java(TM) 2 Runtime Environment, Standard | Edition sun.boot.library.path : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386 | java.vm.version : 1.5.0_11-b03 | ant.library.dir : /usr/share/ant/lib | java.vm.vendor : Sun Microsystems Inc. | java.vendor.url : http://java.sun.com/ | path.separator : : | java.vm.name : Java HotSpot(TM) Server VM | file.encoding.pkg : sun.io | user.country : DE | sun.java.launcher : SUN_STANDARD | sun.os.patch.level : unknown | java.vm.specification.name : Java Virtual Machine | Specification user.dir : /opt/dspace-1.4.2-source | java.runtime.version : 1.5.0_11-b03 java.awt.graphicsenv : | sun.awt.X11GraphicsEnvironment java.endorsed.dirs : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/endorsed | os.arch : i386 | java.io.tmpdir : /tmp | line.separator : | | java.vm.specification.vendor : Sun Microsystems Inc. | os.name : Linux | ant.home : /usr/share/ant | sun.jnu.encoding : UTF-8 | java.library.path : | /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/server:/usr/ | lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386:/usr/lib/jvm/java | -1.5.0-sun-1.5.0.11/jre/../lib/i386 | java.specification.name : Java Platform API Specification | java.class.version : 49.0 sun.management.compiler : HotSpot | Server Compiler os.version : 2.6.20-16-generic user.home : | /home/dspace user.timezone : java.awt.printerjob : | sun.print.PSPrinterJob file.encoding : UTF-8 | java.specification.version : 1.5 user.name : dspace java.class.path : | /usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserA | PIs.jar:/usr/share/java/xercesImpl.jar:/opt/apache-tomcat-5.5. | 25/common/lib/jsp-api.jar:/opt/apache-tomcat-5.5.25/common/lib | /servlet-api.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ | ant/lib/ant-apache-bcel.jar:/usr
Re: [Dspace-tech] DSpace Installation: Java-Problem
roopal oswal schrieb: HI Robert, Is your Rdbm server running??? if u have installed postgresql ...then open pgadmin... connect the database..and then do install ant... I Would never thought that this error could have any connection to the PostgreSQL server. But in fact I could not get access to the server using pgadmin. I think that Ubuntu created the user 'postgres' with the permission to never login. I will look up this issue and report the result. but anyway looking in the process table it semms to me the server is running: postgres 6377 1 0 12:13 ?00:00:00 /usr/lib/postgresql/8.2/bin/postgres -D /var/lib/postgresql/8.2/main -c config_file=/etc/postgresql/8.2/main/postgresql.conf postgres 6383 6377 0 12:13 ?00:00:00 postgres: writer process postgres 6384 6377 0 12:13 ?00:00:00 postgres: stats collector process Best regrds Robert - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] DSpace Installation: Java-Problem
Hello, Am 25.10.2007 um 12:51 schrieb Robert Roggenbuck: I'd like to install DSpace to check whether we can use it for our planned OA-Repository. But reaching the point to say 'ant fresh_install' I get the following error message where I can not figure out the reason: Buildfile: build.xml compile: install_code: build_wars: init_configs: setup_database: [java] 2007-10-25 12:36:16,477 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2007-10-25 12:36:16,536 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.properties [java] Exception in thread main java.lang.UnsupportedClassVersionError: Bad version number in .class file My very first guess was wrong JDBC connector version but I wonder why nobody mentioned it so far as this absolutely standard error source. It is discussed in the docs and it was discussed on this list several times. This guess is not contradictory to Claudias assumption: fresh_install can be run only once against a virgin database. It will always fail with a second try. So you have to remove the database with every try if you succeeded partially as in your example. For the proper jdbc driver go to this page and study the matrix: http://jdbc.postgresql.org/download.html http://jdbc.postgresql.org/download/postgresql-8.2-506.jdbc3.jar I guess, this is your driver and it should be the version that you get if you install through aptitude or whatever you use. If aptitude installs another version, then try this one and check if it works. If this is fine, file a bug to debian. Also, search your Java path for duplicate jdbc drivers of different versions. Maybe, you installed the right version but it does not get used. If you cant connect to postgres through psql then forget about the jdbc driver and fix this first. The pg_hba.conf file is the place to go and learn about. Bye, Christian (If german is more convenient, you may try by private mail, but I am online in the evening hours only and the list incorporates much more knowledge and experience.) - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech