Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2578

Custom Module not loading class from the module/lib.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.1 M1
    • Fix Version/s: 1.1 GA
    • Component/s: Runtime
    • Labels:
      None

      Description

      The module/lib contains the necessary jars but it is not taken, I am attaching the simple custom module which contains just few beans. Here is how I am creating the job from the xd-shell
      job create --name job1 --definition "job-custom" --deploy

      The server logs contains this error
      ***************************************************************************************
      10:43:20,193 1.1.0.M2 INFO DeploymentsPathChildrenCache-0 server.DeploymentListener - Deploying module [[email protected] moduleName = 'job-custom', moduleLabel = 'job-custom', group = 'job1', sourceChannelName = [null], sinkChannelName = [null], index = 0, type = job, parameters = map[[empty]], children = list[[empty]]]
      10:43:20,697 1.1.0.M2 ERROR DeploymentsPathChildrenCache-0 boot.SpringApplication - Application startup failed
      java.lang.NoClassDefFoundError: org/springframework/oxm/Unmarshaller
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
      at java.lang.Class.getDeclaredMethods(Class.java:1855)
      at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)
      ***************************************************************************************

      I already had been discussing this over the forums but could not get much help.
      stackoverflow.com/questions/27878047/noclassdefinitionerror-with-simple-bean-configuration

      If I place the spring-oxm jar in the spring-xd lib I get this error
      ***************************************************************************************
      java.lang.IllegalStateException: Cannot convert value of type [org.springframework.oxm.jaxb.Jaxb2Marshaller] to required type [org.springframework.oxm.Unmarshaller] for property 'unmarshaller': no matching editors or conversion strategy found
      ***************************************************************************************

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbogoevici Marius Bogoevici
              Reporter:
              dallaybatta Vicky Kak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: