axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ana Belén Antón Gironés <>
Subject RE: Problem building available services
Date Wed, 03 Oct 2007 07:25:26 GMT
Hello Suran, 

My service makes use of several packages and classes and interfaces. It has
a complex structure. So, I have created the following folder structure:

C:\Program Files\Apache Software Foundation\Tomcat
	- MyService
			- myproject
				- serviceone
						-Otherclass.class [other
object which MyService needs]
					-folder1[other folders with the code
of the rest of classes and interfaces ]
						- ...
					- ...	
		-lib [libs used by my application] 
			- ...
		-[several .xml files needed by my service]

Note that the "eu" folder is a full copy of the "src" folder created in my

My "" is:

package eu.myproject.serviceone.myservice;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;

import eu.myproject.serviceone.exceptions.AGSCException;
import eu.myproject.serviceone.exceptions.AGSException;
import eu.myproject.serviceone.exceptions.AGSNFException;
import eu.myproject.serviceone.folder1.Class11;
import eu.myproject.serviceone.folder2.Class21;
import eu.myproject.serviceone.folder3.Class31;
import eu.myproject.serviceone.folder3.Class32;

public class MyService implements Class32{
	public List<Class21> getAllClassObj(List<Class31> constraintsList)
throws AGSNFException {
		List<Class21> ClassObjList = new ArrayList<Class21>();
       	return ClassObjList ;

	public Class21 getClassObj(String id) throws AGSNFException{
		//Class21 is an interface and Class21 is the object which
implements the interface
		Class21Object classobj = null;
		return classobj;
	private boolean method1(List<Class31> constraints){
		// code...
		return true;
	private String method2(List<Class31> constraints){	
		String Xpath = "";
		return Xpath;	
	private String method3(Integer id){
		String path = "";
		return path;


Please, note that this class implements an interface (called Class32..) and
my service offers only two available operations.

I hope you understand the aforementioned complex structure and code. I
haven't copy the full class code because it is very long!

Finally, my "services.xml" file is:

<service name="MyService" scope="application">
    <parameter name="ServiceClass">

Regarding the .aar file...I work with Eclipse and I have installed a plugin
to generate .aar files ("Axis Service Archiver 1.0.0"). I have added the
plugin "Axis2 Coden Wizard 1.2.0" too. Using the first tool Eclipse
generates an .aar file, but it doesn't work when I upload the service. I
could explain step to step what I do for that.

Thank you very much for your interest in it and I hope you can help me
because I am very lost. Kind regards,

Ana Belén.

>Suran Jayathilaka wrote:
>Hullo Ana,
>Can you attach your service class code, and describe any other resources
you are using? That may help in figuring out what's wrong.
>And did you mean that you don't know how to make an .aar file or that you
don't know how to include your dependancy jars with your service?

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message