wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generati Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generati" Watch "org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generati" New topic
Author

org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generati

johny smith
Greenhorn

Joined: Dec 14, 2010
Posts: 3
Hi ,

I am trying to use spring in axis2 restbased webservice.
but i am getting the deployment exception when i tried to install the aar in tomcat6.0.18 , axis2->web-inf->services directory.

below are the exception details and the files which i used.

Exception:
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: ServiceClass or ServiceObjectSupplier implmentation Object could not be found

Files:

web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SampleHelloWorld</display-name>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>


<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>AxisRESTServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisRESTServlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>

Services.xml

<?xml version="1.0" encoding="UTF-8"?>
<serviceGroup>
<service name="SampleHelloService">

<parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
<parameter name="SpringBeanName" locked="false">helloService</parameter>
<parameter name="ServiceTCCL">composite</parameter>
<operation name="sayHello">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
</serviceGroup>

applicationContext.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">


<bean id="helloService" class="com.cts.Hello">
<property name="helloDAO" ref="helloDAOBean" />
</bean>

<bean id="helloDAOBean" class="com.cts.HelloDAO"></bean>


</beans>

Folder Structure
SampleHelloworld
src
META-INF
MANIFEST.MF
services.xml
WEB-INF
lib
axis2kernel-1.5.1.jar
axis2-spring-1.5.Ljar
spring-beans-2.5.6.jar
spring-context-2.5.6.jar
spring-oore-2.5.6jar
spring-web-2.5.6.jar
services
services.xml
applicationContext.xml
web.xml

can any one please help me to resolve the issue?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1381
check your *.aar has services.xml ?
johny smith
Greenhorn

Joined: Dec 14, 2010
Posts: 3
aar contains the services.xml inside the META-INF folder.
I think i have to implement the ServiceObjectSupplier interface.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generati