User: starksm 
  Date: 02/02/19 22:43:59

  Modified:    catalina/src/main/org/jboss/web/catalina
                        EmbeddedCatalinaServiceSX.java
  Log:
  Use the AbstractWebContainer getCompileClasspath method to obtain the
  JSP compile classpath passed to jasper.
  
  Revision  Changes    Path
  1.7       +2 -40     
contrib/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java
  
  Index: EmbeddedCatalinaServiceSX.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EmbeddedCatalinaServiceSX.java    16 Feb 2002 04:56:08 -0000      1.6
  +++ EmbeddedCatalinaServiceSX.java    20 Feb 2002 06:43:59 -0000      1.7
  @@ -69,7 +69,7 @@
    @see org.apache.catalina.startup.Embedded
    
    @author [EMAIL PROTECTED]
  - @version $Revision: 1.6 $
  + @version $Revision: 1.7 $
    */
   public class EmbeddedCatalinaServiceSX extends AbstractWebContainer implements 
EmbeddedCatalinaServiceSXMBean
   {
  @@ -263,48 +263,10 @@
            {
               catalina.stop();
            }
  -         catch(Exception e)
  +         catch(Exception ignore)
            {
            }
         }
  -   }
  -
  -   /** Build an array of URL strings that will be used as the JSP compiler
  -    *classpath. As of Tomcat-4.0.2, this information is not being obtained
  -    *from the thread context classloader so we have to build it.
  -    */
  -   protected String[] getCompileClasspath(ClassLoader loader)
  -   {
  -      String[] jspResources = {
  -         "javax/servlet/resources/web-app_2_3.dtd",
  -         "org/apache/jasper/resources/jsp12.dtd",
  -         "javax/ejb/EJBHome.class"
  -      };
  -      ArrayList tmp = new ArrayList();
  -      for(int j = 0; j < jspResources.length; j ++)
  -      {
  -         URL rsrcURL = loader.getResource(jspResources[j]);
  -         if( rsrcURL != null )
  -         {
  -            String url = rsrcURL.toExternalForm();
  -            if( rsrcURL.getProtocol().equals("jar") )
  -            {
  -               // Parse the jar:<url>!/{entry} URL
  -               url = url.substring(4);
  -               int seperator = url.indexOf('!');
  -               url = url.substring(0, seperator);
  -            }
  -            tmp.add(url);
  -         }
  -         else
  -         {
  -            log.warn("Failed to fin jsp rsrc: "+jspResources[j]);
  -         }
  -      }
  -      log.debug("JSP CompileClasspath: " + tmp);
  -      String[] cp = new String[tmp.size()];
  -      tmp.toArray(cp);
  -      return cp;
      }
   
      /** Perform the tomcat specific deployment steps.
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to