in my schema definition i use my own simple types to wrap arround schema
tpes like long, etc.
wsdl2java generates type mappings for each of these simple types:
e.g. customerID to java:long :
qname="ns:customerID"
type="java:long"
whith this i get an ClassNotFoundException in
org.apache.axis.deployment.wsdd.WSDDTypeMapping, method
getLanguageSpecificType(), line 230 which is rethrown
as WSDDException in org.apache.axis.deployment.wsdd.WSDDService, method
deployTypeMapping, line 405
I get this when calling the service the fisrt time
the problem seems to be that method getLanguageSpecificType()
tries to load a Class even if typeQName.getLocalPart() contains the name
of a primitive java type.
as a workarround i inserted the following coding into method
getLanguageSpecificType() at line 229:
java.util.Map primitiveTypes = new java.util.HashMap();
primitiveTypes.put("boolean", boolean.class );
primitiveTypes.put("double", double.class );
primitiveTypes.put("float", float.class );
primitiveTypes.put("int", int.class );
primitiveTypes.put("long", long.class );
primitiveTypes.put("short", short.class );
primitiveTypes.put("byte", byte.class );
Class primClass = (Class) primitiveTypes.get(
typeQName.getLocalPart() );
if ( primClass != null ) {
return primClass;
}
can anybody tell me, if this is really a bug or if i am missing
something