Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 52590 invoked from network); 8 Jul 2010 15:21:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 15:21:09 -0000 Received: (qmail 85561 invoked by uid 500); 8 Jul 2010 15:21:08 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 85517 invoked by uid 500); 8 Jul 2010 15:21:08 -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 85509 invoked by uid 99); 8 Jul 2010 15:21:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 15:21:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uimaee@gmail.com designates 209.85.161.175 as permitted sender) Received: from [209.85.161.175] (HELO mail-gx0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 15:20:59 +0000 Received: by gxk1 with SMTP id 1so489071gxk.6 for ; Thu, 08 Jul 2010 08:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=poyeAyktVuvKfvwg7SoJk/FdybxnAs6QIKmvw/ByVBY=; b=BCbPZrkn4H9PgUKB3tkrhV0OUPam27LBmwJniTKDV41oaOzvWmmyKmebASCW3YaiQ+ 4zUw85RSZetJyz5bkodz83AxOb2RL4eLGQo2olArXOE+cGMy4wQ0oCobQYKpFCLzdpCI Vhxg4yXrhtN6y07IhAbE+1A+JiX1EVZ8s5ETo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DnGKwItS87IyU6yrmGhVclxXT1tDmksAc8kHwRvJQihrLa9Zogi102+1jAmdoZ1a2i MPpz3QqQYVJ6j+0mhvsfJkDjPu38eJdlDBodf38B/VxbFyNKpvwqUQa+e/DBf9xZJ4RO 3Pi5ltopjViSLsh0C371XJ9TZWQfSAZEap3RQ= MIME-Version: 1.0 Received: by 10.229.184.132 with SMTP id ck4mr629866qcb.234.1278602437560; Thu, 08 Jul 2010 08:20:37 -0700 (PDT) Received: by 10.229.215.10 with HTTP; Thu, 8 Jul 2010 08:20:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Jul 2010 11:20:32 -0400 Message-ID: Subject: Re: Fail to deploy service in UIMA AS From: Jaroslaw Cwiklik To: user@uima.apache.org Content-Type: multipart/alternative; boundary=0016364eca7a1991f4048ae1d429 X-Virus-Checked: Checked by ClamAV on apache.org --0016364eca7a1991f4048ae1d429 Content-Type: text/plain; charset=ISO-8859-1 The stack trace does not reveal the real cause of the problem. Perhaps the problem is a classpath not being set properly. By default, the UIMA AS service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar) that contain the analytic you attempting to deploy please set the UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh). This is the script that sets up a CLASSPATH and ultimately launches the UIMA AS process. JC On Thu, Jul 8, 2010 at 10:30 AM, LinTong wrote: > Thanks to Jaroslaw Cwiklik > > If the following message is not what you mean, please tell me how to > output the full stack trace. Thanks. > > > > 08.07.10 16:22:51 - 10: > org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy: > WARNUNG: Thread: main > Exception:org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in > URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]: > Instantiation of bean failed; nested exception is > org.springframework.beans.BeanInstantiationException: Could not > instantiate bean class > [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]: > Constructor threw exception; nested exception is > org.apache.uima.resource.ResourceInitializationException: Error > initializing "org.apache.uima.resource.impl.DataResource_impl" from > descriptor > file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml. > 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main > Exception:org.apache.uima.resource.ResourceInitializationException > > > > > > On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik wrote: > > Please provide a full stack trace from the uima log if it is available. > When > > there is an initialization failure there should be a cause for it. > > Regards, JC > > > > On Thu, Jul 8, 2010 at 7:29 AM, LinTong wrote: > > > >> Hello Everybody > >> > >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov > >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS. > >> The deployment always failed and no error message returned. Sometimes > >> it just said: Service: AE_Name stopped. > >> > >> I debugged it and found that serviceInitializationSemaphore.acquire() > >> (SpringContainerDeployer.java) throws en exception > >> "ResourceInitializationException". And in UIMA.log it says: > >> 08.07.10 13:04:15 - 11: > >> > >> > org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine: > >> WARNUNG: org.apache.uima.resource.ResourceInitializationException: > >> Error initializing "org.apache.uima.resource.impl.DataResource_impl" > >> from descriptor > >> > >> > file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml. > >> > >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on > >> my desktop, but it failed when using deployAsyncService.cmd. On my > >> laptop it always failed neither in eclipse and using > >> deployAsyncService.cmd. > >> > >> For this reason I think the descriptor and java have no problem and > >> JVM has enough memory space. > >> > >> Any idea about my problem? Thanks very much for your help ! > >> > >> -- > >> Best Regards > >> LinTong(Pierre) > >> > > > > > > -- > Best Regards > LinTong(Pierre) > --0016364eca7a1991f4048ae1d429--