Re: Http Facility Problem

Tobias Wolf <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
Hello,

thanks for the responses. I think I get an understanding to the whole 
matter :)

This morning I made a new fresh start:

Deleted .magic
In avalon/trunk made an ant clean

Then:

ant setup -> /home/tobias/.magic was created
ant

Going to avalon/trunk/planet/facilities/http/block
ant

The merlin.properties contains:
merlin.repository = /home/tobias/.magic/main

Now trying:

cd trunk/planet/facilities/http
merlin blocks/demo/target/deliverables/blocks/avalon-http-demo-SNAPSHOT.block 
-config blocks/demo/etc/config.xml  -debug

----------------- output snip---------------------------------------------
[DEBUG  ] (demo): including composite block: 
file:/home/tobias/.magic/main/avalon/http/blocks/avalon-http-server-SNAPSHOT.block
[DEBUG  ] (demo): installing: server
[DEBUG  ] (kernel.logger): adding category [demo.server]
[DEBUG  ] (kernel.logger): adding category [demo.server]
[DEBUG  ] (demo.server): creating child classloader for: [default-server]
[DEBUG  ] (demo.server.classloader): base: ${merlin.dir}
---- exception report 
----------------------------------------------------------
Exception: org.apache.avalon.merlin.KernelException
Message: Install failure: 
file:/home/tobias/usr/src/trunk/planet/facilities/http/blocks/demo/target/deliverables/blocks/avalon-http-demo-SNAPSHOT.block
---- cause 
---------------------------------------------------------------------
Exception: org.apache.avalon.composition.model.ModelException
Message: Could not create classloader.
---- cause 
---------------------------------------------------------------------
Exception: org.apache.avalon.repository.RepositoryException
Message: Unknown artifact: 
[artifact:jar:avalon/http/avalon-http-server#SNAPSHOT].
---- stack trace 
---------------------------------------------------------------
org.apache.avalon.repository.RepositoryException: Unknown artifact: 
[artifact:jar:avalon/http/avalon-http-server#SNAPSHOT].
-------------------------- snap -----------------------------------------

Somehow I am missing the artifact-jar avalon/http/avalon-http-server#SNAPSHOT. 
I can't find it in the .magic/main tree, neither in any directory of the 
avalon/trunk-tree :( 

I am quite at a loss how to build this artifact. This seems not to be done if 
one executes ant from a top level position.

Then I examine the output of the ant-runs I find a section that contains the 
output for http-server. But there only the avalon-http-server-SNAPSHOT.block 
is copied to .magic/main/avalon/http/blocks.

------------------------------------------------------------------------
name: avalon-http-server
------------------------------------------------------------------------

init:

prepare:

standard.build:

build:
  [x:block] creating plugin declaration

package:

test:

install:
[x:install] Copying 1 file to /home/tobias/.magic/main/avalon/http


Tobias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.