Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5068

Unable to build KieModule with executable model in wildfly

    Details

    • Sprint:
      2020 Week 07-09 (from Feb 10)
    • Steps to Reproduce:
      Hide

      run:

      mvn clean install -Pwildfly-managed
      

      in attached reproducer

      Show
      run: mvn clean install -Pwildfly-managed in attached reproducer
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Building a KieModule with executable model fails when executed in a wildfly container with the following error:

      Error Messages:
      Message [id=1, level=ERROR, path=src/main/java/org.drools.reproducer/DomainClassesMetadata71E36BCC7D89430EC0E872CFFD5B8B5D.java, line=2, column=44
         text=The type DomainClassesMetadata71E36BCC7D89430EC0E872CFFD5B8B5D collides with a package]
      Message [id=2, level=ERROR, path=src/main/java/org.drools.reproducer/DomainClassesMetadata71E36BCC7D89430EC0E872CFFD5B8B5D.java, line=0, column=0
         text=Java source of src/main/java/org.drools.reproducer/DomainClassesMetadata71E36BCC7D89430EC0E872CFFD5B8B5D.java in error:
      package org.drools.reproducer;
      public class DomainClassesMetadata71E36BCC7D89430EC0E872CFFD5B8B5D {
      
          public static final org.drools.model.DomainClassMetadata java_lang_String_Metadata_INSTANCE = new java_lang_String_Metadata();
          private static class java_lang_String_Metadata implements org.drools.model.DomainClassMetadata {
      
              @Override
              public Class<?> getDomainClass() {
                  return java.lang.String.class;
              }
      
              @Override
              public int getPropertiesSize() {
                  return 2;
              }
      
              @Override
              public int getPropertyIndex( String name ) {
                  switch(name) {
                      case "bytes": return 0;
                      case "empty": return 1;
                   }
                   throw new RuntimeException("Unknown property '" + name + "' for class class class java.lang.String");
              }
          }
      
      }]
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                mcasalino Matteo Casalino
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: