cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: session in authentication context
Date Tue, 18 Nov 2003 19:34:33 GMT
Hi,

yes, mergexml is currently not supported by the authentication context.
This is mainly because noone needed it until now (which doesn't mean
that it doesn't make sense, of course). So, if you need this feature,
you have to implement it and we can apply the patch :)

PS: Please post plain mails and not html. Thanks

Carsten
-----Original Message-----
From: julien bloit [mailto:Julien.Bloit@ircam.fr]
Sent: Tuesday, November 18, 2003 4:12 AM
To: dev@cocoon.apache.org
Subject: session in authentication context


Hi, I thought the dev list might be a better place for an insight to this
problem :
I'm using the authentication framework to get and modify authentication data
from a user. I use the sitemap structure shown in the last paragraph of this
page :
http://cocoon.apache.org/2.1/developing/webapps/authentication.html#N103AB

It works fine when the xml file uses <session:getxml> and <session:setxml>
tags. But using the <session:mergexml> tag produces an error. I've tried
upgrading to cocoon 2.1.2, but without progress.


Looking in the code of AuthenticationContext, i found :

public NodeList getNodeList(String path)
throws ProcessingException {
throw new ProcessingException("This method is not supported by the
authenticaton session context.");
}

Does this mean that merging won't be implemented in the session context? Or
is this just a temporary state?

Thank you.

___________ STACK TRACE :

org.apache.cocoon.ProcessingException: This method is not supported by the
authenticaton session context.

at
org.apache.cocoon.webapps.authentication.context.AuthenticationContext.getSi
ngleNode(AuthenticationContext.java:393)

at
org.apache.cocoon.webapps.session.components.DefaultSessionManager.mergeCont
extFragment(DefaultSessionManager.java:399)

at
org.apache.cocoon.webapps.session.transformation.SessionPostTransformer.endT
ransformingElement(SessionPostTransformer.java:279)

at
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractS
AXTransformer.java:358)

at
org.apache.cocoon.webapps.session.transformation.SessionPreTransformer.endEl
ement(SessionPreTransformer.java:127)

at
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318)

at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337)

at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:229)

at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:141)

at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:272)

at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:492)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:147)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:176)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:176)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:163)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:161)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:351)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:304)

at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:130)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:163)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:161)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:351)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:304)

at org.apache.cocoon.Cocoon.process(Cocoon.java:640)

at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)

at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)

at java.lang.Thread.run(Thread.java:536)


Mime
View raw message