Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FE83200B89 for ; Wed, 21 Sep 2016 19:00:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0E794160ADB; Wed, 21 Sep 2016 17:00:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2258D160ABC for ; Wed, 21 Sep 2016 19:00:16 +0200 (CEST) Received: (qmail 76660 invoked by uid 500); 21 Sep 2016 17:00:16 -0000 Mailing-List: contact dev-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list dev@ctakes.apache.org Received: (qmail 76644 invoked by uid 99); 21 Sep 2016 17:00:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2016 17:00:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 73E51C0C08 for ; Wed, 21 Sep 2016 17:00:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=phemi-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id bcMGQexRQo_u for ; Wed, 21 Sep 2016 17:00:13 +0000 (UTC) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 195C35F1F0 for ; Wed, 21 Sep 2016 17:00:13 +0000 (UTC) Received: by mail-io0-f172.google.com with SMTP id m79so59318881ioo.3 for ; Wed, 21 Sep 2016 10:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phemi-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6OGjlGxR+jGunTtqmjSNOFbNnEgrh1/N2cLj3HCUga4=; b=IrdBQYfin3PriE8bSZbnF8jRz19CLtcvE/Wq/oGvG+CjqqFR3pEdvqZU6TxuRh+9ge 0v9RilBI4yDBrMv74WC/1O7xPjiHY4e/YnqqhAFmUujE2Y08Cwk5TIOb/ShFZpwMbm+5 a3BtGSzOEZpg7Eqk9da7zJ1xTqTolWn+FmiXtzz/V2gfsVLb8AkDBxuQw/5xN9EgZJSt poZCfa1ThrhmNKXybYM1O8dfvbMOOnzWybPIuy0yd56xJTCdqqKVImcBF6YiYEJ6hAxt O/DF+4FqEuHNxXDC2cYkZiKIHbnQId5S5c9MPG0B/EEhHOOfNv1bi2ZwakL7E3xEUic7 JhQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6OGjlGxR+jGunTtqmjSNOFbNnEgrh1/N2cLj3HCUga4=; b=fVPlA0+x6SovF974HzUB4EybdIIppUJNlLml1QSXW4L/EIoK4VYIFG61eIurQbsMqa MzlJKcuq9+onzZJu4H4ewZxEUdX7p5S3uWTjCcFoF+7BWCEhURchg2tsJO6sBi/dsFCO rQncGL7UWwShqkB2qP8eLmhf1PS2G8H3lVisy2oipH1wagknpkUVuxBNWtgqqWqUpkyq uXte4hLW7cj3bSa/OY6Go+MRaiGAqyd51+L24WZ1r1UnbEnd91tSVVCGjOi4iEnxqcDl KWpAgR0NqCR6wEX+l3zut8ppx0VYnMLcsEGz3qe0DtEHnvpw0+AC+czk2yqKokJcqQ7D ON5g== X-Gm-Message-State: AE9vXwMxpyK9IKBYUkW7wXs9D3P9QO/uopOPHhxOr7ps/ywAV2+vIdbksnYoe8RrOs+/MCtbyXG/zLh7qSWF7ZXu X-Received: by 10.107.180.215 with SMTP id d206mr4814809iof.36.1474477211830; Wed, 21 Sep 2016 10:00:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.106.69 with HTTP; Wed, 21 Sep 2016 10:00:11 -0700 (PDT) In-Reply-To: References: From: Bandeep Singh Date: Wed, 21 Sep 2016 10:00:11 -0700 Message-ID: Subject: Re: Exception in thread "main" org.apache.uima.util.InvalidXMLException: An import could not be resolved. No .xml file with name "desc/analysis_engine/AggregatePlaintextUMLSProcessor" was found in the class path or data path. (Descriptor: ) To: dev@ctakes.apache.org Content-Type: multipart/alternative; boundary=94eb2c05e32a710964053d077a0c archived-at: Wed, 21 Sep 2016 17:00:18 -0000 --94eb2c05e32a710964053d077a0c Content-Type: text/plain; charset=UTF-8 Hi Roshan, Couple of things here to notice. 1) Which cTakes version are you installing ?? If its cTakes 3.2.2 , i would recommend go for cTakes SNAPSHOT 3.2.3 , since a lot of bugs are fixed in it. 2) Also, When you put everything in a JAR (Same issue i had couple of days back), the code should treat file as a resource inside a JAR. Pleas make sure the piece of code that reads AggregatePlaintextUMLSProcessor should read it as a resource and not as a file. (Do you see any "URI is not hierarchical" error anywhere in the error logs?) The reason why its works in eclipse is because the AggregatePlaintextUMLSProcessor.xml file exists on the file system and not inside the JAR. Hope that helps! Bandeep On Wed, Sep 21, 2016 at 12:12 AM, WP Roshan wrote: > Hi All, > > I made a cTakes command line application using "ctakes\ctakes-clinical- > pipeline\src\main\java\org\apache\ctakes\clinicalpipelineClinicalPipeli > neWithUmls.java". > It's perfectly running at the Eclipse environment with run-time argument*. > But when I deployed it as a jar with all the dependencies I got following > exception. > > "Exception in thread "main" org.apache.uima.util.InvalidXMLException: An > import could not be resolved. No .xml file with name "desc/analysis_engine/ > AggregatePlaintextUMLSProcessor" was found in the class path or data > path. (Descriptor: ) " > > Note : I changed pom.xml file inside "ctakes-clinical-pipeline" directory > so that it's able to build jar with all the dependencies. > > mvn clean install was successful. complete "mvn clean install" log > attached herewith for anyone's reference. > > jar ran at the command prompt with argument as follows > > run-time arguments* > args[0] = C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\ > input\MS-pubmed-1.txt > args[1] = C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\ > output\xmi > args[2] = C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\ > output\topics\MS-pubmed-1-topics.txt > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~~~~~~~~~ > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > C:\Users\WPRoshan>cd C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\ > target > > C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\target>java -classpath > %CTAKES_HOME%\desc;%CTAKES_HOME%\resources;%CTAKES_HOME%\lib\* > -Dlog4j.configuration=file:\ > > %CTAKES_HOME%\config\log4j.xml -Xms512M -Xmx3g -jar > ctakes-clinical-pipeline-3.2.0-SNAPSHOT-jar-with-dependencies.jar > C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\input\MS- > > pubmed-1.txt C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\output\xmi > C:\EclipsProjects\ctakes\ctakes-clinical-pipeline\data\ > output\topics\MS-pubmed-1-topics.txt > Started org.apache.ctakes.clinicalpipeline.ClinicalPipelineWithUmls at > Wed Sep 21 12:03:04 IST 2016 > log4j: reset attribute= "false". > log4j: Threshold ="null". > log4j: Retreiving an instance of org.apache.log4j.Logger. > log4j: Setting [ProgressAppender] additivity to [false]. > log4j: Level value for ProgressAppender is [INFO]. > log4j: ProgressAppender level set to INFO > log4j: Class name: [org.apache.log4j.ConsoleAppender] > log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" > log4j: Setting property [conversionPattern] to [%m]. > log4j: Adding appender named [noEolAppender] to category > [ProgressAppender]. > log4j: Retreiving an instance of org.apache.log4j.Logger. > log4j: Setting [ProgressDone] additivity to [false]. > log4j: Level value for ProgressDone is [INFO]. > log4j: ProgressDone level set to INFO > log4j: Class name: [org.apache.log4j.ConsoleAppender] > log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" > log4j: Setting property [conversionPattern] to [%m%n]. > log4j: Adding appender named [eolAppender] to category [ProgressDone]. > log4j: Level value for root is [INFO]. > log4j: root level set to INFO > log4j: Class name: [org.apache.log4j.ConsoleAppender] > log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" > log4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss} > %5p %c{1} - %m%n]. > log4j: Adding appender named [consoleAppender] to category [root]. > Reading from directory: C:\EclipsProjects\ctakes\ > ctakes-clinical-pipeline\data\input\MS-pubmed-1.txt > Outputting to directory: C:\EclipsProjects\ctakes\ > ctakes-clinical-pipeline\data\output\xmi > Exception in thread "main" org.apache.uima.util.InvalidXMLException: An > import could not be resolved. No .xml file with name "desc/analysis_engine/ > AggregatePlaintextUMLSProcessor" was found in the > > class path or data path. (Descriptor: ) > at org.apache.uima.resource.metadata.impl.Import_impl. > findAbsoluteUrl(Import_impl.java:107) > at org.uimafit.factory.AnalysisEngineFactory. > createAnalysisEngineDescription(AnalysisEngineFactory.java:109) > at org.apache.ctakes.clinicalpipeline. > ClinicalPipelineWithUmls.main(ClinicalPipelineWithUmls.java:76) > > > Does anybody knows how to tackle this issue ? > > Thanks > W.P.Roshan > -- > SunONE > --94eb2c05e32a710964053d077a0c--