isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerrie Myburgh <gerrie.mybu...@yahoo.co.uk.INVALID>
Subject deploying apache isis war file to tomcat 8.5.31 problem
Date Sun, 27 May 2018 04:48:49 GMT
Hi,
I have changed simple app to incude another module and tried to deploy it to tomcat. But when
the application starts up in tomcat I get the following error.
Caused by: java.lang.NoSuchMethodError: org.apache.isis.applib.AppManifestAbstract$Builder.withConfigurationPropertiesFile(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/String;)Lorg/apache/isis/applib/AppManifestAbstract$Builder;
at domainapp.application.manifest.DomainAppAppManifest.<clinit>(DomainAppAppManifest.java:38)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at java.base/java.lang.Class.newInstance(Class.java:560)
at org.apache.isis.core.commons.factory.InstanceUtil.createInstance(InstanceUtil.java:125)
at org.apache.isis.core.commons.factory.InstanceUtil.createInstance(InstanceUtil.java:103)
at org.apache.isis.core.commons.factory.InstanceUtil.createInstance(InstanceUtil.java:42)
at org.apache.isis.core.runtime.systemusinginstallers.IsisComponentProviderUsingInstallers.appManifestFrom(IsisComponentProviderUsingInstallers.java:92)
at org.apache.isis.core.runtime.systemusinginstallers.IsisComponentProviderUsingInstallers.<init>(IsisComponentProviderUsingInstallers.java:54)
at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:111)
at org.apache.isis.core.runtime.runner.IsisInjectModule$$FastClassByGuice$$a813f90e.invoke(<generated>)
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264) 
    
As far as I can see I am loading the correct version of the library (isis-core-applib-1.16.2.jar
file) in tomcat as included in the war file. When the program runs in IDEA IDE with jetty
it runs with no problems. The code where the problem originates from is :
package domainapp.application.manifest;

import domainapp.application.fixture.DomainAppApplicationModuleFixtureSubmodule;
import domainapp.application.services.DomainAppApplicationModuleServicesSubmodule;
import domainapp.modules.simple.dom.SimpleModuleDomSubmodule;
import domainapp.modules.system.dom.SystemModuleDomSubmodule;
import org.apache.isis.applib.AppManifestAbstract;

/**
 * Bootstrap the application.
 */
public class DomainAppAppManifest extends AppManifestAbstract {

    public static final Builder APPBUILDER = Builder.forModules(
                    SystemModuleDomSubmodule.class,
                    SimpleModuleDomSubmodule.class,
                    DomainAppApplicationModuleFixtureSubmodule.class,
                    DomainAppApplicationModuleServicesSubmodule.class,
                    org.isisaddons.module.security.SecurityModule.class
            )
            .withConfigurationPropertiesFile(DomainAppAppManifest.class,
                    "isis.properties",
                    "authentication_shiro.properties",
                    "persistor_datanucleus.properties",
                    "viewer_restfulobjects.properties",
                    "viewer_wicket.properties"
            )
            .withAdditionalServices(
                    org.isisaddons.module.security.dom.password.PasswordEncryptionServiceUsingJBcrypt.class,
                    org.isisaddons.module.security.dom.permission.PermissionsEvaluationServiceAllowBeatsVeto.class
            )
            .withAuthMechanism("shiro");

    public DomainAppAppManifest() {
        super(APPBUILDER);
    }

}Has problem cropped up before, if so how can it be resolved?
ThanksGerrie
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message