From users-return-6163-archive-asf-public=cust-asf.ponee.io@isis.apache.org Fri Nov 9 20:28:27 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 0DB42180627 for ; Fri, 9 Nov 2018 20:28:26 +0100 (CET) Received: (qmail 32125 invoked by uid 500); 9 Nov 2018 19:28:26 -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 32114 invoked by uid 99); 9 Nov 2018 19:28:26 -0000 Received: from ui-eu-01.ponee.io (HELO localhost) (176.9.59.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2018 19:28:26 +0000 To: References: X-Mailer: LuaSocket 3.0-rc1 Date: Fri, 09 Nov 2018 19:28:24 -0000 From: Andi Huber Message-ID: Subject: Re: Application fail to start when dependencies on PDFBox is added x-ponymail-agent: PonyMail Composer/0.3 x-ponymail-sender: c068aa2dca0e53ffba56f968adfd76454b89e063 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Hi Jayesh I'm afraid, there is no solution which involves Apache Isis code to take care of Jetty's class discovery. We do have code for JEE environments to prevent CDI from managing beans that are already managed by Isis. But that's not related. Cheers, Andi! On 2018/11/09 13:58:50, Jayesh Prajapati wrote: > Hi, > > I am using Apache ISIS 2.x for a project that can read various documents > like excel, csv, pdf, etc. > > When I add below dependencies in application pom.xml and try to start > application using jetty:run it fails with "Exception: Timeout scanning > annotations" > > > org.apache.pdfbox > pdfbox > 2.0.11 > > > > org.bouncycastle > bcprov-jdk15on > 1.60 > > > > org.bouncycastle > bcmail-jdk15on > 1.60 > > > > org.bouncycastle > bcpkix-jdk15on > 1.60 > > > It is very easy to replicate, simply add these dependencies in simple app's > application pom.xml file and try to run it using jetty:run. > > It took me very long to troubleshoot this issue and finally came to know > that it is related to jetty & bouncycastle. Refer [1] > > The way I have fixed it is ... > 1) Add below plugin entry in pom.xml of webapp > > > org.eclipse.jetty > jetty-maven-plugin > > jetty-web.xml > > > > 2) Create jetty-web.xml with below content in the working directory of > jetty:run > > > > > org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern > ^((?!bcprov).)*$ > > > > Is there any better way to solve this? > > Thanks, > Jayesh > [1] - > https://stackoverflow.com/questions/31513037/jetty-startup-is-slow-with-bouncycastle-included-in-classpath >