mmm. the new code does not add any of the context iterceptors, correct? such as ClassLoaderContextInterceptor, org.jboss.tomcat.naming.JbossWebXmlReader. But these are still necesary for integration to work, arent they? And the comment in CVS was that Server.xml is now parsed, so I just added them to the list of interceptors in server.xml. This made tomcat use the correct classloader, which (I think) it was not doing before I added them in. That is what I was referring to in terms of altering the server.xml - ie is it necessary to add those interceptors in to get the integration to work? let me know if Im off base here... -----Original Message----- From: Dewayne McNair [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:56 AM To: jBoss Developer Subject: Re: [jBoss-Dev] server.xml and ContextInteceptors I haven't made any changes to Tomcat's server.xml. Maybe I don't understand your question. Can you try again? ----- Original Message ----- From: "Castro, David" <[EMAIL PROTECTED]> To: "'jBoss Developer'" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 10:34 AM Subject: RE: [jBoss-Dev] CVS update: contrib/tomcat/src/main/org/jboss/tom cat EmbeddedTomcatService.java EmbeddedTomcatServiceMBean.java > dewayne, are you going to document the server.xml setup required to get > the right ContextInterceptors running? I fudged it from the old code, but > it would be nice to see it online somewhere. > > This is what I have, I cant remember how much of it is changed from the > original server.xml > > <!-- ==================== Interceptors ==================== --> > > <!-- > ContextInterceptor className="org.apache.tomcat.context.LogEvents" > --> > > <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" > /> > > <ContextInterceptor > className="org.apache.tomcat.context.WebXmlReader" /> > > <!-- Uncomment out if you have JDK1.2 and want to use policy > --> > <ContextInterceptor > className="org.apache.tomcat.context.PolicyInterceptor" /> > > <ContextInterceptor > className="org.apache.tomcat.context.LoaderInterceptor" /> > <ContextInterceptor > className="org.jboss.tomcat.ContextClassLoaderInterceptor" /> > <ContextInterceptor > className="org.apache.tomcat.context.DefaultCMSetter" /> > <ContextInterceptor > className="org.apache.tomcat.context.WorkDirInterceptor" /> > <ContextInterceptor > className="org.jboss.tomcat.naming.JbossWebXmlReader" /> > > <!-- Request processing --> > <RequestInterceptor > className="org.apache.tomcat.request.Jdk12Interceptor" /> > <!-- Session interceptor will extract the session id from cookies > and > deal with URL rewriting ( by fixing the URL ). If you wish to > suppress the use of cookies for session identifiers, change the > "noCookies" attribute to "true" > --> > <RequestInterceptor > className="org.apache.tomcat.request.SessionInterceptor" > noCookies="false" /> > > <!-- Find the container ( context and prefix/extension map ) > for a request. > --> > <RequestInterceptor > className="org.apache.tomcat.request.SimpleMapper1" > debug="0" /> > > <!-- Non-standard invoker, for backward compat. ( /servlet/* ) > You can modify the prefix that is matched by adjusting the > "prefix" parameter below. Be sure your modified pattern > starts and ends with a slash. > > NOTE: This prefix applies to *all* web applications that > are running in this instance of Tomcat. > --> > <RequestInterceptor > className="org.apache.tomcat.request.InvokerInterceptor" > debug="0" prefix="/servlet/" /> > > <!-- "default" handler - static files and dirs. Set the > "suppress" property to "true" to suppress directory listings > when no welcome file is present. > > NOTE: This setting applies to *all* web applications that > are running in this instance of Tomcat. > --> > <RequestInterceptor > className="org.apache.tomcat.request.StaticInterceptor" > debug="0" suppress="false" /> > > <!-- Plug a session manager. You can plug in more advanced session > modules. > --> > <RequestInterceptor > className="org.apache.tomcat.session.StandardSessionInterceptor" > /> > > <!-- Check if the request requires an authenticated role. > --> > <RequestInterceptor > className="org.apache.tomcat.request.AccessInterceptor" > debug="0" /> > > <!-- Check permissions using the simple xml file. You can > plug more advanced authentication modules. > --> > <RequestInterceptor > className="org.apache.tomcat.request.SimpleRealm" > debug="0" /> > > <!-- UnComment the following and comment out the > above to get a JDBC realm. > Other options for driverName: > driverName="oracle.jdbc.driver.OracleDriver" > connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" > connectionName="scott" > connectionPassword="tiger" > > driverName="org.gjt.mm.mysql.Driver" > connectionURL="jdbc:mysql://localhost/authority" > connectionName="test" > connectionPassword="test" > > "connectionName" and "connectionPassword" are optional. > --> > <!-- > <RequestInterceptor > className="org.apache.tomcat.request.JDBCRealm" > debug="99" > driverName="sun.jdbc.odbc.JdbcOdbcDriver" > connectionURL="jdbc:odbc:TOMCAT" > userTable="users" > userNameCol="user_name" > userCredCol="user_pass" > userRoleTable="user_roles" > roleNameCol="role_name" /> > --> > > <!-- Loaded last since JSP's that load-on-startup use request > handling --> > <ContextInterceptor > className="org.apache.tomcat.context.LoadOnStartupInterceptor" > />
