hi Dan,
@PS: what I meant with "project" was not the concrete one I would like
to be run. the question was meant as "how can I fix this for the whole
Isis project" - my project is running as I wrote. maybe while doing my
sample stuff and testing the bdd concordion implementation I can also
rebuild the archetype as describe in the wiki? do you prefer a special
class for the "single domain object" in the "/complete-app"/ archetype?
cheers,
sabine
Am 25.11.2010 16:34, schrieb Dan Haywood:
Hi Sabine,
You're way ahead of me on this... the application archetype is
officially "broken" and needs some care and attention. From what
you're saying, it doesn't sound like it is broken by much; but it is
broken nonetheless.
However, I'd like to redo the archetype to make it more comprehensive
for all the different viewers that we now have. In fact, my idea in
developing the support/prototype app was to reverse engineer it into
an archetype (ie, it's a prototype for the archetype). But haven't
got around to doing that yet.
There's also some stuff on the wiki [1] about my thoughts on this.
Cheers
Dan
[1] https://cwiki.apache.org/confluence/display/ISIS/MavenArchetypeDesign
PS: I didn't actually answer your question, which I think was: "how to
fix the missing dependency for the application archetype [as it is
now]?" The answer is to go into the
src/main/resources/archetype-resources/, which is where you'll find
the templated version of the project that gets generated. Feel free
to dabble if you like!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On 24/11/2010 20:46, Sabine Winkler wrote:
ok, there is a missing dependency in the pom.xml of the "example" and
also in the archetype project:
<dependency>
<groupId>org.apache.isis.defaults</groupId>
<artifactId>profilestore</artifactId>
</dependency>
the installer could not found the class InMemoryUserProfileStore.java
from the "installer-registry.properties". now the dnd viewer is
starting. how can i fix this for the project?
cheers,
sabine
Am 24.11.2010 21:20, schrieb Sabine Winkler:
hi dan,
hours later... re-installed the whole system from the scratch. at
the moment everything is working fine. i could build the whole
system and run the "quickrun" within eclipse.
so i started to create a new project using the eclipse wizard and
the maven archetype from isis.archetypes "application". i used the
advanced -> name template (not for special reason) and tried to run
the launch configuration from the "commandline" project. Of course,
it could not be executed because of the lauch configuration - i had
to change this (my "fault" after selecting the "advanced name template):
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="..."/>
after that i also changed this setting from
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.apache.isis*._runtime_.*Isis"/>
to
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.apache.isis.Isis"/>
but after all (i made a diff on the quickrun launch configuration) i
could not start the project - the console output is at the end. i
also attached the "isis.log".
i also tried to run the "claims" example. i first changed the the
attribtutes named above but the same error occured. within that
project the log file is still named as "nakedobjects.log" ;-) the
debugger showed that no installer can be found for the
"UserProfileStoreInstaller" in the class
InstallerLookupDefault.java. so the following method is called with
the value "in-memory" which might not be a classname.
@SuppressWarnings("unchecked")
public Installer getInstaller(final String implClassName) {
try {
Installer installer =
CastUtils.cast(InstanceFactory.createInstance(implClassName));
if (installer != null) {
mergeConfigurationFor(installer);
injectDependenciesInto(installer);
}
return installer;
} catch (final InstanceCreationException e) {
throw new InstanceCreationException("Specification error
in " + INSTALLER_REGISTRY_FILE, e);
} catch (final UnavailableClassException e) {
return null;
}
}
well, this might be only a configuration problem - something really
simple i think. but at the moment i can't find a quick solution. a
more general question is what of this could be something to
document, to "report" and "fix" and so on - just asking because the
small things within the archetype i can change.
thanks in advance,
sabine
++++++++++++++++++++++++++++++
20:44:34,245 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.defaults.profilestore.InMemoryUserProfileStoreInstaller
20:44:34,248 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.security.file.authentication.FileAuthenticationManagerInstaller
20:44:34,249 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.security.file.authorization.FileAuthorizationManagerInstaller
20:44:34,251 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.security.ldap.authorization.LdapAuthorizationManagerInstaller
20:44:34,253 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.security.ldap.authentication.LdapAuthenticationManagerInstaller
20:44:34,255 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.sockets.client.EncodingOverSocketsProxyInstaller
20:44:34,256 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.sockets.server.EncodingOverSocketsViewerInstaller
20:44:34,258 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.sockets.client.SerializingOverSocketsProxyInstaller
20:44:34,260 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.sockets.server.SerializingOverSocketsViewerInstaller
20:44:34,261 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.marshalling.xstream.client.XStreamOverSocketsProxyDecoratorInstaller
20:44:34,263 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.marshalling.xstream.server.XStreamOverSocketsViewerInstaller
20:44:34,264 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.http.client.EncodingOverHttpProxyInstaller
20:44:34,266 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.remoting.transport.http.server.EncodingOverHttpRemotingViewerInstaller
20:44:34,273 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.objectstore.sql.SqlPersistorInstaller
20:44:34,274 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.objectstore.nosql.mongo.MongoPersistorMechanismInstaller
20:44:34,276 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.objectstore.nosql.file.FileServerPersistorMechanismInstaller
20:44:34,278 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.alternatives.profilestore.xml.XmlUserProfileStoreLoaderInstaller
20:44:34,285 [InstallerLookupDefault main INFO ] component
installer not found; it will not be available:
org.apache.isis.viewer.restful.viewer.embedded.RestfulViewerInstaller
20:44:34,695 [ConfigurationBuilderResourceStreams main INFO
] added isis.deploymentType=EXPLORATION
20:44:34,696 [ConfigurationBuilderResourceStreams main INFO
] added isis.viewer=dnd
20:44:34,715 [PropertiesConfiguration main INFO ] from
:[file system (directory 'config'), file system (directory
'src/main/webapp/WEB-INF'), context loader classpath]
20:44:34,717 [ConfigurationBuilderResourceStreams main INFO
] 'isis.properties' FOUND
20:44:34,718 [ConfigurationBuilderResourceStreams main INFO
] 'web.properties' not found, but not needed
20:44:34,720 [ConfigurationBuilderResourceStreams main INFO
] 'exploration.properties' not found, but not needed
20:44:34,721 [PropertiesConfiguration main INFO ] from
:[file system (directory 'config'), file system (directory
'src/main/webapp/WEB-INF'), context loader classpath]
20:44:34,721 [ConfigurationBuilderResourceStreams main INFO
] 'isis.properties' FOUND
20:44:34,722 [ConfigurationBuilderResourceStreams main INFO
] 'web.properties' not found, but not needed
20:44:34,723 [ConfigurationBuilderResourceStreams main INFO
] 'exploration.properties' not found, but not needed
20:44:34,725 [ConfigurationBuilderResourceStreams main INFO
] 'authentication.properties' not found, but not needed
20:44:34,726 [ConfigurationBuilderResourceStreams main INFO
] 'authentication_noop.properties' not found, but not needed
20:44:34,726 [PropertiesConfiguration main INFO ] from
:[file system (directory 'config'), file system (directory
'src/main/webapp/WEB-INF'), context loader classpath]
20:44:34,726 [ConfigurationBuilderResourceStreams main INFO
] 'isis.properties' FOUND
20:44:34,728 [ConfigurationBuilderResourceStreams main INFO
] 'web.properties' not found, but not needed
20:44:34,729 [ConfigurationBuilderResourceStreams main INFO
] 'exploration.properties' not found, but not needed
20:44:34,730 [ConfigurationBuilderResourceStreams main INFO
] 'authentication.properties' not found, but not needed
20:44:34,730 [ConfigurationBuilderResourceStreams main INFO
] 'authentication_noop.properties' not found, but not needed
20:44:34,746 [ConfigurationBuilderResourceStreams main INFO
] 'authorization.properties' not found, but not needed
20:44:34,748 [ConfigurationBuilderResourceStreams main INFO
] 'authorization_noop.properties' not found, but not needed
Exception in thread "main" com.google.inject.ProvisionException:
Guice provision errors:
1) Error in custom provider, java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.isis.core.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:50)
while locating org.apache.isis.core.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.core.runtime.RuntimeBootstrapper.bootstrapSystem(RuntimeBootstrapper.java:61)
at
org.apache.isis.core.runtime.RuntimeBootstrapper.bootstrap(RuntimeBootstrapper.java:52)
at
org.apache.isis.core.runtime.runner.IsisRunner.bootstrap(IsisRunner.java:226)
at org.apache.isis.core.runtime.Isis.run(Isis.java:47)
at org.apache.isis.core.runtime.Isis.main(Isis.java:37)
at org.apache.isis.Isis.main(Isis.java:26)
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)
... 7 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)
... 16 more
Caused by:
org.apache.isis.core.commons.factory.InstanceCreationException:
Failed to load installer class 'in-memory' (of type
org.apache.isis.core.runtime.userprofile.UserProfileStoreInstaller)
at
org.apache.isis.core.runtime.installers.InstallerLookupDefault.getInstaller(InstallerLookupDefault.java:338)
at
org.apache.isis.core.runtime.installers.InstallerLookupDefault.userProfilePersistenceMechanismInstaller(InstallerLookupDefault.java:212)
at
org.apache.isis.core.runtime.system.installers.IsisSystemUsingInstallers.lookupAndSetUserProfileFactoryInstaller(IsisSystemUsingInstallers.java:326)
at
org.apache.isis.core.runtime.system.IsiSsystemUsingInstallersFactory.createSystem(IsiSsystemUsingInstallersFactory.java:67)
at
org.apache.isis.core.runtime.runner.IsisModule.provideIsisSystem(IsisModule.java:164)
... 21 more