Thanks Stephen, I think I updated the build.. Thanks for the Reactor code, as multiproject is failing frequently due to out of memory errors.. I was enjoying all the benefits of multiplugin, but until the memory holes are patched, I think just using the reactor directly is the way to go.
I have committed an updated project.xml that includes the copying of the block.xml file. I believe the same project.xml can be used by the not yet merlinized components as well as the merlinized components. As far as the Turbine 2.4 build, yes, the jakarta-turbine-2/extensions/torque build requires 2.4. Under the reactor it should realize that the torque extension requires 2.4, and therefore build it first, and then the torque extension. I am trying to get the torque code into it's own build so that when I am ready to replace it with the fulcrum security, it will be more of a drop in replacement. Also, the torque code forced some ugly build steps on the turbine core! I can foresee other turbine specific code that would go in extensions as well. At this point I have the block.xml loading up both the sample Hello component as well as the Mimetype component! Eric > -----Original Message----- > From: Stephen McConnell [mailto:[EMAIL PROTECTED] > Sent: Friday, November 14, 2003 12:46 AM > To: Avalon Developers List > Subject: Re: Why does Block.lookup throws Exception? > > > > Eric: > > Have taken a look at the component build. For the configuration > component and the mimetype component you need to include a parent > project defintion that includes a resource definition to copy the > block.xml into the appropriate directory (otherwise the unit > test will > locate the block.xml). I have attached a merlin-project.xml and a > maven.xml that I put into my the /fulcrum/configuration and > /fulcrum/mimetype directories, updated the <extend> tag in the impl > subdirectories and everything works fine. > > Was not able to build security or osworkflow (details included in > earlier email). > > Finally - it looks like there may be something odd going on > inside the > turbine 2.4 build as its trying to resolve 2.4 while building 2.4. In > particular jakarta-turbine-2/extensions/torque is trying to download > 2.4-dev as part of the build and 2.4-dev does not appear to > exist, and > 2.4-dev is the main build target. Feels like something recursive? > > Stephen. > > > > Eric Pugh wrote: > > >I am committing now.. I actually realized my unit test for the > >MerlinComponentService had the same issue, so maybe you can > look at it > >instead.. > > > >/src/conf/test/merlin is the merlin config stuff. > > > >/src/test/org/apache/turbine/services/avaloncomponent is the > path to the > >unit test.. > > > > > >We need IRC! > > > >Eric > > > > > > > >>-----Original Message----- > >>From: Stephen McConnell [mailto:[EMAIL PROTECTED] > >>Sent: Thursday, November 13, 2003 10:26 PM > >>To: Avalon Developers List > >>Subject: Re: Why does Block.lookup throws Exception? > >> > >> > >> > >> > >>Eric Pugh wrote: > >> > >> > >> > >>>That would be great, because I assume that Merlin will > >>> > >>> > >>hollar if there is a > >> > >> > >>>config error etc, I basically catch teh Exception and throw a > >>>NestableRuntimeException. > >>> > >>> > >>> > >>Yep - asssumption is correct. > >> > >> > >> > >>>Next question.. > >>> > >>>How do I get the darn mimetype component to load.. > >>> > >>> > >>><container name="fulcrum"> > >>> <classloader> > >>> <classpath> > >>> <repository> > >>> <resource id="fulcrum:fulcrum-mimetype-api" > >>> > >>> > >>version="1.0-alpha-4"/> > >> > >> > >>> <resource id="fulcrum:fulcrum-mimetype-impl" > >>>version="1.0-alpha-4"/> > >>> </repository> > >>> </classpath> > >>> </classloader> > >>> <component name="mimetype" > >>>class="org.apache.fulcrum.mimetype.DefaultMimeTypeService"/> > >>> > >>></container> > >>> > >>>Notice I bumped the versions, you need to build locally and > >>> > >>> > >>deploy.. When > >> > >> > >>>I do a lookup, I do this: > >>>(MimeTypeService)merlin.lookup("fulcrum/mimetype") > >>> > >>> > >>> > >>Don't have the code in front of me just at the moment but you > >>should be > >>using "/fulcrum/mimetype" (i.e. an absolute path). Remember > >>that your > >>invoking this from the root container - unlike the testcase > where you > >>can conviniently use a relative reference to the test container. > >> > >> > >> > >>>I also tried > >>>(MimeTypeService)merlin.lookup("mimetype") > >>> > >>>Part of me feels like though that the block info included in > >>> > >>> > >>the impl jar > >> > >> > >>>should mean I don't need to declare this.. > >>> > >>> > >>> > >>You don't need to do this. If the <component> is declared > >>Merlin will > >>default to activating component on container deployment. > >> > >> > >> > >>>Not sure though.. Right now I > >>>just get back a null.. > >>> > >>> > >>> > >>That's not good. You should actually be getting an > >>IlegalArgumentException. > >> > >> > >> > >>>I can commit the code if that helps.. > >>> > >>> > >>> > >>Yep - what's the directory path that your committing to? > >> > >>Stephen. > >> > >> > >> > >>>Eric > >>> > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Stephen McConnell [mailto:[EMAIL PROTECTED] > >>>>Sent: Thursday, November 13, 2003 9:46 PM > >>>>To: Avalon Developers List > >>>>Subject: Re: Why does Block.lookup throws Exception? > >>>> > >>>> > >>>> > >>>> > >>>>Eric Pugh wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Hi all, > >>>>> > >>>>>I am working on integrating the Merlinized Fulcrum Mimetype > >>>>> > >>>>> > >>>>> > >>>>> > >>>>component, and > >>>> > >>>> > >>>> > >>>> > >>>>>noticed that this throws an exception: > >>>>> > >>>>>Block root = m_kernel.getRootBlock(); > >>>>> return root.locate(path); > >>>>> > >>>>>Why doesn't it throw a MerlinException or ComponentException? Or > >>>>>RuntimeException? It seems like just Exception isn't very > >>>>> > >>>>> > >>useful... > >> > >> > >>>>> > >>>>> > >>>>> > >>>>I agree. > >>>> > >>>>There is a NoProviderDefinitionException declared in the > >>>>activation API. > >>>>I think this will cover the majority of concerns. I'll do > >>>>some playing > >>>>around and see what we can come up with. > >>>> > >>>>Stephen. > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Eric > >>>>> > >>>>> > >>>>>----------------------------------------------------------- > >>>>> > >>>>> > >>---------- > >> > >> > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>-- > >>>> > >>>>Stephen J. McConnell > >>>>mailto:[EMAIL PROTECTED] > >>>> > >>>>|------------------------------------------------| > >>>>| Magic by Merlin | > >>>>| Production by Avalon | > >>>>| | > >>>>| http://avalon.apache.org/merlin | > >>>>| http://dpml.net/ | > >>>>|------------------------------------------------| > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>------------------------------------------------------------ > >>>> > >>>> > >>--------- > >> > >> > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>>> > >>>----------------------------------------------------------- > ---------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>> > >>-- > >> > >>Stephen J. McConnell > >>mailto:[EMAIL PROTECTED] > >> > >>|------------------------------------------------| > >>| Magic by Merlin | > >>| Production by Avalon | > >>| | > >>| http://avalon.apache.org/merlin | > >>| http://dpml.net/ | > >>|------------------------------------------------| > >> > >> > >> > >> > >> > >>------------------------------------------------------------ > --------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > > Stephen J. McConnell > mailto:[EMAIL PROTECTED] > > |------------------------------------------------| > | Magic by Merlin | > | Production by Avalon | > | | > | http://avalon.apache.org/merlin | > | http://dpml.net/ | > |------------------------------------------------| > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
