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 "Haddad, William" <WH...@russellmellon.com> on 2003/09/15 22:00:06 UTC

deploying with a wsdd file

Hi

I have installed axis on two different systems, one a Tomcat instance on an internal network server and the other on my laptop with a BEJY server. Both run the jws files fine, and both fail to allow me to deploy the identical service as a class, using a deploy.wsdd file. I have tried using Ant to do the invokation of AdminClient as follows:
<target name="deployToAxis">
		<jar destfile="${distDir}/sprams.jar" basedir="${basedir}/bin" includes="*.class" update="yes"/>
		<java classname="org.apache.axis.client.AdminClient" >
			<arg value="-lhttp://Rm-bos-dbs1:8080/axis/services/AdminService ${basedir}/wsdd/deploy.wsdd" />		
		</java>
	</target>

and the result is a complete rundown on usage, followed by:
 [java] Exception:: org.eclipse.ant.core.AntSecurityException
        [java] null
BUILD SUCCESSFUL

Why would Ant have a security exception? I have tried to similarly invoke the AdminClient just to get a list of services, and received the same response. What's going on? Ant is finding the AdminClient class. This is not the problem of doing admin from other than the localhost, because it also occurs on the laptop, where it IS the localhost. Is there something about user authentication I'm missing? then why would the jws files work?

Re: deploying with a wsdd file

Posted by Stephen Gordon <st...@student.usyd.edu.au>.
Try using the axis-admin Ant task.

Stephen


Haddad, William wrote:
> Hi
> 
> I have installed axis on two different systems, one a Tomcat instance on an internal network server and the other on my laptop with a BEJY server. Both run the jws files fine, and both fail to allow me to deploy the identical service as a class, using a deploy.wsdd file. I have tried using Ant to do the invokation of AdminClient as follows:
> <target name="deployToAxis">
> 		<jar destfile="${distDir}/sprams.jar" basedir="${basedir}/bin" includes="*.class" update="yes"/>
> 		<java classname="org.apache.axis.client.AdminClient" >
> 			<arg value="-lhttp://Rm-bos-dbs1:8080/axis/services/AdminService ${basedir}/wsdd/deploy.wsdd" />		
> 		</java>
> 	</target>
> 
> and the result is a complete rundown on usage, followed by:
>  [java] Exception:: org.eclipse.ant.core.AntSecurityException
>         [java] null
> BUILD SUCCESSFUL
> 
> Why would Ant have a security exception? I have tried to similarly invoke the AdminClient just to get a list of services, and received the same response. What's going on? Ant is finding the AdminClient class. This is not the problem of doing admin from other than the localhost, because it also occurs on the laptop, where it IS the localhost. Is there something about user authentication I'm missing? then why would the jws files work?
> 
>