Announcement Announcement Module
Collapse
No announcement yet.
Blazeds/Spring-mvc/Spring-WS in a Single War Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blazeds/Spring-mvc/Spring-WS in a Single War

    Hi All,

    I am trying to have Blazeds/Spring-mvc/Spring-WS in a Single War. However at present Blazeds and Spring-mvc is inside a Single War.And it is working fine . Iam trying to add webservices along with it.

    I am not sure wat iam doing is corrent. Please suggest me if can have all three in a Single war. If not please Advice

    However i tried to integrate all three. i End up in the below error


    23:28:06,218 ERROR ContextLoader:220 - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'org.springframework.ws.server.endpoint.mapping.Pa yloadRootAnnotationMeth
    odEndpointMapping#0': Initialization of bean failed; nested exception is java.la
    ng.NoSuchFieldError: USER_DECLARED_METHODS
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFa ctory.java:527)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getOb
    ject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:2 22)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBe
    an(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactor y.java:574)
    at org.springframework.context.support.AbstractApplic ationContext.finish
    BeanFactoryInitialization(AbstractApplicationConte xt.java:895)
    at org.springframework.context.support.AbstractApplic ationContext.refres
    h(AbstractApplicationContext.java:425)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
    text(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.init WebApplicationConte
    xt(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
    zed(ContextLoaderListener.java:47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
    t.java:4779)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContex
    t.java:5273)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
    .java:897)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:87
    3)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:615)

    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.jav
    a:1095)
    at org.apache.catalina.startup.HostConfig$DeployDirec tory.run(HostConfig
    .java:1617)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:47
    1)
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.
    java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor
    .java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NoSuchFieldError: USER_DECLARED_METHODS
    at org.springframework.ws.server.endpoint.mapping.Abs tractMethodEndpoint
    Mapping.findEndpointMethods(AbstractMethodEndpoint Mapping.java:167)
    at org.springframework.ws.server.endpoint.mapping.Abs tractMethodEndpoint
    Mapping.registerMethods(AbstractMethodEndpointMapp ing.java:142)
    at org.springframework.ws.server.endpoint.mapping.Abs tractAnnotationMeth
    odEndpointMapping.initApplicationContext(AbstractA nnotationMethodEndpointMapping
    .java:72)
    at org.springframework.context.support.ApplicationObj ectSupport.initAppl
    icationContext(ApplicationObjectSupport.java:119)
    at org.springframework.context.support.ApplicationObj ectSupport.setAppli
    cationContext(ApplicationObjectSupport.java:73)
    at org.springframework.context.support.ApplicationCon textAwareProcessor.
    invokeAwareInterfaces(ApplicationContextAwareProce ssor.java:106)
    at org.springframework.context.support.ApplicationCon textAwareProcessor.
    postProcessBeforeInitialization(ApplicationContext AwareProcessor.java:85)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyBeanPostProcessorsBeforeInitializatio n(AbstractAutowireCapableBeanF
    actory.java:394)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.initializeBean(AbstractAutowireCapableBean Factory.java:1405)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFa ctory.java:519)
    ... 25 more
    May 15, 2012 11:28:07 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    May 15, 2012 11:28:07 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/SpringWSServer] startup failed due to previous errors
    May 15, 2012 11:28:07 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-apr-8080"]
    May 15, 2012 11:28:07 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-apr-8009"]
    May 15, 2012 11:28:07 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 11570 ms

  • #2
    Please use [ code][/code] tags when posting code/xml/stracktraces.

    Judging from the stack trace you either are mixing different framework versions or are using incompatible versions of frameworks (i.e newer spring with older spring-ws or vice-versa).

    Comment

    Working...
    X