Getting an error message while building PhoneGapSample in blackberry Webworks

两盒软妹~` 提交于 2019-12-03 01:19:31

Right click on your project >>> Properties >>> Project Facets >>> uncheck Static web Module

Hope to help.

Regards,

Per neo's comment, install Eclipse Java EE Developer Tools using the Eclipse -> Help -> Install new software -> Work with -> (your Eclipse version's download repository. e.g.:) Indigo.

In the filter field type, then checkbox, Eclipse Java EE Developer Tools.

Download, install, boom: no more errors. Well, not that error, anyway, YMMV.

Edit: Mayoayres added a comment below that may apply if you still get this error despite following these instructions. If you find it helpful, upvote his comment!

In eclipse juno there is some cases the project facets doesn't display any contents...it will give a error named "invalid values for project facets"...So there is a need to do the following

                 project >>> Properties >>> Builders 

and uncheck the faceted project validation builder....

The accepted answer didn't work for me, but I found a solution: you need to install into the Eclipse plugins/ directory the .jar for org.eclipse.jst.j2ee.ejb, because it seems like you need it, but Eclipse WST doesn't properly depend on it, so it is not always installed when it should be.

The issue is completely unrelated to PhoneGap or Blackberry development, by the way.

As a more generic answer, this is because you either imported a project which is dependent on uninstalled Eclipse plugins. I had this issue when migrating to Eclipse Juno. The easiest solution, just edit your .project file in a text editor and remove the conflicting elements. Usually, this is in the buildspec or nature section.

<buildSpec>
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments>
        </arguments>
    </buildCommand>
    <buildCommand>
        <name>org.eclipse.m2e.core.maven2Builder</name>
        <arguments>
        </arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.m2e.core.maven2Nature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Keep a backup of your project file if you're not sure. You may always delete and recreate your project later on. It's easier to remove those references than to find and install the exact missing plugin versions.

In my case I was using Thymeleaf Eclipse plugin for thymeleaf content assist in my project and got these message in Eclipse Juno,

Errors running builder 'Thymeleaf Validation Builder' on project 'site'

Solution:

  1. Select project
  2. Project -> Properties -> Builders
  3. Uncheck the Thymeleaf Validation Builder

Uncheck the builder corresponding to your error message and hopefully your problem gets resolved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!