Exception in thread "main" java.lang.NoClassDefFoundError

View: New views
1 Messages — Rating Filter:   Alert me  

Exception in thread "main" java.lang.NoClassDefFoundError

by lekkie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have Eclipse ganymede installed and I downloaded m2eclipse plugin to enable eclipse manage Maven projects.

The download was successfully but I can't install Maven projects from within Eclipse. It kept saying this:

constituent12: file:/C:/Program%20Files/Eclipse/Eclipse%203.4/plugins/org.maven.ide.components.maven_embedder_3.0.0.SNAPSHOT-r811512/jars/plexus-cipher-1.4.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/util/FileUtils
at org.apache.cxf.maven_plugin.WsdlOptionLoader.getWsdlFiles(WsdlOptionLoader.java:82)
at org.apache.cxf.maven_plugin.WsdlOptionLoader.load(WsdlOptionLoader.java:72)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.getWsdlOptionsFromDir(WSDL2JavaMojo.java:125)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:103)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:477)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:199)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.FileUtils
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:215)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 19 more

I can authoritatively confirm to you the class is present in that path and that the said file is also present in the jar file.

It also complains of "Settings file doesn't exist. Returning null.". I have no settings.xml in my local repository. How to I setup the file, what is the content, I seriously doubt that is the cause of the error.

At some point during start up, it comes with this error:

\xalan\xalan\2.7.1\xalan-2.7.1.pom error in opening zip file

Any suggestion will be appreciated.

kr,

Lekkie.