You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Daniel Kruler <dk...@giantbear.com> on 2001/05/24 23:15:07 UTC

Why am I getting this error?

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\tomcat\common\lib\apache_soap.jar(org/apache/soap/SOAPException.ja
va): Public class org.apache.soap.SOAPException must be defined in a
file called "SOAPException.java".


I wrote a SOAPProxy that executes generic methods and sometimes when I
call the method that contains the following code I get the above error:
	if (url == null)
	{
	  throw new SOAPException(Constants.FAULT_CODE_CLIENT,
	  "A URL must be specified via " +
	  "SOAPTest_ServiceProxy.setEndPoint(URL).");
	}

	call.setMethodName(methodName);
	call.setParams(params);
	resp = call.invoke(url, SOAPActionURI);
	params.clear();

	// Check the response.
	if (resp.generatedFault())
	{
	  Fault fault = resp.getFault();
	  System.out.println("SOAPServiceProxy> "+fault.toString()+" was
generated.");	
	  throw new SOAPException(fault.getFaultCode(),
fault.getFaultString());
	} 


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org