On 3/5/07, Grzegorz Kossakowski <[EMAIL PROTECTED]> wrote:
Lally Singh napisaƂ(a):
> Is there a similar situation with avalon-framework-impl?  Cocoon will
> build, but as soon as I try and add hibernate/mysql to a simple block,
> it dies.
> org.apache.cocoon.core.container.spring.avalon.ConfigurationReader is
> unable to find
> 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(InputStream,String).
>
There has been an issue with avalon-framework-impl some time ago [1].
First thing I'd suggest is to remove ~/.m2/repository to be sure that
you have not any old junk that interferes. If it not helps would be
great if you provided some details:
1. How do you start your application?
2. How it's build and packaged?
3. The most important: did you created your app with block/webapp
archetype if so, how long ago?


Wow, thanks for the quick response!  The blocks were created from the
"Your first Cocoon application using Maven 2" tutorial[1].  But, I
didn't put in the additional <repository> tags it recommended, which
suddenly solved all my problems.

If anyone's viewing this thread and had this problem, here's my setup:
I made two cocoon blocks, one for the app as a whole, and one
containing some application code, just as specified in the
tutorial[1].

I didn't put in the following parts, which should be in there:
<repositories>
 [...]
 <repository>
   <id>apache.snapshot</id>
   <name>Apache Snapshot Repository</name>
   <url>http://people.apache.org/repo/m2-snapshot-repository</url>
   <releases>
     <!-- excalibur poms are located here -->
     <enabled>true</enabled>
   </releases>
   <snapshots>
     <enabled>true</enabled>
   </snapshots>
 </repository>
 [...]
</repositories>

That solved my problem.

[1] http://cocoon.zones.apache.org/daisy/documentation/g3/1159.html

Reply via email to