commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship" <hls...@comcast.net>
Subject RE: HIVEMIND: org.apache.commons.hivemind.ApplicationRuntimeException: Registry does not contain module
Date Tue, 04 Nov 2003 00:15:21 GMT
So there's absolutely nothing else in the console? That doesn't make sense. Another option
is that
you haven't packaged your hivemodule.xml properly, so that RegistryBuilder can see it; do
a jar tf
on your packaged JAR file. 



--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Vic Cekvenich
> Sent: Monday, November 03, 2003 6:24 PM
> To: commons-user@jakarta.apache.org
> Subject: Re: HIVEMIND: 
> org.apache.commons.hivemind.ApplicationRuntimeException: 
> Registry does not contain module
> 
> 
> I fixed the white space and same error. I am just trying to 
> repoduce the 
>   code from your slides, a hello world thing.
> 
> I am not loging anything, the output is what shows up on IDE 
> (Eclipse).
> 
> Another idea?
> 
> btw, this is all the code:
> 	Registry reg =   RegistryBuilder.constructDefaultRegistry();
> 	MailSync m = (MailSync) 
> reg.getService("bP.async.mailer.MailSync",MailSync.class);
> 	m.send();
> 
> Do you have a working "Adder" example?
> .V
> 
> hlship@comcast.net wrote:
> > If that's a cut-and-paste, then you have a problem in your 
> XML ... too 
> > little whitespace
> > 
> > id="MailSync"interface
> > 
> > You should be seeing error output ... is it going into a log file?  
> > Are you seeing a big block about how you haven't enabled 
> error output?
> > 
> > --
> > hlship@apache.org
> > 
> > Creator, Tapestry: Java Web
> > Components
> > http://jakarta.apache.org/tapestry
> > 
> >>Thanks ( I am impressed with what HiveMind lets people do).
> >>
> >>Here is the message:
> >>org.apache.commons.hivemind.ApplicationRuntimeException: 
> Registry does
> >>not contain module 'bP.async.mailer'.
> >>	at 
> >>org.apache.commons.hivemind.impl.RegistryImpl.getModule(Regi
> stryImpl.java:119)
> >>	at 
> >>org.apache.commons.hivemind.impl.RegistryImpl.getService(Reg
> istryImpl.java:129)
> >>	at bP.async.run2.main(run2.java:12)
> >>Exception in thread "main"
> >>
> >>And the xml:
> >><? xml version = "1.0" ?>
> >>
> >><module id ="bP.async.mailer.MailSync" version= "1.0.0">
> >>	<service-point 
> id="MailSync"interface="bP.async.mailer.MailSync">
> >>		<create-instance class ="bP.async.mailer.MailSyncImpl"/>
> >>	</service-point>
> >>
> >></module>
> >>
> >>Does this help? I wish it is XML.
> >>
> >>.V
> >>
> >>
> >>
> >>hlship@comcast.net wrote:
> >>
> >>>The full stack trace of the exception would be a start; also you
> >>
> >>hivemodule.xml is probably the source of the problem.  Any other 
> >>output in the
> >>log?
> >>
> >>>You are likely using alpha-2 XML syntax with the alpha-3 code (or 
> >>>vice versa).
> >>>
> >>
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: 
> commons-user-help@jakarta.apache.org
> >>
> 
> -- 
> Victor Cekvenich,
> Struts Instructor
> (215) 321-9146
> 
> Advanced Struts Training 
> <http://basebeans.com/do/cmsPg?> content=TRAINING> Server Side 
> Java training with Rich UI, 
> mentoring, designs, samples and project recovery in North 
> East. Simple best practice basic Portal, a Struts CMS, Membership, Forums, Shopping and
> Credit
processing, <http://basicportal.com> > software, ready 
> to develop/customize; requires a db to run.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message