[jbosstools-issues] [JBoss JIRA] (JBDS-4133) org.jboss.tools.ws.jaxrs.core :: error occurred during JAX-RS Metamodel build - java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer

Xavier Coulon (JIRA) issues at jboss.org
Thu Nov 3 07:18:01 EDT 2016


    [ https://issues.jboss.org/browse/JBDS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13316669#comment-13316669 ] 

Xavier Coulon commented on JBDS-4133:
-------------------------------------

So I have a pull request (https://github.com/jbosstools/jbosstools-webservices/pull/257) that works with Lucene 5.4.1. Besides changing the MANIFEST.MF to inport the required packages, there were also a few code changes required as part of the migration from Lucene 3.5. to 5.x. All tests pass in Eclipse with PDE when the target platform that I import has the following additions:

{code}
    <!-- JBDS-4133 - Lucene 5 -->
    <location includeAllPlatforms="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
      <repository location="http://download.jboss.org/jbosstools/updates/requirements/lucene/rh-java-common-lucene5_5.4.1_2.2.el7/"/>
      <unit id="org.apache.lucene.analyzers-common" version="5.4.1"/>	 
      <unit id="org.apache.lucene.analyzers-smartcn" version="5.4.1"/>	 
	  <unit id="org.apache.lucene.core" version="5.4.1"/>	 
	  <unit id="org.apache.lucene.queries" version="5.4.1"/>	 
	  <unit id="org.apache.lucene.queryparser" version="5.4.1"/>	 
	  <unit id="org.apache.lucene.sandbox" version="5.4.1"/>
    </location>
{code}

but I could not test it with Maven since the target platform that is downloaded does not contain the Lucene 5.4.1 bundles.

[~nickboldt], [~akazakov], please let me know if including Lucene 5.4.1 in our TP is an option that can be considered or if I should try with Lucene 5.2 instead.

> org.jboss.tools.ws.jaxrs.core :: error occurred during JAX-RS Metamodel build - java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-4133
>                 URL: https://issues.jboss.org/browse/JBDS-4133
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: build, rpm, webservices
>    Affects Versions: 10.2.0.AM2
>            Reporter: Nick Boldt
>            Assignee: Jeff MAURY
>            Priority: Blocker
>             Fix For: 10.2.0.AM3
>
>         Attachments: lucene3.5corevs.5.4.1analyzers-common.png, lucene3.5corevs.5.4.1queryparser.png
>
>
> I'm getting this problem after running the HTML5 quickstart. I've installed this [1] version of the rpm.
> {code}
> !ENTRY org.eclipse.core.jobs 4 2 2016-10-26 16:22:07.578
> !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:120)
> 	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:55)
> Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.standard.StandardAnalyzer cannot be found by org.jboss.tools.ws.jaxrs.core_1.9.2.v20161011-1002
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
> 	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> 	... 5 more
> {code}
> [1] https://devstudio.jboss.com/10.0/snapshots/builds/devstudio.rpm_master/2016-10-28_17-35-00-B329/x86_64/rh-eclipse46-devstudio-10.2-0.20161028.1735.el7.x86_64.rpm



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list