I'm using this block.xml now
<container name="mrt-vend-client">
You need to include a classloader declaration here containing any jar file that have xinfos in them. You also need to include the the fileset declarations for you build classes directory. These need to appear here in order for the resources to be scanned and loaded into the container's type registy.
Steve.
<component name="hibernate-service" class="com.mrt.service.hibernate.HibernateServiceImpl" activation="startup"> <configuration> </configuration> </component> <!-- DAO Services --> <component name="location-dao" class="com.mrt.vend.impl.LocationDAOServiceImpl"/> <component name="region-dao" class="com.mrt.vend.impl.RegionDAOServiceImpl"/> </container>
it doesn't contain classloader declaration,and this is target from ant script:
<junit showoutput="true" fork="true" printsummary="yes" newenvironment="true" > <sysproperty key="basedir" value="${basedir}"/> <classpath> <pathelement path="${build.tests.dir}"/> <pathelement path="${build.classes.dir}"/> <path path="${libs.dir}/merlin-kernel-unit-3.2.5.jar"/> <path path="${libs.dir}/avalon-repository-main-1.2.jar"/> <path path="${libs.dir}/avalon-framework-api-4.1.5.jar"/> <path path="${libs.dir}/mrt-service-impl-0.1.jar"/> </classpath> <batchtest fork="true" todir="${build.tests.dir}"> <formatter type="xml"/> <fileset dir="${build.tests.dir}"> <include name="com/mrt/vend/impl/tests/**"/> </fileset> </batchtest> </junit>
I'm setting fork="true" to ommit ant class loader, and still merlin couldn't find component descriptor.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
