You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ianwong <yi...@hotmail.com> on 2007/10/06 12:55:35 UTC

questions regarding axis2 with Spring

I hope someone could help me to solve this problem.Thanks!!!

I combined axis2 with Spring framework. When I visit the endpoint address
(http://localhost/services/sVendorWebservice) and got following message:

org.apache.axis2.AxisFault: I can not find a service for this request to be
serviced. Check the WSDL and the request URI;

but the wsdl discrption can be shown in
http://localhost/services/sVendorWebservice?wsdl. But the instesting part in
wsdl is that the request URI in wsdl is
http://localhost:80//services/sVendorWebservice", not
http://localhost:80/services/sVendorWebservice"


- <wsdl:service name="sVendorWebservice">
- <wsdl:port name="sVendorWebserviceSOAP11port_http"
binding="axis2:sVendorWebserviceSOAP11Binding">
  <soap:address location="http://localhost:80//services/sVendorWebservice"
/> 
  </wsdl:port>
- <wsdl:port name="sVendorWebserviceSOAP12port_http"
binding="axis2:sVendorWebserviceSOAP12Binding">
  <soap12:address location="http://localhost:80//services/sVendorWebservice"
/> 
  </wsdl:port>
- <wsdl:port name="sVendorWebserviceHttpport1"
binding="axis2:sVendorWebserviceHttpBinding">
  <http:address location="http://localhost:80//rest/sVendorWebservice" /> 
  </wsdl:port>
  </wsdl:service>
-- 
View this message in context: http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13072537
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: questions regarding axis2 with Spring

Posted by robert lazarski <ro...@gmail.com>.
Please read the docs - all this deploy stuff is covered pretty well:

http://ws.apache.org/axis2/1_3/toc.html

In particular, this link from the articles section should help:

http://wso2.org/library/90

ie, you need a WEB-INF/conf dir with axis2.xml , and a
WEB-INF/services dir that has your aar, and you need to  modify
WEB-INF/web.xml to have an axis2 servlet.

My advice is to get you service working in the axis2.war supplied from
the bin distro, then port it to your existing war.

HTH,
Robert

On 10/6/07, ianwong <yi...@hotmail.com> wrote:
>
> I placed the aar file into \WEB-INF\services\sVendorWebservice\. The arr
> includes services.xml
>
> Finally, a exception occurs:
> org.apache.axis2.deployment.DeploymentException: Invalid service META-INF
> directory not found; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: Invalid service META-INF
> directory not found
>         at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:255)
>
> Where is the proper place for aar?
>
>
>
>
>
>
> ianwong wrote:
> >
> > I hope someone could help me to solve this problem.Thanks!!!
> >
> > I combined axis2 with Spring framework. When I visit the endpoint address
> > (http://localhost/services/sVendorWebservice) and got following message:
> >
> > org.apache.axis2.AxisFault: I can not find a service for this request to
> > be serviced. Check the WSDL and the request URI;
> >
> > but the wsdl discrption can be shown in
> > http://localhost/services/sVendorWebservice?wsdl. But the instesting part
> > in wsdl is that the request URI in wsdl is
> > http://localhost:80//services/sVendorWebservice", not
> > http://localhost:80/services/sVendorWebservice"
> >
> >
> > - <wsdl:service name="sVendorWebservice">
> > - <wsdl:port name="sVendorWebserviceSOAP11port_http"
> > binding="axis2:sVendorWebserviceSOAP11Binding">
> >   <soap:address location="http://localhost:80//services/sVendorWebservice"
> > />
> >   </wsdl:port>
> > - <wsdl:port name="sVendorWebserviceSOAP12port_http"
> > binding="axis2:sVendorWebserviceSOAP12Binding">
> >   <soap12:address
> > location="http://localhost:80//services/sVendorWebservice" />
> >   </wsdl:port>
> > - <wsdl:port name="sVendorWebserviceHttpport1"
> > binding="axis2:sVendorWebserviceHttpBinding">
> >   <http:address location="http://localhost:80//rest/sVendorWebservice" />
> >   </wsdl:port>
> >   </wsdl:service>
> >
>
> --
> View this message in context: http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13074394
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: questions regarding axis2 with Spring

Posted by ianwong <yi...@hotmail.com>.
I placed the aar file into \WEB-INF\services\sVendorWebservice\. The arr
includes services.xml 

Finally, a exception occurs:
org.apache.axis2.deployment.DeploymentException: Invalid service META-INF
directory not found; nested exception is: 
	org.apache.axis2.deployment.DeploymentException: Invalid service META-INF
directory not found
	at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:255)

Where is the proper place for aar?






ianwong wrote:
> 
> I hope someone could help me to solve this problem.Thanks!!!
> 
> I combined axis2 with Spring framework. When I visit the endpoint address
> (http://localhost/services/sVendorWebservice) and got following message:
> 
> org.apache.axis2.AxisFault: I can not find a service for this request to
> be serviced. Check the WSDL and the request URI;
> 
> but the wsdl discrption can be shown in
> http://localhost/services/sVendorWebservice?wsdl. But the instesting part
> in wsdl is that the request URI in wsdl is
> http://localhost:80//services/sVendorWebservice", not
> http://localhost:80/services/sVendorWebservice"
> 
> 
> - <wsdl:service name="sVendorWebservice">
> - <wsdl:port name="sVendorWebserviceSOAP11port_http"
> binding="axis2:sVendorWebserviceSOAP11Binding">
>   <soap:address location="http://localhost:80//services/sVendorWebservice"
> /> 
>   </wsdl:port>
> - <wsdl:port name="sVendorWebserviceSOAP12port_http"
> binding="axis2:sVendorWebserviceSOAP12Binding">
>   <soap12:address
> location="http://localhost:80//services/sVendorWebservice" /> 
>   </wsdl:port>
> - <wsdl:port name="sVendorWebserviceHttpport1"
> binding="axis2:sVendorWebserviceHttpBinding">
>   <http:address location="http://localhost:80//rest/sVendorWebservice" /> 
>   </wsdl:port>
>   </wsdl:service>
> 

-- 
View this message in context: http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13074394
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: questions regarding axis2 with Spring

Posted by ianwong <yi...@hotmail.com>.
I didn't deploy the axis2 war in my applicaiton, so
http://localhost:8080/axis2/axis2-web/HappyAxis.jsp does not exist. Do I
need pack whole web services files into a war or jar file, then deploy it
into web applicaiton? Btw, what the actuall address for saving services.xml?
I tired many places:\WEB-INF; \WEB-INF\services; 
\WEB-INF\services\sVendorWebservice\META-INF , but always got that error
message.  And I got a expcetions only one time: Invalid service META-INF
directory not found


Thanks!!!



iksrazal wrote:
> 
> That's probably not an error due to spring, but rather your services
> aren't installed or your client is hitting the wrong url. Go to this
> url to see what services you have installed and what url your client
> should use to access them:
> 
> http://localhost:8080/axis2/axis2-web/HappyAxis.jsp
> 
> HTH,
> Robert
> 
> On 10/6/07, ianwong <yi...@hotmail.com> wrote:
>>
>> I hope someone could help me to solve this problem.Thanks!!!
>>
>> I combined axis2 with Spring framework. When I visit the endpoint address
>> (http://localhost/services/sVendorWebservice) and got following message:
>>
>> org.apache.axis2.AxisFault: I can not find a service for this request to
>> be
>> serviced. Check the WSDL and the request URI;
>>
>> but the wsdl discrption can be shown in
>> http://localhost/services/sVendorWebservice?wsdl. But the instesting part
>> in
>> wsdl is that the request URI in wsdl is
>> http://localhost:80//services/sVendorWebservice", not
>> http://localhost:80/services/sVendorWebservice"
>>
>>
>> - <wsdl:service name="sVendorWebservice">
>> - <wsdl:port name="sVendorWebserviceSOAP11port_http"
>> binding="axis2:sVendorWebserviceSOAP11Binding">
>>   <soap:address
>> location="http://localhost:80//services/sVendorWebservice"
>> />
>>   </wsdl:port>
>> - <wsdl:port name="sVendorWebserviceSOAP12port_http"
>> binding="axis2:sVendorWebserviceSOAP12Binding">
>>   <soap12:address
>> location="http://localhost:80//services/sVendorWebservice"
>> />
>>   </wsdl:port>
>> - <wsdl:port name="sVendorWebserviceHttpport1"
>> binding="axis2:sVendorWebserviceHttpBinding">
>>   <http:address location="http://localhost:80//rest/sVendorWebservice" />
>>   </wsdl:port>
>>   </wsdl:service>
>> --
>> View this message in context:
>> http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13072537
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13072777
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: questions regarding axis2 with Spring

Posted by robert lazarski <ro...@gmail.com>.
That's probably not an error due to spring, but rather your services
aren't installed or your client is hitting the wrong url. Go to this
url to see what services you have installed and what url your client
should use to access them:

http://localhost:8080/axis2/axis2-web/HappyAxis.jsp

HTH,
Robert

On 10/6/07, ianwong <yi...@hotmail.com> wrote:
>
> I hope someone could help me to solve this problem.Thanks!!!
>
> I combined axis2 with Spring framework. When I visit the endpoint address
> (http://localhost/services/sVendorWebservice) and got following message:
>
> org.apache.axis2.AxisFault: I can not find a service for this request to be
> serviced. Check the WSDL and the request URI;
>
> but the wsdl discrption can be shown in
> http://localhost/services/sVendorWebservice?wsdl. But the instesting part in
> wsdl is that the request URI in wsdl is
> http://localhost:80//services/sVendorWebservice", not
> http://localhost:80/services/sVendorWebservice"
>
>
> - <wsdl:service name="sVendorWebservice">
> - <wsdl:port name="sVendorWebserviceSOAP11port_http"
> binding="axis2:sVendorWebserviceSOAP11Binding">
>   <soap:address location="http://localhost:80//services/sVendorWebservice"
> />
>   </wsdl:port>
> - <wsdl:port name="sVendorWebserviceSOAP12port_http"
> binding="axis2:sVendorWebserviceSOAP12Binding">
>   <soap12:address location="http://localhost:80//services/sVendorWebservice"
> />
>   </wsdl:port>
> - <wsdl:port name="sVendorWebserviceHttpport1"
> binding="axis2:sVendorWebserviceHttpBinding">
>   <http:address location="http://localhost:80//rest/sVendorWebservice" />
>   </wsdl:port>
>   </wsdl:service>
> --
> View this message in context: http://www.nabble.com/questions-regarding-axis2-with-Spring-tf4579418.html#a13072537
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org