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?
Thanks,
Bijusupport-swapna - Feb 15, 2012 - 06:20 AM Post subject:
Biju,
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
Hello:
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)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-install
C:\MyEclipse\MyEclipse 10
-vm
C:\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe
-configuration
C:\MyEclipse\MyEclipse 10\configuration
-vmargs
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignoresupport-swapna - Feb 16, 2012 - 08:59 AM Post subject:
Biju,
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
Swapna:
I tried each of the options below:
Close/reopen project.
Rightclick project > Validate.
Project > Clean... and clean selected project.
Restart Eclipse.
However, none of these steps helped in alleviating the issue.
I am attaching the log file with filename/extension changed as requested by you.
Thanks,
Bijusupport-tony - Feb 17, 2012 - 04:49 AM Post subject:
Biju,
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...
Tony:
I checked the project and logs and did not see any other NLS warning messages.
I will update this post if I find any.
Thanks,
Bijusupport-tony - Feb 21, 2012 - 03:34 AM Post subject:
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!
Thanks,
Bijusupport-tony - Feb 22, 2012 - 05:45 AM Post subject:
Biju,
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 Post subject:
Biju,
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.
regards
Rajusupport-tony - May 18, 2012 - 04:26 AM Post subject:
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 Post subject:
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 Post subject:
havoc77,
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 Post subject:
Problem Solved!!!
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 Post subject:
havoc77,
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.