Error while deploying Spring Batch in Weblogic BeanCreationException: Error creating bean with name 'jobRepository'

后端 未结 2 860
旧巷少年郎
旧巷少年郎 2021-01-28 06:21

I want to test Spring Batch, but I need to use it without maven or gradle because there are some restrictions in the network. I read a tutorial on spring and the spring documen

2条回答
  •  后悔当初
    2021-01-28 06:46

    If you get an java.lang.reflect.MalformedParameterizedTypeException this means there are some class that is trying to use a method by means of reflection, but it has malformed the parameters needed to call it.

    This is common when you have wrong dependencies, that is, when you are using wrong dependency version and thus a dependent method has changed its parameters list.

    I created a void pom.xml with only spring-batch-core version 3.0.5.RELEASE and it gives me the following dependencies list:

    aopalliance-1.0.jar
    com.ibm.jbatch-tck-spi-1.0.jar
    commons-logging-1.1.3.jar
    javax.batch-api-1.0.jar
    jettison-1.2.jar
    spring-aop-4.0.5.RELEASE.jar
    spring-batch-core-3.0.5.RELEASE.jar
    spring-batch-infrastructure-3.0.5.RELEASE.jar
    spring-beans-4.0.5.RELEASE.jar
    spring-context-4.0.5.RELEASE.jar
    spring-core-4.0.5.RELEASE.jar
    spring-expression-4.0.5.RELEASE.jar
    spring-retry-1.1.0.RELEASE.jar
    spring-tx-4.0.5.RELEASE.jar
    xmlpull-1.1.3.1.jar
    xpp3_min-1.1.4c.jar
    xstream-1.4.7.jar
    

    So as you can see, you are using spring version 4.1.8.RELEASE instead 4.0.5.RELEASE. This could be the cause of your error.

    Please review your hand managed dependencies to fit those I shown you. Maybe it resolves your problem.

    Hope it helps!

提交回复
热议问题