View Mode: Normal | Article List
Category: Resin | < | 1 | 2 |

resin - (HotSwap) not available

[ 2007-07-24 14:28:05 | Author: zhenhua ]
In-place class redefinition (HotSwap) is not available. In-place class reloading during development requires a compatible JDK and -Xdebug.

提示你的JDK没有 In-place class (class更换重定义,可理解为class热插拔)功能。就是说你更改了class后,应用需要重新启动,而不是直接生效。

解决方法:启动resin时加-Xdebug,或者更换JDK到1.6

httpd -Xdebug

Resin 3 <web-app> syntax

[ 2006-11-28 14:19:31 | Author: zhenhua ]
<web-app> syntax:
 ((@id | @url-prefix | <url-prefix> | @url-regexp | <url-regexp>),
 ( (@context-path | <context-path>)?
 & (@document-directory | <document-directory>)?
 & <prologue>?
 & (@startup-mode | <startup-mode>)?),
 (<authenticator>*
 & (@case-insensitive | <case-insensitive>)?
 & (@character-encoding | <character-encoding>)?
 & <class-loader>*
...

Read More...

Resin 3.0.20 is now available

[ 2006-08-02 18:33:39 | Author: zhenhua ]
Resin 3.0.20 is now available. Resin 3.0.20 includes enhancements to load balancing, distributed sessions, Quercus, and an early implementation of Hessian 2.0.

基于Resin+Aapache的URLRewrite

[ 2006-04-19 19:02:59 | Author: zhenhua ]
基于Resin+Aapache 使JSP实现URL静态化,环境:apache版本1.3.* resin2.1.14
在http webserver和作为serlvet容器的应用服务器的配合下实现有些问题。 这样就是静态的交给apache,动态的交给应用服务器。

目前尚未测试成功,希望有高人指点。
(IIS+resin的JSP静态很容易实现,暂不讨论)

思路:
1.Apache端进行urlrewrite

2.使用Resin自带的rewrite功能

3.使用第三方组件Url Rewrite Filter

4.apache端和resin端同时开启rewrite

5.resin用单独端口,用apache的ProxyPass 代理服务器功能隐藏转到resin的端口,那样就不叫结合了

测试结果:

第一种方案行不通,apache是web服务器,首先接受一切URL信息,当URL后缀是jsp或java类后缀时会交给Resin处理,若用RewriteRule /test.html /test.jsp ...

Read More...

Resin优化

[ 2004-09-09 02:04:00 | Author: zhenhua ]
Resin优化:

The allocation of memory for the JVM is specified using -X options when starting Resin

(the exact options may depend upon the JVM that you are using, the examples here are for the Sun JVM).

JVM option passed to Resin Meaning
-Xms initial java heap size
-Xmx maximum java heap size
-Xmn the size of the heap for the young generation

Resin startup with heap memory options unix> bin/httpd.sh -Xmn100M -Xms500M -Xmx500M win> bin/httpd.exe -Xmn100M -Xms500M -Xmx500M install win ...

Read More...

Resin.conf

[ 2004-09-09 01:59:41 | Author: zhenhua ]
<!--
 - The Resin configuration file.
 -
 - This example file is more complicated than is needs to be because
 - it makes several configurations explicit that can be simplified and
 - because it needs to configure the examples.
 -
 - Look in conf/samples for more realistic sample configurations.
 - conf/samples/simple.conf - a simple, basic configuration
 - conf/samples/deploy.conf - a simple configuration for deployment
 -
 - The configuration is based on
...

Read More...

Resin 2.x 多站点代码

[ 2004-09-09 01:51:51 | Author: zhenhua ]
<host id='abc.com,www.abc.com'>
 <app-dir>C:/yourroot/wwwroot</app-dir>
 <access-log id='logs/access.log'
 format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
 rollover-period='1W'/>

 <error-log id='logs/error.log'/>

 <web-app id='/'>

 <classpath id='WEB-INF/classes'
 source='WEB-INF/classes'
 compile='true'/>

 <session-config>
 <session-max>4096</session-max>
 <session-timeout>30</session-timeout>
...

Read More...
< | 1 | 2 |