You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2005/09/21 05:22:31 UTC

[jira] Commented: (AXIS2-231) trim configuration data from the XML doc, like the ServiceClass param

    [ http://issues.apache.org/jira/browse/AXIS2-231?page=comments#action_12330062 ] 

Deepal Jayasinghe commented on AXIS2-231:
-----------------------------------------

At the deployment time I am not going to care about value of parameters in any descriptor , I just create parameter object out of the parameter  element and the value of parameter can be any value (any xml junk). So the serviceClass is just a paramter nothing special at the deployment time , only the MessageReceiver cares about that to find the service implementation class, message receiver is the one who load serviceImpl class using that parameter so its his job to trim the value.

Any way I will fix RowXML*M.R , if some one else is trying to write custom message receiver he has to do that.


> trim configuration data from the XML doc, like the ServiceClass param
> ---------------------------------------------------------------------
>
>          Key: AXIS2-231
>          URL: http://issues.apache.org/jira/browse/AXIS2-231
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: deployment
>     Reporter: Steve Loughran

>
> I've finally tracked down what I thought was a classloader problem, namely the runtime couldnt find my service class.
> the problem was I'd put in a linefeed in the declaration
>   <parameter name="ServiceClass" locked="xsd:false">
>     org.smartfrog.services.deployapi.transport.endpoints.PortalEndpoint</parameter>
> And because there is no trim() called on the read data, the class wasnt being found. And of course extra whitespace isnt obvious in error messages, particularly those you arent used to.
> I would recommend that everywhere you are extracting text from inside an XML element, you trim it first.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira