resin版本3.0.x
本来一个项目是依赖于tomcat服务器开发的,但 由于的客户的要求,必须移植到resin服务器下运行。其实很简单,没什么大的问题,这两个服务器的兼容性是比较好的。只需要把要发布的项目放在resin的\webapps目录下就可以。
不同的就是,如果web.xml文件,存在<description>标签的话,必须删除不然在resin运行,会报错。
不需要改变resin.conf配置文件就可以运行了,不论项目是否运用了SSH框架,一般不会出问题的。当然有时候报的错,可能是xml文件的解析的冲突,检查一下
如果还是报错的,需要修改resin.conf配置文件的话,这里有一份参考的,贴出来看看,根据需要对比修改。如果不了解配置文件的内容,可以参考这里的中文说明 http://tongjian.iteye.com/blog/268966
<!--
- Resin 3.0 configuration file.
-->
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">
<!--
- Logging configuration for the JDK logging API.
-->
<log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
<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>
<!--
- You can change the compiler to "javac" or jikes.
- The default is "internal" only because it's the most
- likely to be available.
-->
<javac compiler="internal" args=""/>
<!-- Security providers.
- <security-provider>
- com.sun.net.ssl.internal.ssl.Provider
- </security-provider>
-->
<!--
- 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>
-->
<!--
- Configures threads shared among all HTTP and SRUN ports.
-->
<thread-pool>
<!-- Maximum number of threads. -->
<thread-max>1024</thread-max>
<!-- Minimum number of spare connection threads. -->
<spare-thread-min>10</spare-thread-min>
</thread-pool>
<!--
- Configures the minimum free memory allowed before Resin
- will force a restart.
-->
<min-free-memory>1M</min-free-memory>
<server>
<!-- adds all .jar files under the resin/lib directory -->
<class-loader>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${server.root}/lib"/>
</class-loader>
<!-- Configures the keepalive -->
<keepalive-max>500</keepalive-max>
<keepalive-timeout>120s</keepalive-timeout>
<resin:if test="${resin.isProfessional()}">
<select-manager enable="true"/>
</resin:if>
<!-- listen to the http ports only after the server has started. -->
<bind-ports-after-start/>
<!-- The http port -->
<http server-id="" host="*" port="8081"/>
<!--
- SSL port configuration:
-
- <http port="8443">
- <openssl>
- <certificate-file>keys/gryffindor.crt</certificate-file>
- <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- <password>test123</password>
- </openssl>
- </http>
-->
<!--
- The local cluster, used for load balancing and distributed
- backup.
-->
<cluster>
<srun server-id="" host="127.0.0.1" port="6802"/>
</cluster>
<!--
- Configures the persistent store for single-server or clustered
- in Resin professional.
-->
<resin:if test="${resin.isProfessional()}">
<persistent-store type="cluster">
<init path="session"/>
</persistent-store>
</resin:if>
<!--
- Enables/disables exceptions when the browser closes a connection.
-->
<ignore-client-disconnect>true</ignore-client-disconnect>
<!--
- 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="${isResinProfessional}">
<cache path="cache" memory-size="8M"/>
</resin:if>
<!--
- Enables periodic checking of the server status.
-
- With JDK 1.5, this will ask the JDK to check for deadlocks.
- All servers can add <url>s to be checked.
-->
<resin:if test="${isResinProfessional}">
<ping>
<!-- <url>http://localhost:8080/test-ping.jsp</url> -->
</ping>
</resin:if>
<!--
- Defaults applied to each web-app.
-->
<web-app-default>
<!--
- 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="${server.root}/ext-webapp"/>
</class-loader>
<!--
- 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"/>
<!--
- Servlet to use for directory display.
-->
<servlet servlet-name="directory"
servlet-class="com.caucho.servlets.DirectoryServlet"/>
<!--
- Enable EL expressions in Servlet and Filter init-param
-->
<allow-servlet-el/>
<!--
- for security, disable session URLs by default.
-->
<!--session-config>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config-->
<session-config enable-cookies='false' enable-url-rewriting='true'/>
<!--
- For security, set the HttpOnly flag in cookies.
- <cookie-http-only/>
-->
</web-app-default>
<!--
- Sample database pool configuration
-
- The JDBC name is java:comp/env/jdbc/test
<database>
<jndi-name>jdbc/mysql</jndi-name>
<driver type="org.gjt.mm.mysql.Driver">
<url>jdbc:mysql://localhost:3306/test</url>
<user></user>
<password></password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database>
-->
<!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<class-loader>
<compiling-loader path="webapps/WEB-INF/classes"/>
<library-loader path="webapps/WEB-INF/lib"/>
</class-loader>
<!--
- 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>
<!-- Configure this for the ejb server
-
- <ejb-server>
- <config-directory>WEB-INF</config-directory>
- <data-source>jdbc/test</data-source>
- </ejb-server>
-->
</ear-default>
</ear-deploy>
<!-- creates the deploy directory for .rar expansion -->
<resource-deploy path="deploy"/>
<!-- creates a second deploy directory for .war expansion -->
<web-app-deploy path="deploy"/>
</host-default>
<!-- includes the web-app-default for default web-app behavior -->
<resin:import path="${resin.home}/conf/app-default.xml"/>
<!-- 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=".">
<!--
- configures an explicit root web-app matching the
- webapp's ROOT
-->
<!--web-app id="/" document-directory="webapps/ROOT"/-->
<web-app id="/OA" document-directory="D:/OA">
<!--jsp fast-jstl="false"/-->
<system-property javax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
<system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<system-property org.xml.sax.driver="org.apache.xerces.parsers.SAXParser"/>
<servlet-mapping url-pattern='/*' servlet-name='plugin_match'/>
<servlet-mapping url-pattern='*.do' servlet-name='action'/>
<servlet-mapping url-pattern='/j_security_check/*' servlet-name='plugin_match'/>
<servlet-mapping url-pattern='*.htm' servlet-name='action'/>
<servlet-mapping url-pattern='/codeServlet/*' servlet-name='plugin_match'/>
</web-app>
<resin:if test="${java.isJava5()}">
<!--
- Administration application /resin-admin
-
- password is the md5 hash of the password.
- localhost is true to limit access to the localhost
-->
<resin:set var="resin_admin_password" default=""/>
<resin:set var="resin_admin_localhost" default="true"/>
<web-app id="/resin-admin" document-directory="${resin.home}/php/admin"/>
</resin:if>
</host>
</server>
</resin>
分享到:
相关推荐
首先,你需要从官方网站下载Resin的最新稳定版本。下载完成后,解压缩到你选择的目录,通常建议放在不包含空格和特殊字符的路径下,如`C:\resin-server`。 2. **配置Resin** - **conf/resin.conf**:这是Resin的...
- 示例命令:`mkdir /usr/local/java`,然后移动JDK到此目录。 - 配置Tomcat环境变量。 - 启动Tomcat前确认Java环境变量正确配置。 **2.3 配置Tomcat的Service服务和自启动** - **配置Service服务**:通过创建...
### Linux运维从入门到高级全套案例教程 #### Linux入门篇 **1.1 Linux操作系统简介** Linux是一款开源、免费的类Unix操作系统,以其强大的稳定性、安全性以及灵活性在服务器领域占据了主导地位。它由芬兰人Linus...
Linux深入篇讲述了更多高级主题,比如构建高性能的Nginx WEB服务器、Rsync同步服务器、Tomcat/Resin JAVA服务器、Nginx与Tomcat动静分离、LNAMP架构配置、DNS域名解析服务器、MySQL主从高可用架构、LVS+Keepalived...
### Linux入门到高级全套案例知识点概述 #### 一、Linux入门篇 ...通过以上知识点的详细介绍,可以全面掌握从Linux基础到高级应用的知识体系,无论是对于Linux初学者还是希望进一步提升技能的专业人士都极具参考价值。
以上内容涵盖了从Linux的基础知识到高级运维技能的各个方面,旨在为想要进入Linux运维领域的学习者提供全面的指导。通过系统地学习这些知识点,不仅能够快速入门Linux运维,还能够逐步成长为一名优秀的Linux运维...
- **应用服务器**:熟悉Tomcat、Resin、WebSphere等 - **项目管理**:精通SVN、CVS等项目管理工具 - **前端技术**:能运用JavaScript、XML、Ajax实现功能 这份简历模板展示了程序员的核心竞争力,包括技术技能、...
2. **服务器配置**:确保Web服务器(如Tomcat或Resin)支持所设定的字符编码。例如,在Tomcat中可以通过修改`server.xml`文件中的`URIEncoding`属性来实现。 3. **统一字符编码**:在项目中统一使用一种字符编码,...
同时,了解Web服务器如Resin、Tomcat、Nginx等,有助于理解部署和性能优化。 【用户体验与设计】 前端开发不仅关注技术实现,还要注重用户体验。这包括响应式设计以适应不同设备,交互设计以提高易用性,以及视觉...
`UrlRewriteFilter` 是一个基于Java的URL重写工具,适用于Tomcat等Servlet容器,能够帮助开发者实现复杂的URL转换规则,包括301永久重定向。在本文中,我们将详细探讨`UrlRewriteFilter-4.0.3.jar`的使用方法、原理...
例如批量修改,批量导出等功能7、方便部署,直接打war包部署到tomcat resin等web服务器上即可8、简洁漂亮的UI,采用Google风格的样式,看起来比较清爽9、开源的软件,用户团队可以方便的进行二次开发 10、强大的...
首先,我们来看Web容器,如Tomcat、Jetty、JBoss和Resin。Tomcat是最流行的开源Servlet容器,它实现了Java Servlet和JavaServer Pages (JSP) 规范。Jetty是一款轻量级、快速且易于集成的服务器,广泛用于嵌入式场景...
6. **框架和工具**:对acegi、spring、struts、hibernate、velocity、lucene、blazer、caingorm等开发框架有一定研究,熟悉weblogic、oc4j、tomcat、resin等J2EE服务器,以及Oracle、SQLSERVER、MySQL数据库管理系统...
3. **Web服务器支持**:JSP广泛支持多种Web服务器,如Apache、Resin、Tomcat和Microsoft IIS,而ASP主要限于Microsoft IIS或Personal Web Server。 4. **操作系统平台**:JSP平台无关,ASP仅限Windows。 5. **性能**...
- **WebLogic与其他应用服务器对比**:除了WebLogic之外,还有其他一些知名的应用服务器,例如IBM的WebSphere、Sun的GlassFish、Resin以及Apache Tomcat。这些服务器各有优势,但在企业级应用领域,WebLogic以其丰富...
中间件如Tomcat、WebLogic和Resin提供了灵活的部署选择,而数据库则需MySQL 5以上的版本。 系统的首要目标是推动企业内部的信息共享和知识传播,创建一个类似“企业大学”的学习平台。通过整合资源,降低运营成本,...