Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 91684 invoked from network); 18 May 2007 20:41:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 20:41:07 -0000 Received: (qmail 1591 invoked by uid 500); 18 May 2007 20:41:03 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 1270 invoked by uid 500); 18 May 2007 20:41:02 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 1256 invoked by uid 99); 18 May 2007 20:41:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 13:41:02 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of grm7793@verizon.net designates 206.46.252.44 as permitted sender) Received: from [206.46.252.44] (HELO vms044pub.verizon.net) (206.46.252.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 13:40:54 -0700 Received: from [192.168.1.45] ([70.17.85.99]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JI90017O835IF44@vms044.mailsrvcs.net> for axis-user@ws.apache.org; Fri, 18 May 2007 15:40:18 -0500 (CDT) Date: Fri, 18 May 2007 16:40:17 -0400 From: Glen Mazza Subject: Re: [Axis2] A hello World Example for Axis2 deployment In-reply-to: <6c029ec80705181214k30ee9d6dif6230fd3b42161c6@mail.gmail.com> To: axis-user@ws.apache.org Message-id: <1179520817.355.0.camel@gmazza-desktop> MIME-version: 1.0 X-Mailer: Evolution 2.10.1 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <6c029ec80705171022g627f88a7hf23d3586e7b488f6@mail.gmail.com> <1179423508.21816.2.camel@gmazza-desktop> <6c029ec80705171221o4540a5c8y729551bb99937db1@mail.gmail.com> <464CC4B0.1090100@verizon.net> <6c029ec80705171335o342c0723kfcb71b68780e3006@mail.gmail.com> <6c029ec80705171453o1164252bme0f105745c7cbde@mail.gmail.com> <1179440541.8336.22.camel@gmazza-desktop> <6c029ec80705171613s1eb37cb5pbd3b86b5d0b75711@mail.gmail.com> <1179447977.13005.3.camel@gmazza-desktop> <6c029ec80705181116s58f88d73qe7da1b6546538c22@mail.gmail.com> <6c029ec80705181214k30ee9d6dif6230fd3b42161c6@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 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 > > > > Thanks > Anil > > On 5/17/07, Glen Mazza 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 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 > > > > > > " > > > > > > locked="false"> > > > HelloWorld > > > > > > > > > > > > > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> > > > > > > " > > > > > > 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 < > anilchukkapalli@gmail.com> > > 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 > 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* > > > > > > > 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 > > > > > > ). > > > > > > > > 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: > > > > axis-user-unsubscribe@ws.apache.org > > > > > > > > > > For additional > commands, e-mail: > > > > axis-user-help@ws.apache.org > > > > axis-user-help@ws.apache.org> > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > > axis-user-unsubscribe@ws.apache.org > > > For additional commands, > e-mail: > > > > axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: > axis-user-help@ws.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: > axis-user-help@ws.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org