Hi ye, According to the screen-shot you provided ,you don't follow the correct directory structure. You should place your services.xml and WSDL files in the following directory structure.
WEB-INF/services/SimpleService/services.xml WEB-INF/services/SimpleService/SimpleService.wsdl Once the server up , you can access to WSDL file through http://localhost:8080/axisws/services/SimpleService?wsdl URL. HTH .. Thanks , On Mon, May 25, 2009 at 9:33 PM, ye huang <[email protected]> wrote: > Hi, Deal all: > In order to make sure my mvn setting is working, I tried "mvn clean", "mvn > package", "mvn tomcat:deploy" and "mvn tomcat:redeploy", they all work. > Furthermore, in order to make sure the servlet setting is correct, I put > another SimpleServlet, and modify the web.xml as follows: > <web-app> > <display-name>Archetype Created Web Application</display-name> > <servlet> > <servlet-name>AxisServlet</servlet-name> > <display-name>Apache-Axis Servlet</display-name> > <servlet-class> > org.apache.axis2.transport.http.AxisServlet > </servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet> > <servlet-name>SimpleServlet</servlet-name> > <display-name>SimpleServlet</display-name> > <description>SimpleServlet</description> > <servlet-class> > ch.hefr.tic.gridgroup.SimpleServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>AxisServlet</servlet-name> > <url-pattern>/services/*</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>SimpleServlet</servlet-name> > <url-pattern>/SimpleServlet</url-pattern> > </servlet-mapping> > </web-app> > > Then I visited "localhost:8080/axisws/SimpleServlet", it works again. > Afterward, I put SimpleService.wsdl and services.xml (as follows) into both > "src/main/webapp/META-INF" and src/main/webapp/WEB-INF", > <?xml version="1.0" encoding="UTF-8"?> > <!-- This file was auto-generated from WSDL --> > <!-- by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 > EDT) --> > <serviceGroup> > <service name="SimpleService"> > <messageReceivers> > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" > class="ch.hefr.tic.gridgroup.SimpleServiceMessageReceiverInOut"/> > </messageReceivers> > <parameter > name="ServiceClass">ch.hefr.tic.gridgroup.SimpleServiceSkeleton</parameter> > <parameter name="useOriginalwsdl">true</parameter> > <parameter name="modifyUserWSDLPortAddress">true</parameter> > <operation name="contact" mep="http://www.w3.org/ns/wsdl/in-out" > namespace="http://gridgroup.tic.hefr.ch/SimpleService/"> > > <actionMapping>http://gridgroup.tic.hefr.ch/SimpleService/contact</actionMapping> > > <outputActionMapping>http://gridgroup.tic.hefr.ch/SimpleService/SimpleService/contactResponse</outputActionMapping> > </operation> > </service> > </serviceGroup> > visited "http://localhost:8080/axisws/services/SimpleService", and get the > same exception. > It seems org.apache.axis2.transport.http.AxisServlet is invoked, but what > does it mean that "/The endpoint reference (EPR) for the Operation not found > is /axisws/services/SimpleService" ? > > I tried to visit "http://localhost:8080/axisws/services/SimpleService?wsdl" > but get the 404 error as follows: > --- > type Status report > message /axisws/services/SimpleService > description The requested resource (/axisws/services/SimpleService) is not > available. > --- > Is this the reason? I suppose the wsdl should be visitable from url via > Axis, right? but how? > Regards > ye > > On 25 May, 2009, at 2:10 AM, ye huang wrote: > > Hi, folks: > I created a maven webapp project via m2eclipse. The project overview photo > is attached. > Afterward, I execute the project via "run as -> run on server", and the > "Hello World!" appeared as expected. However, I was not able to visit my > axis service, which is defined > as http://localhost:8080/axisws/services/SimpleService in the WSDL file. > The prompted exception is: > <Exception> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation > not found is /axisws/services/SimpleService and the WSA Action = null > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89) > at org.apache.axis2.engine.Phase.invoke(Phase.java:333) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) > at > org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829) > at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > at java.lang.Thread.run(Thread.java:613) > </Exception> > What should I do then? It's really frustrated while so close... > Best Regards, > ye > <pastedGraphic.tiff> > > -- > Ye Huang, Department of Informatics > University of Fribourg / Perolles 2 - Bld de Perolles 90 > 1700 Fribourg, Switzerland > e-mail: [email protected], [email protected] > http://diuf.unifr.ch/people/huangy/ > Office: +41 26 429 65 95 > > > > > > -- > Ye Huang, Department of Informatics > University of Fribourg / Perolles 2 - Bld de Perolles 90 > 1700 Fribourg, Switzerland > e-mail: [email protected], [email protected] > http://diuf.unifr.ch/people/huangy/ > Office: +41 26 429 65 95 > > > > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
