User: sylvain 
  Date: 00/05/19 18:17:38

  Modified:    src/java/org/ejboss/deployment EjbJar.java
  Log:
  test debug
  
  Revision  Changes    Path
  1.6       +14 -3     ejboss/src/java/org/ejboss/deployment/EjbJar.java
  
  Index: EjbJar.java
  ===================================================================
  RCS file: /products/cvs/ejboss/ejboss/src/java/org/ejboss/deployment/EjbJar.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EjbJar.java       2000/05/17 00:30:22     1.5
  +++ EjbJar.java       2000/05/20 01:17:37     1.6
  @@ -11,6 +11,7 @@
   import java.util.jar.JarEntry;
   import java.util.Iterator;
   
  +import java.net.JarURLConnection;
   
   import org.w3c.dom.Document;
   
  @@ -102,7 +103,7 @@
       public EjbJar(URL url) throws IOException {
   
           super();
  -
  +System.out.println("444444444444444444");
           this.url = url;
   
           // now parse the contents
  @@ -227,8 +228,18 @@
           try {
   
               //Create a input stream from the distant URL
  -
  -            JarInputStream jarInputStream = new JarInputStream(url.openStream());
  +            java.io.InputStream urlInput;
  +            System.out.println(url);
  +            try{
  +                JarURLConnection conn = (JarURLConnection)url.openConnection();
  +                urlInput = conn.getInputStream();
  +            }catch(Throwable e)
  +            {
  +                e.printStackTrace();
  +                System.out.println("666666666666666666");
  +                throw new IOException(e.getMessage());
  +            }
  +            JarInputStream jarInputStream = new JarInputStream(urlInput);
   
               JarEntry jarEntry = jarInputStream.getNextJarEntry();
   
  
  
  

Reply via email to