axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/wsutils PropertyLoader.java
Date Thu, 04 Nov 2004 04:11:23 GMT
dims        2004/11/03 20:11:23

  Modified:    contrib/ews/src/org/apache/geronimo/ews/jaxrpcmapping
                        J2eeEmitter.java XMLBeansJaxRpcMapper.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context
                        ContextValidator.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context/impl
                        InputOutputFileImpl.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module
                        DirModule.java EARModule.java JarModule.java
                        WARModule.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers
                        DomEJBDDParser.java EJBDDParser.java
                        ServiceReferanceParser.java
                        XMLBeansEJBDDParser.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs
                        AbstractWriter.java Ws4J2ee.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc
                        BuildFileGenerator.java PropertyFileGenerator.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/wsdl
                        WSDLGenerator.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils
                        AntExecuter.java EWSUtils.java FileUtils.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager
                        Packager.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/wsutils
                        PropertyLoader.java
  Log:
  Adding printStackTrace and log.error(s)
  
  Revision  Changes    Path
  1.11      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/jaxrpcmapping/J2eeEmitter.java
  
  Index: J2eeEmitter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/jaxrpcmapping/J2eeEmitter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- J2eeEmitter.java	27 Oct 2004 14:59:40 -0000	1.10
  +++ J2eeEmitter.java	4 Nov 2004 04:11:21 -0000	1.11
  @@ -151,6 +151,7 @@
                   }
               }
           } catch (IOException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       } // setup
  
  
  
  1.5       +5 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/jaxrpcmapping/XMLBeansJaxRpcMapper.java
  
  Index: XMLBeansJaxRpcMapper.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/jaxrpcmapping/XMLBeansJaxRpcMapper.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLBeansJaxRpcMapper.java	27 Oct 2004 14:59:40 -0000	1.4
  +++ XMLBeansJaxRpcMapper.java	4 Nov 2004 04:11:22 -0000	1.5
  @@ -55,8 +55,10 @@
               JavaWsdlMappingDocument mappingdoc = JavaWsdlMappingDocument.Factory.parse(is);
               mapping = mappingdoc.getJavaWsdlMapping();
           } catch (XmlException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           } catch (IOException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -67,10 +69,13 @@
               JavaWsdlMappingDocument mappingdoc = JavaWsdlMappingDocument.Factory.parse(fis);
               mapping = mappingdoc.getJavaWsdlMapping();
           } catch (FileNotFoundException e2) {
  +            e2.printStackTrace();
               throw GenerationFault.createGenerationFault(e2);
           } catch (IOException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           } catch (XmlException e2) {
  +            e2.printStackTrace();
               throw GenerationFault.createGenerationFault(e2);
           }
       }
  
  
  
  1.17      +2 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java
  
  Index: ContextValidator.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ContextValidator.java	27 Oct 2004 14:59:39 -0000	1.16
  +++ ContextValidator.java	4 Nov 2004 04:11:22 -0000	1.17
  @@ -56,6 +56,7 @@
           try {
               this.context = context;
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -102,6 +103,7 @@
                   throw new UnrecoverableGenerationFault("port type must exits");
               context.getWSDLContext().setTargetPortType(port);
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.5       +2 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context/impl/InputOutputFileImpl.java
  
  Index: InputOutputFileImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/context/impl/InputOutputFileImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InputOutputFileImpl.java	27 Oct 2004 14:59:37 -0000	1.4
  +++ InputOutputFileImpl.java	4 Nov 2004 04:11:22 -0000	1.5
  @@ -62,6 +62,7 @@
               }
               return instream;
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -77,6 +78,7 @@
               }
               return outstream;
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +5 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/DirModule.java
  
  Index: DirModule.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/DirModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DirModule.java	27 Oct 2004 14:59:36 -0000	1.3
  +++ DirModule.java	4 Nov 2004 04:11:22 -0000	1.4
  @@ -60,6 +60,7 @@
               }
               findDDs();
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -84,6 +85,7 @@
               }
               findDDs();
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -111,6 +113,7 @@
               if (wscfFile == null)
                   throw new GenerationFault("wscf file must not be null");
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -120,6 +123,7 @@
               File file = new File(location);
               return new URLClassLoader(new URL[]{file.toURL()}, parentCL);
           } catch (MalformedURLException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -164,6 +168,7 @@
                   new FileInputStream(file);
               return null;
           } catch (FileNotFoundException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +2 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/EARModule.java
  
  Index: EARModule.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/EARModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EARModule.java	27 Oct 2004 14:59:36 -0000	1.3
  +++ EARModule.java	4 Nov 2004 04:11:22 -0000	1.4
  @@ -58,8 +58,10 @@
                   }
               }
           } catch (UnrecoverableGenerationFault e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           } catch (IOException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/JarModule.java
  
  Index: JarModule.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/JarModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JarModule.java	27 Oct 2004 14:59:36 -0000	1.3
  +++ JarModule.java	4 Nov 2004 04:11:22 -0000	1.4
  @@ -58,6 +58,7 @@
               if (wscfFile == null)
                   throw new GenerationFault("wscf file must not be null");
           } catch (MalformedURLException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +3 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/WARModule.java
  
  Index: WARModule.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/module/WARModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WARModule.java	27 Oct 2004 14:59:36 -0000	1.3
  +++ WARModule.java	4 Nov 2004 04:11:22 -0000	1.4
  @@ -59,10 +59,13 @@
               if (wscfFile == null)
                   throw new GenerationFault("wscf file must not be null");
           } catch (MalformedURLException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           } catch (IOException e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           } catch (GenerationFault e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.6       +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/DomEJBDDParser.java
  
  Index: DomEJBDDParser.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/DomEJBDDParser.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DomEJBDDParser.java	27 Oct 2004 14:59:39 -0000	1.5
  +++ DomEJBDDParser.java	4 Nov 2004 04:11:22 -0000	1.6
  @@ -66,6 +66,7 @@
                   throw new GenerationFault("enterprise-beans tag not found");
               }
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.12      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/EJBDDParser.java
  
  Index: EJBDDParser.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/EJBDDParser.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EJBDDParser.java	27 Oct 2004 14:59:39 -0000	1.11
  +++ EJBDDParser.java	4 Nov 2004 04:11:22 -0000	1.12
  @@ -57,6 +57,7 @@
               ejbName = session.getEjbName().getValue();
               context = new EJBDDContextImpl(ejbName, session.getEjbClass().getValue(), session.getHome().getValue(),
null, null, null);
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.11      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/ServiceReferanceParser.java
  
  Index: ServiceReferanceParser.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/ServiceReferanceParser.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ServiceReferanceParser.java	27 Oct 2004 14:59:39 -0000	1.10
  +++ ServiceReferanceParser.java	4 Nov 2004 04:11:22 -0000	1.11
  @@ -60,6 +60,7 @@
               else
                   throw new GenerationFault("No service Referance in the file");
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/XMLBeansEJBDDParser.java
  
  Index: XMLBeansEJBDDParser.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/XMLBeansEJBDDParser.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLBeansEJBDDParser.java	27 Oct 2004 14:59:39 -0000	1.3
  +++ XMLBeansEJBDDParser.java	4 Nov 2004 04:11:22 -0000	1.4
  @@ -70,6 +70,7 @@
                   throw new GenerationFault("enterprise-beans tag not found");
               }
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.12      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/AbstractWriter.java
  
  Index: AbstractWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/AbstractWriter.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractWriter.java	27 Oct 2004 14:59:36 -0000	1.11
  +++ AbstractWriter.java	4 Nov 2004 04:11:23 -0000	1.12
  @@ -74,6 +74,7 @@
                   out = new PrintWriter(new FileWriter(file, false));
               }
           } catch (IOException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.9       +3 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/Ws4J2ee.java
  
  Index: Ws4J2ee.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/Ws4J2ee.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Ws4J2ee.java	27 Oct 2004 14:59:36 -0000	1.8
  +++ Ws4J2ee.java	4 Nov 2004 04:11:23 -0000	1.9
  @@ -164,6 +164,7 @@
                   throw new GenerationFault("ejb-jar.xml file file does not exsits");
               }
           } catch (IOException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -254,6 +255,7 @@
                   wscontext.getMiscInfo().setSEIExists(false);
               }
           } catch (FileNotFoundException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  @@ -274,6 +276,7 @@
                   wsdlFile.close();
               }
           } catch (Exception e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.25      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/BuildFileGenerator.java
  
  Index: BuildFileGenerator.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/BuildFileGenerator.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- BuildFileGenerator.java	2 Nov 2004 09:39:35 -0000	1.24
  +++ BuildFileGenerator.java	4 Nov 2004 04:11:23 -0000	1.25
  @@ -248,6 +248,7 @@
               out.write("</project>\n");
               out.close();
           } catch (IOException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/PropertyFileGenerator.java
  
  Index: PropertyFileGenerator.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/PropertyFileGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PropertyFileGenerator.java	27 Oct 2004 14:59:38 -0000	1.3
  +++ PropertyFileGenerator.java	4 Nov 2004 04:11:23 -0000	1.4
  @@ -42,6 +42,7 @@
               p.store(out, "ws poperties");
               out.close();
           } catch (Exception e) {
  +            e.printStackTrace();
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.9       +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/wsdl/WSDLGenerator.java
  
  Index: WSDLGenerator.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/wsdl/WSDLGenerator.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- WSDLGenerator.java	27 Oct 2004 14:59:43 -0000	1.8
  +++ WSDLGenerator.java	4 Nov 2004 04:11:23 -0000	1.9
  @@ -87,6 +87,7 @@
               //validate the j2ee context
               validator.validateWithOutWSDL(emitter);
           } catch (Exception e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.16      +6 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/AntExecuter.java
  
  Index: AntExecuter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/AntExecuter.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AntExecuter.java	27 Oct 2004 14:59:37 -0000	1.15
  +++ AntExecuter.java	4 Nov 2004 04:11:23 -0000	1.16
  @@ -25,6 +25,8 @@
   import org.apache.tools.ant.taskdefs.Javac;
   import org.apache.tools.ant.types.FileSet;
   import org.apache.tools.ant.types.Path;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   
   import java.io.File;
   import java.io.FileInputStream;
  @@ -45,6 +47,9 @@
       private J2EEWebServiceContext wscontext;
       private JarOutputStream jarFile;
   
  +    protected static Log log =
  +            LogFactory.getLog(AntExecuter.class.getName());
  +
       public AntExecuter(J2EEWebServiceContext wscontext) {
           this.wscontext = wscontext;
       }
  @@ -87,6 +92,7 @@
               compile(outDir, dest);
               createModule(outDir, dest);
           } catch (IOException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           } catch (ClassNotFoundException e) {
               System.out.println("Ant file will not be run programatcally as the " +
  
  
  
  1.3       +5 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/EWSUtils.java
  
  Index: EWSUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/EWSUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EWSUtils.java	27 Oct 2004 14:59:37 -0000	1.2
  +++ EWSUtils.java	4 Nov 2004 04:11:23 -0000	1.3
  @@ -17,6 +17,8 @@
   package org.apache.geronimo.ews.ws4j2ee.utils;
   
   import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.w3c.dom.Document;
   import org.xml.sax.EntityResolver;
   import org.xml.sax.InputSource;
  @@ -31,6 +33,8 @@
    * @author hemapani@opensource.lk
    */
   public class EWSUtils {
  +    protected static Log log =
  +            LogFactory.getLog(EWSUtils.class.getName());
       public static Document createDocument(InputStream in) throws GenerationFault {
           try {
               DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  @@ -59,6 +63,7 @@
               db.setEntityResolver(er);
               return db.parse(in);
           } catch (Exception e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.4       +5 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/FileUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FileUtils.java	27 Oct 2004 14:59:37 -0000	1.3
  +++ FileUtils.java	4 Nov 2004 04:11:23 -0000	1.4
  @@ -16,6 +16,8 @@
   package org.apache.geronimo.ews.ws4j2ee.utils;
   
   import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   
   import java.io.File;
   import java.io.FileOutputStream;
  @@ -32,6 +34,8 @@
    * @author Srinath Perera (hemapani@opensource.lk)
    */
   public class FileUtils {
  +    protected static Log log =
  +            LogFactory.getLog(FileUtils.class.getName());
       public static void copyFile(InputStream in, OutputStream out) throws GenerationFault
{
           try {
               byte[] buf = new byte[1024];
  @@ -43,6 +47,7 @@
               out.close();
               in.close();
           } catch (Exception e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.15      +1 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager/Packager.java
  
  Index: Packager.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager/Packager.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Packager.java	2 Nov 2004 09:39:35 -0000	1.14
  +++ Packager.java	4 Nov 2004 04:11:23 -0000	1.15
  @@ -67,6 +67,7 @@
               log.info("jar file creation done ");
               jfile.createNewJarFile();
           } catch (IOException e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  
  1.7       +5 -0      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/wsutils/PropertyLoader.java
  
  Index: PropertyLoader.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/wsutils/PropertyLoader.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PropertyLoader.java	27 Oct 2004 14:59:38 -0000	1.6
  +++ PropertyLoader.java	4 Nov 2004 04:11:23 -0000	1.7
  @@ -18,6 +18,8 @@
   
   import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
   import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   
   import java.io.FileInputStream;
   import java.io.InputStream;
  @@ -29,6 +31,8 @@
    * @author Srinath Perera(hemapani@opensource.lk)
    */
   public class PropertyLoader {
  +    protected static Log log =
  +            LogFactory.getLog(PropertyLoader.class.getName());
       public Properties loadProperties(String propertyFile) throws GenerationFault {
           try {
               Properties properties = new Properties();
  @@ -49,6 +53,7 @@
               }
               return properties;
           } catch (Exception e) {
  +            log.error(e);
               throw GenerationFault.createGenerationFault(e);
           }
       }
  
  
  

Mime
View raw message