SupportLogger ClassCastException while deploying admin WLS
Posted: Sun Sep 14, 2014 11:45 pm
Hi,
I am new to BroadleafCommerce and to the Java EE world. I wanted to deploy site and admin applications on weblogic application server. I have no issues with the site, site is up and running on the weblogic instance. When I am trying to deploy admin.war on the same weblogic instance I am getting the following error,
looks like there is an explicit cast statement in getLogger() method of SupportLogManager class, Please help me out in resolving this.
Thanks in Advance!
Raj
<User defined listener org.broadleafcommerce.common.web.extensibility.MergeContextLoaderListener fai
led: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blConfiguration' defined in resource loaded from byte array: Instan
tiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.broadleafcommerce.common
.config.RuntimeEnvironmentPropertiesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blConfiguration' defined in resource loaded from byte array: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class org.broadleafcommerce.common.conf
ig.RuntimeEnvironmentPropertiesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1037)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.broadleafcommerce.common.config.RuntimeEnvironmentPropert
iesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast
to org.broadleafcommerce.common.logging.SupportLogger
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger
at org.broadleafcommerce.common.logging.SupportLogManager.getLogger(SupportLogManager.java:44)
at org.broadleafcommerce.common.logging.SupportLogManager.getLogger(SupportLogManager.java:60)
at org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer.<init>(RuntimeEnvironmentPropertiesConfigurer.java:83)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
Truncated. see log file for complete stacktrace
I am new to BroadleafCommerce and to the Java EE world. I wanted to deploy site and admin applications on weblogic application server. I have no issues with the site, site is up and running on the weblogic instance. When I am trying to deploy admin.war on the same weblogic instance I am getting the following error,
looks like there is an explicit cast statement in getLogger() method of SupportLogManager class, Please help me out in resolving this.
Thanks in Advance!
Raj
<User defined listener org.broadleafcommerce.common.web.extensibility.MergeContextLoaderListener fai
led: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blConfiguration' defined in resource loaded from byte array: Instan
tiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.broadleafcommerce.common
.config.RuntimeEnvironmentPropertiesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blConfiguration' defined in resource loaded from byte array: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class org.broadleafcommerce.common.conf
ig.RuntimeEnvironmentPropertiesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1037)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.broadleafcommerce.common.config.RuntimeEnvironmentPropert
iesConfigurer]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast
to org.broadleafcommerce.common.logging.SupportLogger
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassCastException: org.broadleafcommerce.common.logging.SupportLogger cannot be cast to org.broadleafcommerce.common.logging.SupportLogger
at org.broadleafcommerce.common.logging.SupportLogManager.getLogger(SupportLogManager.java:44)
at org.broadleafcommerce.common.logging.SupportLogManager.getLogger(SupportLogManager.java:60)
at org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer.<init>(RuntimeEnvironmentPropertiesConfigurer.java:83)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
Truncated. see log file for complete stacktrace