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 > > 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 > > (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] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
