Axis2服务未在Weblogic 12上运行。找不到包含的资源或文件“ /Axis2Test/axis2-web/listSingleService.jsp”错误

时间:2018-07-25 11:29:05

标签: java weblogic axis2

将war文件部署到weblogic中并在浏览器中键入http://localhost:7002/Axis2Test/services/StockQuoteService?wsdl时 出现错误:

<Jul 24, 2018 4:28:57,613 PM EEST> <Error> <netuix> <BEA-423142> <The control com.bea.netuix.servlets.controls.page.Book could not be rendered properly due to the following error:>
<Jul 24, 2018 4:47:03,660 PM EEST> <Error> <HTTP> <BEA-101214> <Included resource or file "/Axis2Test/axis2-web/listSingleService.jsp" not found from requested resource "/Axis2Test/services/StockQuoteService".>
<Jul 24, 2018 4:47:03,661 PM EEST> <Error> <HTTP> <BEA-101214> <Included resource or file "/Axis2Test/axis2-web/listSingleService.jsp" not found from requested resource "/Axis2Test/services/StockQuoteService".>

Axis2 service project structure in eclipse

services.xml:

<serviceGroup>
	<service name="StockQuoteService" scope="application"
		targetNamespace="http://quickstart.samples/">
		<description>
			Stock Quote Service
		</description>
		<messageReceivers>
			<messageReceiver mep="http://www.w3.org/ns/wsdl/in-only"
				class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
			<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
				class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
		</messageReceivers>
		<schema schemaNamespace="http://quickstart.samples/xsd" />
		<parameter name="ServiceClass">samples.quickstart.service.pojo.StockQuoteService
		</parameter>
	</service>
</serviceGroup>

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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">

  <display-name>Axis2Test</display-name>

  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>

  <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-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
</web-app>

请注意,war文件已成功部署并在tomcat 8上运行。

0 个答案:

没有答案