It's not a secret anymore!*
The moose likes Web Services and the fly likes Error in accessing  webservice through spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in accessing  webservice through spring" Watch "Error in accessing  webservice through spring" New topic
Author

Error in accessing webservice through spring

vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
<bean id="webservice" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
<property name="serviceInterface" value="com.list.service.Orders"/>
<property name="wsdlDocumentUrl" value="http://localhost:7001/server/services/Orders?wsdl"/>
<property name="namespaceUri" value="urn rders"/>
<property name="serviceName" value="OrdersService"/>
<property name="portName" value="Orders" />
</bean>
com.list.service.Orders is an interface which extends java.rmi.Remote
I am trying to access a webservice by using springs in the above manner when I am trying to get the ClassPathXmlApplicationContext from the jsp I am getting the following error


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webservice' defined in class path resource [spring-beans/timeout-bean.xml]: Initialization of bean failed; nested exception is java.lang.Cl
assCastException: null
java.lang.ClassCastException
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:63)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createServiceFactory(LocalJaxRpcServiceFactory.java:232)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createJaxRpcService(LocalJaxRpcServiceFactory.java:200)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.prepare(JaxRpcPortClientInterceptor.java:310)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.afterPropertiesSet(JaxRpcPortClientInterceptor.java:284)
at org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean.afterPropertiesSet(JaxRpcPortProxyFactoryBean.java:56)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)
at jsp_servlet.__display._jspService(__display.java:177)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>
I am trying to solve the problem from yesterday but no luck can any one help me out.what might be the problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in accessing webservice through spring
 
Similar Threads
Weblogic JNDI
org.springframework.beans.factory.BeanCreationException
Example for JMS sender - receiver
deployment in weblogic 10.1
Help needed plzzzzz