Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 61410 invoked from network); 15 Oct 2004 02:06:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Oct 2004 02:06:51 -0000 Received: (qmail 98591 invoked by uid 500); 15 Oct 2004 02:06:50 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 98549 invoked by uid 500); 15 Oct 2004 02:06:49 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: hivemind-user@jakarta.apache.org Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 98535 invoked by uid 99); 15 Oct 2004 02:06:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hlship@gmail.com designates 64.233.170.205 as permitted sender) Received: from [64.233.170.205] (HELO mproxy.gmail.com) (64.233.170.205) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Oct 2004 19:06:49 -0700 DomainKeys-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NVbEEHNY2bGNntthkX5vyP09mRGumqkzu9bkuCGMOS+6wLdK2BFTGLKiW04iqtUhptOlQfMtn8Y5h6ZNDPKPjrOCdSlLE23sO06NrZFUY1CkttMHCVTrhrZwCYYWFFPZYhrZaOy8C6AogfWC+JfhfL3bteH5hmFUeSE6v6TdKYc Received: by mproxy.gmail.com with SMTP id 79so187rnl for ; Thu, 14 Oct 2004 19:06:47 -0700 (PDT) Received: by 10.38.96.30 with SMTP id t30mr3868767rnb; Thu, 14 Oct 2004 19:06:47 -0700 (PDT) Received: by 10.38.74.52 with HTTP; Thu, 14 Oct 2004 19:06:47 -0700 (PDT) Message-ID: Date: Thu, 14 Oct 2004 22:06:47 -0400 From: Howard Lewis Ship Reply-To: Howard Lewis Ship To: hivemind-user@jakarta.apache.org Subject: Re: Cannot get Hivemind to work In-Reply-To: <416EDBC8.30607@professionalopensource.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <416ED1F9.7030706@iq-2000.com> <416EDBC8.30607@professionalopensource.ca> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm concerned about the version of Javassist, since I had problems with bugs in it. I belieive HiveMind uses 2.6. On Thu, 14 Oct 2004 17:04:24 -0300, Adam Greene wrote: > Ok, wrote a simply main into my globlal class and ran it as a Java > Application under Eclipse and had no problem making it work. > > > > Howard Lewis Ship wrote: > > That's a real puzzler! Looks like two different copies of AdderImpl have > been loaded into memory (can't figure out why) and they are competing. I > believe your code that passes in Adder.class is passing in a different > version (again, can't figure out why). Please look into where hivemind.jar > is on the classpath, where Adder.class is on the classpath. Sometimes > servlet containers break the normal rules on classloader search paths. This > does look very similar to the code I'm using on my project (well, except > that I subclass HiveMindFilter to create my Registry) and it, no surprises, > works flawlessly. On Thu, 14 Oct 2004 16:22:33 -0300, Adam Greene > wrote: > I have added the following code to my Global object in Tapestry 3.0 running > with the Jetty Plugin from Geoff Longman: public Global() { super(); > RegistryBuilder builder = new RegistryBuilder(); ClassResolver resolver = > new DefaultClassResolver(); builder.processModules(resolver); > builder.processModule(resolver, new > FileResource("context/WEB-INF/HiveTest.xml")); registry = > builder.constructRegistry(Locale.getDefault()); } public Adder getAdder() { > return (Adder) registry.getService(Adder.class); } and when I call > getAdder(), I get this error: Service HiveTest.Adder does not implement the > requested interface (org.apache.hivemind.examples.Adder). The declared > service interface type is org.apache.hivemind.examples.Adder My HiveTest.xml > is: interface="org.apache.hivemind.examples.Adder"> class="org.apache.hivemind.examples.impl.AdderImpl"/> service-id="hivemind.LoggingInterceptor"/> Anyone > got any ideas? > --------------------------------------------------------------------- To > unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For > additional commands, e-mail: hivemind-user-help@jakarta.apache.org > --------------------------------------------------------------------- To > unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For > additional commands, e-mail: hivemind-user-help@jakarta.apache.org -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org