9 Replies Latest reply on Feb 11, 2015 12:07 PM by shreepads

    Jboss Tools JAX-RS issue in Eclipse

    shreepads Newbie

      Hi

       

      Am running Eclipse Luna (4.4.1) with the latest JBoss Tools (have checked updates and there are none).

      FYI this is on Fedora 21 with the standard openJDK from the repos and Wildfly 8.2.0.

       

      I have an existing Project when I try to enable the JAX-RS facets from the project properties I get the following error:

      "An internal error occurred during: "JAX-RS Metamodel build...". org/apache/lucene/analysis/standard/StandardAnalyzer"

       

      In the Eclipse .log file I see

      !ENTRY org.eclipse.core.jobs 4 2 2015-01-31 18:16:35.305

      !MESSAGE An internal error occurred during: "JAX-RS Metamodel build...".

      !STACK 0

      java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer

          at org.jboss.tools.ws.jaxrs.core.internal.metamodel.domain.JaxrsMetamodel.<init>(JaxrsMetamodel.java:163)

          at org.jboss.tools.ws.jaxrs.core.internal.metamodel.domain.JaxrsMetamodel.create(JaxrsMetamodel.java:278)

          at org.jboss.tools.ws.jaxrs.core.metamodel.domain.JaxrsMetamodelLocator.get(JaxrsMetamodelLocator.java:116)

          at org.jboss.tools.ws.jaxrs.core.internal.metamodel.builder.ResourceChangedBuildJob.run(ResourceChangedBuildJob.java:68)

          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.standard.StandardAnalyzer cannot be found by org.jboss.tools.ws.jaxrs.core_1.7.2.Final-v20150108-2329-B81

          at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)

          at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)

          at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)

          at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

          ... 5 more

       

      I've looked in the ~/.eclipse/org.eclipse.platform_793567567_linux_gtk_x86_64/plugins directory and can see "org.apache.lucene.core_3.5.0.v20120725-1805.jar" in there. The manifest file in this JAR contains:

       

      Export-Package: org.apache.lucene;version="3.5.0",org.apache.lucene.an

      alysis;version="3.5.0",org.apache.lucene.analysis.standard;version="3

      .5.0",...

       

      So I'm not sure what's going on. I've even tried adding the above mentioned lucene JAR to Eclipse's bootpath but that hasn't helped either.

       

      Does the JAR file need to be present in the workspace/.metadata/.plugins folder as well (it's not there at present).

       

      Any advice would be much appreciated! TIA.