Results 1 to 5 of 5

Thread: BeanDefinitionParser error

  1. #1
    Join Date
    May 2011
    Location
    Chennai,India
    Posts
    38

    Default BeanDefinitionParser error

    i don't have any compilation error but when i start the server, i get
    java.lang.IllegalArgumentException: Cannot locate BeanDefinitionParser for element [annotation-config].


    i have checked for conflict in jars.. these are the jar files i have...
    /src/main/webapp/WEB-INF/lib/activation.jar
    /src/main/webapp/WEB-INF/lib/annotations-api-6.0.18.jar
    /src/main/webapp/WEB-INF/lib/apache-axiom-dom-1.2.7.jar
    /src/main/webapp/WEB-INF/lib/axis2-1.0.jar
    /src/main/webapp/WEB-INF/lib/castor-1.0.jar
    /src/main/webapp/WEB-INF/lib/commons-discovery-0.2.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-2.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-3.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-logging.jar
    /src/main/webapp/WEB-INF/lib/jaxb-api-2.1-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxb-xjc-2.1.9-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxrpc.jar
    /src/main/webapp/WEB-INF/lib/log4j-1.2.9.jar
    /src/main/webapp/WEB-INF/lib/saaj.jar
    /src/main/webapp/WEB-INF/lib/servlet-2.3.jar
    /src/main/webapp/WEB-INF/lib/spring-2.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-beans-2.0.4.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-stream-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-ws-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-oxm-tiger-1.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-webmvc.jar
    /src/main/webapp/WEB-INF/lib/spring-ws-core-2.0.0.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-xml-1.5.4.jar
    /src/main/webapp/WEB-INF/lib/wsdl4j.jar

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    For starters don't mix versions.

    You are mixing spring 2.0 mileston3 with 2.0.4. You are mixing spring ws 1.0 milestone 2, spring ws 1.5.4 and spring ws 2.0.0 ... So not sure what you are expecting...

    I suggest use maven or ant/ivy to manage your dependencies saves you a lot of headaches.. But for now, cleanup your versions.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    May 2011
    Posts
    11

    Default version conflict

    hi I'm new to spring.I am also facing same problem.these are the list of jars I have in my project.can someone tel whr exactly the version conflict is and which versions should we use bcoz same versions are not available for all jars.......



    /src/main/webapp/WEB-INF/lib/activation.jar
    /src/main/webapp/WEB-INF/lib/annotations-api-6.0.20.jar
    /src/main/webapp/WEB-INF/lib/apache-axiom-dom-1.2.7.jar
    /src/main/webapp/WEB-INF/lib/axis.jar
    /src/main/webapp/WEB-INF/lib/axis2-1.0.jar
    /src/main/webapp/WEB-INF/lib/castor-1.0.jar
    /src/main/webapp/WEB-INF/lib/commons-discovery-0.2.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-2.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-3.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-logging.jar
    /src/main/webapp/WEB-INF/lib/jaxb-api-2.1-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxb-xjc-2.1.9-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxrpc.jar
    /src/main/webapp/WEB-INF/lib/log4j-1.2.9.jar
    /src/main/webapp/WEB-INF/lib/saaj.jar
    /src/main/webapp/WEB-INF/lib/servlet-2.3.jar
    /src/main/webapp/WEB-INF/lib/spring-2.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-2.5.6.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-1.0.2.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-1.0.3.RELEASE-sources.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-stream-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-ws-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-oxm-tiger-1.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-ws-core-1.5.8.jar
    /src/main/webapp/WEB-INF/lib/spring-xml-1.5.4.jar
    /src/main/webapp/WEB-INF/lib/wsdl4j.jar
    Last edited by manoj_reddy; May 17th, 2011 at 06:28 AM.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Hijacking threads isn't really nice... Please read the previous post (use maven or ant/ivy to manage your dependencies).

    /src/main/webapp/WEB-INF/lib/activation.jar
    /src/main/webapp/WEB-INF/lib/annotations-api-6.0.20.jar
    /src/main/webapp/WEB-INF/lib/apache-axiom-dom-1.2.7.jar
    /src/main/webapp/WEB-INF/lib/axis.jar
    /src/main/webapp/WEB-INF/lib/axis2-1.0.jar

    /src/main/webapp/WEB-INF/lib/castor-1.0.jar
    /src/main/webapp/WEB-INF/lib/commons-discovery-0.2.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-2.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-httpclient-3.0.1.jar
    /src/main/webapp/WEB-INF/lib/commons-logging.jar
    /src/main/webapp/WEB-INF/lib/jaxb-api-2.1-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxb-xjc-2.1.9-osgi.jar
    /src/main/webapp/WEB-INF/lib/jaxrpc.jar
    /src/main/webapp/WEB-INF/lib/log4j-1.2.9.jar
    /src/main/webapp/WEB-INF/lib/saaj.jar
    /src/main/webapp/WEB-INF/lib/servlet-2.3.jar
    /src/main/webapp/WEB-INF/lib/spring-2.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-2.5.6.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-1.0.2.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-1.0.3.RELEASE-sources.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-core-2.0.3.RELEASE.jar

    /src/main/webapp/WEB-INF/lib/spring-integration-stream-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-integration-ws-2.0.3.RELEASE.jar
    /src/main/webapp/WEB-INF/lib/spring-oxm-tiger-1.0-m2.jar
    /src/main/webapp/WEB-INF/lib/spring-ws-core-1.5.8.jar
    /src/main/webapp/WEB-INF/lib/spring-xml-1.5.4.jar

    /src/main/webapp/WEB-INF/lib/wsdl4j.jar

    Which version you want to use depends up to you, but as I already stated use something to manage your dependencies instead of trying to figure it out yourself.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    May 2011
    Location
    Chennai,India
    Posts
    38

    Default BeanDefinitionParser error

    hi marten, thanks for your quick reply..
    I have resolved my errors now..
    I was facing the version conflict only as pointed out by you..



    thanks,
    paary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •