NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
CosmicDistortion
Joined: 08 Aug 2009 Posts: 2 Location: Sydney, Australia
|
Posted: Sat Aug 08, 2009 8:35 am Post subject: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ |
|
|
I’m attempting to setup apache axis2 following the instructions on the netbeans website (http://www.netbeans.org/kb/61/websvc/gs-axis.html#install_apache), it seems to be mostly setup now however i’m having problems with testing the HellowAxisWorld webservice example.
When i deploy the web service to the server i get the following output:
init:
deps-jar:
compile:
axis2-aar:
axis2-deploy-dir-check:
axis2-deploy-dir:
Copying 1 file to C:\apache-tomcat-6.0.18\webapps\WEB-INF\services\WEB-INF\services
axis2-deploy-war-check:
axis2-deploy-war:
axis2-deploy:
BUILD SUCCESSFUL (total time: 0 seconds)
but when i try ‘Test Operation in Browser’ i get a dialog box with the following message:
Unable to open web service tester page:
http://localhost:80/axis2/services/HellowAxisWorld/hello?name=XYZ
Make sure the service has been deployed successfully, and server is running.
And the Tomcat 6 gives me the following error:
[ERROR] The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65)
at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:838)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
I would really appreciate it if someone could let me know what I’m doing wrong here.
Regards,
Michael |
|
| Back to top |
|
 |
CosmicDistortion
Joined: 08 Aug 2009 Posts: 2 Location: Sydney, Australia
|
Posted: Sat Aug 08, 2009 9:59 am Post subject: fixed! |
|
|
| never mind i fixed it, i had the axis2.war file in the wrong place... |
|
| Back to top |
|
 |
Jeff Rubinoff Posted via mailing list.
|
Posted: Sun Aug 09, 2009 1:52 pm Post subject: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ |
|
|
Cosmic,
Is your CATALINA_BASE set up correctly in Axis2 Options?
Can you find CATALINA_BASE in your file explorer?
Is there an axis2.war file in CATALINA_BASE/webapps after you deploy the
web service? If not, it has not been deployed. If it has not been
deployed, you probably set up the path incorrectly in Axis2 Options.
(The BUILD SUCCESSFUL message only means that your WAR file is built,
not that it is deployed!)
If Axis2.war is in the right place, then perhaps you have the wrong port
number for your Apache Tomcat in the Axis2 Options server port? Run the
apache server--what port is it on?
Jeff
CosmicDistortion wrote:
| Quote: | I’m attempting to setup apache axis2 following the instructions on the netbeans website (http://www.netbeans.org/kb/61/websvc/gs-axis.html#install_apache), it seems to be mostly setup now however i’m having problems with testing the HellowAxisWorld webservice example.
When i deploy the web service to the server i get the following output:
init:
deps-jar:
compile:
axis2-aar:
axis2-deploy-dir-check:
axis2-deploy-dir:
Copying 1 file to C:\apache-tomcat-6.0.18\webapps\WEB-INF\services\WEB-INF\services
axis2-deploy-war-check:
axis2-deploy-war:
axis2-deploy:
BUILD SUCCESSFUL (total time: 0 seconds)
but when i try ‘Test Operation in Browser’ i get a dialog box with the following message:
Unable to open web service tester page:
http://localhost:80/axis2/services/HellowAxisWorld/hello?name=XYZ
Make sure the service has been deployed successfully, and server is running.
And the Tomcat 6 gives me the following error:
[ERROR] The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65)
at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:838)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
I would really appreciate it if someone could let me know what I’m doing wrong here.
Regards,
Michael
|
|
|
| Back to top |
|
 |
Jeff Rubinoff Posted via mailing list.
|
Posted: Sun Aug 09, 2009 1:57 pm Post subject: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ |
|
|
I really should read all the way through my inbox before I answer mail....
CosmicDistortion wrote:
| Quote: | never mind i fixed it, i had the axis2.war file in the wrong place...
|
|
|
| Back to top |
|
 |
Halloween
Joined: 19 Aug 2009 Posts: 1
|
Posted: Wed Aug 19, 2009 5:43 pm Post subject: Re: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ |
|
|
Hey guys, 1st post here.
I'm afraid i'm experiencing the same problem.
I have axis2.war in the correct folder (C:\(...)\Tomcat 6.0\webapps) .
I cannot find a CATALINA_BASE environmental variable, only the CATALINA_HOME... Tomcat 6 appear to be working, however, shouldn't this variable be automatically generated?
I'm currently using Netbeans 6.7, Axis2 1.5 and Tomcat 6.0.
Cheers and thanks in advance,
Hal
| Jeff Rubinoff wrote: | Cosmic,
Is your CATALINA_BASE set up correctly in Axis2 Options?
Can you find CATALINA_BASE in your file explorer?
Is there an axis2.war file in CATALINA_BASE/webapps after you deploy the
web service? If not, it has not been deployed. If it has not been
deployed, you probably set up the path incorrectly in Axis2 Options.
(The BUILD SUCCESSFUL message only means that your WAR file is built,
not that it is deployed!)
If Axis2.war is in the right place, then perhaps you have the wrong port
number for your Apache Tomcat in the Axis2 Options server port? Run the
apache server--what port is it on?
Jeff
CosmicDistortion wrote:
| Quote: | I’m attempting to setup apache axis2 following the instructions on the netbeans website (http://www.netbeans.org/kb/61/websvc/gs-axis.html#install_apache), it seems to be mostly setup now however i’m having problems with testing the HellowAxisWorld webservice example.
When i deploy the web service to the server i get the following output:
init:
deps-jar:
compile:
axis2-aar:
axis2-deploy-dir-check:
axis2-deploy-dir:
Copying 1 file to C:\apache-tomcat-6.0.18\webapps\WEB-INF\services\WEB-INF\services
axis2-deploy-war-check:
axis2-deploy-war:
axis2-deploy:
BUILD SUCCESSFUL (total time: 0 seconds)
but when i try ‘Test Operation in Browser’ i get a dialog box with the following message:
Unable to open web service tester page:
http://localhost:80/axis2/services/HellowAxisWorld/hello?name=XYZ
Make sure the service has been deployed successfully, and server is running.
And the Tomcat 6 gives me the following error:
[ERROR] The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /axis2/services/HellowAxisWorld/hello?name=XYZ
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65)
at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:838)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
I would really appreciate it if someone could let me know what I’m doing wrong here.
Regards,
Michael
|
|
|
|
| Back to top |
|
 |
Jhuliuss
Joined: 11 Dec 2012 Posts: 2
|
Posted: Tue Dec 11, 2012 4:30 pm Post subject: Posible solución |
|
|
Para evitar ese error, se tiene que crear el constructor vacio de cada clase que usas como entidad.
you need create a constructor for each entities that you use. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|