3 Replies Latest reply on Mar 15, 2016 7:37 AM by wdfink

    Getting error while migrating jboss 4.2.3 to jboss 5.1

    pghai

      Hi,

       

      Can anyone help to resolve this issue.

       

      Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ipsMonitoringSummaryEmail' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

      PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] to required type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] for property 'reportGen'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] to required type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] for property 'reportGen': no matching editors or conversion strategy found

      Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ejbContext' defined in URL [file:/E:/CAS_100/customers/polaris_bny/dist/runtimecfg/beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?

      Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ejbContext' defined in URL [file:/E:/CAS_100/customers/polaris_bny/dist/runtimecfg/beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [java.lang.Class]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?

      Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ejbContext' defined in URL [file:/E:/CAS_100/customers/polaris_bny/dist/runtimecfg/beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.context.ApplicationContext]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?

       

      Thanks

        • 1. Re: Getting error while migrating jboss 4.2.3 to jboss 5.1
          wdfink

          Seems more a Spring question and not really related to JBoss.

          I would ask in Spring forums to get an answer

          • 2. Re: Getting error while migrating jboss 4.2.3 to jboss 5.1
            pghai

            Hi,

             

            This is working in jboss 4.2.3 but not in jboss 5.1.0. thats why i have posted this here.

             

            Thanks,

            • 3. Re: Getting error while migrating jboss 4.2.3 to jboss 5.1
              wdfink

              I'm not the Spring expert, so maybe someone else can answer better.

               

              But if you migrate did you changed the application or libraries (for Spring) as well?

              Or did you deploy the same binary? Maybe there is a change in the libraries provided by JBoss.

               

              But this message ->

              Failed to convert property value of type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] to required type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] for property 'reportGen'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] to required type [com.northstar.core.reporting.impl.jasper.IPSMonitoringSummaryReportGenerator] for property 'reportGen': no matching editors or conversion strategy found

               

              make me think this is a class loader issue, as the class "IPSMonitoringSummaryReportGenerator" seems custom implementation and the same.

              So maybe the class is loaded from different classloaders because of different configuration