Announcement Announcement Module
Collapse
No announcement yet.
Spring axis2 classcastexception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring axis2 classcastexception

    I have a application for jboss 4.2.2 and axis2 1.5. This application has a web service and this webservice calls another web service deployed on other web servier. This axis2 webservice is develop using spring injections.

    I am getting following error while server is deploying my application and while trying to create a bean for other webservice client that my web service is using.

    Please look into this. Thanks in advance.

    Stack trace :

    2009-11-04 15:06:13,437 ERROR [STDERR] org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'wsclientservice' defined in class path resource [sdr-service-app-context.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.apache.axis2.receivers.RawXMLINOnlyMessageRece iver
    2009-11-04 15:06:13,437 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1338)
    2009-11-04 15:06:13,437 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:473)
    2009-11-04 15:06:13,453 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    2009-11-04 15:06:13,453 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
    2009-11-04 15:06:13,453 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    2009-11-04 15:06:13,453 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    2009-11-04 15:06:13,468 ERROR [STDERR] at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    2009-11-04 15:06:13,468 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    2009-11-04 15:06:13,468 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    2009-11-04 15:06:13,468 ERROR [STDERR] at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    2009-11-04 15:06:13,468 ERROR [STDERR] at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    2009-11-04 15:06:13,484 ERROR [STDERR] at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    2009-11-04 15:06:13,484 ERROR [STDERR] at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    2009-11-04 15:06:13,484 ERROR [STDERR] at com.pcstelcom.ivr.spring.SpringInit.startUp(Spring Init.java:23)
    .......................
    .......................
    2009-11-04 15:06:13,937 ERROR [STDERR] Caused by: java.lang.ClassCastException: org.apache.axis2.receivers.RawXMLINOnlyMessageRece iver
    2009-11-04 15:06:13,937 ERROR [STDERR] at org.apache.axis2.deployment.DescriptionBuilder.loa dMessageReceiver(DescriptionBuilder.java:192)
    2009-11-04 15:06:13,937 ERROR [STDERR] at org.apache.axis2.deployment.DescriptionBuilder$1.r un(DescriptionBuilder.java:145)
    2009-11-04 15:06:13,953 ERROR [STDERR] at org.apache.axis2.java.security.AccessController.do Privileged(AccessController.java:132)
    2009-11-04 15:06:13,953 ERROR [STDERR] at org.apache.axis2.deployment.DescriptionBuilder.pro cessMessageReceivers(DescriptionBuilder.java:141)
    2009-11-04 15:06:13,953 ERROR [STDERR] at org.apache.axis2.deployment.AxisConfigBuilder.popu lateConfig(AxisConfigBuilder.java:104)
    2009-11-04 15:06:13,953 ERROR [STDERR] at org.apache.axis2.deployment.DeploymentEngine.popul ateAxisConfiguration(DeploymentEngine.java:707)
    2009-11-04 15:06:13,953 ERROR [STDERR] at org.apache.axis2.deployment.FileSystemConfigurator .getAxisConfiguration(FileSystemConfigurator.java: 116)
    2009-11-04 15:06:13,968 ERROR [STDERR] at org.apache.axis2.context.ConfigurationContextFacto ry.createConfigurationContext(ConfigurationContext Factory.java:64)
    2009-11-04 15:06:13,968 ERROR [STDERR] at org.apache.axis2.context.ConfigurationContextFacto ry.createConfigurationContextFromFileSystem(Config urationContextFactory.java:206)
    2009-11-04 15:06:13,968 ERROR [STDERR] at org.apache.axis2.client.ServiceClient.configureSer viceClient(ServiceClient.java:146)
    2009-11-04 15:06:13,968 ERROR [STDERR] at org.apache.axis2

  • #2
    WOW.. 88 views.. and no reply...anyone???
    Last edited by Anil_Rathore; Nov 10th, 2009, 01:57 PM.

    Comment


    • #3
      Hi,
      I'm also having same requirement,
      could u please send me the steps to call the axis2 webservice from spring ws client.

      Comment

      Working...
      X