Henri Gomez wrote: > Hi to all, > > While converting some applications from 3.3.1 to 4.1.12 I noticed > some little problems. > > 1) We used to define our own default servlet, but 4.1.x > definie its own default in conf/web.xml. > > Could we change from org.apache.catalina.servlets.DefaultServlet > to our actual default servlet, knowing that all webapps use the > same code base ? In that case should the jar containing the > default servlet could be in common/lib ?
AFAIK, yes. You should be able to put it in shared/lib. The webapp settings also override the global settings. > 2) We also used to include external entities in web.xml which live > outside webapp dir : > > ie : > > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application > 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" [ > <!ENTITY % settings SYSTEM "../../../settings.xml"> %settings; > ]> > > ... > > Digester find settings.xml only when it's located in WEB-INF or > webapp directories (ie ROOT/WEB-INF/settings.xml or ROOT/settings.xml). > > How could I make it find the settings.xml outside webapps area ? > via conf/catalina.policy ? This is likely the protection against reading anything outside the webapp root (see the "allowLinking" of FileDirContext), although I don't know how the digester will try to load the included file. Remy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>