RESIN 3.0 installation instructions

xiaoxiao2021-03-06  19

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

/ Home / Webpub , / Home / Webpub is the directory where the program home page is stored.

Configure servlet-mapping, set in the web-app. As follows

Configure the database. Examples are as follows

JDBC / TEST

JDBC: MySQL: //127.0.0.1: 3306 / Test

Test

Test

8

300

30s

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 node:

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: , but after testing. No matter which layer node is placed (RESIN, Server, Host, Web-APP) Below. This will cause a serious problem. This triggered a serious problem. When RESIN3 is not started, Apache is running. Access the JSP page, the source code will be displayed directly. This issue is existed in RESIN3, currently Can't find a solution to a solution.

转载请注明原文地址:https://www.9cbs.com/read-41141.html

New Post(0)