java - org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues -
i new spring, using spring 4
once war deployed jcs-saas (cloud) getting belows error :
[2016-11-08t12:50:06.686+00:00] [incident_error] 1 [incident 22 created problem key "bea-101216 [http]"] [2016-11-08t12:50:06.547+00:00] error [failure occurred in execution of deployment request id '3634255956252836' task '71'. error is: 'weblogic.application.moduleexception: [http:101216]servlet: "pepsiservlet" failed preload on startup in web application: "test4.war".[ org.springframework.beans.factory.beandefinitionstoreexception: unexpected exception parsing xml document class path resource [pepsiservlet-context.xml]; nested exception java.lang.nosuchmethoderror: org.springframework.beans.mutablepropertyvalues.add(ljava/lang/string;ljava/lang/object;)lorg/springframework/beans/mutablepropertyvalues;
pom.xml
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.itc</groupid> <artifactid>pepsiindintegration</artifactid> <packaging>war</packaging> <version>0.0.1-snapshot</version> <name>pepsiindintegration maven webapp</name> <url>http://maven.apache.org</url> <properties> <jdk.version>1.7</jdk.version> <spring.version>4.3.3.release</spring.version> <slf4j.version>1.7.21</slf4j.version> <log4j.version>1.2.17</log4j.version> <apache.commons.version>3.5</apache.commons.version> <cxf.version>3.1.8</cxf.version> </properties> <dependencies> <!-- junit dependency --> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.12</version> <scope>test</scope> </dependency> <!-- spring dependencies --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-tx</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context-support</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-test</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>cglib</groupid> <artifactid>cglib</artifactid> <version>3.2.4</version> </dependency> <!-- logging dependencies --> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>${slf4j.version}</version> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>${log4j.version}</version> </dependency> <!-- spring mvc --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-tx</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context-support</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-test</artifactid> <version>${spring.version}</version> </dependency> <!-- org apache commons --> <dependency> <groupid>org.apache.commons</groupid> <artifactid>commons-lang3</artifactid> <version>${apache.commons.version}</version> </dependency> <!-- oracle driver dependency --> <!-- <dependency> <groupid>oracle</groupid> <artifactid>ojdbc6</artifactid> <version>1.0</version> <scope>system</scope> <systempath>${oracle.driver.path}</systempath> </dependency> --> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> </dependency> <!-- dependency common file upload --> <dependency> <groupid>commons-fileupload</groupid> <artifactid>commons-fileupload</artifactid> <version>1.3.1</version> </dependency> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> <version>2.4</version> </dependency> <dependency> <groupid>com.jcraft</groupid> <artifactid>jsch</artifactid> <version>0.1.54</version> </dependency> <dependency> <groupid>org.apache.cxf</groupid> <artifactid>cxf-rt-frontend-jaxws</artifactid> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupid>org.apache.cxf</groupid> <artifactid>cxf-rt-transports-http</artifactid> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> </dependencies> <build> <finalname>pepsiindintegration</finalname> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>3.2</version> <configuration> <source>${jdk.version}</source> <target>${jdk.version}</target> </configuration> </plugin> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>sonar-maven-plugin</artifactid> <version>2.5</version> </plugin> <plugin> <groupid>org.apache.cxf</groupid> <artifactid>cxf-xjc-plugin</artifactid> <version>${cxf.version}</version> <configuration> <extensions> <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.1.8</extension> </extensions> </configuration> </plugin> <plugin> <groupid>org.apache.cxf</groupid> <artifactid>cxf-codegen-plugin</artifactid> <version>3.1.8</version> <executions> <execution> <goals> <goal>wsdl2java</goal> </goals> <configuration> <sourceroot>${basedir}/target/generated-sources/cxf/wsdl2java</sourceroot> <wsdlroot>${wsdls}</wsdlroot> <wsdloptions> <wsdloption> <wsdl>https://someurl/abc/xyz?wsdl</wsdl> <extraargs> <extraarg>-client</extraarg> </extraargs> </wsdloption> </wsdloptions> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
below web.xml
<!doctype web-app public "-//sun microsystems, inc.//dtd web application 2.3//en" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>archetype created web application</display-name> <!-- loading beans --> <context-param> <param-name>contextconfiglocation</param-name> <param-value> classpath:pepsibeans.xml </param-value> </context-param> <!-- spring dispatched servlet --> <servlet> <servlet-name>pepsiservlet</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value>classpath:pepsiservlet-context.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>pepsiservlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>
below pepsiservlet-context.xml
<?xml version="1.0" encoding="utf-8"?> <beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:task="http://www.springframework.org/schema/task" xmlns:util="http://www.springframework.org/schema/util" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.3.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.3.xsd"> <context:component-scan base-package="com.itc.pepsi" /> <!-- dispatcherservlet context: defines servlet's request-processing infrastructure --> <!-- enables spring mvc @controller programming model --> <mvc:annotation-driven /> <!-- enable annotation based declarative transaction management --> <tx:annotation-driven proxy-target-class="true" transaction-manager="transactionmanager" /> <!-- creating transactionmanager bean, since jdbc creating of type datasourcetransactionmanager --> <!-- <beans:bean id="transactionmanager" class="org.springframework.jdbc.datasource.datasourcetransactionmanager"> <beans:property name="datasource" ref="datasource" /> </beans:bean> --> <!-- handles http requests /resources/** efficiently serving static resources in ${webapproot}/resources directory --> <mvc:resources mapping="/resources/**" location="/resources/"/> <!-- initialization data source --> <!-- <beans:bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource"> <beans:property name="driverclassname" value="oracle.jdbc.driver.oracledriver" /> <beans:property name="url" value="jdbc:oracle:thin@hostname:port:service/sid" /> <beans:property name="username" value="user_name" /> <beans:property name="password" value="password" /> </beans:bean> --> <beans:bean id="messagesource" class="org.springframework.context.support.reloadableresourcebundlemessagesource"> <beans:property name="basename" value="classpath:applicationmessages" /> <beans:property name="defaultencoding" value="utf-8" /> </beans:bean> <task:annotation-driven scheduler="scheduler" executor="executor" /> <task:scheduler id="scheduler" pool-size="10" /> <task:executor id="executor" pool-size="10" /> <beans:bean id="pepsiintgservice" class="com.itc.pepsi.bo.pepsiintgservice"> </beans:bean> <task:scheduled-tasks scheduler="scheduler"> <task:scheduled ref="pepsiintgservice" method="readfile" cron="${cronstring}" /> </task:scheduled-tasks> <!-- <bean id="taskexecutor" class="org.springframework.scheduling.concurrent.threadpooltaskexecutor"> <property name="corepoolsize" value="5" /> <property name="maxpoolsize" value="10" /> <property name="queuecapacity" value="25" /> </bean> <bean id="taskexecutorexample" class="taskexecutorexample"> <constructor-arg ref="taskexecutor" /> </bean> --> </beans:beans>
below log after deploying jcs-saas
[2016-11-08t12:50:06.686+00:00] [incident_error] 1 [incident 22 created problem key "bea-101216 [http]"] [2016-11-08t12:50:06.547+00:00] error [failure occurred in execution of deployment request id '3634255956252836' task '71'. error is: 'weblogic.application.moduleexception: [http:101216]servlet: "pepsiservlet" failed preload on startup in web application: "test4.war".[ org.springframework.beans.factory.beandefinitionstoreexception: unexpected exception parsing xml document class path resource [pepsiservlet-context.xml]; nested exception java.lang.nosuchmethoderror: org.springframework.beans.mutablepropertyvalues.add(ljava/lang/string;ljava/lang/object;)lorg/springframework/beans/mutablepropertyvalues; @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:420) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:342) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:310) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:124) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:92) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:123) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:422) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:352) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:402) @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:316) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:282) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:126) @ javax.servlet.genericservlet.init(genericservlet.java:241) @ weblogic.servlet.internal.stubsecurityhelper$servletinitaction.run(stubsecurityhelper.java:283) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:321) @ weblogic.security.service.securitymanager.runas(securitymanager.java:120) @ weblogic.servlet.internal.stubsecurityhelper.createservlet(stubsecurityhelper.java:64) @ weblogic.servlet.internal.stublifecyclehelper.createoneinstance(stublifecyclehelper.java:58) @ weblogic.servlet.internal.stublifecyclehelper.(stublifecyclehelper.java:48) @ weblogic.servlet.internal.servletstubimpl.prepareservlet(servletstubimpl.java:539) @ weblogic.servlet.internal.webappservletcontext.preloadservlet(webappservletcontext.java:2037) @ weblogic.servlet.internal.webappservletcontext.loadservletsonstartup(webappservletcontext.java:2011) @ weblogic.servlet.internal.webappservletcontext.preloadresources(webappservletcontext.java:1930) @ weblogic.servlet.internal.webappservletcontext.start(webappservletcontext.java:3226) @ weblogic.servlet.internal.webappmodule.startcontexts(webappmodule.java:1529) @ weblogic.servlet.internal.webappmodule.start(webappmodule.java:488) @ weblogic.application.internal.flow.modulestatedriver$3.next(modulestatedriver.java:425) @ weblogic.application.utils.statemachinedriver.nextstate(statemachinedriver.java:52) @ weblogic.application.internal.flow.modulestatedriver.start(modulestatedriver.java:119) @ weblogic.application.internal.flow.scopedmoduledriver.start(scopedmoduledriver.java:200) @ weblogic.application.internal.flow.modulelistenerinvoker.start(modulelistenerinvoker.java:247) @ weblogic.application.internal.flow.modulestatedriver$3.next(modulestatedriver.java:425) @ weblogic.application.utils.statemachinedriver.nextstate(statemachinedriver.java:52) @ weblogic.application.internal.flow.modulestatedriver.start(modulestatedriver.java:119) @ weblogic.application.internal.flow.startmodulesflow.activate(startmodulesflow.java:27) @ weblogic.application.internal.basedeployment$2.next(basedeployment.java:671) @ weblogic.application.utils.statemachinedriver.nextstate(statemachinedriver.java:52) @ weblogic.application.internal.basedeployment.activate(basedeployment.java:212) @ weblogic.application.internal.singlemoduledeployment.activate(singlemoduledeployment.java:44) @ weblogic.application.internal.deploymentstatechecker.activate(deploymentstatechecker.java:161) @ weblogic.deploy.internal.targetserver.appcontainerinvoker.activate(appcontainerinvoker.java:84) @ weblogic.deploy.internal.targetserver.operations.abstractoperation.activate(abstractoperation.java:573) @ weblogic.deploy.internal.targetserver.operations.activateoperation.activatedeployment(activateoperation.java:150) @ weblogic.deploy.internal.targetserver.operations.activateoperation.docommit(activateoperation.java:116) @ weblogic.deploy.internal.targetserver.operations.abstractoperation.commit(abstractoperation.java:327) @ weblogic.deploy.internal.targetserver.deploymentmanager.handledeploymentcommit(deploymentmanager.java:849) @ weblogic.deploy.internal.targetserver.deploymentmanager.activatedeploymentlist(deploymentmanager.java:1273) @ weblogic.deploy.internal.targetserver.deploymentmanager.handlecommit(deploymentmanager.java:441) @ weblogic.deploy.internal.targetserver.deploymentservicedispatcher.commit(deploymentservicedispatcher.java:163) @ weblogic.deploy.service.internal.targetserver.deploymentreceivercallbackdeliverer.docommitcallback(deploymentreceivercallbackdeliverer.java:217) @ weblogic.deploy.service.internal.targetserver.deploymentreceivercallbackdeliverer.access$100(deploymentreceivercallbackdeliverer.java:14) @ weblogic.deploy.service.internal.targetserver.deploymentreceivercallbackdeliverer$2.run(deploymentreceivercallbackdeliverer.java:69) @ weblogic.work.selftuningworkmanagerimpl$workadapterimpl.run(selftuningworkmanagerimpl.java:550) @ weblogic.work.executethread.execute(executethread.java:268) @ weblogic.work.executethread.run(executethread.java:226) caused by: java.lang.nosuchmethoderror: org.springframework.beans.mutablepropertyvalues.add(ljava/lang/string;ljava/lang/object;)lorg/springframework/beans/mutablepropertyvalues; @ org.springframework.web.servlet.config.annotationdrivenbeandefinitionparser.getcontentnegotiationmanager(annotationdrivenbeandefinitionparser.java:388) @ org.springframework.web.servlet.config.annotationdrivenbeandefinitionparser.parse(annotationdrivenbeandefinitionparser.java:186) @ org.springframework.beans.factory.xml.namespacehandlersupport.parse(namespacehandlersupport.java:69) @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1297) @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1287) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.parsebeandefinitions(defaultbeandefinitiondocumentreader.java:135) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.registerbeandefinitions(defaultbeandefinitiondocumentreader.java:92) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.registerbeandefinitions(xmlbeandefinitionreader.java:507) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:398) ... 57 more ':trace
below project structure
below jars downloaded maven build
Comments
Post a Comment