Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-196

org.hibernate.search.backend-elasticsearch eap module throws java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

    Details

      Description

      When using eap modules with EAP7, with this jboss-deployment-structure.xml

      <jboss-deployment-structure>
          <deployment>
              <dependencies>
                  <module name="org.infinispan" slot="jdg-7.0"/>
                  <module name="org.hibernate.hql.parser" slot="jdg-7.0"/>
                  <module name="org.infinispan.query" slot="jdg-7.0" services="export"/>
                  <module name="org.infinispan.query.dsl" slot="jdg-7.0" services="export"/>
                  <module name="org.jgroups" slot="jdg-7.0"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

      this exception is thrown

      Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
      	at org.hibernate.search.backend.elasticsearch.impl.ElasticsearchBridgeProvider$EsDateBridge.convertToString(ElasticsearchBridgeProvider.java:71)
      	at org.hibernate.search.backend.elasticsearch.impl.ElasticsearchBridgeProvider$EsDateBridge.set(ElasticsearchBridgeProvider.java:54)
      ...
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter from [Module "org.hibernate.search.backend-elasticsearch:5.6.0.Alpha3-redhat-1" from local module loader @5b1d2887 (finder: local module finder @46f5f779 (roots: /home/van/work/releases/eap7er5/modules,/home/van/work/releases/eap7er5/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      

      I tried adding

      <module name="javax.xml"/>
      

      to the org.hibernate.search.backend-elasticsearch module.xml, but such module isn't recognized by EAP7, so I don't know what the fix could be.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  jmarkos Jakub Markos
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: