hi,
I am having problems with with a declared namespace, in that it is not doing what it should do. Basically I have declared a datetime property in the logic sheet. When the page is called I get not errors, but the value I would have expected to be printed to the screen is not.


When i changed beyarecords:datetime, in the xsp file, to beya:datetime for instance I get an error which says that is is not bound. so by not getting an error when it is beyarecords:datetime, i presumes that the builtin-logicsheet section was being read properly and that the line, <parameter name="href" value="file://usr/local/tomcat/webapps/cocoon/beyarecords/logic/ beyarecords.xsl"/>, was being properly referenced.

I am running tomcat 4.1.24 and cocoon 2.0.4 on os x.

1. xsl file:

<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:xsp="http://apache.org/xsp";
        xmlns:beyarecords="http://samspublishing.com/beyarecords/1.0";
        version="1.0">
        
<xsl:template match="xsp:page">
        
        <xsp:page>
        
                <xsp:apply-templates select="@*"/>
                        
                        <xsp:structure>
                                <xsp:include>java.util.Date</xsp:include>
                        </xsp:structure>
                        
                        <xsp:logic>
                                Date now = new Date();
                        </xsp:logic>
                        
                </xsp:apply-templates/>
        
        </xsp:page>
                
</xsl:/template>

<xsl:template match="beyarecords:datetime">

The time is: <xsp:expr>now</xsp:expr>.

</xsl:template>

<xsl:template match="@*|node()">

        <xsl:copy>
        
                <xsl:apply-templates select="@*|node()"/>
        
        </xsl:copy>

<xsl:template>


<xsl:template match="text()">


<xsl:value-of select="."/>

</xsl:template>

</xsl:stylesheet>

2. xsp file:

<xsp:page language="java"
        xmlns:xsp="http://apache.org/xsp";
        xmlns:beyarecords="http://samspublishing.com/beyarecords/1.0";>

<page>    
    <title>beyaRecords - the home of Urban music</title>            

<content>

        <paragraph>
        <![CDATA[
            Welcome to beyaRecords, the home of all that is r&b
        ]]>  
         </paragraph>

                 <paragraph>
                        <beyarecords:datetime/>
                 </paragraph>
     </content>


</page>


</xsp:page>

3. cocoon.xconf file:

<builtin-logicsheet>
<parameter name="prefix" value="beyarecords"/>
<parameter name="uri" value="http://samspublishing.com/beyarecords/1.0"/>
<parameter name="href" value="file://usr/local/tomcat/webapps/cocoon/beyarecords/logic/ beyarecords.xsl"/>
</builtin-logicsheet>



regards



Uzo On 24 Dec 2003, at 15:51, Ralph Goers wrote:

Why did you configure your authentication-manager in the global-variables
section? The null pointer is because it couldn't find the
authentication-manager configuration.


-----Original Message-----
From: Mr. Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 2:58 AM
To: [EMAIL PROTECTED]
Subject: authentication framework


Hi,


I've got a problem with the authorisation-framework...
In my Sitemap I wrote
the
following
things:

//------------------------------------------------------------
----------------

<map:actions>
        <map:action name="auth-protect"
src="org.apache.cocoon.webapps.authentication.acting.AuthAction">
        </map:actions>

...

<map:component-configurations>
         <global-variables>
             <authentication-manager>
                 <handlers>
                     <handler name="protectHandler">
                         <redirect-to uri="somewhere"/>
                         <authentication
authenticator="mypkg.ProtectAuthenticator"/>
                    </handler>
                </handlers>
             </authentication-manager>
         </global-variables>
</map:component-configurations>

...

<map:match pattern="">
    <map:act type="auth-protect">
    <map:parameter name="handler" value="protectHandler"/>
            <map:call function="main">
                   <map:parameter name="context" value="{1}"/>
            </map:call>



</map:act>
</map:match>

//------------------------------------------------------------
----------------

Is there something missing (in cocoon.xconf?), because
everytime I came on a
protected site, i receive a annoying NullPointerException
with
nomore
specifications
:-(:

//------------------------------------------------------------
----------------

java.lang.NullPointerException



at
org.apache.cocoon.webapps.authentication.components.DefaultHan
dlerManager.prepare(DefaultHandlerManager.java:100)



at
org.apache.cocoon.webapps.authentication.components.DefaultHan
dlerManager.prepareHandlerConfiguration(DefaultHandlerManager.java:85)



at
org.apache.cocoon.webapps.authentication.components.DefaultAut
henticationManager.getHandlerConfigurations(DefaultAuthenticat
ionManager.java:154)



at
org.apache.cocoon.webapps.authentication.components.DefaultAut
henticationManager.getHandlerConfiguration(DefaultAuthenticati
onManager.java:175)



at
org.apache.cocoon.webapps.authentication.components.DefaultAut
henticationManager.checkAuthentication(DefaultAuthenticationMa
nager.java:353)



at
org.apache.cocoon.webapps.authentication.acting.AuthAction.act
(AuthAction.java:102)



at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode
.invoke(ActTypeNode.java:152)



at
org.apache.cocoon.components.treeprocessor.AbstractParentProce
ssingNode.invokeNodes(AbstractParentProcessingNode.java:84)



at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableM
atchNode.invoke(PreparableMatchNode.java:164)



at
org.apache.cocoon.components.treeprocessor.AbstractParentProce
ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)



at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
e.invoke(PipelineNode.java:163)



at
org.apache.cocoon.components.treeprocessor.AbstractParentProce
ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)



at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo
de.invoke(PipelinesNode.java:152)



at
org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
ss(TreeProcessor.java:354)



at
org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
ss(TreeProcessor.java:307)



at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.i
nvoke(MountNode.java:133)



at
org.apache.cocoon.components.treeprocessor.AbstractParentProce
ssingNode.invokeNodes(AbstractParentProcessingNode.java:84)



at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableM
atchNode.invoke(PreparableMatchNode.java:164)



at
org.apache.cocoon.components.treeprocessor.AbstractParentProce
ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)



at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
e.invoke(PipelineNode.java:163)
...

//------------------------------------------------------------
----------------

I'm using cocoon-2.1.3, java 1.4.1.
I hope you can help me with this problem (No, I'm sure), thanks you in
advance and wish a nice Christmas.

Mike

--
+++ GMX - die erste Adresse f�r Mail, Message, More +++
Neu: Preissenkung f�r MMS und FreeMMS! http://www.gmx.net



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


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



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



Reply via email to