installation:
After extracting Resin, complication with the Apache combined with apache
./configure --with-apache = / home / WebAdm
.make
.MAKE INSTALL
After the completion is completed. To modify the Apache's configuration file httpd.conf. Before and 2.0.x combined Apache configured to CauchoconfigFile /Home/RESIN/conf/RESIN.CONF, now you must change this line
RESINCONFIGSERVER LOCALHOST 6802 (6802 is the port of Resin's SRUN), so that the combination of Apache and Resin can be implemented.
Main configuration description
Resin3's Web-App configuration and 2.0 have some difference.
First, remove the related configuration of web-app-deploy (this directory is primarily packaged in the WAR file setting directory, when the following Host Document-Directory is different, Document-Directory is invalid), then modify
Configure servlet-mapping, set in the web-app. As follows
Configure the database. Examples are as follows
driver>
database>
It should be noted that RESIN3's dbpool has a method of getPool (String poolname). So the previous data pool connection method cannot be used. Compare the modification method is to override a DBPOOL class, then put the Import inside the Java class. Com.caucho.sql. *; remove the avoidance of the conflict.
DBPOOL class example:
Package com.netese.mm;
Import java.sql. *;
Import javax.sql. *;
Import javax.naming. *;
Public Class Dbpool
{
Private connection conn = null;
Public Static DBPool getPool (String poolname)
{
Try
{
Context env = (context) new initialContext (). Lookup ("Java: Comp / ENV");
DataSource Source = (Datasource) Env.lookup ("JDBC /" PoolName; dbpool pool = new dbpool ();
Pool.conn = source.getConnection ();
Return pool;
}
Catch (Exception E)
{
Return NULL;
}
}
Public connection getConnection ()
{
Return conn;
}
}
Configure STDERR, Stdout and other log problems. RESIN3 does not print out the information error information by default. You need you to set it yourself.
Add the following configuration under the
Format = "$ {log.level} $ {log.loggerName} $ {log.message}" /> Problems in the configuration: In resin2.0.x. You can set Error-Page. When RESIN starts an error or not started, the Access Home will automatically turn to the set Error-Page, in RESIN3, although the home help Remove this setting Example: