resin.bat
taskkill /F /IM "java.exe"
taskkill /F /IM "javaw.exe"
set JAVA_HOME=D:\Project\bin\JAVA_HOME\jdk1.6.0_26
java.exe -jar /Project/bin/resin-3.1.12/lib/resin.jar -conf \project\snu\snu_career_mysql\bin\resin.conf
resin.conf
<!--
- Resin 3.1 configuration file.
-->
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">
<system-property mail.mime.decodefilename="ture"/>
<!-- adds all .jar files under the resin/lib directory -->
<class-loader>
<tree-loader path="${resin.home}/ext-lib"/>
<tree-loader path="${resin.root}/ext-lib"/>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${resin.root}/lib"/>
</class-loader>
<!--
- Logging configuration for the JDK logging API.
-->
<log name="" level="info" path="stdout:" timestamp="[%H:%M:%S.%s] {%{thread}} "/>
<logger name="com.caucho" level="info"/>
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<!--
- For production sites, change dependency-check-interval to something
- like 600s, so it only checks for updates every 10 minutes.
-->
<dependency-check-interval>2s</dependency-check-interval>
<!--
- Sets the default character encoding to utf-8
-
- <character-encoding>utf-8</character-encoding>
-->
<!--
- You can change the compiler to "javac", "eclipse" or "internal".
-->
<javac compiler="internal" args="-source 1.5"/>
<!-- Security providers.
- <security-provider>
- com.sun.net.ssl.internal.ssl.Provider
- </security-provider>
-->
<!-- Uncomment to use Resin's XML implementations
-
- <system-property javax.xml.parsers.DocumentBuilderFactory
- ="com.caucho.xml.parsers.XmlDocumentBuilderFactory"/>
- <system-property javax.xml.parsers.SAXParserFactory
- ="com.caucho.xml.parsers.XmlSAXParserFactory"/>
-->
<cluster id="app-tier">
<!-- sets the content root for the cluster, relative to server.root -->
<root-directory>.</root-directory>
<server-default>
<!-- The http port -->
<http address="*" port="8081"/>
<!--
- The JVM arguments
-->
<jvm-arg>-Xmx1024m</jvm-arg>
<jvm-arg>-Xss2m</jvm-arg>
<jvm-arg>-Xdebug</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
<!--
- Uncomment to enable admin heap dumps
- <jvm-arg>-agentlib:resin</jvm-arg>
-->
<!--
- arguments for the watchdog process
-->
<watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
<watchdog-port>6600</watchdog-port>
<!--
- Configures the minimum free memory allowed before Resin
- will force a restart.
-->
<memory-free-min>1M</memory-free-min>
<!-- Maximum number of threads. -->
<thread-max>1024</thread-max>
<!-- Configures the socket timeout -->
<socket-timeout>65s</socket-timeout>
<!-- Configures the keepalive -->
<keepalive-max>128</keepalive-max>
<keepalive-timeout>15s</keepalive-timeout>
<!--
- If starting bin/resin as root on Unix, specify the user name
- and group name for the web server user.
-
- <user-name>resin</user-name>
- <group-name>resin</group-name>
-->
</server-default>
<!-- define the servers in the cluster -->
<server id="" address="127.0.0.1" port="6800"/>
<!--
- Configures the persistent store for single-server or clustered
- in Resin professional.
-->
<resin:if test="${resin.professional}">
<persistent-store type="cluster">
<init path="session"/>
</persistent-store>
</resin:if>
<!--
- For security, use a different cookie for SSL sessions.
- <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
-->
<!--
- Enables the cache (available in Resin Professional)
-->
<resin:if test="${resin.professional}">
<cache path="cache" memory-size="64M">
<!-- Vary header rewriting for IE -->
<rewrite-vary-as-private/>
</cache>
</resin:if>
<!--
- Enables periodic checking of the server status and
- check for deadlocks..
-
- All servers can add <url>s to be checked.
-->
<resin:if test="${resin.professional}">
<ping>
<!-- <url>http://localhost:8080/test-ping.jsp</url> -->
</ping>
</resin:if>
<!--
- Defaults applied to each web-app.
-->
<web-app-default>
<prologue>
<!--
- Extension library for common jar files. The ext is safe
- even for non-classloader aware jars. The loaded classes
- will be loaded separately for each web-app, i.e. the class
- itself will be distinct.
-->
<class-loader>
<tree-loader path="${resin.root}/ext-webapp-lib"/>
</class-loader>
<!--
- Enable EL expressions in Servlet and Filter init-param
-->
<allow-servlet-el/>
</prologue>
<!--
- Sets timeout values for cacheable pages, e.g. static pages.
-->
<cache-mapping url-pattern="/" expires="5s"/>
<cache-mapping url-pattern="*.gif" expires="60s"/>
<cache-mapping url-pattern="*.jpg" expires="60s"/>
<cache-mapping url-pattern="*.png" expires="60s"/>
<!--
- for security, disable session URLs by default.
-->
<session-config>
<enable-url-rewriting>ture</enable-url-rewriting>
<session-timeout>15</session-timeout>
</session-config>
<!--
- For security, set the HttpOnly flag in cookies.
- <cookie-http-only/>
-->
<!--
- Some JSP packages have incorrect .tld files. It's possible to
- set validate-taglib-schema to false to work around these packages.
-->
<jsp>
<validate-taglib-schema>true</validate-taglib-schema>
<fast-jstl>true</fast-jstl>
</jsp>
</web-app-default>
<!-- includes the app-default for default web-app behavior -->
<resin:import path="${resin.home}/conf/app-default.xml"/>
<!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<!--
- With another web server, like Apache, this can be commented out
- because the web server will log this information.
-->
<!--
<access-log path="logs/access.log"
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1W"/>
-->
<!-- creates the webapps directory for .war expansion -->
<web-app-deploy path="webapps"/>
<!-- creates the deploy directory for .ear expansion -->
<ear-deploy path="deploy">
<ear-default>
<ejb-server>
<config-directory>WEB-INF</config-directory>
</ejb-server>
</ear-default>
</ear-deploy>
<!-- creates the deploy directory for .rar expansion -->
<resource-deploy path="deploy"/>
</host-default>
<!-- configures a deployment directory for virtual hosts -->
<host-deploy path="hosts">
<host-default>
<resin:import path="host.xml" optional="true"/>
</host-default>
</host-deploy>
<!-- configures the default host, matching any host name -->
<host id="" root-directory=".">
<web-app id="/" document-directory="\project\snu\snu_career_mysql\WebContent" work-dir="\project\snu\work\snu_career_mysql"></web-app>
<database>
<jndi-name>jdbc/jdbc-simple</jndi-name>
<!--driver type="com.mysql.jdbc.Driver"-->
<driver type="core.log.jdbc.driver.MysqlDriver">
<url>jdbc:mysql://58.143.127.196:3306/snu_career_last</url>
<user>snu_career</user>
<password>snu_career</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database>
<database>
<jndi-name>jdbc/jdbc-career0</jndi-name>
<!--driver type="com.mysql.jdbc.Driver"-->
<driver type="core.log.jdbc.driver.MysqlDriver">
<url>jdbc:mysql://58.143.127.196:3306/snu_career_last</url>
<user>snu_career</user>
<password>snu_career</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database>
</host>
</cluster>
<!--
- Configuration for the web-tier/load-balancer
-->
<resin:if test="${resin.professional}">
<cluster id="web-tier">
<server-default>
<!-- The http port -->
<http address="*" port="9080"/>
</server-default>
<server id="web-a" address="127.0.0.1" port="6700"/>
<cache path="cache" memory-size="64M"/>
<host id="">
<web-app id="/">
<rewrite-dispatch>
<load-balance regexp="" cluster="app-tier"/>
</rewrite-dispatch>
</web-app>
</host>
</cluster>
</resin:if>
</resin>
ROOT.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context path="" docBase="/app/CAREER/snu_career_mysql/WebContent" reloadable="true" workDir="/app/CAREER/work" antiResourceLocking="false" privileged="true" useHttpOnly="true" >
<!--
Remove the comment markers from around the Valve below to limit access to
the manager application to clients connecting from localhost
-->
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
<Resource name="jdbc/jdbc-career0" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="5" maxWait="10000"
username="snu_career" password="snu_career1663"
driverClassName="core.log.jdbc.driver.MysqlDriver"
url="jdbc:mysql://147.47.106.231:3306/snu_career"/>
</Context>
resin.sh
java -jar ~/bin/resin-3.1.12/lib/resin.jar -conf ~/snu_career_mysql/bin/resin.server.conf $*
resin-ssl.conf
<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
<log-handler name="" level="all" path="stdout:" timestamp="[%y.%m.%d %H:%M:%S]" format=" {${thread}} ${log.message}" />
<logger name="com.caucho." level="info" />
<logger name="com.caucho.java" level="info" />
<logger name="com.caucho.loader" level="info" />
<resin:import path="${resin.home}/conf/cluster-default.xml" />
<cluster id="web">
<character-encoding>utf-8</character-encoding>
<server id="" address="127.0.0.1" port="6800" />
<server-default>
<http address="*" port="8080" />
<http address="*" port="8443">
<jsse-ssl>
<key-store-type>jks</key-store-type>
<key-store-file>d:\project\career\dev-cnet-3df\bin\cnetKey</key-store-file>
<password>123456</password>
</jsse-ssl>
</http>
</server-default>
<host id="" root-directory=".">
<web-app id="/" root-directory="/Project/career/dev-cnet-3df/bin" work-dir="/Project/career/work/dev-cnet-3df"/>
<web-app id="/cnet" root-directory="/Project/career/dev-cnet-3df/WebContent" work-dir="/Project/career/work/dev-cnet-3df">
<character-encoding>UTF-8</character-encoding>
</web-app>
</host>
</cluster>
</resin>
'자료실 > Eclipse Plug-In' 카테고리의 다른 글
[WAS] tomcat6 (0) | 2013.12.24 |
---|---|
[WAS] resin-4.0.38 (0) | 2013.12.24 |
[WAS] Resin (0) | 2013.12.23 |