cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Bowler" <paulbow...@www.aventix.co.uk>
Subject Authentication problem (cocoon 2.1)
Date Wed, 09 Apr 2003 08:45:53 GMT
Having tried, and failed, to get authentication working on 2.0.4 I upgraded 
to the 2.1 dev release, following instructions to the letter from previous 
posts to this group.

However, I am still having problems.

The error I'm getting is 'Handler information not found'. I cannot find any 
reference to this anywhere.

My sitemap is included below, and I would be very grateful if someone could 
tell me what is wrong as I am close to giving up and going back to struts!

Thanks.

Paul.

<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
	<!-- =========================== Components 
================================ -->
	<map:components>
		<map:generators default="file"/>
		<map:actions>
			<!-- <map:action name="register" 
src="com.aventix.cocoon.action.Register"/> -->
			<map:action name="session" 
src="org.apache.cocoon.webapps.session.acting.SessionAction"/>
			<map:action name="session-form" 
src="org.apache.cocoon.webapps.session.acting.SessionFormAction"/>
			<map:action name="auth-protect" 
src="org.apache.cocoon.webapps.authentication.acting.AuthAction"/>
			<map:action name="auth-login" 
src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
			<map:action name="auth-logout" 
src="org.apache.cocoon.webapps.authentication.acting.LogoutAction"/>
			<map:action name="auth-loggedIn" 
src="org.apache.cocoon.webapps.authentication.acting.LoggedInAction"/>
		</map:actions>
		<map:transformers default="xslt"/>
		<map:readers default="resource"/>
		<map:serializers default="html"/>
		<map:selectors default="browser"/>
		<map:matchers default="wildcard"/>
	</map:components>
	<!-- =========================== Pipelines 
================================= -->
	<map:pipelines>
		<map:component-configurations>
			<authentication-manager>
				<handlers>
					<handler name="global">
						<redirect-to 
uri="cocoon://login/login.xml"/>
						<authentication 
uri="cocoon:raw://login/authuser"/>
					</handler>
				</handlers>
			</authentication-manager>
		</map:component-configurations>
		<map:pipeline>
			<map:match pattern="login/authuser">
				<map:read src="documents/login/user.xml"/>
			</map:match>
			<map:match pattern="manage">
				<map:act type="auth-protect">
					<map:generate 
src="documents/manage/manage.xml"/>
					<map:transform 
src="documents/manage/manage.xslt"/>
					<map:serialize/>
				</map:act>
			</map:match>
			<map:match pattern="login/login.xml">
				<map:generate 
src="documents/login/login.xml"/>
				<map:transform 
src="documents/login/login.xslt"/>
				<map:serialize/>
			</map:match>
			<map:match pattern="login/submit">
				<map:act type="auth-login">
					<map:parameter name="handler" 
value="global"/>
					<map:parameter 
name="parameter_userid" value="{request-param:name}"/>
					<map:parameter 
name="parameter_password" value="{request-param:password}"/>
					<map:redirect-to uri="manage"/>
				</map:act>
				<map:generate 
src="documents/login/login.xml"/>
				<map:transform 
src="documents/login/error.xslt"/>
				<map:serialize/>
			</map:match>
		</map:pipeline>
	</map:pipelines>
</map:sitemap>


--
Paul Bowler
Aventix Associates Ltd

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message