Announcement Announcement Module
Collapse
No announcement yet.
org/springframework/ide/eclipse/beans/core/BeansCorePlugin Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hey!

    Is this a fresh STS 2.7.1 installation? I looked at it again and the class that is missing in your case (that is what the exception is saying) is definitely part of the right bundle. Can you try to start your STS with the -clean option, to see if that solves this?

    Otherwise can you try this with a fresh installation of STS again (in case the file that contains this class got corrupted somehow)?

    HTH,
    Martin

    Comment


    • #17
      Thanks Martin,

      It's working properly!!!!

      Now i can rename .java files without any error after install fresh copy of STS.

      Comment


      • #18
        Glad to hear its working now!!!
        And thanks for letting us know!!!

        Cheers,
        -Martin

        Comment


        • #19
          Hi Martin,

          There is another problem. i am creating a new project using spring and JPA but it gives some error like :

          Jul 10, 2012 12:07:21 PM com.test.test.TestContact main
          INFO: Starting the ClinicSubnet Component batch updation process on Tue Jul 10 12:07:21 IST 2012
          Jul 10, 2012 12:07:21 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
          INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@35960f05: display name [org.springframework.context.support.ClassPathXmlAp plicationContext@35960f05]; startup date [Tue Jul 10 12:07:21 IST 2012]; root of context hierarchy
          Jul 10, 2012 12:07:21 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
          INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
          Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderCon text.getResourceLoader()Lorg/springframework/core/io/ResourceLoader;
          Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderCon text.getResourceLoader()Lorg/springframework/core/io/ResourceLoader;
          at org.springframework.context.annotation.ComponentSc anBeanDefinitionParser.parse(ComponentScanBeanDefi nitionParser.java:80)
          at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
          at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1114)
          at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1104)
          at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
          at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:458)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:353)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:303)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:280)
          at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:131)
          at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:147)
          at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:173)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:112)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:79)
          at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:101)
          at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:389)
          at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:324)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:91)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:75)
          at com.test.test.TestContact.main(TestContact.java:22 )

          Comment


          • #20
            Hey!

            This is the error log from running your app, right? It is not an error that the IDE is throwing itself, correct?

            It looks like you have multiple versions of your Spring libraries on the classpath of your project, so that org.springframework.beans is of a different version than org.springframework.context. What versions do you have on your projects classpath?

            -Martin

            Comment


            • #21
              no these is not error log its error given on console window

              Jul 11, 2012 12:39:50 PM com.test.test.TestContact main
              INFO: Starting the ClinicSubnet Component batch updation process on Wed Jul 11 12:39:50 IST 2012
              Jul 11, 2012 12:39:50 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
              INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@3dac2f9c: display name [org.springframework.context.support.ClassPathXmlAp plicationContext@3dac2f9c]; startup date [Wed Jul 11 12:39:50 IST 2012]; root of context hierarchy
              Jul 11, 2012 12:39:50 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
              INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
              Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderCon text.getResourceLoader()Lorg/springframework/core/io/ResourceLoader;
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:375)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:303)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:280)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:131)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:147)
              at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:173)
              at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:112)
              at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:79)
              at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:101)
              at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:389)
              at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:324)
              at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:91)
              at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:75)
              at com.test.test.TestContact.main(TestContact.java:22 )
              Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderCon text.getResourceLoader()Lorg/springframework/core/io/ResourceLoader;
              at org.springframework.context.annotation.ComponentSc anBeanDefinitionParser.parse(ComponentScanBeanDefi nitionParser.java:80)
              at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
              at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1114)
              at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1104)
              at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
              at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:458)
              at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:353)
              ... 13 more

              Comment


              • #22
                And did you check the classpath settings of your project to see what Spring libs are there?

                -Martin

                Comment


                • #23
                  Hi Martin,
                  i cant understand what you said. i attached screenshot of lib files which is stored in build class path :
                  Attachment
                  Attached Files

                  Comment


                  • #24
                    Hey!

                    Your build path contains the same libs many times (in slightly different versions). You have alone 3 versions of spring-context in your classpath. Please clean this up, it doesn't make sense at all and causes those conflicts and exceptions that you are seeing.

                    Just remove all spring* libs from your classpath, download a fresh copy of the Spring framework, and add those JARs to your classpath. That should help!

                    Cheers,
                    -Martin

                    Comment


                    • #25
                      hi
                      now its working by adding some new .jar files............

                      thanks

                      Comment


                      • #26
                        Glad to hear its working now!
                        And thanks for letting us know!

                        Cheers,
                        -Martin

                        Comment

                        Working...
                        X