Thanx guys! It turned out to be META-INF naming. The reason why I used meta-inf (lowercase) was that I opened a sample jar (sample1.jar) in winzip and saw the folder of service.xml displayed by winzip to be in lower case. May be that's the winzip custom style. Ajith! thanks for the explanatory notes.
Thanks Jayachandra On Mon, 28 Feb 2005 13:34:37 +0600, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > Hi; > I have doubt about your meta-inf , it should be META-INF not meta-inf , try > to make that changes and try again. > You can also use the tool that we have provide to build service jar file > using that you can build the jar file and you can replace your service.xml > with the one default service.xml. > > > Deepal > > ----- Original Message ----- > From: "jayachandra" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Monday, February 28, 2005 12:27 PM > Subject: [Axis2] problems with new web service deployment > > > Hi Axis 2 Community! > > > > I wanted to deploy in Axis2 a small webservice whose implementation > > class is myEchoExample (similar as Echo.java provided under test > > directory) > > > > The class code looks as simple as > > > > package examples; > > import org.apache.axis.om.OMElement; > > public class myEchoExample { > > public myEchoExample() { > > } > > public void echoVoid() { > > System.out.println("echo Service Called"); > > } > > public OMElement echoOMElement(OMElement omEle) { > > omEle.setLocalName(omEle.getLocalName() + "Response"); > > return omEle; > > } > > public String echoString(String in) { > > return in; > > } > > public int echoInt(int in) { > > return in; > > } > > } > > > > I compiled this and also wrote a meta-inf/service.xml as follows > > > > <service provider="org.apache.axis.providers.RawXMLProvider" > > style="rpc" contextPath="services"> > > <java:implementation class="examples.myEchoExample" > > xmlns:java="http://ws.apache.org/axis2/deployment/java" /> > > <operation name="echoVoid" /> > > <operation name="echoOMElement" /> > > <operation name="echoString" /> > > <operation name="echoInt" /> > > </service> > > > > I then packaged the class file and service.xml (retaining their > > directory structure) into a myEchoExample.jar and dumped it inside > > web-inf/services directory (I even tried the upload.jsp web > > interface). But I don't seem to find myEchoExample listed as a > > service. Did I miss something. > > Plz kindly help. > > > > Thanks in advance, > > Jayachandra > > > > > > -- -- Jaya
