Can you post your spring.SpringAwareService class ? Since you are using websphere , do you have the war exploded ? What version of websphere are you using ?
Robert On 4/4/07, Moorthy GT <[EMAIL PROTECTED]> wrote:
My ApplicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <!-- Axis2 Web Service, but to Spring, its just another bean that has dependencies --> <bean id="springAwareService" class="spring.SpringAwareService"> <property name="myBean" ref="myBean"/> </bean> <!-- just another bean / interface with a wired implementation, that's injected by Spring into the Web Service --> <bean id="myBean" class="spring.MyBeanImpl"> <property name="val" value="Spring, emerge thyself" /> </bean> </beans> *********************************** My Web.xml <web-app> <display-name>Apache-Axis2</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> <description>Spring Context</description> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>AxisServlet</servlet-name> <display-name>Apache-Axis Servlet</display-name> <servlet-class> org.apache.axis2.transport.http.AxisServlet</servlet-class> <!--<init-param>--> <!--<param-name>axis2.xml.path</param-name>--> <!--<param-value>/WEB-INF/conf/axis2.xml</param-value>--> <!--<param-name>axis2.xml.url</param-name>--> <!--<param-value>http://localhot/myrepo/axis2.xml</param-value>--> <!--<param-name>axis2.repository.path</param-name>--> <!--<param-value>/WEB-INF</param-value>--> <!--<param-name>axis2.repository.url</param-name>--> <!--<param-value>http://localhot/myrepo</param-value>--> <!--</init-param>--> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>AxisRESTServlet</servlet-name> <display-name>Apache-Axis Servlet (REST)</display-name> <servlet-class> org.apache.axis2.transport.http.AxisRESTServlet</servlet-class> </servlet> <servlet> <servlet-name>AxisAdminServlet</servlet-name> <display-name>Apache-Axis AxisAdmin Servlet (REST)</display-name> <servlet-class> org.apache.axis2.transport.http.AxisAdminServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>AxisRESTServlet</servlet-name> <url-pattern>/rest/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisServlet</servlet-name> <url-pattern>/servlet/AxisServlet</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisServlet</servlet-name> <url-pattern>*.jws</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisServlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisAdminServlet</servlet-name> <url-pattern>/axis2-admin/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>/axis2-web/index.jsp</welcome-file> </welcome-file-list> <error-page> <error-code>404</error-code> <location>/axis2-web/Error/error404.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/axis2-web/Error/error500.jsp</location> </error-page> </web-app> ******************************************************************* service.xml is <service name="SpringAwareService"> <description> simple spring example </description> <parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter> <parameter name="SpringBeanName" locked="false">springAwareService</parameter> <operation name="getValue"> <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> </operation> </service> robert lazarski wrote: > > Looks like a config issue. Your bean ref should be an interface and > not a concrete class. Looks like you are using the axis2 spring > tutorial. If so double check your config with the config in the > tutorial. If all else fails post your spring xml file and maybe we can > help. > > Robert > > On 4/4/07, Moorthy GT <[EMAIL PROTECTED]> wrote: >> >> hi >> >> I am following the Axis-Spring guide >> http://ws.apache.org/axis2/1_1/spring.html >> >> When i deploy this into Websphere, I am getting the following exception >> >> [4/4/07 15:34:17:962 EDT] 326cf93a ContextLoader E >> org.springframework.web.context.ContextLoader TRAS0014I: The following >> exception was logged >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean >> with name 'springAwareService' defined in ServletContext resource >> [/WEB-INF/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 [spring.MyBeanImpl] to required >> type [spring.MyBean] for property 'myBean'; nested exception is >> java.lang.IllegalArgumentException: Cannot convert value of type >> [spring.MyBeanImpl] to required type [spring.MyBean] for property >> 'myBean': >> no matching editors or conversion strategy found >> Caused by: org.springframework.beans.PropertyBatchUpdateException; nested >> PropertyAccessException details (1) are: >> PropertyAccessException 1: >> org.springframework.beans.TypeMismatchException: Failed to convert >> property >> value of type [spring.MyBeanImpl] to required type [spring.MyBean] for >> property 'myBean'; nested exception is >> java.lang.IllegalArgumentException: >> Cannot convert value of type [spring.MyBeanImpl] to required type >> [spring.MyBean] for property 'myBean': no matching editors or conversion >> strategy found >> Caused by: java.lang.IllegalArgumentException: Cannot convert value of >> type >> [spring.MyBeanImpl] to required type [spring.MyBean] for property >> 'myBean': >> no matching editors or conversion strategy found >> -- >> View this message in context: >> http://www.nabble.com/Spring-2.0.3-and-axis2.1.1-Error%3A--no-matching-editors-or-conversion-strategy-found-tf3527973.html#a9844424 >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Spring-2.0.3-and-axis2.1.1-Error%3A--no-matching-editors-or-conversion-strategy-found-tf3527973.html#a9844845 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]