Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring 2.5.1 and Xfire 1.2.6 - NoSuchMethodError: <init>
    primarykey
    data
    text
    <p>Trying to integrate Spring 2.5.5 with Xfire 1.2.6, I'm attempting to inject one of my beans into my service but it's failing on initialisation with the following exception:</p> <pre><code>java.lang.NoSuchMethodError: &lt;init&gt; at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:420) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) Truncated. see log file for complete stacktrace </code></pre> <p>I get this as soon as I send my first request to the service via SoapUI. I've been googling and struggling for days with this now and I'd love some help :)</p> <p>Here's my web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt; &lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;/WEB-INF/spring/datasourceContext.xml /WEB-INF/spring/applicationContext.xml classpath:org/codehaus/xfire/spring/xfire.xml &lt;/param-value&gt; &lt;/context-param&gt; &lt;listener&gt; &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt; &lt;/listener&gt; &lt;listener&gt; &lt;listener-class&gt;com.moo.app.util.appWSEnvLifeCycleListener&lt;/listener-class&gt; &lt;/listener&gt; &lt;servlet&gt; &lt;servlet-name&gt;xfire&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;servlet-class&gt;org.apache.struts.action.ActionServlet&lt;/servlet-class&gt; &lt;init-param&gt; &lt;param-name&gt;config&lt;/param-name&gt; &lt;param-value&gt;/WEB-INF/struts-config.xml&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;debug&lt;/param-name&gt; &lt;param-value&gt;3&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;detail&lt;/param-name&gt; &lt;param-value&gt;3&lt;/param-value&gt; &lt;/init-param&gt; &lt;load-on-startup&gt;0&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet&gt; &lt;servlet-name&gt;LogFile&lt;/servlet-name&gt; &lt;servlet-class&gt;com.moo.app.dashboard.servlet.LogFileServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;2&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;xfire&lt;/servlet-name&gt; &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;url-pattern&gt;*.do&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;LogFile&lt;/servlet-name&gt; &lt;url-pattern&gt;*.zip&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;mime-mapping&gt; &lt;extension&gt;zip&lt;/extension&gt; &lt;mime-type&gt;application/zip&lt;/mime-type&gt; &lt;/mime-mapping&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;!-- Struts Tag Library Descriptors --&gt; &lt;jsp-config&gt; &lt;taglib&gt; &lt;taglib-uri&gt;/tags/struts-bean&lt;/taglib-uri&gt; &lt;taglib-location&gt;/WEB-INF/struts-bean.tld&lt;/taglib-location&gt; &lt;/taglib&gt; &lt;taglib&gt; &lt;taglib-uri&gt;/tags/struts-html&lt;/taglib-uri&gt; &lt;taglib-location&gt;/WEB-INF/struts-html.tld&lt;/taglib-location&gt; &lt;/taglib&gt; &lt;taglib&gt; &lt;taglib-uri&gt;/tags/struts-logic&lt;/taglib-uri&gt; &lt;taglib-location&gt;/WEB-INF/struts-logic.tld&lt;/taglib-location&gt; &lt;/taglib&gt; &lt;taglib&gt; &lt;taglib-uri&gt;/tags/struts-nested&lt;/taglib-uri&gt; &lt;taglib-location&gt;/WEB-INF/struts-nested.tld&lt;/taglib-location&gt; &lt;/taglib&gt; &lt;taglib&gt; &lt;taglib-uri&gt;/tags/struts-tiles&lt;/taglib-uri&gt; &lt;taglib-location&gt;/WEB-INF/struts-tiles.tld&lt;/taglib-location&gt; &lt;/taglib&gt; &lt;/jsp-config&gt; &lt;/web-app&gt; </code></pre> <p>and my applicationContext.xml:</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"&gt; &lt;bean id="app.TransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&gt; &lt;property name="dataSource" ref="appDataSource" /&gt; &lt;/bean&gt; &lt;bean id="app.TxProxyTemplate" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true"&gt; &lt;property name="transactionManager" ref="app.TransactionManager" /&gt; &lt;property name="transactionAttributes"&gt; &lt;props&gt; &lt;prop key="save*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt; &lt;prop key="create*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt; &lt;prop key="update*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt; &lt;prop key="*"&gt;PROPAGATION_SUPPORTS,readOnly&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="app.BaseappDAO" class="com.moo.app.app.data.BaseappDAO" abstract="true"&gt; &lt;property name="dataSource" ref="appDataSource" /&gt; &lt;/bean&gt; &lt;bean id="app.MembershipDetailsDAO" class="com.moo.app.app.data.MembershipDetailsDAOImpl" parent="app.BaseappDAO"&gt; &lt;/bean&gt; &lt;bean id="app.MembershipDetails" class="com.moo.app.app.data.MembershipDetailsServiceImpl"&gt; &lt;property name="membershipDetailsDAO" ref="app.MembershipDetailsDAO" /&gt; &lt;/bean&gt; &lt;bean id="app.appService" class="com.moo.app.app"&gt; &lt;property name="membershipDetailsService" ref="app.MembershipDetails" /&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre> <p>and finally, my xfire-servlet.xml:</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"&gt; &lt;bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt; &lt;property name="urlMap"&gt; &lt;map&gt; &lt;entry key="/services/app/"&gt; &lt;ref bean="app.appService"/&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- Declare a parent bean with all properties common to both services --&gt; &lt;bean id="echo" class="org.codehaus.xfire.spring.remoting.XFireExporter"&gt; &lt;property name="serviceFactory"&gt; &lt;ref bean="xfire.serviceFactory"/&gt; &lt;/property&gt; &lt;property name="xfire"&gt; &lt;ref bean="xfire"/&gt; &lt;/property&gt; &lt;property name="serviceBean"&gt; &lt;ref bean="app.appService"/&gt; &lt;/property&gt; &lt;property name="serviceClass"&gt; &lt;value&gt;com.moo.app.app.appService&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre> <p>No idea why this is occuring. The JARs I'm using are as follows:</p> <ul> <li>activation-1.1.jar</li> <li>app-SNAPSHOT.jar</li> <li>commons-beanutils-1.7.0.jar</li> <li>commons-codec-1.3.jar</li> <li>commons-collections.jar</li> <li>commons-digester.jar</li> <li>commons-fileupload.jar</li> <li>commons-httpclient-3.0.1.jar</li> <li>commons-lang.jar</li> <li>commons-logging-1.0.4.jar</li> <li>commons-logging-api-1.0.jar</li> <li>commons-validator.jar</li> <li>jaxen-1.1-beta-9.jar</li> <li>jaxws-api-2.0.jar</li> <li>jdom-1.0.jar</li> <li>jsr173_api-1.0.jar</li> <li>log4j-1.2.12.jar</li> <li>ojdbc14.jar</li> <li>saaj-api-1.3.jar</li> <li>saaj-impl-1.3.jar</li> <li>spring-webmvc-1.2.6.jar</li> <li>spring.2.5.1.jar</li> <li>struts-legacy.jar</li> <li>struts.jar</li> <li>wsdl4j-1.6.1.jar</li> <li>wstx-asl-3.2.0.jar</li> <li>xbean-spring-2.8.jar</li> <li>xfire-aegis-1.2.6.jar</li> <li>xfire-annotations-1.2.6.jar</li> <li>xfire-core-1.2.6.jar</li> <li>xfire-java5-1.2.6.jar</li> <li>xfire-jaxws-1.2.6.jar</li> <li>xfire-jsr181-api-1.0-M1.jar</li> <li>xfire-spring-1.2.6.jar</li> <li>XmlSchema-1.1.jar</li> </ul> <p>I'm deploying this on Weblogic 8.2 as a WAR file.</p> <p>Any help would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload