Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 34288 invoked from network); 12 Jul 2010 13:13:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jul 2010 13:13:31 -0000 Received: (qmail 26633 invoked by uid 500); 12 Jul 2010 13:13:31 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 26396 invoked by uid 500); 12 Jul 2010 13:13:28 -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 26388 invoked by uid 99); 12 Jul 2010 13:13:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 13:13:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pcu84424@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bw0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 13:13:19 +0000 Received: by bwz10 with SMTP id 10so2858747bwz.6 for ; Mon, 12 Jul 2010 06:12:59 -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=Nq8CwZyQa9mjkqsNWocImBcx6jlPtbWzXMOiEvTsItQ=; b=pBDnX+sDfYVH8iOtGHRgDZMUyvdYIHk4kG4Eb3X9HBwLaVXtGGot4Ag3apncOlasgT jKUPb84DaDQYL7A/9NRfEi0BKZX9LjZbTaR8U0VBzxAvRHkOrQtyNlxD+yCdOvLzMJR6 /aXJ76M+Xx8EMQHQzwErRWyHwIRHntnUTlZGk= 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=HrYUqZO6zZRDDJgrzv+dtVzPQdA6fskOftVRROPgJ5X8b6DIDFkheFOENJVxFozYj4 ikHmIdOlwpOxdNZxZZ+EUHB1FO+rxS014x8ztKyl/a5WcKcoc5IHfvEv09bfjvhAABei ziXBy4bzrJUCAYqpsyG6cPvLPp/VyWXpZGaNY= MIME-Version: 1.0 Received: by 10.204.3.27 with SMTP id 27mr5713374bkl.123.1278940378705; Mon, 12 Jul 2010 06:12:58 -0700 (PDT) Received: by 10.204.130.24 with HTTP; Mon, 12 Jul 2010 06:12:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Jul 2010 15:12:58 +0200 Message-ID: Subject: Re: Fail to deploy service in UIMA AS From: LinTong To: user@uima.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org @Eddie It works! You are right, I was not able to load that annotator in CVD either. So I create a clean workspace and include only necessary JAR and It works. Probably the compiler is confused by some packages which are out of date. Thanks so much. On Fri, Jul 9, 2010 at 2:17 PM, Eddie Epstein wrote: > In order to run the Tagger annotator the Java classpath has to include > the classes directory in the Tagger project. Without that cvd will > not work, nor will anything else trying to run the annotator. > > For me, deployAsyncService works by previously doing: > set UIMA_CLASSPATH=\workspace\Tagger\target\classes > > On Thu, Jul 8, 2010 at 5:43 PM, LinTong wrote: >> @ Eddie >> The desriptors of the annotators I use are provided by UIMA sandbox so >> that they run perfect in UIMA or cvd. But it failed when I tried to >> deploy it as a UIMA AS service. >> >> >> On Thu, Jul 8, 2010 at 9:38 PM, Eddie Epstein wrote: >>> Try running cvd from the command line and loading that annotator: >>> Run->Load AE and select the simple UIMA descriptor, not the >>> UIMA AS deployment descriptor. Presumably will get the same error. >>> >>> Need to figure out which environment parameters to set. >>> Check out the run configuration that is working. >>> >>> Eddie >>> >>> >>> On Thu, Jul 8, 2010 at 12:18 PM, LinTong wrote: >>>> @Jaroslaw >>>> >>>> Thanks for your help. I thought the configuration of classpath had >>>> problems because it was the only difference I can imagine between my >>>> two computers. But all the analyse engines I use, e.g. Hidden Markov >>>> Model Tagger Annotator, are parts of UIMA sandbox, and I have put the >>>> jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder >>>> "UIMA_HOME/lib". Is there any other hint? Thanks very much! >>>> >>>> >>>> On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik wrote: >>>>> 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) >>>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> LinTong(Pierre) >>>> >>> >> >> >> >> -- >> Best Regards >> LinTong(Pierre) >> > -- Best Regards LinTong(Pierre)