Hello,

I am running Cocoon 2.1.5 with Tomcat 5.0.19.  I'm
trying to load profiles for users from mysql (ver:
4.1.4-gamma-Max) rather then from filesystem (original
setup on cocoon).  So i've changed "load-user-profile"
 pipeline in portal/. to:

<map:match pattern="load-user-profile">
<!--                        
        <map:generate
src="profiles/{request-param:profile}/{request-param:portal}-user-{request-param:user}.xml"/>
-->
        <map:generate
src="resources/interfaces/mysql/load-user-profile.xml"/>
        <map:transform
src="resources/interfaces/mysql/apply_user.xsl">
                <map:parameter name="userName"
value="{request-param:user}"/>
                <map:parameter name="profile"
value="{request-param:profile}"/>
        </map:transform>
        <map:transform type="sql">
                <map:parameter name="use-connection"
value="personnel"/>
                <map:parameter name="show-nr-of-rows" value="true"/>

        </map:transform>
        <map:transform
src="resources/interfaces/mysql/namespaces.xsl"/>
        <map:transform
src="resources/interfaces/mysql/extractXML.xsl"/>
        <map:serialize type="xml"/>
</map:match>

instead of what is commented out.  I've checked the
pipeline and it returns exact xml just like in portal
xml files in profiles for user = "anonymous" and
profile = "copletinstancedata | layout".  In portal
sitemap it does not whant to work though.  The error
that i'm getting is: 
org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:
org.apache.avalon.framework.CascadingRuntimeException:
Exception during loading of profile.

cause: org.xml.sax.SAXException: Parsing Error :
Premature end of file. Line : -1 Column : -1 {file:
[not available]; line: [not available]; column: [not
available]}

...although the xml it's getting is the same as in
profiles folders...  I would appreciate any
suggestions or new ideas...  Thank you...

Regards,

Anton Andreev

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

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

Reply via email to