You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andy Zeneski <ja...@zsolv.com> on 2001/12/06 16:30:26 UTC

Custom Deployment

I have spoke with a few of you personally, but thought it would be better to
ask this via the mailing list so, if for no other reason there is a record
of the question and the answer may help someone else.

How do I use the automatic deployment functionality? I wish to deploy my
services not using a wsdd but rather an internal method. My services, may or
may not be SOAP services. If they are then they will be flagged. I wish to
walk the list of services and for those which are flagged deploy them to the
engine.

I tried this as a test:

('engine' is a instance of AxisServer)

SOAPService svc = new SOAPService();
try {
  svc.setName("MyService");
  svc.setPivotHandler(engine.getHandler("java:RPC"));
  svc.setOption("className","MyService");
  svc.setOption("methodName","*");
  engine.deployService("MyService",svc);
}
catch ( Exception e ) {
 e.printStackTrace();
}

AxisEngine.deployService(AxisEngine.java:430) - NullPointerException

That is what I get from the stack trace. What I have done is modified the
MyService.java and commented out the package name. I compiled the class and
dropped it into /WEB-INF/classes. Now, what I would like to do is test my
engine, by running this service. My engine is not conventional, it is based
on the AxisServlet but is part of a web event called by a controller servlet
rather then a servlet itself.

Can anyone offer any assistance?

Andy