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?

5 comments

sorry guys;( the solution:

com.intellij.javaee]]>

0

Sorry to wake up a two years old thread, but did  you have a solution? I am getting this error as well...

0

You need to add dependency on JavaEE plugin to your plugin.xml:

Sorry to wake up a two years old thread, but did  you have a solution? I am getting this error as well...

---
Original message URL: http://www.jetbrains.net/devnet/message/5251767#5251767



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

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.

notes1.png

0

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

0

Please sign in to leave a comment.