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

我怕爱的太早我们不能终老 提交于 2019-12-02 10:36:57

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!

Edu

To solve the problem I need to use Spring Batch 2.2.7 together with Weblogic 12.1.3.

I thought that The error was configuration in my xml file but It seems that is a support issue with weblogic, because I found a similar error later.

The dependency list:

 aopalliance-1.0.jar
 commons-logging-1.1.3.jar
 jettison-1.1.jar
 spring-aop-3.2.9.RELEASE.jar
 spring-batch-core-2.2.7.RELEASE.jar
 spring-batch-infrastructure-2.2.7.RELEASE.jar
 spring-beans-3.2.9.RELEASE.jar
 spring-context-3.2.9.RELEASE.jar
 spring-core-3.2.9.RELEASE.jar
 spring-expression-3.2.9.RELEASE.jar
 spring-retry-1.0.2.RELEASE.jar
 spring-tx-3.2.9.RELEASE.jar
 spring-web-3.2.9.RELEASE.jar
 spring-webmvc-3.2.9.RELEASE.jar
 xpp3_min-1.1.4c.jar
 xstream-1.3.jar
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!