-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: None
-
Component/s: deployment, kernel, transports
-
Labels:None
-
Environment:java 1.5.0_11, axis-kernel v 1.5 and dependencies are loaded from maven Repository
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