Migrate from 2.1 to 3.0

From Resin 3.0

Revision as of 05:10, 17 November 2005 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Corresponding Resin documentation is http://www.caucho.com/resin-3.0/features/migrate.xtp

The easiest way to migrate is to start with the resin.conf file that comes with Resin 3.0, and make incremental changes to it to duplicate the functionality in the old Resin 2.1 resin.conf file.

<error-log>

The <error-log> directive in Resin 2.1 configures the destination of ServletContext.log() messages and is also used for exceptions not caught by the application.

Resin 3.0 uses the [JDK logging facilities|config/log.xtp@resin-doc] for these messages. The behaviour of <error-log> can be duplicated with appropriate <log> and <logger> entries in resin.conf or web.xml:

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="http://caucho.com/ns/resin/core">

  ... 

  <log path="log/error.log">
    <logger name="com.caucho.server.webapp.ErrorPageManager" level="finer"/>
    <logger name="com.caucho.server.webapp.ServletContextImpl" level="finer"/>
  </log>
Personal tools