Subject: Integration of Apache Isis and postgresql


Can you create an JDBC connection independantly of Apache Isis? It does
seem like the basic connection is the problem?

On Fri, Nov 10, 2017 at 2:21 AM, Paul Benedict Jabines <[EMAIL PROTECTED]
> wrote:

> Hi,
>
> This is in connection to my previous message about ResultSet is closed.
> This time I already created a repo in github.com[1]. I am just wondering
> why there is a problem when the only thing I have done is
>
> (1) adding a dependency in my pom.xml:
>
> <dependency>
>     <groupId>postgresql</groupId>
>     <artifactId>postgresql</artifactId>
>     <version>9.1-901.jdbc4</version>
> </dependency>
>
> (2) and uncomment this part in isis.properties:
>
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionDriverName=org.
> postgresql.Driver
> isis.persistor.datanucleus.impl.javax.jdo.option.
> ConnectionURL=jdbc:postgresql://192.168.99.100:5432/mubuss
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionUserName=root
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionPassword=root
>
> The full stacktrace of the error is this:
>
> 21:58:57,818  [IsisWicketApplication main       ERROR]  Failed to
> initialize
> com.google.inject.ProvisionException: Unable to provision, see the
> following errors:
>
> 1) Error in custom provider,
> org.datanucleus.exceptions.NucleusDataStoreException: This ResultSet
> is closed.
>   at org.apache.isis.core.runtime.runner.IsisInjectModule.
> provideIsisSessionFactory(IsisInjectModule.java:109)
>   at org.apache.isis.core.runtime.runner.IsisInjectModule.
> provideIsisSessionFactory(IsisInjectModule.java:109)
>   while locating org.apache.isis.core.runtime.system.session.
> IsisSessionFactory
>     for field at
> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.
> isisSessionFactory(IsisWicketApplication.java:155)
>   while locating domainapp.webapp.DomainApplication
>
> 1 error
>         at com.google.inject.internal.Errors.
> throwProvisionExceptionIfErrorsExist(Errors.java:486)
>         at com.google.inject.internal.MembersInjectorImpl.injectMembers(
> MembersInjectorImpl.java:67)
>         at com.google.inject.internal.InjectorImpl.injectMembers(
> InjectorImpl.java:987)
>         at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.
> init(IsisWicketApplication.java:368)
>         at domainapp.webapp.DomainApplication.init(
> DomainApplication.java:59)
>         at org.apache.wicket.Application.initApplication(Application.
> java:953)
>         at org.apache.wicket.protocol.http.WicketFilter.init(
> WicketFilter.java:429)
>         at org.apache.wicket.protocol.http.WicketFilter.init(
> WicketFilter.java:353)
>         at org.eclipse.jetty.servlet.FilterHolder.initialize(
> FilterHolder.java:139)
>         at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:725)
>         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:348)
>         at org.eclipse.jetty.webapp.WebAppContext.startWebapp(
> WebAppContext.java:1480)
>         at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1442)
>         at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:799)
>         at org.eclipse.jetty.servlet.ServletContextHandler.doStart(
> ServletContextHandler.java:261)
>         at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:540)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.
> start(ContainerLifeCycle.java:131)
>         at org.eclipse.jetty.server.Server.start(Server.java:452)
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.
> doStart(ContainerLifeCycle.java:105)
>         at org.eclipse.jetty.server.handler.AbstractHandler.
> doStart(AbstractHandler.java:113)
>         at org.eclipse.jetty.server.Server.doStart(Server.java:419)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.