You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2006/11/30 17:42:39 UTC

DO NOT REPLY [Bug 41085] New: - Fallback not working correctly.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085

           Summary: Fallback not working correctly.
           Product: Lenya
           Version: 1.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Miscellaneous
        AssignedTo: dev@lenya.apache.org
        ReportedBy: richard.frovarp@sendit.nodak.edu


I have three pubs. default -> edchanges -> dark. Default is the base from a
fresh checkout. edchanges contains usecase changes but does not contain an xslt
directory. It should be getting its layout from default. dark does have an xslt
directory and files. If I start up Lenya and go to edchanges it grabs it from
default, if I then go to dark, it gets it from default (wrong since it has its
own). If I start up Lenya and go to dark it grabs its own layout. If I then go
to edchanges or default it grabs the layout from dark, which is falling forward.

Under the second situation, I see the following in the logs:

SocketListener0-9 DEBUG core.xslt - resolve(href =
fallback://xslt/page2xhtml.xsl, base =
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/default/xslt
/page2xhtml-xhtml.xsl); resolver =
org.apache.cocoon.components.CocoonComponentManager@30b601
SocketListener0-9 DEBUG core.manager - Resolving
'fallback://xslt/page2xhtml.xsl' with base
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges
/' in context 'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - ComponentFactory creating new instance of
org.apache.lenya.cms.cocoon.source.FallbackSourceFactory.
SocketListener0-9 DEBUG core.manager - logger attribute is lenya.source.fallback
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
fallback://xslt/page2xhtml.xsl
SocketListener0-9 DEBUG source.fallback - Location:    
[fallback://xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG source.fallback - Path:         [xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - ComponentFactory creating new instance of
org.apache.lenya.cms.publication.templating.PublicationTemplateManagerImpl.
SocketListener0-9 DEBUG core.manager - logger attribute is
lenya.publication.templatemanager
SocketListener0-9 DEBUG core.manager - ComponentFactory creating new instance of
org.apache.lenya.cms.publication.DocumentManagerImpl.
SocketListener0-9 DEBUG core.manager - no logger attribute available, using
standard logger
SocketListener0-9 DEBUG core.manager - ComponentFactory decommissioning instance
of org.apache.lenya.cms.publication.DocumentManagerImpl.
SocketListener0-9 DEBUG publication.templatemanager - Trying to resolve URI
[context://lenya/pubs/dark/xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - Resolving
'context://lenya/pubs/dark/xslt/page2xhtml.xsl' with base
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya
/pubs/edchanges/' in context 'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
context://lenya/pubs/dark/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG core.manager - Creating source object for
context://lenya/pubs/dark/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG servlet.ServletHandler - getRealPath of
//lenya/pubs/dark/xslt/page2xhtml.xsl in
org.mortbay.jetty.servlet.WebApplicationHandler@153f67e
SocketListener0-9 DEBUG core.manager - Resolving
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/dark/xslt/page2xhtml.xsl'
with base 'file:/home/rfro
varp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/dark/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG publication.templatemanager - Trying to resolve URI
[context://lenya/pubs/edchanges/xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - Resolving
'context://lenya/pubs/edchanges/xslt/page2xhtml.xsl' with base
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/
lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
context://lenya/pubs/edchanges/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG core.manager - Creating source object for
context://lenya/pubs/edchanges/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG servlet.ServletHandler - getRealPath of
//lenya/pubs/edchanges/xslt/page2xhtml.xsl in
org.mortbay.jetty.servlet.WebApplicationHandler@153f67
e
SocketListener0-9 DEBUG core.manager - Resolving
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/xslt/page2xhtml.xsl'
with base 'file:/home
/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG publication.templatemanager - Trying to resolve URI
[context://lenya/pubs/default/xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - Resolving
'context://lenya/pubs/default/xslt/page2xhtml.xsl' with base
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/le
nya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
context://lenya/pubs/default/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG core.manager - Creating source object for
context://lenya/pubs/default/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG servlet.ServletHandler - getRealPath of
//lenya/pubs/default/xslt/page2xhtml.xsl in
org.mortbay.jetty.servlet.WebApplicationHandler@153f67e
SocketListener0-9 DEBUG core.manager - Resolving
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/default/xslt/page2xhtml.xsl'
with base 'file:/home/r
frovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/default/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG publication.templatemanager - Trying to resolve URI
[context:///xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - Resolving
'context:///xslt/page2xhtml.xsl' with base
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges
/' in context 'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
context:///xslt/page2xhtml.xsl
SocketListener0-9 DEBUG core.manager - Creating source object for
context:///xslt/page2xhtml.xsl
SocketListener0-9 DEBUG servlet.ServletHandler - getRealPath of
///xslt/page2xhtml.xsl in org.mortbay.jetty.servlet.WebApplicationHandler@153f67e
SocketListener0-9 DEBUG core.manager - Resolving
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/xslt/page2xhtml.xsl' with
base 'file:/home/rfrovarp/lenya-1.4.x
/build/lenya/webapp/lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG source.fallback - Resolved URI: 
[file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/dark/xslt/page2xhtml.xsl]
SocketListener0-9 DEBUG core.manager - Resolving
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/dark/xslt/page2xhtml.xsl'
with base 'file:/home/rfro
varp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/edchanges/' in context
'file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/'
SocketListener0-9 DEBUG core.manager - Resolved to systemID :
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/lenya/pubs/dark/xslt/page2xhtml.xsl
SocketListener0-9 DEBUG core.manager - ComponentFactory decommissioning instance
of org.apache.lenya.cms.publication.templating.PublicationTemplateManagerImpl.
SocketListener0-9 DEBUG source.fallback - Processing time: 06:00:00.3
SocketListener0-9 DEBUG core.manager - ComponentFactory decommissioning instance
of org.apache.lenya.cms.cocoon.source.FallbackSourceFactory.
SocketListener0-9 DEBUG core.xslt - xslSource =
org.apache.excalibur.source.impl.FileSource@13e3940, system id =
file:/home/rfrovarp/lenya-1.4.x/build/lenya/webapp/
lenya/pubs/dark/xslt/page2xhtml.xsl

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From richard.frovarp@sendit.nodak.edu  2006-11-30 10:26 -------
However, if I make a change to the template, the change is reflected on the page
using a reload. That is if the change is made to the one template it insists on
using.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From andreas@apache.org  2006-11-30 08:48 -------
This looks like a caching issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From richard.frovarp@sendit.nodak.edu  2006-11-30 10:15 -------
It might be. I have dark, elegant, and gloss as siblings. They are all using
their correct template. The parent is not grabbing from default. default is
using its template correctly at this moment.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From richard.frovarp@sendit.nodak.edu  2006-11-30 21:43 -------
I found the problem and a work around. Not entirely sure what other areas are
affected. It would appear that it might be a caching issue. I really couldn't
track much down in the code or the logs. I did not have a
pubname/xslt/page2xhtml-xhtml.xsl file. I figured the one in the default
publication was good enough. As soon as I copied
default/xslt/page2xhtml-xhtml.xsl into pubname/xslt/page2xhtml-xhtml.xsl
everything works. The 5 siblings now look like they should. I will need to
verify this against the static HTML templates tomorrow.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From dhc4z@virginia.edu  2006-12-01 09:48 -------
I believe that this is a caching problem, but with cocoon caching the xslt.  I
believe that I have run into your problem in the past and resolved it by setting
the xslt use-store parameter to false for my xslt processor in cocoon.xconf

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085





------- Additional Comments From richard.frovarp@sendit.nodak.edu  2006-11-30 10:22 -------
Nope, I was wrong. They are pulling in the correct images and CSS, but not the
correct XSLT. It is using the first one I requested.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085


richard.frovarp@sendit.nodak.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From richard.frovarp@sendit.nodak.edu  2006-12-01 09:19 -------
Copying the page2xhtml-xhtml.xsl file into the derived publications removes the
problem. It makes sense from a performance standpoint to not have the fallbacks
go back and forth for something that is this easy to fix. People just need to
keep in mind that falling back then expecting that to fallback back up the tree
for XSLT doesn't work properly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 41085] - Fallback not working correctly.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41085


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4                         |2.0
            Version|1.4                         |2.0




------- Additional Comments From thorsten@apache.org  2007-07-16 01:59 -------
Renaming Lenya 1.4 to 2.0

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org