Hi Jose, The error described here http://dspace.2283337.n4.nabble.com/Rest-API-not-working-in-DSpace-6-2-td4687599.html occurs because you are running a version of PostgreSQL that *requires* Java 8.
So, if you want/need to run DSpace using Java 7, you'd have to find an old version of PostgreSQL that also works for Java 7. However, that may be difficult to do, as Java 7 has been end of life since 2015. It may be much much easier to just upgrade to Java 8, since whatever version of PostgreSQL you are running seems to require it. Tim ________________________________ From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on behalf of Jose Blanco <blan...@umich.edu> Sent: Wednesday, April 8, 2020 9:20 PM To: DSpace Technical Support <dspace-tech@googlegroups.com> Subject: [dspace-tech] Re: deploying the rest api In looking at the catalina log files, it seems like I'm having the issue mentioned here: http://dspace.2283337.n4.nabble.com/Rest-API-not-working-in-DSpace-6-2-td4687599.html I have java version "1.7.0_251" I'm trying to get RESTapi to run on 63. According to the installation instructions, I should be able to use version 7 of java, but it seems like maybe not. Before I upgrade to Java 8, I want to verify this. Thank you! -Jose On Wed, Apr 8, 2020 at 2:35 PM Jose Blanco <blan...@umich.edu<mailto:blan...@umich.edu>> wrote: I'm able to deploy oai, solr, "/" , but the rest gives me this error: 2020-04-08 13:43:50,682 ERROR org.dspace.storage.rdbms.DatabaseUtils @ The service manager could not find the DataSource. 2020-04-08 13:43:50,682 FATAL org.dspace.core.Context @ Cannot initialize database via Flyway! java.sql.SQLException: The DataSource is a null reference -- cannot continue. at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:546) at org.dspace.core.Context.<clinit>(Context.java:106) 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:5197) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1016) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:992) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:587) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1814) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:607) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:303) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1521) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:916) at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:337) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:200) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:141) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:604) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:165) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1195) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2020-04-08 13:43:50,699 INFO org.dspace.event.EventServiceImpl @ EventService dispatcher pool initialized 2020-04-08 13:43:50,714 FATAL org.dspace.core.Context @ Cannot obtain the bean which provides a database connection. Check previous entries in the dspace.log to find why the db failed to initialize. The schema validator returned: Error creating bean with name 'dataSource' defined in file [/l1/dspace/repository/dev63/config/spring/api/core-hibernate.xml]: Cannot resolve reference to bean 'dspaceDataSource' while setting bean property 'defaultObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dspaceDataSource' defined in file [/l1/dspace/repository/dev63/config/spring/api/core-hibernate.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.dbcp2.BasicDataSource 2020-04-08 13:43:50,889 FATAL org.dspace.core.Context @ Cannot obtain the bean which provides a database connection. Check previous entries in the dspace.log to find why the db failed to initialize. The schema validator returned: Error creating bean with name 'dataSource' defined in file [/l1/dspace/repository/dev63/config/spring/api/core-hibernate.xml]: Cannot resolve reference to bean 'dspaceDataSource' while setting bean property 'defaultObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dspaceDataSource' defined in file [/l1/dspace/repository/dev63/config/spring/api/core-hibernate.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.dbcp2.BasicDataSource -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- 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 dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-sjVMW8Ba9KURXdbgoy%3D%2BcfkgSuF7LnE59dH0O9DJrWOw%40mail.gmail.com<https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-sjVMW8Ba9KURXdbgoy%3D%2BcfkgSuF7LnE59dH0O9DJrWOw%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- 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 dspace-tech+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/DM5PR2201MB1148AAE51AE444D197A3CDC2EDC10%40DM5PR2201MB1148.namprd22.prod.outlook.com.