[jboss-user] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0

santhoshitha do-not-reply at jboss.com
Thu Mar 22 13:08:34 EDT 2007


I know that this is something that's got to do with JAXB. how do i get over it? what is it exactly? 

below is my source code :

@WebService(
	name = "UpdateService",
	targetNamespace = "http://deshaw.com",
	serviceName = "NmUpdateService")	
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
public class NmUpdateService extends HttpServlet
{

/*some declarations and code go in here */

	@WebMethod
	@WebResult(name="returnValues")
		public String[] updateAttributes(@WebParam(name="spn")Integer spn, 
						@WebParam(name="attributes")SecurityAttributes[] attributes, 
						@WebParam(name="userName")String userName,
						@WebParam(name="date")Date date, 
						@WebParam(name="source")Integer source
						)
	{
          StringBuffer cmd = prepareCommand(spn, attributes, date, source);
        
          cmd.append(");}; " );
          String[] returnValues = {};
          try { 
            Object result = pit.submit(cmd.toString(), returnValues.getClass());
            returnValues = (String[]) result;
	    } 
	    catch(Exception e) {e.printStackTrace();}

	    return returnValues;

	}

}

the web service basically invokes a perl engine and passes a command to it. the exception however has got to do with the datatypes used by the web method, if i am right.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030726#4030726

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030726



More information about the jboss-user mailing list