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 Steven Smith <st...@geometryit.com> on 2005/06/14 00:16:07 UTC

AdminClient Deployment problem, possibly user related

I am trying to develop a Web Service and have come to a stage where I want
to deploy it to start testing. However, I can't deploy and the error it
gives me is totally useless. I have noticed others with the same error on
the mailing list, but I can't find an answer to any of them.
 
I am deploying to Tomcat 4.1.24 containing Axis 1.2. I have tried both
calling the AdminClient directly and using the Ant task, both of which give
the same error.
 
I created the WSDL file by hand and then used that to generate the Java code
and WSDD files so I am pretty sure that these are fine. I think the problem
is to do with admin users. I have explicitly set the admin password but
there is no mention of a username to use with it anywhere I have looked. I
can find the password in the server-config.wsdd file but where do users came
from? According to all of the documentation you don't even need to specify a
user. I have tried anything I can think of, but no success. I am on the same
machine, but have enabled remote administration anyway (to no avail).
 
The error message is:
 
deploy:
[axis-admin] Processing file <code-path>\deploy.wsdd
[axis-admin] AxisFault
[axis-admin]  faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[axis-admin]  faultSubcode: 
[axis-admin]  faultString: java.lang.reflect.InvocationTargetException
[axis-admin]  faultActor: 
[axis-admin]  faultNode: 
[axis-admin]  faultDetail: 
[axis-admin]  {http://xml.apache.org/axis/}hostname:kalel
[axis-admin] Running axis-admin with parameters:
[axis-admin]   action:
[axis-admin]    <http://localhost:8080/axis/services/AdminService>
url:http://localhost:8080/axis/services/AdminService
[axis-admin]   hostname:null
[axis-admin]   port:0
[axis-admin]   servletPath:null
[axis-admin]   fileProtocol:null
[axis-admin]   username:null
[axis-admin]   password:null
[axis-admin]   transportChain:null
[axis-admin]   debug:true
 
BUILD FAILED
file:<my-path>/WebServices/development/build/anthill_build.xml:136:
axis-admin failed with
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
java.lang.reflect.InvocationTargetException

 
Any help would be greatly appreciated.
 
Thankyou.
 


-- 
Steven Smith <st...@geometryit.com>
Software Developer / Analyst


	
Telephone	 : 	 03 6223 1999	
Facsimile	 : 	 03 6223 1988	
Web	 : 	 www.geometryit.com <outbind://44/www.geometryit.com> 	
Address	 : 	 31 Salamanca Square, Battery Point, TAS 7004, Australia

Postal	 : 	 PO Box 844, Sandy Bay, TAS 7006, Australia	
	 	
 

RE: AdminClient Deployment problem, possibly user related

Posted by Steven Smith <st...@geometryit.com>.
The WSDL:

<?xml version="1.0"?>
<wsdl:definitions name="FTMapping"
	
targetNamespace="http://www.geometryit.com/WebService/Forestry/Mapping"
	xmlns="http://schemas.xmlsoap.org/wsdl/"
	xmlns:tns="http://www.geometryit.com/WebService/Forestry/Mapping"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:gml="http://www.opengis.net/gml"
>
	<xsd:schema
	
targetNamespace="http://www.geometryit.com/WebService/Forestry/Mapping"
		xmlns="http://www.w3.org/2001/XMLSchema"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	>
	<!--
		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
		 xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
file:/C:/Program%20Files/Exchanger%20XML%20Editor%203.0/types/XML%20Schema/V
alidation/XMLSchema.xsd"
	-->
		<xsd:import namespace="http://www.opengis.net/gml"
schemaLocation="feature.xsd" />
	<!--
		Data Elements
	-->
		<xsd:element name="attribute">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="name"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element name="op"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element name="value"
type="xsd:string" minOccurs="0" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="spatial">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="property"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element name="relationship"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:choice>
						<xsd:element name="geometry"
type="gml:AbstractGeometryType" minOccurs="1" maxOccurs="1" />
						<xsd:element
name="collection" type="gml:GeometryCollectionType" minOccurs="1"
maxOccurs="1" />
					</xsd:choice>
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:group name="Expression">
			<xsd:choice>
				<xsd:element ref="tns:spatial" />
				<xsd:element ref="tns:attribute" />
				<xsd:element ref="tns:and" />
				<xsd:element ref="tns:or" />
				<xsd:element ref="tns:not" />
			</xsd:choice>
		</xsd:group>
		<xsd:element name="and">
			<xsd:complexType>
				<xsd:sequence>
				<xsd:group ref="tns:Expression" />
				<xsd:group ref="tns:Expression" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="or">
			<xsd:complexType>
				<xsd:sequence>
				<xsd:group ref="tns:Expression" />
				<xsd:group ref="tns:Expression" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="not">
			<xsd:complexType>
				<xsd:group ref="tns:Expression" />
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="filter">
			<xsd:complexType>
				<xsd:group ref="tns:Expression" />
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="query">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="fields"
type="xsd:string" />
					<xsd:element ref="tns:filter" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="featureConstraints">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="offset"
type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
					<xsd:element name="length"
type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="output">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="geometry"
type="xsd:boolean" minOccurs="0" maxOccurs="1" />
					<xsd:element name="envelope"
type="xsd:boolean" minOccurs="0" maxOccurs="1" />
					<xsd:element name="mode"
type="xsd:string" minOccurs="1" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="envelope">
			<xsd:complexType>
				<xsd:attribute name="minX" type="xsd:double"
/>
				<xsd:attribute name="minY" type="xsd:double"
/>
				<xsd:attribute name="maxX" type="xsd:double"
/>
				<xsd:attribute name="maxY" type="xsd:double"
/>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="view">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:attribute name="srs"
type="xsd:string" />
					<xsd:element ref="tns:envelope"
minOccurs="1" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="image">
			<xsd:complexType>
				<xsd:all>
					<xsd:element name="width"
type="xsd:integer" minOccurs="1" maxOccurs="1" />
					<xsd:element name="height"
type="xsd:integer" minOccurs="1" maxOccurs="1" />
					<xsd:element name="format"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element name="backgroundColor"
type="xsd:string" minOccurs="0" maxOccurs="1" />
					<xsd:element name="transparent"
type="xsd:boolean" minOccurs="0" maxOccurs="1" />
				</xsd:all>
			</xsd:complexType>
		</xsd:element>
	<!--
		Request Elements
	-->
		<xsd:element name="GetFeatures">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="layer"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element
ref="tns:featureConstraints" minOccurs="0" maxOccurs="1" />
					<xsd:element ref="tns:query"
minOccurs="0" maxOccurs="1" />
					<xsd:element ref="tns:output"
minOccurs="0" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
		<xsd:element name="GetImage">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="layers"
type="xsd:string" minOccurs="1" maxOccurs="1" />
					<xsd:element ref="tns:view"
minOccurs="1" maxOccurs="1" />
					<xsd:element ref="tns:filter"
minOccurs="0" maxOccurs="1" />
					<xsd:element ref="tns:image"
minOccurs="0" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
	
	<!--
		Add schema for GetFeatures response
	-->
	
		<xsd:element name="GetFeaturesResponse">
			<xsd:complexType>
				<xsd:sequence>
<!--
					<xsd:element name="success"
type="xsd:boolean" minOccurs="1" maxOccurs="1" />
-->
					<xsd:element ref="tns:envelope"
minOccurs="0" maxOccurs="1" />
<!--
					<xsd:element name="geometry"
type="gml:AbstractFeatureCollectionType" minOccurs="0" maxOccurs="1" />
-->
					<xsd:element name="location"
type="xsd:anyURI" minOccurs="1" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
	
	<!--
		Add schema for GetImage response
	-->
	
		<xsd:element name="GetImageResponse">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="location"
type="xsd:anyURI" minOccurs="1" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
	
	<!--
		Exceptions
	-->
	
		<xsd:element name="FTMappingException">
			<xsd:complexType>
				<xsd:sequence>
					<xsd:element name="code"
type="xsd:int" minOccurs="1" maxOccurs="1" />
					<xsd:element name="message"
type="xsd:string" minOccurs="0" maxOccurs="1" />
				</xsd:sequence>
			</xsd:complexType>
		</xsd:element>
	</xsd:schema>
	
	<wsdl:message name="GetFeaturesRequest">
		<wsdl:part name="request" element="tns:GetFeatures" />
	</wsdl:message>
	<wsdl:message name="GetFeaturesResponse">
		<wsdl:part name="response" element="tns:GetFeaturesResponse"
/>
	</wsdl:message>
	<wsdl:message name="GetImageRequest">
		<wsdl:part name="request" element="tns:GetImage" />
	</wsdl:message>
	<wsdl:message name="GetImageResponse">
		<wsdl:part name="response" element="tns:GetImageResponse" />
	</wsdl:message>
	<wsdl:message name="Exception">
		<wsdl:part name="error" element="tns:FTMappingException" />
	</wsdl:message>
	
	<wsdl:portType name="FTMappingPortType">
		<wsdl:operation name="GetFeatures">
			<wsdl:input message="tns:GetFeaturesRequest"
name="GetFeaturesRequest" />
			<wsdl:output message="tns:GetFeaturesResponse"
name="GetFeaturesResponse" />
<!--
			<wsdl:fault message="tns:Exception" name="error" />
-->
		</wsdl:operation>
		<wsdl:operation name="GetImage">
			<wsdl:input message="tns:GetImageRequest"
name="GetImageRequest" />
			<wsdl:output message="tns:GetImageResponse"
name="GetImageResponse" />
<!--
			<wsdl:fault message="tns:Exception" name="error" />
-->
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="FTMappingBinding" type="tns:FTMappingPortType">
		<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="GetFeatures">
			<soap:operation
soapAction="http://www.geometryit.com/WebService/Forestry/Mapping/GetFeature
s" />
			<wsdl:input>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:output>
<!--
			<wsdl:fault>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:fault>
-->
<!--
			<wsdl:input>
				<soap:body 
					use="encoded"
	
namespace="http://kalel:8080/wsdl/FTMapping/encoding"
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</wsdl:input>
			<wsdl:output>
				<soap:body 
					use="encoded"
	
namespace="http://kalel:8080/wsdl/FTMapping/encoding"
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</wsdl:output>
-->
		</wsdl:operation>
		<wsdl:operation name="GetImage">
			<soap:operation
soapAction="http://www.geometryit.com/WebService/Forestry/Mapping/GetImage"
/>
			<wsdl:input>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:output>
<!--
			<wsdl:fault>
				<soap:body
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
	
namespace="http://www.geometryit.com/WebService/Forestry/Mapping"
					use="literal" />
			</wsdl:fault>
-->
<!--
			<wsdl:input>
				<soap:body 
					use="encoded"
	
namespace="http://kalel:8080/wsdl/FTMapping/encoding"
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</wsdl:input>
			<wsdl:output>
				<soap:body 
					use="encoded"
	
namespace="http://kalel:8080/wsdl/FTMapping/encoding"
	
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</wsdl:output>
-->
		</wsdl:operation>
	</wsdl:binding>
	
	<wsdl:service name="FTMappingService">
<!--
		<wsdl:documentation>Forestry Tasmania Mapping
Service</wsdl:documentation>
-->
		<wsdl:port name="FTMappingPort"
binding="tns:FTMappingBinding">
			<soap:address
location="http://www.geometryit.com/WebService/Forestry/Mapping/FTMappingSer
vice" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions> 

I have commented out the fault mechanism thinking that it may have been the
issue. Then I couldn't find how to actually use my exception type in Java
code so I left it out (may get back to that later).




-- 
Steven Smith <st...@geometry.com.au>
Software Developer / Analyst

	
Telephone	 : 	 03 6223 1999	 
Facsimile	 : 	 03 6223 1988	 
Web	 : 	 www.geometry.com.au	 
Address	 : 	 31 Salamanca Square, Battery Point, TAS 7004, Australia

Postal	 : 	 PO Box 844, Sandy Bay, TAS 7006, Australia	 
	 	

-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
Sent: Tuesday, 14 June 2005 8:35 AM
To: axis-user@ws.apache.org
Subject: Re: AdminClient Deployment problem, possibly user related

WSDL please...

On 6/13/05, Steven Smith <st...@geometryit.com> wrote:
>  
>  
> I am trying to develop a Web Service and have come to a stage where I 
> want to deploy it to start testing. However, I can't deploy and the 
> error it gives me is totally useless. I have noticed others with the 
> same error on the mailing list, but I can't find an answer to any of them.
>   
> I am deploying to Tomcat 4.1.24 containing Axis 1.2. I have tried both 
> calling the AdminClient directly and using the Ant task, both of which 
> give the same error.
>   
> I created the WSDL file by hand and then used that to generate the 
> Java code and WSDD files so I am pretty sure that these are fine. I 
> think the problem is to do with admin users. I have explicitly set the 
> admin password but there is no mention of a username to use with it 
> anywhere I have looked. I can find the password in the 
> server-config.wsdd file but where do users came from? According to all 
> of the documentation you don't even need to specify a user. I have 
> tried anything I can think of, but no success. I am on the same machine,
but have enabled remote administration anyway (to no avail).
>   
> The error message is: 
>   
> deploy:
> [axis-admin] Processing file <code-path>\deploy.wsdd [axis-admin] 
> AxisFault [axis-admin]  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> [axis-admin]  faultSubcode: 
> [axis-admin]  faultString:
> java.lang.reflect.InvocationTargetException
> [axis-admin]  faultActor: 
> [axis-admin]  faultNode: 
> [axis-admin]  faultDetail: 
> [axis-admin]  {http://xml.apache.org/axis/}hostname:kalel
> [axis-admin] Running axis-admin with parameters:
> [axis-admin]   action:
> [axis-admin]
> url:http://localhost:8080/axis/services/AdminService
> [axis-admin]   hostname:null
> [axis-admin]   port:0
> [axis-admin]   servletPath:null
> [axis-admin]   fileProtocol:null
> [axis-admin]   username:null
> [axis-admin]   password:null
> [axis-admin]   transportChain:null
> [axis-admin]   debug:true 
>   
> BUILD FAILED
> file:<my-path>/WebServices/development/build/anthill_build.xml:136:
> axis-admin failed with
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> java.lang.reflect.InvocationTargetException
>  
>   
> Any help would be greatly appreciated. 
>   
> Thankyou. 
>   
> 
> --
> Steven Smith <st...@geometryit.com> Software Developer / 
> Analyst
>  
>  
>  
>  Telephone :  03 6223 1999
>  Facsimile :  03 6223 1988
>  Web :  www.geometryit.com
>  Address :  31 Salamanca Square, Battery Point, TAS 7004, Australia  
> Postal :  PO Box 844, Sandy Bay, TAS 7006, Australia
>



Re: AdminClient Deployment problem, possibly user related

Posted by Anne Thomas Manes <at...@gmail.com>.
WSDL please...

On 6/13/05, Steven Smith <st...@geometryit.com> wrote:
>  
>  
> I am trying to develop a Web Service and have come to a stage where I want
> to deploy it to start testing. However, I can't deploy and the error it
> gives me is totally useless. I have noticed others with the same error on
> the mailing list, but I can't find an answer to any of them. 
>   
> I am deploying to Tomcat 4.1.24 containing Axis 1.2. I have tried both
> calling the AdminClient directly and using the Ant task, both of which give
> the same error. 
>   
> I created the WSDL file by hand and then used that to generate the Java code
> and WSDD files so I am pretty sure that these are fine. I think the problem
> is to do with admin users. I have explicitly set the admin password but
> there is no mention of a username to use with it anywhere I have looked. I
> can find the password in the server-config.wsdd file but where do users came
> from? According to all of the documentation you don't even need to specify a
> user. I have tried anything I can think of, but no success. I am on the same
> machine, but have enabled remote administration anyway (to no avail). 
>   
> The error message is: 
>   
> deploy:
> [axis-admin] Processing file <code-path>\deploy.wsdd
> [axis-admin] AxisFault
> [axis-admin]  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> [axis-admin]  faultSubcode: 
> [axis-admin]  faultString:
> java.lang.reflect.InvocationTargetException
> [axis-admin]  faultActor: 
> [axis-admin]  faultNode: 
> [axis-admin]  faultDetail: 
> [axis-admin]  {http://xml.apache.org/axis/}hostname:kalel
> [axis-admin] Running axis-admin with parameters:
> [axis-admin]   action:
> [axis-admin]  
> url:http://localhost:8080/axis/services/AdminService
> [axis-admin]   hostname:null
> [axis-admin]   port:0
> [axis-admin]   servletPath:null
> [axis-admin]   fileProtocol:null
> [axis-admin]   username:null
> [axis-admin]   password:null
> [axis-admin]   transportChain:null
> [axis-admin]   debug:true 
>   
> BUILD FAILED
> file:<my-path>/WebServices/development/build/anthill_build.xml:136:
> axis-admin failed with 
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> java.lang.reflect.InvocationTargetException
>  
>   
> Any help would be greatly appreciated. 
>   
> Thankyou. 
>   
> 
> -- 
> Steven Smith <st...@geometryit.com>
> Software Developer / Analyst
>  
>  
>  
>  Telephone :  03 6223 1999 
>  Facsimile :  03 6223 1988 
>  Web :  www.geometryit.com 
>  Address :  31 Salamanca Square, Battery Point, TAS 7004, Australia 
>  Postal :  PO Box 844, Sandy Bay, TAS 7006, Australia 
>