Dashboard > SiteMesh > Server Compatibility
  SiteMesh Log In View a printable version of the current page.  
  Server Compatibility
Added by Scott Farquhar, last edited by Zohar Melamed on Aug 10, 2004  (view change)
Labels: 
(None)

Here we can keep a running account of which servers have problems running Sitemesh.

Weblogic

WL 7.0 SP4

  • Currently does not set encoding for html documents, as a result sitemesh does not parse them. This may be fixed in SP5 (not yet investigated). A work around would be to have a filter that runs after sitemesh that manually sets the content type to text/html for all pages that end with '.html'.
  • Encoding if set by a filter does not get picked up. Weblogic even converts invalid characters to question marks internally, so there's not much that can be done here. You will have to set the encoding manually in each page if you want to use i18n'd pages with Sitemesh

Websphere 5.1.0

 [junit] Testsuite: testsuite.sitemesh.SiteMeshTestSuite
 [junit] Tests run: 32, Failures: 2, Errors: 4, Time elapsed: 10.328 sec

 [junit] Testcase: testStandardJsp took 3.609 sec
 [junit] Testcase: testErrorMessage took 0.016 sec
 [junit] Testcase: testNotFound took 0 sec
 [junit] Testcase: testPlainTextPage took 0.015 sec
 [junit] Testcase: testWelcomePage took 1.453 sec
 [junit]     Caused an ERROR
 [junit] the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit] electric.xml.ParseException: the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit]     at electric.xml.Document.parse(Document.java:167)
 [junit]     at electric.xml.Document.<init>(Document.java:129)
 [junit]     at testsuite.tester.WebTest.getDocument(WebTest.java:47)
 [junit]     at testsuite.sitemesh.WelcomePageTest.checkPage(WelcomePageTest.java:24)
 [junit]     at testsuite.sitemesh.WelcomePageTest.testWelcomePage(WelcomePageTest.java:15)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testWelcomePageTestcase: testWelcomePageWithoutTrailingSlash took 0.016 sec
 [junit]     Caused an ERROR
 [junit] the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit] electric.xml.ParseException: the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit]     at electric.xml.Document.parse(Document.java:167)
 [junit]     at electric.xml.Document.<init>(Document.java:129)
 [junit]     at testsuite.tester.WebTest.getDocument(WebTest.java:47)
 [junit]     at testsuite.sitemesh.WelcomePageTest.checkPage(WelcomePageTest.java:24)
 [junit]     at testsuite.sitemesh.WelcomePageTest.testWelcomePageWithoutTrailingSlash(WelcomePageTest.java:19)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testWelcomePageWithoutTrailingSlashTestcase: testCompleteContentFromUndecoratedPageUsingWriter too
.016 sec
 [junit] Testcase: testCompleteContentFromUndecoratedPageUsingStream took 0 sec
 [junit] Testcase: testContentMatchesContentLengthUsingWriter took 0 sec
 [junit] Testcase: testContentMatchesContentLengthUsingStream took 0.015 sec
 [junit] Testcase: testCompleteHtmlPage took 0 sec
 [junit] Testcase: testHtmlWithTitleAndBodyContentsOnly took 0.016 sec
 [junit] Testcase: testHtmlWithBodyContentsOnly took 0.015 sec
 [junit] Testcase: testDocumentWithInternationalizedCharactersUsingInlineEncodingDeclaration took 0.016 sec
 [junit] Testcase: testDocumentWithInternationalizedCharactersUsingEncodingFilter took 0.031 sec
 [junit] Testcase: testExcludePattern took 0.016 sec
 [junit] Testcase: testStaticPage took 0.016 sec
 [junit]     FAILED
 [junit] expected:<[:: Simple page ::]> but was:<Simple page>
 [junit] junit.framework.ComparisonFailure: expected:<[:: Simple page ::]> but was:<Simple page>
 [junit]     at testsuite.sitemesh.SimpleDecoratorTest.testStaticPage(SimpleDecoratorTest.java:106)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testStaticPageTestcase: testInlineContentDecoratedInDecorator took 0.031 sec
 [junit] Testcase: testJspIncludedContentedDecoratedInDecorator took 0.015 sec
 [junit] Testcase: testSitemeshIncludedContentDecoratedInDecorator took 0.032 sec
 [junit] Testcase: testInlineContentedDecoratedInContent took 0.015 sec
 [junit] Testcase: testInlineDecoratorWithInternationalizedCharacters took 0.016 sec
 [junit] Testcase: testIncludedContentFromOutputStreamAndWriterOnJspPage took 0.031 sec
 [junit] Testcase: testIncludedContentFromOutputStreamAndWriterOnStaticPage took 0 sec
 [junit]     FAILED
 [junit] expected:<{inline7} ...> but was:<...>
 [junit] junit.framework.ComparisonFailure: expected:<{inline7} ...> but was:<...>
 [junit]     at testsuite.sitemesh.InlineDecoratorTest.testIncludedContentFromOutputStreamAndWriterOnStaticPage(Inlin
coratorTest.java:101)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testIncludedContentFromOutputStreamAndWriterOnStaticPageTestcase: testRedirectedPage took 0.016 se

 [junit] Testcase: testRequestDispatcherForwardedPage took 0 sec
 [junit]     Caused an ERROR
 [junit] the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit] electric.xml.ParseException: the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit]     at electric.xml.Document.parse(Document.java:167)
 [junit]     at electric.xml.Document.<init>(Document.java:129)
 [junit]     at testsuite.tester.WebTest.getDocument(WebTest.java:47)
 [junit]     at testsuite.sitemesh.RedirectTest.checkPage(RedirectTest.java:36)
 [junit]     at testsuite.sitemesh.RedirectTest.testRequestDispatcherForwardedPage(RedirectTest.java:19)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testRequestDispatcherForwardedPageTestcase: testRequestDispatcherIncludedPage took 0.922 sec
 [junit] Testcase: testPageContextForwardedPage took 0.781 sec
 [junit]     Caused an ERROR
 [junit] the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit] electric.xml.ParseException: the document does not have exactly one root
 [junit] line 2, char 1: ...
 [junit]     at electric.xml.Document.parse(Document.java:167)
 [junit]     at electric.xml.Document.<init>(Document.java:129)
 [junit]     at testsuite.tester.WebTest.getDocument(WebTest.java:47)
 [junit]     at testsuite.sitemesh.RedirectTest.checkPage(RedirectTest.java:36)
 [junit]     at testsuite.sitemesh.RedirectTest.testPageContextForwardedPage(RedirectTest.java:27)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$2.run(SiteMeshTestSuite.java:41)
 [junit]     at testsuite.sitemesh.SiteMeshTestSuite$1.run(SiteMeshTestSuite.java:28)

 [junit] Testcase: testPageContextForwardedPageTestcase: testPageContextIncludedPage took 0.797 sec
 [junit] Testcase: testImageIsDownloadedIntact took 0.031 sec
 [junit] Testcase: testVelocityDecoratedPage took 1 sec
 [junit] Testcase: testFreemarkerDecoratedPage took 1.344 sec
 [junit] TEST testsuite.sitemesh.SiteMeshTestSuite FAILED

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators