Disclaimer: I am not in the least familiar with the
mail component that you are trying to install.  I'm
just looking at your general situation of trying to
debug roles configuration at startup.

But, 

--- Kjetil Kjernsmo <[EMAIL PROTECTED]> wrote:
> On Friday 18 October 2002 05:46, Geoff Howard wrote:
> > Is the directory really named ...cxa/components...
> > (plural) while the package name cxa.component...
> > (singular)?  If so, there's your typo.
> 
> Arrgh! Yeah, you know, sometimes you shouldn't stare
> but rather go to 
> bed... :-) It seems that plural is used more
> frequently elsewhere... 
> 
> Unfortunately, it didn't correct the problem. 

It may have - try stopping your servlet engine,
deleting the work directory and restarting.  This
shouldn't be necessary, but sometimes it is currently.

> I am now quite confident that myroles.xconf is
> loaded, because if I drop 
> WEB-INF/ from it's path, it complains explicitly
> that it isn't found, 
> which should mean that it is found when I include
> WEB-INF/ .

Well, that only tells you that myroles.xconf is found
and it's trying to load.  The first error below
explicitly says that it didn't load: Error trying to
load user-roles configuration

> I get another error message now that I didn't see
> before. 
> 
> ERROR   (2002-10-18) 11:59.20:465   [access]
> (Unknown-URI) 
> Unknown-thread/CocoonServlet: Exception reloading
>
org.apache.avalon.framework.configuration.ConfigurationException:
> Error 
> trying to load user-roles configuration
> 

I'd double check your myroles.xconf for typos :) etc. 
You may also want to check the archives for recent
problems loading user roles - it may be that the basic
mechanism isn't working?  Haven't done it in a while.

This next FileNotFound may be a misleading error
message - it may be that the failure to load condition
above is later on in the code incorrectly assumed to
be identical to FileNotFound.

> It is something that it can't find, because I get an
> 
> FileNotFoundException further down, and this is in
> addition to the 
> other error message:
> ERROR   (2002-10-18) 11:59.20:423   [core]
> (Unknown-URI) 
> Unknown-thread/Cocoon: Could not configure Cocoon
> environment with user 
> roles file
> java.io.FileNotFoundException
>         at 
>
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
> 
> 
> But what is it that it can't find, and why....? 
> BTW, how is cocoon supposed to find the mail.jar?
> From the shorthand 
> name and the fact that it is in WEB-INF/lib only? I
> haven't told it 
> anything other than that...?

Unless I misunderstand the issue, it's not looking for
mail.jar - it just places all jars in /lib on the
classpath at startup and then it will be able to find
any package names it needs there, along with other
jars.  If it's not too long, can you copy mroles.xconf
here?

> I'm wondering, could it be something that is not
> really my fault...:
> In the first comment of cocoon.xconf, there is a
> line that says:
>      - webapp/cocoon.xconf (this file) - describes
> each core component
> but cocoon.xconf isn't there anymore, it is in
> WEB-INF/ Obviously, this 
> is just a comment, so it doesn't have to have
> anything to do with the 
> code, I'm just wondering.

Obviously the comment was not updated since xconf was
moved, but that isn't the problem.  The basic idea
though that the mail component isn't working correctly
with 2.1 dev is a very likely possibility.  Isn't the
book based on 2.0.3?

Geoff

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to