Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67EB518AC5 for ; Fri, 11 Dec 2015 10:37:25 +0000 (UTC) Received: (qmail 83339 invoked by uid 500); 11 Dec 2015 10:37:25 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 83297 invoked by uid 500); 11 Dec 2015 10:37:25 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 83282 invoked by uid 99); 11 Dec 2015 10:37:25 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 10:37:25 +0000 Received: from [192.168.1.49] (unknown [177.139.32.28]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 67DF71A00B2; Fri, 11 Dec 2015 10:37:24 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: uimaFIT auto-detection of types From: Richard Eckart de Castilho In-Reply-To: Date: Fri, 11 Dec 2015 08:37:17 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3005CB08-19EB-4F9A-8A97-31BB949352D8@apache.org> To: user@uima.apache.org X-Mailer: Apple Mail (2.3096.5) Hi Matt, I would recommend you set your project up as a Maven project. Eclipse has a great Maven support. You later mention that you want to use the Maven Shade plugin anyway. If you do not want to set up your project with Maven, please make sure that the META-INF and desc folders are contained inside a source folder. If you just have them in the project root, they won't end up in the classpath at runtime. if you do switch to Maven, make sure that "META-INF" and "desc" are = situated under "src/main/resources", otherwise Maven will not put them into the = JAR. That said, I'm a bit puzzled why this line would work at all: >> = TypeSystemDescriptionFactory.createTypeSystemDescription("desc/types/DJTyp= es"); The line above should only work if "desc/types/DJTypes.xml" can be found = in the classpath. With Apache uimaFIT 2.1.0, "META-INF/org.apache.uima.fit/types.txt" is = the right place to configure auto detection [1]. >>> classpath*:desc/types/*.xml That sounds ok too. I would generally recommend to avoid wildcards here = though. Finally, you could try increasing the log level of whatever logging = framework you are using (by default that would be Java Utility Logging) to see debug = output of the type detection. For JUL, this post [1] on StackOverflow might help (mind for JUL you = need to set the level to FINEST). I use log4j most of the time and there is a post here = [2] indicating how to set the log level. Cheers, -- Richard [1] http://stackoverflow.com/a/25677104/2511197 [2] = https://groups.google.com/d/msg/dkpro-core-user/YKQnvNJHaLk/e0EZRm7COmIJ