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 di...@apache.org on 2007/06/29 04:58:59 UTC
svn commit: r551776 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
Author: dims
Date: Thu Jun 28 19:58:59 2007
New Revision: 551776
URL: http://svn.apache.org/viewvc?view=rev&rev=551776
Log:
Fix for AXIS2-2877 - Java2WSDL fails if commons-httpclient jar is absent!!!!!
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?view=diff&rev=551776&r1=551775&r2=551776
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java Thu Jun 28 19:58:59 2007
@@ -466,7 +466,13 @@
(TransportListener) receiverClass.newInstance();
transportIN.setReceiver(receiver);
} catch (NoClassDefFoundError e) {
- throw new DeploymentException(e);
+ if(deploymentEngine != null){
+ throw new DeploymentException(e);
+ } else {
+ // Called from createDefaultConfigurationContext in ConfigurationContextFactory
+ // Please don't throw an exception.
+ log.debug(Messages.getMessage("classnotfound", trsClas.getAttributeValue()));
+ }
} catch (ClassNotFoundException e) {
throw new DeploymentException(e);
} catch (IllegalAccessException e) {
@@ -527,8 +533,14 @@
// adding to axis2 config
axisConfig.addTransportOut(transportout);
} catch (NoClassDefFoundError e) {
- log.debug(Messages.getMessage("errorinloadingts", clasName), e);
- throw new DeploymentException(e);
+ if(deploymentEngine != null){
+ log.debug(Messages.getMessage("errorinloadingts", clasName), e);
+ throw new DeploymentException(e);
+ } else {
+ // Called from createDefaultConfigurationContext in ConfigurationContextFactory
+ // Please don't throw an exception.
+ log.debug(Messages.getMessage("classnotfound", trsClas.getAttributeValue()));
+ }
} catch (ClassNotFoundException e) {
log.debug(Messages.getMessage("errorinloadingts", clasName), e);
throw new DeploymentException(e);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org