Why I get NoClassDefFoundError for WebFacet when I run my plugin?
I have VirtualFileAdapter that needs to do something with files, but only if managed by webfacet. I copied some code from WebUtil, and have this exception when I run the plugin:
java.lang.NoClassDefFoundError: com/intellij/javaee/web/facet/WebFacet
Why when compilation works fine?
请先登录再写评论。
sorry guys;( the solution:
com.intellij.javaee]]>
Sorry to wake up a two years old thread, but did you have a solution? I am getting this error as well...
You need to add dependency on JavaEE plugin to your plugin.xml:
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks for the quick reply. Sorry, but I can't see your xml or anything... I am assuming there should be a snippet of some sort, but on FireFox/Linux Fedora 11 it's empty. See attached screenie.

I got it sorted now. I am looking at the sources of the Wicket plugin, which helps me a lot. Cheers!