List<FilterMapping> filterMappings = LazyList.array2List(_filterMappings); if (_filters!=null) List<ServletMapping> servletMappings = LazyList.array2List(_servletMappings); //will be remaining mappings if (_servlets!=null)
List<FilterMapping> filterMappings = LazyList.array2List(_filterMappings); if (_filters!=null) List<ServletMapping> servletMappings = LazyList.array2List(_servletMappings); //will be remaining mappings if (_servlets!=null)
List<FilterMapping> filterMappings = LazyList.array2List(_filterMappings); if (_filters!=null) List<ServletMapping> servletMappings = LazyList.array2List(_servletMappings); //will be remaining mappings if (_servlets!=null)
public void configure(WebAppContext context) throws Exception { JettyWebAppContext jwac = (JettyWebAppContext)context; if (jwac.getClassPathFiles() != null) { if (LOG.isDebugEnabled()) LOG.debug("Setting up classpath ..."); //put the classes dir and all dependencies into the classpath Iterator itor = jwac.getClassPathFiles().iterator(); while (itor.hasNext()) ((WebAppClassLoader)context.getClassLoader()).addClassPath(((File)itor.next()).getCanonicalPath()); if (LOG.isDebugEnabled()) LOG.debug("Classpath = "+LazyList.array2List(((URLClassLoader)context.getClassLoader()).getURLs())); } super.configure(context); // knock out environmental maven and plexus classes from webAppContext String[] existingServerClasses = context.getServerClasses(); String[] newServerClasses = new String[2+(existingServerClasses==null?0:existingServerClasses.length)]; newServerClasses[0] = "org.apache.maven."; newServerClasses[1] = "org.codehaus.plexus."; System.arraycopy( existingServerClasses, 0, newServerClasses, 2, existingServerClasses.length ); if (LOG.isDebugEnabled()) { LOG.debug("Server classes:"); for (int i=0;i<newServerClasses.length;i++) LOG.debug(newServerClasses[i]); } context.setServerClasses( newServerClasses ); }