Re: [Axis2] A hello World Example for Axis2 deployment
Hi Anil, A few days ago, I submitted a message on the mailing list about the problem to display the WSDL in the browser, with Axis2.1.2. The full message is there: http://marc.info/?l=axis-userm=117915706112761w=2 It seems you have found the solution for this problem. Could you tell me how you solved the problem ? Thanks in advance. Stephane Roy Alcatel-Lucent Anil Chukkapalli wrote: Glen I figured it out. Thanks Anil On 5/18/07, *Anil Chukkapalli* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Glen I tried it out using the admin utility and it still does not work, it shows the version service and i click on it i get the WSDL. It shows that my service is present but when i click on the service it shows the same error i described. There is little or not code that can cause a null pointer exception as it just echos back the string. I am trying to use your tutorial and i am getting the below error. BUILD FAILED C:\development\mywebservice\mywebservice\build.xml:15: taskdef class org.apache. axis2.tool.ant.AntCodegenTask cannot be found The only thing that i changed in the build.xml file is the property name of the lib.dir to point to my directory which contains all the dependencies that are needed for axis2. This is step 5 in your tutorial property name= lib.dir value=.\lib/ Thanks Anil On 5/17/07, *Glen Mazza* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No, I don't think so. 5.5 should be fine. Go back and place the axis2.war file into the Tomcat webapps directory. Can you access and log into the Axis2 Admin URL at http://localhost:8080/axis2/axis2-admin? (userid/pwd: admin/axis2)? For available services, does it show the Version service? The above is the next step to make sure is working correctly before worrying about the service archive (.aar) file. If the above is working correctly, try deploying your service archive (.aar file) using the admin app above instead of directly placing it in the webapps/axis2 folder. Glen Am Donnerstag, den 17.05.2007, 16:13 -0700 schrieb Anil Chukkapalli: Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are http://localhost:8080%29--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with the tutorial you are using, again you may need to switch to another, or read three or four tutorials until you can get things working. Keep working at it. Yet another option for you might be the quickstart guide: http://ws.apache.org/axis2/1_2/quickstartguide.html. Finally, if you ever figure out what the problem was with the WSO2 article--assuming there was a problem with it--please email the author privately letting him/her know so the tutorial can be fixed. This way future newbies won't have to experience the same troubles.
Re: [Axis2] A hello World Example for Axis2 deployment
Could you possibly be using the (older) Crimson parser instead of Xerces? IIRC Crimson has problems with namespaces--which may account for the error that you are getting. I believe Crimson is the default with JDK 1.4. In addition, to simplify your problem, you may wish to run the simple POJO example on the quickstart page[1] and see if you can get the WSDL to appear with *that* example. If not, I would forget your code for the moment and instead concentrate on getting the simple POJO case to work. Glen [1] http://ws.apache.org/axis2/1_2/quickstartguide.html#deploy Am Montag, den 21.05.2007, 15:39 +0200 schrieb Stephane Roy: Hi Anil, A few days ago, I submitted a message on the mailing list about the problem to display the WSDL in the browser, with Axis2.1.2. The full message is there: http://marc.info/?l=axis-userm=117915706112761w=2 It seems you have found the solution for this problem. Could you tell me how you solved the problem ? Thanks in advance. Stephane Roy Alcatel-Lucent Anil Chukkapalli wrote: Glen I figured it out. Thanks Anil On 5/18/07, *Anil Chukkapalli* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Glen I tried it out using the admin utility and it still does not work, it shows the version service and i click on it i get the WSDL. It shows that my service is present but when i click on the service it shows the same error i described. There is little or not code that can cause a null pointer exception as it just echos back the string. I am trying to use your tutorial and i am getting the below error. BUILD FAILED C:\development\mywebservice\mywebservice\build.xml:15: taskdef class org.apache. axis2.tool.ant.AntCodegenTask cannot be found The only thing that i changed in the build.xml file is the property name of the lib.dir to point to my directory which contains all the dependencies that are needed for axis2. This is step 5 in your tutorial property name= lib.dir value=.\lib/ Thanks Anil On 5/17/07, *Glen Mazza* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No, I don't think so. 5.5 should be fine. Go back and place the axis2.war file into the Tomcat webapps directory. Can you access and log into the Axis2 Admin URL at http://localhost:8080/axis2/axis2-admin? (userid/pwd: admin/axis2)? For available services, does it show the Version service? The above is the next step to make sure is working correctly before worrying about the service archive (.aar) file. If the above is working correctly, try deploying your service archive (.aar file) using the admin app above instead of directly placing it in the webapps/axis2 folder. Glen Am Donnerstag, den 17.05.2007, 16:13 -0700 schrieb Anil Chukkapalli: Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are http://localhost:8080%29--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the
Re: [Axis2] A hello World Example for Axis2 deployment
Glen Mazza wrote: Could you possibly be using the (older) Crimson parser instead of Xerces? IIRC Crimson has problems with namespaces--which may account for the error that you are getting. I believe Crimson is the default with JDK 1.4. I'm using Java 1.5 and Tomcat5.5. With Axis2.1.1.1, the WSDL appears correctly but with Axis2.1.2, I have the WSDLException instead. In addition, to simplify your problem, you may wish to run the simple POJO example on the quickstart page[1] and see if you can get the WSDL to appear with *that* example. If not, I would forget your code for the moment and instead concentrate on getting the simple POJO case to work. I will try that. [1] http://ws.apache.org/axis2/1_2/quickstartguide.html#deploy Am Montag, den 21.05.2007, 15:39 +0200 schrieb Stephane Roy: Hi Anil, A few days ago, I submitted a message on the mailing list about the problem to display the WSDL in the browser, with Axis2.1.2. The full message is there: http://marc.info/?l=axis-userm=117915706112761w=2 It seems you have found the solution for this problem. Could you tell me how you solved the problem ? Thanks in advance. Stephane Roy Alcatel-Lucent Anil Chukkapalli wrote: Glen I figured it out. Thanks Anil On 5/18/07, *Anil Chukkapalli* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Glen I tried it out using the admin utility and it still does not work, it shows the version service and i click on it i get the WSDL. It shows that my service is present but when i click on the service it shows the same error i described. There is little or not code that can cause a null pointer exception as it just echos back the string. I am trying to use your tutorial and i am getting the below error. BUILD FAILED C:\development\mywebservice\mywebservice\build.xml:15: taskdef class org.apache. axis2.tool.ant.AntCodegenTask cannot be found The only thing that i changed in the build.xml file is the property name of the lib.dir to point to my directory which contains all the dependencies that are needed for axis2. This is step 5 in your tutorial property name= lib.dir value=.\lib/ Thanks Anil On 5/17/07, *Glen Mazza* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No, I don't think so. 5.5 should be fine. Go back and place the axis2.war file into the Tomcat webapps directory. Can you access and log into the Axis2 Admin URL at http://localhost:8080/axis2/axis2-admin? (userid/pwd: admin/axis2)? For available services, does it show the Version service? The above is the next step to make sure is working correctly before worrying about the service archive (.aar) file. If the above is working correctly, try deploying your service archive (.aar file) using the admin app above instead of directly placing it in the webapps/axis2 folder. Glen Am Donnerstag, den 17.05.2007, 16:13 -0700 schrieb Anil Chukkapalli: Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are http://localhost:8080%29--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with
Re: [Axis2] A hello World Example for Axis2 deployment
Cool. Glen Am Freitag, den 18.05.2007, 12:14 -0700 schrieb Anil Chukkapalli: Glen I figured it out. Thanks Anil On 5/18/07, Anil Chukkapalli [EMAIL PROTECTED] wrote: Glen I tried it out using the admin utility and it still does not work, it shows the version service and i click on it i get the WSDL. It shows that my service is present but when i click on the service it shows the same error i described. There is little or not code that can cause a null pointer exception as it just echos back the string. I am trying to use your tutorial and i am getting the below error. BUILD FAILED C:\development\mywebservice\mywebservice\build.xml:15: taskdef class org.apache. axis2.tool.ant.AntCodegenTask cannot be found The only thing that i changed in the build.xml file is the property name of the lib.dir to point to my directory which contains all the dependencies that are needed for axis2. This is step 5 in your tutorial property name= lib.dir value=.\lib/ Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: No, I don't think so. 5.5 should be fine. Go back and place the axis2.war file into the Tomcat webapps directory. Can you access and log into the Axis2 Admin URL at http://localhost:8080/axis2/axis2-admin? (userid/pwd: admin/axis2)? For available services, does it show the Version service? The above is the next step to make sure is working correctly before worrying about the service archive (.aar) file. If the above is working correctly, try deploying your service archive (.aar file) using the admin app above instead of directly placing it in the webapps/axis2 folder. Glen Am Donnerstag, den 17.05.2007, 16:13 -0700 schrieb Anil Chukkapalli: Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with the tutorial you are using, again you may need to switch to another, or read three or four tutorials until you can
[Axis2] A hello World Example for Axis2 deployment
Hi I am an newbie in Axis2 deployment. Can anyone provide me with a hello world example for deploying an Axis2 web service in Java. Thanks Anil
Re: [Axis2] A hello World Example for Axis2 deployment
Quite Literally: http://wso2.org/library/95 Also, here's my attempt: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with For more articles, check the library at WS02 (http://wso2.org/library) and the Axis knowledge base (http://ws.apache.org/axis2/articles.html). Glen Am Donnerstag, den 17.05.2007, 10:22 -0700 schrieb Anil Chukkapalli: Hi I am an newbie in Axis2 deployment. Can anyone provide me with a hello world example for deploying an Axis2 web service in Java. Thanks Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] A hello World Example for Axis2 deployment
Hi Another newbie question. In the tutorial http://wso2.org/library/95; . The axis2-std-SNAPSHOT-bin distribution comes with a bin directory which contains a Linux shell script and a Windows batch file to start the SimpleHTTPServer: http-server.sh and http-server.bat Start the server pointing to my-axis2-repo directory: where can i find axis2-std-SNAPSHOT-bin or the batch file htp-server.bat. The intention is to Start the server pointing to my-axis2-repo directory. if I can get the batch file then i can deploy the service and test out my Client. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Quite Literally: http://wso2.org/library/95 Also, here's my attempt: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with For more articles, check the library at WS02 (http://wso2.org/library) and the Axis knowledge base (http://ws.apache.org/axis2/articles.html). Glen Am Donnerstag, den 17.05.2007, 10:22 -0700 schrieb Anil Chukkapalli: Hi I am an newbie in Axis2 deployment. Can anyone provide me with a hello world example for deploying an Axis2 web service in Java. Thanks Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] A hello World Example for Axis2 deployment
Sorry, I've never used SimpleHTTPServer before, so I'm unsure. I would recommend getting the AXIS2.WAR file from the downloads, and installing it on Tomcat instead of using SimpleHTTPServer. Then install your web services within the Axis2 web application. If you don't know how to use Tomcat, then you'll need to go to the Tomcat home page for tutorial information. For the most part, you have to know basic Tomcat (or another servlet container) functionality before you can work with Axis2. Glen Anil Chukkapalli escribió: Hi Another newbie question. In the tutorial http://wso2.org/library/95; . The axis2-std-SNAPSHOT-bin distribution comes with a bin directory which contains a Linux shell script and a Windows batch file to start the SimpleHTTPServer: http-server.sh and http-server.bat Start the server pointing to my-axis2-repo directory: where can i find axis2-std-SNAPSHOT-bin or the batch file htp-server.bat. The intention is to Start the server pointing to my-axis2-repo directory. if I can get the batch file then i can deploy the service and test out my Client. Thanks Anil On 5/17/07, * Glen Mazza* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Quite Literally: http://wso2.org/library/95 Also, here's my attempt: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with For more articles, check the library at WS02 (http://wso2.org/library) and the Axis knowledge base (http://ws.apache.org/axis2/articles.html http://ws.apache.org/axis2/articles.html). Glen Am Donnerstag, den 17.05.2007, 10:22 -0700 schrieb Anil Chukkapalli: Hi I am an newbie in Axis2 deployment. Can anyone provide me with a hello world example for deploying an Axis2 web service in Java. Thanks Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] A hello World Example for Axis2 deployment
Hi I am using the tomcat to deploy my web service,i placed the axis2.war file in the webapps folder. Then i placed the .aar file in Tomcat 5.5\webapps\axis2\WEB-INF\services. The problem is that I am getting this error message when i try to see the wsdl http://localhost:8080/axis2/services/HelloWorld?wsdl; i get the below error. I just followed the tutorial buti want toknow if i want to know where to include third part jar files. The tutorial never talks about where to place the WSDL file? org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732) org.apache.axis2.description.AxisService.printWSDL(AxisService.java:597) org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:186) org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:181) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *note* *The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.* The stack trace shows May 17, 2007 1:18:02 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet AxisServlet threw exception org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java :732) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java :597) at org.apache.axis2.transport.http.ListingAgent.processListService( ListingAgent.java:186) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java :181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 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:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) 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:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :870) 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:685) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.axis2.description.AxisService2OM.generateOM( AxisService2OM.java:128) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java :727) ... 19 more Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Sorry, I've never used SimpleHTTPServer before, so I'm unsure. I would recommend getting the AXIS2.WAR file from the downloads, and installing it on Tomcat instead of using SimpleHTTPServer. Then install your web services within the Axis2 web application. If you don't know how to use Tomcat, then you'll need to go to the Tomcat home page for tutorial information. For the most part, you have to know basic Tomcat (or another servlet container) functionality before you can work with Axis2. Glen Anil Chukkapalli escribió: Hi Another newbie question. In the tutorial http://wso2.org/library/95; . The axis2-std-SNAPSHOT-bin distribution comes with a bin directory which contains a Linux shell script and a Windows batch file to start the SimpleHTTPServer: http-server.sh and http-server.bat Start the server pointing to my-axis2-repo directory: where can i find axis2-std-SNAPSHOT-bin or the batch file htp-server.bat. The intention is to Start the server pointing to my-axis2-repo directory. if I can get the batch file then i can deploy the service and test out my Client. Thanks Anil On 5/17/07, * Glen Mazza* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Quite Literally: http://wso2.org/library/95 Also, here's my attempt: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with For more articles, check the library at WS02 ( http://wso2.org/library) and the Axis knowledge base
Re: [Axis2] A hello World Example for Axis2 deployment
Hi the code for HelloWorld.java is shown below package org.HelloWorld; public class HelloWorld { /*This echo metod is going to be exposed as a web service */ public String echo(String val){ return val; } } the services.xml file is also shown below ?xml version=1.0 encoding=UTF-8? service parameter name=HelloWorld locked=false HelloWorld /parameter operation name=echo messageReceiver class= org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation /service i placed services.xml in META-INF file and followed the steps in the http://wso2.org/library/95; tutorial for Axis2 Thanks Anil On 5/17/07, Anil Chukkapalli [EMAIL PROTECTED] wrote: Hi I am using the tomcat to deploy my web service,i placed the axis2.warfile in the webapps folder. Then i placed the .aar file in Tomcat 5.5\webapps\axis2\WEB-INF\services. The problem is that I am getting this error message when i try to see the wsdl http://localhost:8080/axis2/services/HelloWorld?wsdl; i get the below error. I just followed the tutorial buti want toknow if i want to know where to include third part jar files. The tutorial never talks about where to place the WSDL file? org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732) org.apache.axis2.description.AxisService.printWSDL (AxisService.java:597) org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:186) org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:181) javax.servlet.http.HttpServlet.service (HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *note* *The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.* The stack trace shows May 17, 2007 1:18:02 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet AxisServlet threw exception org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java :732) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java :597) at org.apache.axis2.transport.http.ListingAgent.processListService ( ListingAgent.java:186) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java :181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) 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:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) 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:151) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:870) 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:685) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.axis2.description.AxisService2OM.generateOM( AxisService2OM.java:128) at org.apache.axis2.description.AxisService.getWSDL (AxisService.java :727) ... 19 more Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Sorry, I've never used SimpleHTTPServer before, so I'm unsure. I would recommend getting the AXIS2.WAR file from the downloads, and installing it on Tomcat instead of using SimpleHTTPServer. Then install your web services within the Axis2 web application. If you don't know how to use Tomcat, then you'll need to go to the Tomcat home page for tutorial information. For the most part, you have to know basic Tomcat (or another servlet container) functionality before you can work with Axis2. Glen Anil Chukkapalli escribió: Hi Another newbie question. In the tutorial http://wso2.org/library/95; . The axis2-std-SNAPSHOT-bin distribution comes with a bin directory which contains a Linux shell script and a Windows batch file to start the SimpleHTTPServer: http-server.sh and
Re: [Axis2] A hello World Example for Axis2 deployment
Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with the tutorial you are using, again you may need to switch to another, or read three or four tutorials until you can get things working. Keep working at it. Yet another option for you might be the quickstart guide: http://ws.apache.org/axis2/1_2/quickstartguide.html. Finally, if you ever figure out what the problem was with the WSO2 article--assuming there was a problem with it--please email the author privately letting him/her know so the tutorial can be fixed. This way future newbies won't have to experience the same troubles. HTH, Glen Am Donnerstag, den 17.05.2007, 14:53 -0700 schrieb Anil Chukkapalli: Hi the code for HelloWorld.java is shown below package org.HelloWorld; public class HelloWorld { /*This echo metod is going to be exposed as a web service */ public String echo(String val){ return val; } } the services.xml file is also shown below ?xml version=1.0 encoding=UTF-8? service parameter name=HelloWorld locked=false HelloWorld /parameter operation name=echo messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation /service i placed services.xml in META-INF file and followed the steps in the http://wso2.org/library/95; tutorial for Axis2 Thanks Anil On 5/17/07, Anil Chukkapalli [EMAIL PROTECTED] wrote: Hi I am using the tomcat to deploy my web service,i placed the axis2.war file in the webapps folder. Then i placed the .aar file in Tomcat 5.5\webapps\axis2\WEB-INF\services. The problem is that I am getting this error message when i try to see the wsdl http://localhost:8080/axis2/services/HelloWorld?wsdl; i get the below error. I just followed the tutorial buti want toknow if i want to know where to include third part jar files. The tutorial never talks about where to place the WSDL file? org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732) org.apache.axis2.description.AxisService.printWSDL (AxisService.java:597) org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:186) org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:181) javax.servlet.http.HttpServlet.service (HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs. The stack trace shows May 17, 2007 1:18:02 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet AxisServlet threw exception org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:597) at org.apache.axis2.transport.http.ListingAgent.processListService (ListingAgent.java:186) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) 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:210) at
Re: [Axis2] A hello World Example for Axis2 deployment
Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with the tutorial you are using, again you may need to switch to another, or read three or four tutorials until you can get things working. Keep working at it. Yet another option for you might be the quickstart guide: http://ws.apache.org/axis2/1_2/quickstartguide.html. Finally, if you ever figure out what the problem was with the WSO2 article--assuming there was a problem with it--please email the author privately letting him/her know so the tutorial can be fixed. This way future newbies won't have to experience the same troubles. HTH, Glen Am Donnerstag, den 17.05.2007, 14:53 -0700 schrieb Anil Chukkapalli: Hi the code for HelloWorld.java is shown below package org.HelloWorld; public class HelloWorld { /*This echo metod is going to be exposed as a web service */ public String echo(String val){ return val; } } the services.xml file is also shown below ?xml version=1.0 encoding=UTF-8? service parameter name=HelloWorld locked=false HelloWorld /parameter operation name=echo messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation /service i placed services.xml in META-INF file and followed the steps in the http://wso2.org/library/95; tutorial for Axis2 Thanks Anil On 5/17/07, Anil Chukkapalli [EMAIL PROTECTED] wrote: Hi I am using the tomcat to deploy my web service,i placed the axis2.war file in the webapps folder. Then i placed the .aar file in Tomcat 5.5\webapps\axis2\WEB-INF\services. The problem is that I am getting this error message when i try to see the wsdl http://localhost:8080/axis2/services/HelloWorld?wsdl; i get the below error. I just followed the tutorial buti want toknow if i want to know where to include third part jar files. The tutorial never talks about where to place the WSDL file? org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException org.apache.axis2.description.AxisService.getWSDL( AxisService.java:732) org.apache.axis2.description.AxisService.printWSDL (AxisService.java:597) org.apache.axis2.transport.http.ListingAgent.processListService( ListingAgent.java:186) org.apache.axis2.transport.http.AxisServlet.doGet( AxisServlet.java:181) javax.servlet.http.HttpServlet.service (HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java :803) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs. The stack trace shows May 17, 2007 1:18:02 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet AxisServlet threw exception org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.AxisService.getWSDL( AxisService.java:732) at org.apache.axis2.description.AxisService.printWSDL( AxisService.java:597) at org.apache.axis2.transport.http.ListingAgent.processListService( ListingAgent.java:186) at org.apache.axis2.transport.http.AxisServlet.doGet( AxisServlet.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:269) at
Re: [Axis2] A hello World Example for Axis2 deployment
No, I don't think so. 5.5 should be fine. Go back and place the axis2.war file into the Tomcat webapps directory. Can you access and log into the Axis2 Admin URL at http://localhost:8080/axis2/axis2-admin? (userid/pwd: admin/axis2)? For available services, does it show the Version service? The above is the next step to make sure is working correctly before worrying about the service archive (.aar) file. If the above is working correctly, try deploying your service archive (.aar file) using the admin app above instead of directly placing it in the webapps/axis2 folder. Glen Am Donnerstag, den 17.05.2007, 16:13 -0700 schrieb Anil Chukkapalli: Glen Thanks for taking time out to explain everything. I did validate the tomcat install before and executed the sample JSP applications. I am using Tomcat 5.5 instead of Tomcat 6.X as that is present on my deployment box. Can this be an issue. Thanks Anil On 5/17/07, Glen Mazza [EMAIL PROTECTED] wrote: Anil, Sorry you're having so many difficulties. Perhaps the tutorial you are using--and I had previously suggested, alas--isn't very good, as you are having too many problems getting it to work. A newbie-level tutorial should not be causing that much difficulty--it should be making things easy for you. There are more tutorial options--just by looking at the list I had given you, or googling axis tutorial, may help. But what I'm also seeing is that more detective work is needed. What we first need to know is: Does your Tomcat servlet container work properly? Forget about the AXIS WAR file--first run the Tomcat servlet and JSP samples installed by default (at http://localhost:8080)--are you getting the same/similar errors below, or is everything running fine? If the former, forget about Axis and go to the Tomcat user list until the Tomcat samples are working. If the latter, then the problem is with the tutorial you are using, again you may need to switch to another, or read three or four tutorials until you can get things working. Keep working at it. Yet another option for you might be the quickstart guide: http://ws.apache.org/axis2/1_2/quickstartguide.html. Finally, if you ever figure out what the problem was with the WSO2 article--assuming there was a problem with it--please email the author privately letting him/her know so the tutorial can be fixed. This way future newbies won't have to experience the same troubles. HTH, Glen Am Donnerstag, den 17.05.2007, 14:53 -0700 schrieb Anil Chukkapalli: Hi the code for HelloWorld.java is shown below package org.HelloWorld ; public class HelloWorld { /*This echo metod is going to be exposed as a web service */ public String echo(String val){ return val; } } the services.xml file is also shown below ?xml version=1.0 encoding=UTF-8? service parameter name=HelloWorld locked=false HelloWorld /parameter operation name=echo messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation /service i placed services.xml in META-INF file and followed the steps in the http://wso2.org/library/95; tutorial for Axis2 Thanks Anil On 5/17/07, Anil Chukkapalli [EMAIL PROTECTED] wrote: Hi I am using the tomcat to deploy my web service,i placed the axis2.war file in the webapps folder. Then i placed the .aar file in Tomcat 5.5\webapps\axis2\WEB-INF \services . The problem is that I am getting this error message when i try to see the wsdl http://localhost:8080/axis2/services/HelloWorld?wsdl; i get the below error. I just followed the tutorial buti want toknow if i want to know where to include third part jar files. The tutorial never talks about where to place the WSDL file? org.apache.axis2.AxisFault: null; nested exception is: