Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 9543 invoked from network); 19 Oct 2009 19:36:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 19:36:14 -0000 Received: (qmail 54818 invoked by uid 500); 19 Oct 2009 19:36:12 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 54751 invoked by uid 500); 19 Oct 2009 19:36:12 -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 54742 invoked by uid 99); 19 Oct 2009 19:36:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 19:36:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sagara.gunathunga@gmail.com designates 209.85.217.218 as permitted sender) Received: from [209.85.217.218] (HELO mail-gx0-f218.google.com) (209.85.217.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 19:36:01 +0000 Received: by gxk10 with SMTP id 10so4374120gxk.3 for ; Mon, 19 Oct 2009 12:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=BS0v9st73kzUMgspJNpNQqi+oiCVvQgJVtFB2ZBaF/k=; b=kOALPEjSibRwK8If5PLQkZNrcPsAvuzPt6Rv6g+R0KdOPfjMozgzRxPjoN1/jFkCNq yFstmGgPAIUjG4TU6TT9BB2YjmhVAiVRcqyhJ0ccHsGpBoIfHnwN8nwBURcS0olzKa1F /iVj77x94h2Ldv5b0uJ2xHgcf5BrkE7hrVpEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Raduz4d5SqB0UeG1s7zox5GbdieJ+ACG8PHc0z9JU1TfjdAZPCkjLZOGgkD58BcddL X2PHcnclkmQfMeko5M7jZb76CULxAWinrD30KR0drrHnbIG1mH+dD7TGUkprItHt8z6V 6qpWhdW9aiP2jN+6r9xoXuX0P/QIkC1ysBCh4= MIME-Version: 1.0 Received: by 10.101.90.12 with SMTP id s12mr3734301anl.77.1255980940271; Mon, 19 Oct 2009 12:35:40 -0700 (PDT) In-Reply-To: <25963099.post@talk.nabble.com> References: <25928644.post@talk.nabble.com> <25963099.post@talk.nabble.com> From: Sagara Gunathunga Date: Tue, 20 Oct 2009 01:05:20 +0530 Message-ID: <474d01b00910191235r651ae536p753fff58a2f1bc3f@mail.gmail.com> Subject: Re: New to Axis2 - Unable to see service To: axis-user@ws.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi I'm not sure I have realized you approach here , I assume you have two applications (axis2 and Axis2WebWs ) in your server deploy folder. If my assumption is correct , Within the scope of your application server both axis2 and Axis2WebWs are two separate web applications. You cant's expect define web service in one application (Axis2WebWs) and it will show in a page that belong to the another web application ( listServices page of Axis2 application) . Above two applications use two different Axis2 repositories . Admin console of axis2 is only display services of it's own repository. These are some of my suggestions here. 1.) If you want to use Axis2 admin console, package your web service as .aar and deploy using the console If you have done correctly this will bring your service details to console and you don't need another web application for this approach. If you will face faulty service exception with this, you can send the sample codes of AAR to the list and someone will help out. 2.) If you do not want to depend on admin console and want to package as EAR content , my suggestion is first try to create your service as a WAR content, You can refer this [1] . If you get success with this, you can include the WAR content in your EAR package exactly like you placing any other .war content under EAR package. But you cant see your services in the console. (Personally I haven't work with EAR and Axis2 but Hope this will work ) 3.) May be you can try to integrate those Admin console features to your EAR file . But again I haven't try for that , better to try out. [1] - http://www.developer.com/open/article.php/3777111/Embedding-Apache-Ax= is2-into-Existing-Applications.htm Thanks, On Mon, Oct 19, 2009 at 11:50 PM, mule_user wrote: > > I changed the directory structure as: > > Axis2WebWs > | > ----src > | =C2=A0 =C2=A0 =C2=A0 | > | =C2=A0 =C2=A0 =C2=A0 ----org.ncc.server > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0----Calculator.java > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0----ICalculator.java > | > ---WebContent > | > ----META-INF > | > ----WEB-INF > =C2=A0 =C2=A0 =C2=A0| > =C2=A0 =C2=A0 =C2=A0-----lib (has all the jar folders from Axis2) > =C2=A0 =C2=A0 =C2=A0| > =C2=A0 =C2=A0 =C2=A0----web.xml > =C2=A0 =C2=A0 | > =C2=A0 =C2=A0 ----services > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ----Calculator > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ----META-INF > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0| > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ----services.xml > > In other words, I removed services.xml from WebContent\META-INF. Instead,= I > created a new directory under WEB-INF as services\Calculator\META-INF and > placed the same services.xml in that. > > After that, I re-deployed the EAR file. NO luck either. I see the same > result as faulty services. I can only see getVersion, does not see > Calculator. > > > > > > > mule_user wrote: >> >> I am new to Axis2, but familiar with Axis1. I am trying to see the servi= ce >> using the Axis2 admin console. I am unable to see the service. That can >> mean many things. Any suggestion will be appreciated. Following are the >> steps I ahve taken: >> >> 1. Deployed axis2.war. As such, I can successfully see >> http://localhost:9081/axis2/services/listServices But obviously, the new >> service created by me is not in that list. >> >> 2. Created a Java web project and deployed it in the same server where >> axis2 admin application was deployed. The structure of the Java project >> is: >> >> Axis2WebWs >> | >> ----src >> | =C2=A0 =C2=A0 =C2=A0 | >> | =C2=A0 =C2=A0 =C2=A0 ----org.ncc.server >> | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | >> | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0----Calculator.java >> | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0----ICalculator.java >> | >> ---WebContent >> | >> ----META-INF >> | =C2=A0 =C2=A0| >> | =C2=A0 =C2=A0----services.xml >> | >> ----WEB-INF >> =C2=A0 =C2=A0 =C2=A0 | >> =C2=A0 =C2=A0 =C2=A0 -----lib (has all the jar folders from Axis2) >> =C2=A0 =C2=A0 =C2=A0 | >> =C2=A0 =C2=A0 =C2=A0 ----web.xml >> >> //////////// >> package org.ncc.server; >> >> public class Calculator implements ICalculator{ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0public int add(int a, int b) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return a + b; >> =C2=A0 =C2=A0 =C2=A0 } >> } >> ///////////// >> package org.ncc.server; >> >> public interface ICalculator { >> =C2=A0 =C2=A0 =C2=A0 int add (int x, int y); >> } >> ////////////////// >> >> =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Simple Calculator Service >> =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 org.ncc.server.Calculator= >> >> =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 > class=3D"org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> >> =C2=A0 =C2=A0 >> >> >> //////////////// >> >> > xmlns=3D"http://java.sun.com/xml/ns/j2ee" >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 Axis2WebWs >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Apache-Ax= is Servlet >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AxisServl= et >> >> org.apache.axis2.transport.http.AxisServlet >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 >> =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AxisServl= et >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /servlet/A= xisServlet >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AxisServl= et >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *.jws >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AxisServl= et >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /services/= * >> =C2=A0 =C2=A0 =C2=A0 >> >> ////////////////////////// >> I create a EAR file for this project and deploy it. Axis2WebWs gets >> deployed successfully. I am not (nor do want to) use Axis2 Admin console >> for deploy. I was hoping that the url below will show my service add: >> http://localhost:9081/axis2/services/listServices >> >> Instead it only lists getVersion method from Axis2 Admin console. >> >> What am I missing? >> >> Even though I do not want to deploy it using Axis2 Admin console, but fo= r >> troubleshooting purposes, I changed ear file to aar file and wanted to >> upload that aar file using Axis2 Admin console. When I looked for the >> service, it mentioned faulty service. I said that cannot find >> services.xml. >> >> Any suggestion will be appreciated. Again, I want to deploy the EAR file >> using Admin console of the app server only (will be scripted eventually)= , >> instead of relying on Axis2 Admin console. >> >> >> > > -- > View this message in context: http://www.nabble.com/New-to-Axis2---Unable= -to-see-service-tp25928644p25963099.html > Sent from the Axis - User mailing list archive at Nabble.com. > > --=20 Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://people.apache.org/~sagara/