ClassNotFoundException while parsing 
org/apache/axis2/deployment/axis2_default.xml
----------------------------------------------------------------------------------

                 Key: AXIS2-4518
                 URL: https://issues.apache.org/jira/browse/AXIS2-4518
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: deployment, kernel, transports
    Affects Versions: 1.5
         Environment: java 1.5.0_11, axis-kernel v 1.5 and dependencies are 
loaded from maven Repository
            Reporter: Ostap


I use Axis client generated by XMLBeans and call an default constructor. 
(configurationContext==null, axis2.xml not defined etc.) 
Generated Stub populates default AxisService and makes an attempt to create an 
ServiceClient:
        _serviceClient = new 
org.apache.axis2.client.ServiceClient(configurationContext,_service);
it loads org/apache/axis2/deployment/axis2_default.xml.
we can find there:
...
    <!-- ================================================= -->
    <!-- Transport Outs -->
    <!-- ================================================= -->

    <transportSender name="local"
                     
class="org.apache.axis2.transport.local.LocalTransportSender"/>
    <transportSender name="http"
                     
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
    </transportSender>
    <transportSender name="https"
                     
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
    </transportSender>
..
Local TransportSender, CommonsHTTPTransportSender and 
CommonsHTTPTransportSender cannot be found in classpath and we get 
ClassNotFoundException in 
org.apache.axis2.deployment.AxisConfigBuilder#processTransportSenders(Iterator 
trs_senders) line 669:
                String clasName = trsClas.getAttributeValue();
                Class sender;

                try {
                    sender = Loader.loadClass(clasName); // line 669




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to