-
Mar 28th, 2009, 02:38 AM
#1
HttpInvokerServiceExporter, Type Mismatch Exception, BeanCreationException
hi,
i have made ClientReportService class who implements the interface 'IClientReportService'. now i have expose its funtionality to other module via HttpInvokerServiceExporter remotting.
i am facing the Exception
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'clientReportService' defined in ServletContext resource [/WEB-INF/applicationContext-services.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceInterface'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundException: com.mobex.mrs.application.service.IClientReportSer vice
Caused by:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceInterface'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundException: com.mobex.mrs.application.service.IClientReportSer vice
Caused by:
java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundExc
eption: com.mobex.mrs.application.service.IClientReportSer vice
at org.springframework.util.ClassUtils.resolveClassNa me(ClassUtils.java:223)
at org.springframework.beans.propertyeditors.ClassEdi tor.setAsText(ClassEditor.java:63)
at org.springframework.beans.TypeConverterDelegate.do ConvertTextValue(TypeConverterDelegate.java:320)
at org.springframework.beans.TypeConverterDelegate.do ConvertValue(TypeConverterDelegate.java:304)
.
.
.
.
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'clientReportService' defined in ServletContext resource [/WEB-INF/applicationContext-services.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceInterface'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundException: com.mobex.mrs.application.service.IClientReportSer vice
Caused by:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceInterface'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundException: com.mobex.mrs.application.service.IClientReportSer vice
Caused by:
java.lang.IllegalArgumentException: Cannot find class [com.mobex.mrs.application.service.IClientReportSer vice]. Root cause: java.lang.ClassNotFoundException: com.mobex.mrs.application.service.IClientReportSer vice
at org.springframework.util.ClassUtils.resolveClassNa me(ClassUtils.java:223)
at org.springframework.beans.propertyeditors.ClassEdi tor.setAsText(ClassEditor.java:63)
at org.springframework.beans.TypeConverterDelegate.do ConvertTextValue(TypeConverterDelegate.java:320)
at org.springframework.beans.TypeConverterDelegate.do ConvertValue(TypeConverterDelegate.java:304)
my configuration is (remoting-servlet.xml)
<bean name="/ClientReportService-httpinvoker" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
<property name="service" ref="clientReportService"/>
<property name="serviceInterface" value="com.mobex.mrs.application.service.IClientRe portService"/>
</bean>
my configuration is (applicationContext-services.xml)
<bean id="clientReportService" class="com.mobex.mrs.application.service.ClientRep ortService" parent="reportService">
<property name="jasperReportPath" value="${tomcatHome}${jasperReportPath.reportPath} ${jasperReportPath.accountOpeningReport}"/>
<property name="sqlClientReportQuery" value="${CLIENT_REPORT_QUERY}"/>
</bean>
kindly suggest me what to do, configs seem like good
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules