Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 26049 invoked from network); 21 May 2007 14:21:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2007 14:21:05 -0000 Received: (qmail 75297 invoked by uid 500); 21 May 2007 14:20:59 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 75270 invoked by uid 500); 21 May 2007 14:20:59 -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 75259 invoked by uid 99); 21 May 2007 14:20:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 07:20:59 -0700 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=INFO_TLD,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.40 as permitted sender) Received: from [206.46.252.40] (HELO vms040pub.verizon.net) (206.46.252.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 07:20:52 -0700 Received: from [192.168.1.45] ([70.18.239.30]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JIE00I6DAHVCQN2@vms040.mailsrvcs.net> for axis-user@ws.apache.org; Mon, 21 May 2007 09:20:20 -0500 (CDT) Date: Mon, 21 May 2007 10:20:19 -0400 From: Glen Mazza Subject: Re: [Axis2] A hello World Example for Axis2 deployment In-reply-to: <4651A109.7050801@alcatel-lucent.fr> To: axis-user@ws.apache.org Message-id: <1179757219.11406.3.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> <4651A109.7050801@alcatel-lucent.fr> X-Virus-Checked: Checked by ClamAV on apache.org 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-user&m=117915706112761&w=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* > > 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* < grm7793@verizon.net > > > 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 < grm7793@verizon.net > > > 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 > > > > > > > > " > > > > > > > > > > > > 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* > > > < grm7793@verizon.net > > > > > > >> 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org