MyEclipse: Warning MLS missing Message
bijurk - Feb 14, 2012 - 03:34 PM
Post subject: Warning MLS missing Message
MyEclipse Enterprise Workbench
Build id: 10.0-20111028
On opening an existing JSP page I see several of these warnings:
NLS missing message: Obsolete_attribute_name___ERROR_ in: org.eclipse.wst.html.core.internal.HTMLCorePluginResources
Is there a way to get rid of these messages or to fix it?
support-swapna - Feb 15, 2012 - 06:20 AM
The warning messages can be ignored.
Can you please copy paste the contents of the myeclipse.ini file for us to take a look ? The myeclipse.ini file can be found in the same folder as your MyEclipse executable. Open it in any text editor and paste the contents here.
bijurk - Feb 15, 2012 - 01:50 PM
Post subject: NLS Warnings: INI file
While I know these can be ignored, these are interspersed with the other warnings that I would like to address. However there are so many of these in the JSP that it becomes a "needle in the haystack" situation.
Attached is the INI file:
#utf8 (do not remove)
#utf8 (do not remove)
support-swapna - Feb 16, 2012 - 08:59 AM
Thank you for the details.
1) Can you please take a look at this thread,try the suggestion and check if the issue persists ?
2) If you are still seeing the issue, please send us the .log file which is located at <workspace dir>/.metadata/.log for us to investigate further.
bijurk - Feb 16, 2012 - 02:38 PM
Post subject: Tried the
I tried each of the options below:
Rightclick project > Validate.
Project > Clean... and clean selected project.
However, none of these steps helped in alleviating the issue.
I am attaching the log file with filename/extension changed as requested by you.
support-tony - Feb 17, 2012 - 04:49 AM
Thanks for the log file. However, I can see no entries about NLS missing messages. We have traced a problem with the error message that you reported in your opening post, and have raised a bug report for it. Are all of the "NLS missing message" messages exactly the same? If there are others, we'd like to trace the cause of those also. If there are other such messages, can you clear the log file then replicate the problem that produces those messages and attach that log file?
Sorry for the inconvenience.
bijurk - Feb 20, 2012 - 01:45 PM
Post subject: No other types of NLS messages...
I checked the project and logs and did not see any other NLS warning messages.
I will update this post if I find any.
support-tony - Feb 21, 2012 - 03:34 AM
OK, Biju. Thanks.
bijurk - Feb 21, 2012 - 02:36 PM
Post subject: Another issue while saving JSP
Here's the log after I faced another issue while saving a change on a JSP.
Hope this helps as well!
support-tony - Feb 22, 2012 - 05:45 AM
Thanks for the log file but I'm not sure what problem this is related to. If you are not seeing a problem in your use of MyEclipse, then you can disregard the errors. If you are seeing a problem, please provide more details, including screenshots, if appropriate.
raaju76 - May 17, 2012 - 03:13 PM
I am not sure if you got a resolution to your issue or not. I also encountered similar issue when I upgraded to 10.x.
Looks like, 10.x JSP editor treats each JSP as HTML5 (for HTML content) and most of the attributes, you see the NLS missing error, are no longer valid in HTML 5.
if you add the following in the beginning of JSP page then all of your NLS warnings will vanish.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
In my case , i can't do as there are plenty of JSPs and they are included into another main JSPs.
I could not get any solution for that. I got to leave with the warnings in my JSP.
support-tony - May 18, 2012 - 04:26 AM
Thanks for sharing your observations with us, Raju. I'm sure they will be helpful to many users.
havoc77 - May 28, 2012 - 07:52 AM
I am also having this issue.
I have hundreds of jsp pages that do not have a DOCTYPE tag because they are included by other pages.
We need a new setting to specify the default HTML DOCTYPE for a project. This would be a very welcome addition.
support-tony - May 28, 2012 - 01:09 PM
Sorry you are seeing this problem.
I have raised an enhancement request to get something into the next release, though that can't be guaranteed.
There is also an existing bug report for the incorrect message being issued, which should be fixed in the next release.
In the meantime, you can turn off JSP Content validation by right clicking on the project, selecting MyEclipse->Manage Validation, selecting "Enable project specific settings" and then deselecting the JSP Content Validator, for both manual and build. You may need to run validation manually and/or close and open the project to have previous validation markers cleaned up.
I hope this helps.
havoc77 - May 30, 2012 - 05:08 AM
This feature already exists.
Go in to the properties for a web project, and go to Web Content Settings (See attachment)
From here you can select the default DOCTYPE for where no DOCTYPE is declared, and can also select the default CSS level to validate against.
I hope this helps the previous posters.
support-tony - May 30, 2012 - 06:17 AM
Thanks for spotting that, and posting it here. I'd completely overlooked that project property though there is no corresponding workspace-wide setting.
Note that the project may need closing and opening, or MyEclipse may need restarting to see the effect of the setting change, and you may need to kick off the validation manually.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits