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/                               |
|------------------------------------------------|



<project default="fulcrum:build" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:ant="jelly:ant">

  <goal name="fulcrum:build" description="Build Fulcrum.">
    <maven:reactor basedir="${basedir}"
      includes="**/project.xml"
      excludes="target/**,project.xml"
      goals="jar:install"
      banner="Installing:"
      ignoreFailures="false" />
  </goal>

  <goal name="fulcrum:clean" description="Build Fulcrum." prereqs="clean">
    <maven:reactor basedir="${basedir}"
      includes="**/project.xml"
      excludes="target/**,project.xml"
      goals="clean:clean"
      banner="Installing:"
      ignoreFailures="false" />
  </goal>

</project>
<?xml version="1.0"?>
<project>
  <pomVersion>3</pomVersion>
  <groupId>fulcrum</groupId>
  <organization>
    <name>Apache Software Foundation</name>
    <url>http://jakarta.apache.org/</url>
    <logo>/images/jakarta-logo-blue.gif</logo>
  </organization>
  <inceptionYear>2000</inceptionYear>
  <package>org.apache.fulcrum</package>
  <gumpRepositoryId>jakarta</gumpRepositoryId>
  <shortDescription>Component Repository</shortDescription>
  <description>Fulcrum is a component repository for Turbine.</description>
  <url>http://jakarta.apache.org/turbine/fulcrum/${pom.artifactId}/</url>
  <issueTrackingUrl>http://issues.apache.org/scarab/servlet/scarab/</issueTrackingUrl>
  <siteAddress>jakarta.apache.org</siteAddress>
  <siteDirectory>/www/jakarta.apache.org/turbine/fulcrum/</siteDirectory>
  <distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-fulcrum/</distributionDirectory>
  <repository>
    <connection>scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:jakarta-turbine-fulcrum</connection>
    <url>http://cvs.apache.org/viewcvs/jakarta-turbine-fulcrum/</url>
  </repository>
  <mailingLists>
    <mailingList>
      <name>Turbine User List</name>
      <subscribe>[EMAIL PROTECTED]</subscribe>
      <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
      <archive>http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]</archive>
    </mailingList>
    <mailingList>
      <name>Turbine Developer List</name>
      <subscribe>[EMAIL PROTECTED]</subscribe>
      <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
      <archive>http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]</archive>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <name>Geir Magnusson Jr.</name>
      <id>geirm</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>Independent (DVSL Maven)</organization>
    </developer>
    <developer>
      <name>Quinton McCombs</name>
      <id>quintonm</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>NequalsOne</organization>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
    <developer>
      <name>John McNally</name>
      <id>jmcnally</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>CollabNet</organization>
    </developer>
    <developer>
      <name>Martin Poeschl</name>
      <id>mpoeschl</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>Tucana</organization>
    </developer>
    <developer>
      <name>Eric Pugh</name>
      <id>epugh</id>
      <email>[EMAIL PROTECTED]</email>
    </developer>
    <developer>
      <name>Daniel Rall</name>
      <id>dlr</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>CollabNet, Inc.</organization>
    </developer>
    <developer>
      <name>Henning P. Schmiedehausen</name>
      <id>henning</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>INTERMETA - Gesellschaft fuer Mehrwertdienste mbH</organization>
    </developer>
    <developer>
      <name>Jon Scott Stevens</name>
      <id>jon</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>CollabNet, Inc.</organization>
    </developer>
    <developer>
      <name>Jason van Zyl</name>
      <id>jvanzyl</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>Zenplex</organization>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Dan Diephouse</name>
      <id>dandiep</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>Envoi solutions</organization>
      <roles>
        <role>Developer</role>
      </roles>
    </contributor>
    <contributor>
       <name>Pete Kazmier</name>
       <id>kaz</id>
       <email></email>
       <organization></organization>
       <roles>
         <role>Developer</role>
       </roles>
    </contributor>
    <contributor>
      <name>Kasper Nielsen</name>
      <id>kasper</id>
      <email>[EMAIL PROTECTED]</email>
      <organization></organization>
      <roles>
        <role>Developer</role>
      </roles>
    </contributor>
    <contributor>
       <name>James Taylor</name>
       <id>jtaylor</id>
       <email>[EMAIL PROTECTED]</email>
       <organization></organization>
       <roles>
         <role>Developer</role>
       </roles>
    </contributor>
  </contributors>


  <build>
    <sourceDirectory>${basedir}/src/java/</sourceDirectory>
    <unitTestSourceDirectory>${basedir}/src/test/</unitTestSourceDirectory>
    <unitTest>
      <includes>
        <include>**/*Test.*</include>
        <include>**/*TestCase.*</include>
      </includes>
      <excludes>
        <include>**/Abstract*.*</include>
      </excludes>
      <resources>
        <resource>
          <directory>${basedir}/src/java</directory>
          <includes>
            <include>**/*.x*</include>
          </includes>
        </resource>
        <resource>
          <directory>${basedir}/conf</directory>
          <targetPath>BLOCK-INF</targetPath>
          <includes>
            <include>block.xml</include>
          </includes>
        </resource>
      </resources>
    </unitTest>
    <integrationUnitTestPatterns></integrationUnitTestPatterns>
    <resources>
      <resource>
        <directory>${basedir}/conf</directory>
        <targetPath>BLOCK-INF</targetPath>
        <includes>
          <include>block.xml</include>
        </includes>
      </resource>
      <resource>
        <directory>${basedir}/src/java</directory>
        <includes>
          <include>**/*.x*</include>
        </includes>
      </resource>
    </resources>
    <jars></jars>
  </build>
 
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to