axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r369221 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
Date Sun, 15 Jan 2006 15:37:37 GMT
Author: dims
Date: Sun Jan 15 07:37:34 2006
New Revision: 369221

URL: http://svn.apache.org/viewcvs?rev=369221&view=rev
Log:
fix build break for now...question, how should we handle this condition?

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java?rev=369221&r1=369220&r2=369221&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java
Sun Jan 15 07:37:34 2006
@@ -26,6 +26,8 @@
 import org.apache.axis2.wsdl.util.CommandLineOptionParser;
 import org.apache.axis2.wsdl.util.ConfigPropertyFileLoader;
 import org.apache.wsdl.WSDLDescription;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import javax.wsdl.WSDLException;
 import java.util.ArrayList;
@@ -33,6 +35,8 @@
 import java.util.Map;
 
 public class CodeGenerationEngine {
+    private Log log = LogFactory.getLog(getClass());
+
     private List moduleEndpoints = new ArrayList();
 
 
@@ -69,8 +73,10 @@
     }
 
     private void addExtension(CodeGenExtension ext) {
-        ext.init(configuration);
-        moduleEndpoints.add(ext);
+        if(ext != null) {
+            ext.init(configuration);
+            moduleEndpoints.add(ext);
+        }
     }
 
 
@@ -146,6 +152,9 @@
             throw new CodeGenerationException(CodegenMessages.getMessage("engine.extensionInstantiationProblem"),
e);
         } catch (IllegalAccessException e) {
             throw new CodeGenerationException(CodegenMessages.getMessage("engine.illegalExtension"),
e);
+        } catch (NoClassDefFoundError e) {
+            log.debug(CodegenMessages.getMessage("engine.extensionLoadProblem"), e);
+            return null;
         } catch (Exception e) {
             throw new CodeGenerationException(e);
         }



Mime
View raw message