Yes ! 
C:\axis2-1.6.1\samples\jaxws-addressbook \ README.txt saies
"(b) Copy the service implementation JAR file from the sample target directory 
to the appropriate Axis2 repository directory, 
%AXIS2_HOME%\repository\servicejars.  Note that JAR files in this ....." 
I catched on %AXIS2_HOME%\repository\servicejars means 
%AXIS2_HOME%\repository\service\*.jar 
but I made folder called servicejars as C:\axis2-1.6.1\repository\servicejars 
.drop down jaxws-addressbook-1.6.1.jar here then generate service as bellows

[INFO] Deploying Web service: version.aar - 
file:/C:/axis2-1.6.1/repository/services/version.aar[INFO] [SimpleAxisServer] 
Started[SimpleAxisServer] Started[INFO] Listening on port 8080[INFO] Deploying 
artifact : 
C:\axis2-1.6.1\repository\servicejars\jaxws-addressbook-1.6.1.jar[INFO] 
Deploying JAXWS annotated class 
org.apache.axis2.jaxws.addressbook.AddressBookImpl as a service - 
AddressBookImplService
then from C:\axis2-1.6.1\samples\jaxws-addressbook
do next the Dispatch client command java 
-Djava.ext.dirs=%AXIS2_HOME%\lib;%JAVA_HOME%\jre\lib\ext -cp target/classes 
org.apache.axis2.jaxws.addressbook.AddressBookClient
then retrieve bellows !  thank you...
----------------------------C:\axis2-1.6.1\samples\jaxws-addressbook> java 
-Djava.ext.dirs=%AXIS2_HOME%\lib;%JAVA_HOME%\jre\lib\ext -cp target/classes 
org.apache.axis2.jaxws.addressbook.AddressBookClientAddressBookClient 
...log4j:WARN No appenders could be found for logger 
(org.apache.axis2.metadata.registry.MetadataFactoryRegistry).log4j:WARN Please 
initialize the log4j system properly.>> Invoking sync Dispatch for AddEntryAdd 
Entry response: <dlwmin:addEntryResponse 
xmlns:dlwmin="http://addressbook.jaxws.axis2.apache.org/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><return 
xmlns:ns2="http://addressbook.jaxws.axis2.apache.org";>AddEntry 
Completed!</return></dlwmin:addEntryResponse>
>> Invoking Dispatch for findByLastNameFind response: 
>> <dlwmin:findByLastNameResponse 
>> xmlns:dlwmin="http://addressbook.jaxws.axis2.apache.org/"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><return 
>> xmlns:ns2="http://addressbook.jaxws.axis2.apache.org";><firstName>firstName</firstName><lastName>lastName</lastName><phone>phone</phone><street>street</street>
>>                ==> Response prepared at 
>> AddressBookImpl::findByLastName(String 
>> lastName)<city>city</city><state>state</state></return></dlwmin:findByLastNameResponse>----------------------------
Tomo ikeda
From: sagara.gunathu...@gmail.com
Date: Wed, 25 Jan 2012 18:05:22 +0530
Subject: Re: I've just entered axis-user list for solving some issues. (1) 
axis2-1.6.1\samples's maven build pattern needs services.xml
To: java-user@axis.apache.org

You have to read this guide[1] too. Since this service packaged as a .jar 
archive it should deploy in a directory called "servicejars" not "services". In 
your case you can create a following directory and copy your .jar file there. 
HTH



 C:\axis2-1.6.1\repository\servicejars\jaxws-addressbook-1.6.1.jar

[1] - http://axis.apache.org/axis2/java/core/docs/jaxws-guide.html#DeployService



Thanks ! 

2012/1/25 IKEDA TOMOKAZU <tom...@live.jp>






Dear SirNow, I just started practice axis2 programming using samples inside 
axis2-1.6.1-bin.zip but some trouble happened.
Bellow C:\axis2-1.6.1\samples 


databindingfaulthandlingjava_first_jaxwsjaxws-addressbookjaxws-calculatorjaxws-dynamicjaxws-interopjaxws-samplesjaxws-version

mtompojopojoguidepojoguidespringquickstartquickstartadbquickstartaxiomquickstartjibxquickstartxmlbeans
these buid way is maven for jax2-*, and ant for except these. but if build 
using maven ( pom.xml ) for jaxws-addressbook, etc..

but it seems to need "services.xml".  For example like bellow messages. 
<
 div>[ERROR] The jaxws-addressbookr-1.6.1.jar service, which is not valid, 
caused The services.xml file cannot be found for the service: 
C:\axis2-1.6.1\repository\services\jaxws-addressbook-1.6.1.jar


How can we generate this each service.xml and include to each .jar ?
--TOMO                                            


-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/


LinkedIn - http://www.linkedin.com/in/ssagara
                                          

Reply via email to