Jboss Tools JAX-RS issue in Eclipse
by jbdevstudio-users@lists.jboss.org
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
{quote:class=jive_text_macro jive_macro_quote}
!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
{quote}
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:
{quote:class=jive_text_macro jive_macro_quote}
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",...
{quote}
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.
Posted by forums
Original post: https://developer.jboss.org/message/917431#917431