You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Eric Pugh <ep...@upstate.com> on 2003/11/15 20:42:28 UTC

Finding .xinfo files in Turbine test cases

Hi all,

I got another glitch/bump!  At this point I have finished porting over in
Fulcrum the mimetype, localization, factory, intake, configuration
components.  They are all cleaned up and nicely use the merlin-project.xml.
If you run 'maven build-fulcrum' from the root of the Fulcrum project
everything works nicely.  All the unit tests pass etc.  Of course, I am just
building up to my question!

In the unit tests for the IntakeTool and LocalizationTool's I am getting
back an error that I would attribute to a missing .xinfo file, but in the
Jar, they appear there!  I have pasted the output below.  Note, I first ran
the build-fulcrum goal and then manually copied over the files to the Merlin
directory as they are not yet available online.  Is there anyway to specify
that a repo is the MAVEN_LOCAL_REPO system variable at all?

So, in this case, I checked the fulcrum-intake-1.0-alpha-2.jar and the xinfo
file has this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE type PUBLIC "-//AVALON/Type DTD Version 1.0//EN"
"http://avalon.apache.org/dtds/meta/type_1_1.dtd" >

<type>
  <info>
    <name>intake</name>
    <version>1.0.0</version>
    <lifestyle collection="liberal"
destruction="terminal">transient</lifestyle>
  </info>
  <services>
    <service type="org.apache.fulcrum.intake.IntakeService"/>
  </services>
  <dependencies>
    <dependency type="org.apache.fulcrum.localization.LocalizationService"/>
  </dependencies>
</type>


So, I am guessing somewhere my block.xml or something isn't properly wiring
things together.  I have checked everything in, so if you build fulcrum, and
then build turbine you'll see teh errors..

Thanks!

Eric Pugh




[DEBUG  ] (fulcrum): implicit entries: 1
[DEBUG  ] (fulcrum): repository declarations: 1
[DEBUG  ] (fulcrum): repository 0 contains 6 entries.
[DEBUG  ] (fulcrum.classloader): classpath:
file:/${user.dir}/./conf/test/merlin/;file:/C:/Documents and Settings/Eric
Pugh/.merlin/repository/merlin/tutorial/jars/hello-1.1.jar;file:/C:/Document
s and Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-mimetype-api-1.0-alpha-4.jar;fi
le:/C:/Documents and Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-mimetype-impl-1.0-alpha-4.jar;f
ile:/C:/Documents and Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-localization-api-1.0-alpha-4.ja
r;file:/C:/Documents and Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-localization-impl-1.0-alpha-4.j
ar;file:/C:/Documents and Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-intake-1.0-alpha-2.jar
[DEBUG  ] (fulcrum.classloader.scanner): scanning:
file:/${user.dir}/./conf/test/merlin/
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric Pugh/.merlin/repository/merlin/tutorial/jars/hello-1.1.jar
[DEBUG  ] (fulcrum.classloader.scanner): type: tutorial.HelloComponent
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-mimetype-api-1.0-alpha-4.jar
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-mimetype-impl-1.0-alpha-4.jar
[DEBUG  ] (fulcrum.classloader.scanner): type:
org.apache.fulcrum.mimetype.DefaultMimeTypeService
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-localization-api-1.0-alpha-4.ja
r
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-localization-impl-1.0-alpha-4.j
ar
[DEBUG  ] (fulcrum.classloader.scanner): type:
org.apache.fulcrum.localization.DefaultLocalizationService
[DEBUG  ] (fulcrum.classloader.scanner): scanning: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-intake-1.0-alpha-2.jar
Turbine/Merlin problem.


---- report -------------------------------------------------------

Exception: org.apache.avalon.merlin.kernel.KernelException
Message: Block install failure:
file:/c:/java/jakarta-turbine-2/./conf/test/merlin/

Cause: org.apache.avalon.composition.model.ModelException
Message: Could not create classloader.

Cause: org.apache.avalon.composition.model.ModelException
Message: Unexpected error while scanning jar file: file:/C:/Documents and
Settings/Eric
Pugh/.merlin/repository/fulcrum/jars/fulcrum-intake-1.0-alpha-2.jar

Cause: java.lang.Exception
Message: Unable to locate resource from which to load info for component
implemented by class "{0}".
---- stack trace ---------------------------------------------------

java.lang.Exception: Unable to locate resource from which to load info for
component implemented by class "{0}".
	at
org.apache.avalon.meta.info.builder.TypeBuilder.buildFromXMLDescriptor(TypeB
uilder.java:186)
	at
org.apache.avalon.meta.info.builder.TypeBuilder.buildType(TypeBuilder.java:1
04)
	at
org.apache.avalon.composition.model.impl.Scanner.addType(Scanner.java:377)
	at
org.apache.avalon.composition.model.impl.Scanner.scanJarFile(Scanner.java:25
8)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


RE: Finding .xinfo files in Turbine test cases

Posted by Eric Pugh <ep...@upstate.com>.
Stephen,

Sorry about that, that is what I get for typing from memory..  Should be
'maven fulcrum:build'...

I tried the reactor just now, and it does all build.  However the xml-rpc
fails, but don't worry about that component.  Also, I tweaked the build so
you can now just type 'maven'.


Eric Pugh

> -----Original Message-----
> From: Stephen McConnell [mailto:mcconnell@apache.org]
> Sent: Sunday, November 16, 2003 8:34 AM
> To: Avalon Developers List
> Subject: Re: Finding .xinfo files in Turbine test cases
>
>
>
>
> Eric Pugh wrote:
>
> >Hi all,
> >
> >I got another glitch/bump!  At this point I have finished
> porting over in
> >Fulcrum the mimetype, localization, factory, intake, configuration
> >components.  They are all cleaned up and nicely use the
> merlin-project.xml.
> >If you run 'maven build-fulcrum' from the root of the Fulcrum project
> >everything works nicely.
> >
>
> Just did a clean checkout of jakarta-turbine-fulcrum then
> invoced maven
> build-fulcrum
>
> F:\dev\jakarta-turbine-fulcrum>maven build-fulcrum
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
>
> BUILD FAILED
> Goal "build-fulcrum" does not exist in this project.
> Total time: 8 seconds
> Finished at: Sun Nov 16 07:30:14 CET 2003
>
> :-(
>
> --
>
> Stephen J. McConnell
> mailto:mcconnell@apache.org
>
> |------------------------------------------------|
> | Magic by Merlin                                |
> | Production by Avalon                           |
> |                                                |
> | http://avalon.apache.org/merlin                |
> | http://dpml.net/                               |
> |------------------------------------------------|
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: Finding .xinfo files in Turbine test cases

Posted by Stephen McConnell <mc...@apache.org>.

Eric Pugh wrote:

>Hi all,
>
>I got another glitch/bump!  At this point I have finished porting over in
>Fulcrum the mimetype, localization, factory, intake, configuration
>components.  They are all cleaned up and nicely use the merlin-project.xml.
>If you run 'maven build-fulcrum' from the root of the Fulcrum project
>everything works nicely.  
>

Just did a clean checkout of jakarta-turbine-fulcrum then invoced maven 
build-fulcrum

F:\dev\jakarta-turbine-fulcrum>maven build-fulcrum
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

BUILD FAILED
Goal "build-fulcrum" does not exist in this project.
Total time: 8 seconds
Finished at: Sun Nov 16 07:30:14 CET 2003

:-(

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org