NoCallDefFoundError for Schema generation

I am trying to use the Tools->Generate XML Schema from Document functionality and when I do I get the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/impl/inst2xsd/Inst2Xsd

Is there some additional setup I need to do?

Build 9732 (8.1)
Using Apple's Java 1.6.0_07

0
3 comments

Hi.

Please check does IDEA system directory (by default ~/Library/Caches/IntelliJIdea8x) contain the file .../webservices/xmlbeans-2.3.0/xbean.jar. Try to restart IDEA if not (file should be restored automatically). Required class is inside that jar.

Alexander.

0
Avatar
Permanently deleted user

I actually discovered the problem shortly after posting (always happens that way). I had imported my settings from a previous settings.jar but I had exported those on a Linux box. So when I imported it had the linux path to that jar in the settings. Upgrading to 8.1.1 changed that xmlbeans path in settings to point to the mac location.

0
Avatar
Permanently deleted user

Had the same problem. I changed idea.system.path in bin/idea.properties, but as it turned out IDEA still tried to use the default path (with ${user.home}). Restarts didn't help (I use IDEA 8.1.4 on Windows XP).
How to fix: go to IDE Settings | Web Services and change Path to Xml Beans to {your_idea.system.path}\webservices\xmlbeans-2.3.0

0

Please sign in to leave a comment.