This and also the gmap3 problem both look like classpath issues. With the gmap3 one at least it seemed (from the stacktrace) to not be finding a class.
What I've noticed with IntelliJ is that any misconfiguration or error in a pom.xml can cause this issue. Not just the pom.xml of the webapp project, but in any of the dependent modules loaded into the project, too. The errors that seem to matter the most are those that cause a red error line around the opening <project.. > tag. If you see any of these then you need to fix them because they cause the classpath of any depending modules to break. My first suggestion for debugging these sorts of issues is to use the maven-helper plugin to view your webapp pom.xml's dependencies as a tree view. You can use the search bar on the dependencies tab to check that everything you exoect to see is there. If something is missing, and is a transitive dependency, then look at the chain of modules that you expected to bring in the dependency and check if these have errors. You can also see errors in pom.xml files showing up as red markers in the project explorer view. Other things to do: enable automatic import for maven modules so that any fixes you make are automatically synchronised ; use F4 to view the module's dependencies in the "native" IntelliJ settings dialog; use the debug console view to inspect the actual java command that intellij runs and figure out what's missing. Hope that helps a little... Dan. On 28 Oct 2015 16:38, "Cesar Lugo" <[email protected]> wrote: > Hello Jeroen, > I am using IntelliJ IDEA version 14, I am not running from the IDE buy > from the command line via mvn -P self-host antrun:run command. > Yes I am using release 1.9.0 everywhere, isis core, isis add ons. > > I will take a look at the typo, I also reported an issue when using > location lookup service, so it might be related to that (I hope). > > I hope you manage working out the IntelliJ issue, have fun! > > Thank you. > > > -----Original Message----- > From: Jeroen van der Wal [mailto:[email protected]] > Sent: Wednesday, October 28, 2015 10:23 AM > To: users > Subject: Re: Security add on > > Hi Cesar, > > Could you share more info regarding your setup? Are you running from the > IDE? What IDE are you using? Are you using released versions (1.9.0) > everywhere? Does this also appear when running from the command line [1]? I > you might guess from my reply I don't have an instant answer. This morning > I spent a good deal of time deleting my IntelliJ projects and recreating > them again using a different approach because my classpath was messed up. > > Cheers, > > Jeroen > > PS There's a typo in your isis.properties: org.isisaddons.wicket.gmap3.cp > should be org.isisaddons.wicket.gmap3.cpt but that should not matter I > guess. > > [1] mvn -P self-host antrun:run > > On 28 October 2015 at 15:48, Cesar Lugo <[email protected]> wrote: > > > Hello, > > > > > > > > I used to have the security add on module running just fine. Now I am > > having this error in the console when the Apache Isis server tries to > > start. > > > > > > > > 08:45:58,987 [Schema Thread-4 DEBUG] CREATE INDEX > > "ApplicationUserRoles_N49" ON "isissecurity"."ApplicationUserRoles" > > ("roleId") > > > > 08:45:58,988 [Schema Thread-4 DEBUG] Execution Time = 1 > > ms > > > > 08:45:58,988 [Schema Thread-4 DEBUG] Schema Transaction > > committing with connection > > > > "org.datanucleus.store.rdbms.datasource.dbcp.PoolingDataSource$PoolGua > > rdConn > > ectionWrapper@4bb35619" > > > > 08:45:58,988 [Schema Thread-4 DEBUG] Schema Transaction > > closing with connection > > > > "org.datanucleus.store.rdbms.datasource.dbcp.PoolingDataSource$PoolGua > > rdConn > > ectionWrapper@4bb35619" > > > > seed-users-and-roles-fixture-script : EXEC > > org.isisaddons.module.security.seed.SeedUsersAndRolesFixtureScript > > > > seed-users-and-roles-fixture-script/global-tenancy : EXEC > > org.isisaddons.module.security.seed.scripts.GlobalTenancy > > > > 08:45:59,489 [IsisTransaction Thread-4 INFO ] abort transaction > > IsisTransaction@af921b[state=MUST_ABORT,commands=0] > > > > 08:45:59,495 [IsisWicketApplication Thread-4 ERROR] Failed to > > initialize > > > > com.google.inject.ProvisionException: Guice provision errors: > > > > > > > > 1) Error in custom provider, > > > > org.apache.isis.core.runtime.system.transaction.IsisTransactionManager > > Except > > ion: java.lang.NullPointerException > > > > at > > > > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem > > (IsisI > > njectModule.java:139) > > > > at > > > > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem > > (IsisI > > njectModule.java:139) > > > > while locating org.apache.isis.core.runtime.system.IsisSystem > > > > for field at > > > > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(Isis > > Wicket > > Application.java:151) > > > > while locating domainapp.webapp.DomainApplication > > > > > > > > I have checked the project's dom POM file, > > > > > > > > <dependency> > > <groupId>org.isisaddons.module.security</groupId> > > <artifactId>isis-module-security-dom</artifactId> > > <version>1.9.0</version> > > </dependency> > > <dependency> > > <groupId>org.mindrot</groupId> > > <artifactId>jbcrypt</artifactId> > > <version>0.3m</version> > > </dependency> > > > > > > > > > > > > An also checked the shiro.ini add on configuration > > > > > > > > ldapRealm = org.apache.isis.security.shiro.IsisLdapRealm > > ldapRealm.contextFactory = $contextFactory > > > > # Section to enable Security Add-on > > > > isisModuleSecurityRealm=org.isisaddons.module.security.shiro.IsisModul > > eSecur > > ityRealm > > > > authenticationStrategy=org.isisaddons.module.security.shiro.Authentica > > tionSt > > rategyForIsisModuleSecurityRealm > > securityManager.authenticator.authenticationStrategy = > > $authenticationStrategy securityManager.realms = > > $isisModuleSecurityRealm > > > > > > > > and isis.properties configuration for the security add on > > > > > > > > isis.services-installer=configuration-and-annotation > > isis.services.ServicesInstallerFromAnnotation.packagePrefix= \ > > domainapp, \ > > org.apache.isis, \ > > org.isisaddons, \ > > org.isisaddons.module.security,\ > > org.isisaddons.wicket.gmap3.cp > > > > #Configuration for Isis add on security module # Section to enable > > Security add-on module isis.services = \ > > > > > > org.isisaddons.module.security.dom.password.PasswordEncryptionServiceU > > singJB > > crypt,\ > > > > > > org.isisaddons.module.security.dom.permission.PermissionsEvaluationSer > > viceAl > > lowBeatsVeto > > # Enable tenancy checking > > > > isis.reflector.facets.include=org.isisaddons.module.security.facets.Te > > nanted > > AuthorizationFacetFactory > > > > > > > > Any suggestion where should I be looking into? > > > > > > > > Cesar. > > > > > > > > --- > > This email has been checked for viruses by Avast antivirus software. > > https://www.avast.com/antivirus > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > >
