axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Bendersky" <pbender...@gmail.com>
Subject Debug using SimpleHTTPServer
Date Thu, 10 May 2007 19:31:19 GMT
Hi,
I'm trying to setup a development environment with Axis2 where it's
easy for me to debug my services, but at the same time easy to deploy
them on a production server.
After looking around, I thought a good idea was to use Tomcat to
deploy and the embedded SimpleHTTPServer to debug.
So, I created a folder structure like this:
/src/
/server/
/server/conf/axis2.xml
/server/services/
/server/services/MyService
/server/services/MyService/META-INF

Then I configured eclipse to output the class files into
/server/services/MyService, and then wrote a starter class like this:
	public static void main(String[] args) {
        try {
			ConfigurationContext context = ConfigurationContextFactory.
			createConfigurationContextFromFileSystem("server", "server/conf/axis2.xml");
			SimpleHTTPServer server = new SimpleHTTPServer(context, 8080);
			server.start();
		} catch (AxisFault e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

The server starts ok, and I can get the WSDL file just fine. However,
when I try to run any webservice, it doesn't get to the skeleton file
(I'm using xmlbeans, BTW). If I zip the whole MyService folder and
deploy it on Tomcat as an aar file, the service works as expected.

I'm wondering if this is some classloader related issue, or anything.
Does anyone has any hint? Any better idea on how to accomplish an app
that is both easy to debug and easy to deploy at the same time?

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message