Titlecommonheader.jsp: "This attribute is not recognized." error message (WebLogic)
Date14-Jun-2006 01:47:27 EEST
Versionv2.4.13 (latest) & 2.4.6 (*beta)
Submitter199.43.48.86
Bug criticalityBadBug
Browser versionIE6
Bug statusClosedBug
PageProvider usedVersioningFileProvider
Servlet ContainerWebLogic v9.1
Operating SystemSparc Solaris9.
URLMain
Java version1.5.0_04

I cannot get 2.4 versions of JSPWiki to work under WebLogic 9.1.0.

The following errors are appear in the WebLogic server log when opening the main page on the wiki:

<commonheader.jsp:66:106: This attribute is not recognized. <link rel="alternate stylesheet" type="text/css" href="<wiki:Link format="url" templatefile="<%="skins/"+skinName+"/skin.css"%>"/> title="<%=skinName%>" /> ^---^ commonheader.jsp:66:114: This attribute is not recognized. <link rel="alternate stylesheet" type="text/css" href="<wiki:Link format="url" templatefile="<%="skins/"+skinName+"/skin.css"%>"/> title="<%=skinName%>" /> ^------^ commonheader.jsp:66:125: This attribute is not recognized. <link rel="alternate stylesheet" type="text/css" href="<wiki:Link format="url" templatefile="<%="skins/"+skinName+"/skin.css"%>"/> title="<%=skinName%>" /> ^------^ commonheader.jsp:73:56: This attribute is not recognized. href="<wiki:Link format="url" templatefile="<%="skins/"+prefSkinName%>"/>" /> ^---^ commonheader.jsp:73:64: This attribute is not recognized. href="<wiki:Link format="url" templatefile="<%="skins/"+prefSkinName%>"/>" /> ^----------^ >


I have a similar problem with this JSP, commonheader.jsp at(66,123) , when I run JSPWiki in WebSphere (6.0.2.9). The following message pops up: com.ibm.ws.jsp.JspCoreException: /templates/default/commonheader.jsp(66,123) JSPG0055E: Unable to create an xml attribute from name [skins/] value [+skinName+]

part of the stacktrace: com.ibm.ws.jsp.JspCoreException: /templates/default/commonheader.jsp(66,123) JSPG0055E: Unable to create an xml attribute from name [skins/] value [+skinName+]
at com.ibm.ws.jsp.translator.document.Jsp2Dom.getJspDocumentAsJspPage(Jsp2Dom.java:290)
at com.ibm.ws.jsp.translator.document.Jsp2Dom.getJspDocument(Jsp2Dom.java:170)
at com.ibm.ws.jsp.translator.JspTranslator.<init>(JspTranslator.java:67)
at com.ibm.ws.jsp.translator.JspTranslatorFactory.createTranslator(JspTranslatorFactory.java:112)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:167)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:81)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:360)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper._checkForTranslation(JSPExtensionServletWrapper.java:329)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:225)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:144)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:613) ............and a few dozen more....

I'm not a JSP expert, I have no idea what the cause is. I have tried to remove this line 66 from the JSP, the I do get a working page, but other JSP's also fail.

--Harry Metske

--HarryMetske, 29-Jun-2006


Harry,

check following thread in the maillist for this problem:
http://www.ecyrd.com/pipermail/jspwiki-users/2006-June/002198.html

cheers,

-- Marc Patteet


Changed it, and now it works, great support ! I did find another bug of the same kind in PreferencesContent.jsp at line 18.

Do these bugs/changes get fixed in next releases ?

regards, Harry

--HarryMetske, 29-Jun-2006


I also reported the 'bug' in PreferencesContent.jsp (http://www.ecyrd.com/pipermail/jspwiki-users/2006-June/002205.html).
I hope this get fixed too, the problem is that most users use Tomcat, that does not complain about these kind of errors, so it has lower priority I guess.

regards,
Marc


Difficult to fix since I don't have access to WebLogic. A patch file would be appreciated.

-- JanneJalkanen


Janne,
this is the output of the diff:

18c18
< <wiki:TabbedSection defaultTab='<%=request.getParameter("tab")%>'>
---
> <wiki:TabbedSection defaultTab="<%=request.getParameter("tab")%>">

regards,
--MP, 20-Jun-2006


Fixed in 2.4.18.


I found 3 additional JSP's with the same problem:
InfoContent.jsp :
41c41
< <wiki:TabbedSection defaultTab="<%=request.getParameter("tab")%>">
---
> <wiki:TabbedSection defaultTab='<%=request.getParameter("tab")%>'>


ViewTemplate.jsp :
28c28
< <img src="<wiki:Link format="url" jsp="images/jspwiki_logo_s.png"/>"
---
> <img src="<wiki:Link format='url' jsp='images/jspwiki_logo_s.png'/>"


commonheader.jsp :
66c66
< <link rel="alternate stylesheet" type="text/css" href="<wiki:Link format="url" templatefile="<%="skins/"+skinName+"/skin.css"%>"/> title="<%=skinName%>" />
---
> <link rel="alternate stylesheet" type="text/css" href="<wiki:Link format='url' templatefile='<%="skins/"+skinName+"/skin.css"%>'/>" title="<%=skinName%>" />
73c73
< href="<wiki:Link format="url" templatefile="<%="skins/"+prefSkinName%>"/>" />
---
> href="<wiki:Link format='url' templatefile='<%="skins/"+prefSkinName%>'/>" />

--Harry

--Harry Metske, 03-Jul-2006


Thanks guys. However, could you please post the diffs in "diff -u" format in the future? That's the easiest way to get the patch in.

-- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-11) was last changed on 03-Jul-2006 19:23 by Janne Jalkanen