Thank you for the reply.

I don't think something is correct in my setup.  It doesn't seem like the 
org.apache.isis.runtimes.dflt.objectstores.sql.SqlPersistorInstaller is being 
found.


13:29:37,160  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.security.ldap.authorization.LdapAuthorizationManagerInstaller
13:29:37,160  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.security.ldap.authentication.LdapAuthenticationManagerInstaller
13:29:37,160  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.viewer.dnd.DndViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.viewer.html.HtmlViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.viewer.xhtml.viewer.embedded.XhtmlViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.viewer.json.viewer.embedded.JsonViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.objectstores.sql.SqlPersistorInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.objectstores.nosql.mongo.MongoPersistorMechanismInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.objectstores.nosql.file.FileServerPersistorMechanismInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.sockets.client.EncodingOverSocketsProxyInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.sockets.server.EncodingOverSocketsViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.sockets.client.SerializingOverSocketsProxyInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.sockets.server.SerializingOverSocketsViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.http.client.EncodingOverHttpProxyInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.transport.http.server.EncodingOverHttpRemotingViewerInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.marshalling.xstream.client.XStreamOverSocketsProxyDecoratorInstaller
13:29:37,175  [InstallerLookupDefault main       INFO ]  component installer 
not found; it will not be available: 
org.apache.isis.runtimes.dflt.remoting.marshalling.xstream.server.XStreamOverSocketsViewerInstaller


And I get this exception

13:29:37,566  [IsisWebAppBootstrapper main       ERROR]  startup failed
com.google.inject.ProvisionException: Guice provision errors:

1) Error in custom provider, java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
  at 
org.apache.isis.runtimes.dflt.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:49)
  while locating org.apache.isis.runtimes.dflt.runtime.system.IsisSystem

1 error
        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
        at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
        at 
org.apache.isis.runtimes.dflt.webapp.IsisWebAppBootstrapper.contextInitialized(IsisWebAppBootstrapper.java:99)
        at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:74)
        at 
org.apache.isis.runtimes.dflt.runtime.runner.IsisRunner.bootstrap(IsisRunner.java:207)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServer.run(WebServer.java:47)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServer.main(WebServer.java:32)
        at org.apache.isis.WebServer.main(WebServer.java:25)
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
        at 
com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:106)
        at 
com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
        at 
com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
        at 
com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
        at com.google.inject.Scopes$1$1.get(Scopes.java:54)
        at 
com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
        at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
        ... 16 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:101)
        ... 25 more
Caused by: org.apache.isis.core.commons.factory.InstanceCreationException: 
Failed to load installer; named/class:'sql' (of type 
org.apache.isis.runtimes.dflt.runtime.installerregistry.installerapi.PersistenceMechanismInstaller)
        at 
org.apache.isis.runtimes.dflt.runtime.installers.InstallerLookupDefault.getInstaller(InstallerLookupDefault.java:365)
        at 
org.apache.isis.runtimes.dflt.runtime.installers.InstallerLookupDefault.persistenceMechanismInstaller(InstallerLookupDefault.java:217)
        at 
org.apache.isis.runtimes.dflt.runtime.systemusinginstallers.IsisSystemUsingInstallers.obtainPersistenceSessionFactory(IsisSystemUsingInstallers.java:368)
        at 
org.apache.isis.runtimes.dflt.runtime.systemusinginstallers.IsisSystemUsingInstallers.doCreateSessionFactory(IsisSystemUsingInstallers.java:101)
        at 
org.apache.isis.runtimes.dflt.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:115)
        at 
org.apache.isis.runtimes.dflt.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:159)
        ... 30 more
2011-12-15 13:29:37.597:WARN::Failed startup of context 
org.mortbay.jetty.webapp.WebAppContext@16c9867{,src/main/webapp}
com.google.inject.ProvisionException: Guice provision errors:<|<|1) Error in 
custom provider, java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException<|  at 
org.apache.isis.runtimes.dflt.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:49)<|
  while locating org.apache.isis.runtimes.dflt.runtime.system.IsisSystem<|<|1 
error
        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
        at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
        at 
org.apache.isis.runtimes.dflt.webapp.IsisWebAppBootstrapper.contextInitialized(IsisWebAppBootstrapper.java:99)
        at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:74)
        at 
org.apache.isis.runtimes.dflt.runtime.runner.IsisRunner.bootstrap(IsisRunner.java:207)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServer.run(WebServer.java:47)
        at 
org.apache.isis.runtimes.dflt.webserver.WebServer.main(WebServer.java:32)
        at org.apache.isis.WebServer.main(WebServer.java:25)
2011-12-15 13:29:37.613:INFO::Started [email protected]:8080



Jason Richardson
National Payments Service (NPS) Technical Lead
USDA/FSA/AFAO/SCADG
(Administrative and Financial Applications Office)
(Service Center Accounting & Debt Group)
Office Ph: (816) 823-5296
Cubicle:  3NW024
NPS Notification Blog
NPS Email Groups Listing



-----Original Message-----
From: Kevin Meyer - KMZ [mailto:[email protected]] 
Sent: Thursday, December 15, 2011 10:24 AM
To: [email protected]
Subject: Re: Questions regarding the quickstart app and creating a Proof of 
Concept

Hi Jason,

Quick answers below:


On 15 Dec 2011 at 15:57, Richardson, Jason - FSA, Kansas City, MO 
wrote:

> *********************************************************
> ******  However I have a few questions regarding how to start adding my own 
> functionality into the quickstart app.
> *********************************************************
> 
> Here is a list of the projects that were created.
> 
> isispoc-objstore-dflt
> 
> 
> 1.  I want to implement a MS SQL Server and Mainframe DB2 Object store.
> ---  From a framework convention point of view how should I go about doing 
> this?
> --- Should I create a new maven module for the Object Stores?

No.

> --- Should I just reuse the already created "isispoc-objstore-dflt"?

Yes.

> --- Should I create two different Object stores?  1 for each
> database piece.  (the proof of concept I'm using will utilize both
> databases, as the project as the system I'm modeling utilizes both.) 

Not yet - only 1 DB is explicitly coupled to the object store.

We need to discuss this.

> --- Should the dependencies maven entry for the database drivers go into the 
> objectstore(s) pom or another pom?

Preferably the objectstore pom.

> 
> 2.  If I read the isis site correctly this is the basis for what I
> need to put into the isis.properties for SQL Server 2008.  Is there
> anything else I need? 

isis.persistor=sql

> 
> isis.persistor.sql.jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
> 
> isis.persistor.sql.jdbc.connection=jdbc:sqlserver://<serverIP>:<port>;databaseName=<dbname>;selectMethod=cursor;sendStringParametersAsUnicode=false
> 
> isis.persistor.sql.jdbc.user=<dbloginId>
> 
> isis.persistor.sql.jdbc.password=<dbloginpw>

Could be!

I don't have my MS SQL Server details with me yet. But I can check 
later.



For your custom reports, you'll have to get into the back end to write 
your own custom queries.

Details will follow.

Regards,
Kevin



Reply via email to