mindjoy
Dec 20th, 2005, 04:15 PM
Trying to access SugarCRM 4.0.0 (http://www.sugarcrm.com/crm/) Open Source PHP-based Web service using Spring proxy class JaxRpcPortProxyFactoryBean as explained in the Spring Framework Reference Manual, chapter 16.5 (http://static.springframework.org/spring/docs/1.2.x/reference/remoting.html#d0e12576), and some books (Professional Java Development with the Spring Framework, Spring In Action, Pro Spring). Also using Axis-based WSDL2java ant task to generate Web service classes.
Here is how my JaxRpcPortProxyFactoryBean is configured:
...
<bean id="crmServiceProxy" class="org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean">
<property name="serviceFactoryClass">
<value>org.apache.axis.client.ServiceFactory</value>
</property>
<property name="portInterface">
<value>com.mycompany.mycrm.ws.SugarSoap</value>
</property>
<property name="serviceInterface">
<value>com.mycompany.mycrm.biz.CrmService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://localhost/SugarSuite-Full-4.0.0/soap.php?wsdl</value>
</property>
<property name="namespaceUri">
<value>http://www.sugarcrm.com/sugarcrm</value>
</property>
<property name="serviceName">
<value>sugarsoap</value>
</property>
<property name="portName">
<value>sugarsoapPort</value>
</property>
</bean>
...
Running Tomcat 5.5.12 on Windows XP with Spring 1.2.6 and Axis 1.3. When Tomcat restarts I get the following error:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'crmServiceProxy' defined in ServletContext resource [/WEB-INF/mycrm-servlet.xml]: Class that bean class [org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
Any ideas how to resolve this issue would be greatly appreciated!
Here is how my JaxRpcPortProxyFactoryBean is configured:
...
<bean id="crmServiceProxy" class="org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean">
<property name="serviceFactoryClass">
<value>org.apache.axis.client.ServiceFactory</value>
</property>
<property name="portInterface">
<value>com.mycompany.mycrm.ws.SugarSoap</value>
</property>
<property name="serviceInterface">
<value>com.mycompany.mycrm.biz.CrmService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://localhost/SugarSuite-Full-4.0.0/soap.php?wsdl</value>
</property>
<property name="namespaceUri">
<value>http://www.sugarcrm.com/sugarcrm</value>
</property>
<property name="serviceName">
<value>sugarsoap</value>
</property>
<property name="portName">
<value>sugarsoapPort</value>
</property>
</bean>
...
Running Tomcat 5.5.12 on Windows XP with Spring 1.2.6 and Axis 1.3. When Tomcat restarts I get the following error:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'crmServiceProxy' defined in ServletContext resource [/WEB-INF/mycrm-servlet.xml]: Class that bean class [org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
Any ideas how to resolve this issue would be greatly appreciated!