resin4.0.25 installation configuration and integration with Eclipse development

Source: Internet
Author: User

resin4.0.25 installation configuration and integration of Eclipse development most of this article is the translation of the official website, and some of the experience after their own configuration.
First, based on win, resin basic installation
1, install jdk1.6 or later
2, configuring the environment variable Java-home, resin-home
3, configure Classpath%resin-home%\lib\resin.jar (if it is win7 not necessary to set)
Otherwise report exception: Com.caucho.loader.SystemClassLoader

4, Unzip resin-4.0.25
5, click Resin.exe to run, or into cmd java-jar d:/resin-4.0.25/lib/resin.jar start
6, enter http://localhost:8080 to see Resin's administration page.

Second, publish your own project in Resin.xml.
My project name is Hello2.
1. Put the project war file or the project folder directly into the WebApps folder
<web-app id= "/" root-directory= "Webapps/hello2"/> (originally this is "Webapps/root")
This will enable you to see your project in the browser.
2, put the project war file, or the project folder to a random directory
The same project is named Hello2:

<!--creates the WebApps directory for. War expansion (this is said to be a war release, you can delete the following paragraph!) )--
<web-app-deploy path= "D:/test/webapps"
expand-preserve-fileset= "web-inf/work/**"
<!--multiversion-routing= "${webapp_multiversion_routing}" This sentence is deleted, interested can go to read the official documents, I do not know why--
/>

<!--Auto Virtual host deployment in Hosts/foo.example.com/webapps--

<!--The default host, matching any host name--
<!--
-WebApps can overridden/extended in the Resin.xml
-
<web-app id= "/" root-directory= "D:/test/webapps/hello2"/>
Only change the above two places, you can achieve the effect

Third, configure the database connection pool in Resin.xml

1. Add the appropriate database driver jar package to the Resin/lib directory
The following is the configuration of SQL Server
<database jndi-name= ' Jdbc/hello2 ' >
<driver type= "Com.microsoft.sqlserver.jdbc.SQLServerDriver" >
<url>jdbc:sqlserver://192.168.2.186:1433;DatabaseName=hello2</url>
<user>hndoc</user>
<password>hndoc123</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>500</max-connections>
<max-idle-time>30s</max-idle-time>

</database>
Here is the configuration for MySQL:

<database jndi-name= ' Jdbc/test_mysql ' >
<driver type= "Com.mysql.jdbc.Driver" >
<url>jdbc:mysql://localhost:3306/test</url>
<user></user>
<password></password>
</driver>
</database>
The next article will show you how to use resin for development debugging in eclipse

resin4.0.25 installation configuration and integration with Eclipse development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.