Hi Terry,

postgresql-9.4.1211.jar is the JDBC 4.2 
https://jdbc.postgresql.org/download.html so it requires JAVA 8 (what the log 
complain -> Unsupported major.minor version 52.0).

You are probably running tomcat with Java 7.

Andrea

Il 02/06/2017 23:56, Terry Brady ha scritto:
I recently re-build DSpace 6x from an empty directory, and several tomcat 
webapps are not starting.  The tomcat logs show "one or more listeners failed 
to start".

If I add additional logging to the application, I see the following error.  
Would you have any advice to offer?

Jun 02, 2017 5:20:41 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.dspace.app.util.DSpaceWebappListener
java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported 
major.minor version 52.0 (unable to load class org.postgresql.Driver)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3129)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1341)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:195)
        at 
org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2124)
        at 
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
        at 
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
        at 
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:547)
        at org.dspace.core.Context.<clinit>(Context.java:102)
        at 
org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:74)
        at 
org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
        at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

When I look at my webapps dir, I see the following:
 webapps]$ find . -name *postgres* -print
./xmlui/WEB-INF/lib/postgresql-9.4.1211.jar
./jspui/WEB-INF/lib/postgresql-9.4.1211.jar
./sword/WEB-INF/lib/postgresql-9.4.1211.jar
./rdf/WEB-INF/lib/postgresql-9.4.1211.jar
./swordv2/WEB-INF/lib/postgresql-9.4.1211.jar
./rest/WEB-INF/lib/postgresql-9.4.1211.jar
./oai/WEB-INF/lib/postgresql-9.4.1211.jar


--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/<https://urlsand.esvalabs.com/?u=http%3A%2F%2Fgeorgetown-university-libraries.github.io%2F&e=8ef37f15&h=e7226c71&f=n>
425-298-5498<tel:%28425%29%20298-5498> (Seattle, WA)
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at 
https://groups.google.com/group/dspace-tech<https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fdspace-tech&e=8ef37f15&h=a88b793e&f=n>.
For more options, visit 
https://groups.google.com/d/optout<https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&e=8ef37f15&h=4ae73911&f=n>.

--
Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto.
Clicca qui per segnalarlo come 
spam.<http://esva1.business-e.it/cgi-bin/learn-msg.cgi?id=ED6E3400E5.A0BFD>


--
Andrea Bollini
Chief Technology and Innovation Officer

4Science,  www.4science.it<http://www.4science.it>
office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
mobile: +39 333 934 1808
skype: a.bollini
linkedin: andreabollini
orcid: 0000-0002-9029-1854

an Itway Group Company
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates

--
Questo messaggio e' stato analizzato da Libra ESVA ed e' risultato non infetto.
This message was scanned by Libra ESVA and is believed to be clean.
Per informazioni: http://www.libraesva.com

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to