Migrate from 2.1 to 3.0

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
 
Line 4: Line 4:
 
changes to it to duplicate the functionality in the old Resin 2.1 [[resin.conf]] file.
 
changes to it to duplicate the functionality in the old Resin 2.1 [[resin.conf]] file.
  
== <error-log>]]
+
== <error-log>==
  
 
The <error-log> directive in Resin 2.1 configures the destination of <code>ServletContext.log()</code> messages and is also used for exceptions not caught by the application.
 
The <error-log> directive in Resin 2.1 configures the destination of <code>ServletContext.log()</code> messages and is also used for exceptions not caught by the application.

Latest revision as of 05:10, 17 November 2005

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