From users-return-6049-archive-asf-public=cust-asf.ponee.io@isis.apache.org Sun Jul 15 16:00:18 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 969E7180621 for ; Sun, 15 Jul 2018 16:00:17 +0200 (CEST) Received: (qmail 39849 invoked by uid 500); 15 Jul 2018 14:00:16 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 39830 invoked by uid 99); 15 Jul 2018 14:00:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2018 14:00:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 887A61A3D85 for ; Sun, 15 Jul 2018 14:00:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.819 X-Spam-Level: ** X-Spam-Status: No, score=2.819 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_COUK=0.85, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=haywood-associates-co-uk.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sW2SoIebUSMT for ; Sun, 15 Jul 2018 14:00:13 +0000 (UTC) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DF2C25F39F for ; Sun, 15 Jul 2018 14:00:12 +0000 (UTC) Received: by mail-it0-f45.google.com with SMTP id 198-v6so9295504ite.4 for ; Sun, 15 Jul 2018 07:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haywood-associates-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=amkEzsYiVG2QOA8fcrt+jE6gL4vYwJlY6c3flcgYBng=; b=rF+9E02BVvsM1Mj3AVaVIRsT3PyLCuNvbzAYPUMf0MxceNlD8aDKjEIuKkiJHFFUMj 1tNyXpll+BKjqXII+rHzzKoVrbWQnmd4qBShacQT712+Sd0QI+mehkhHTNIh4OXIq3Nv QgDxO21JVe2vmGZt6Ox4v2ljZsdc7aOHKmk+jhJ2UdF9wL3BSU7oQsYdeCu4GJNZpcV/ Fq2QCf/Ky5SenrlGCBajwnZO2r7n2FjHSmmBAk0jQ7YrRQTSO6tloK9CT8Hv0nnk3y+3 JvsAEo8y0JihL3yH2uQE3gTB9lGrdUDxyqXypN/x4wdF7WGmvl5PUapIHLq5mYSDeU+Q TtjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=amkEzsYiVG2QOA8fcrt+jE6gL4vYwJlY6c3flcgYBng=; b=RQFBSQuHGfENvPLKUbydEalfakXC6pTUWuflHpGgJI4IS7Yn16qtG/ycqCRW3zu0sT 6xuXgIKqpn2w5fmx94U+jJupnB4t7E0mTftWW7dQvFoy7RoIzm5S7o1dj3PueoMsffoA OkHfTokyW7ZV/gfb6tqq0d0dSH9rG1XT/YGlDlpAyhA0RIQUhfnhdlUks0rou+0BKFIS CPzLkWzBVKDgx4w6SxnlvAatOEop14SKKqC60j5VSaryTsGcMxSD+m5OJq6xdB13IR94 Tf9lzu+af/J8MEmngBBwPN6fZWlPHEECnjK/uA9T8ORdXd4P2lG5r6d115IUmWS/EIZu 8zvw== X-Gm-Message-State: AOUpUlFhJr08iHNQOSqrhDzqzPpk+WCE4tbsGz/Ms0QEOvH/HbPVdQCw U1AWlYEB+flhjPA0kdOsH+vm4GaASnlLvTFSxp11Yu1u X-Google-Smtp-Source: AAOMgpedS3jtsirdd0v3QTNecJjwioTqDQf/s5yu92+DoaElmKQZ8/kttycW9Unqhd2pcKExheYpwwOdskr517yetJ0= X-Received: by 2002:a02:1506:: with SMTP id j6-v6mr11414249jad.30.1531663211163; Sun, 15 Jul 2018 07:00:11 -0700 (PDT) MIME-Version: 1.0 References: <560826768.6703299.1531639831679.ref@mail.yahoo.com> <560826768.6703299.1531639831679@mail.yahoo.com> In-Reply-To: <560826768.6703299.1531639831679@mail.yahoo.com> From: Dan Haywood Date: Sun, 15 Jul 2018 14:59:58 +0100 Message-ID: Subject: Re: dependent class not found. To: users@isis.apache.org Content-Type: multipart/alternative; boundary="0000000000009e08b105710a2105" --0000000000009e08b105710a2105 Content-Type: text/plain; charset="UTF-8" Hi Gerrie, The application is bootstrapped using an AppManifest - DomainAppAppManifest in this case [1]. This references DomainAppApplicationModule which in turn [2] references SimpleModule. The set of modules that are loaded is transitive, similar to Maven. Each module is used to locate domain services and entities from which the Isis metamodel is built. When you say "deploy to tomcat", are you doing this through the IDE, or are you doing a build using mvn and then taking the resultant .war file and deploying that? If it works in the latter then we know that the code isn't wrong, just a stale computed classpath with the IDE. If even mvn fails, then there's a problem in the code itself. If you wish, create an example on github to demonstrate the problem, and describe how to reproduce in the README Thx Dan https://github.com/apache/isis/blob/master/example/application/simpleapp/application/src/main/java/domainapp/application/manifest/DomainAppAppManifest.java#L31 https://github.com/apache/isis/blob/master/example/application/simpleapp/application/src/main/java/domainapp/application/DomainAppApplicationModule.java#L37 On Sun, 15 Jul 2018 at 08:30 Gerrie Myburgh wrote: > Hi, > I took simple app, removed simple module and added another module. When I > run the app in the IDE it run's fine but the moment I deploy to tomcat I > get a : > java.lang.ClassNotFoundException: domainapp.modules.simple.SimpleModule > > What is frustrating is that I cannot find any reference to SimpleModule > anywhere in my code. > Here is the error message in the catalina log: > 1) Error in custom provider, > org.apache.isis.core.commons.factory.InstanceCreationClassException: Class > 'class domainapp.application.manifest.DomainAppAppManifest'found , but is > missing a dependent class: domainapp/modules/simple/SimpleModule 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 > And first exception stackstace > Caused by: java.lang.ClassNotFoundException: > domainapp.modules.simple.SimpleModule at > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308) > at > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136) > ... 81 more > Has anyone had a similar problem and how did they find the reference to > SimpleModule in order to remove it. > Thanks > Gerrie > > -- DISCLAIMER: This e-mail is from Haywood Associates Ltd (Registered Number 3525455) and it and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any unauthorised use or dissemination of this communication is strictly prohibited. Any information provided to Haywood Associates Ltd shall be retained and used in accordance with our Privacy Statement at http://www.haywood-associates.co.uk/privacy. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. --0000000000009e08b105710a2105--