Re: [Resin-interest] resin class reloading not working (3.1.19)
2009/12/23 Alex a...@caucho.com Hi , this is my resin's init message : I grep no HotSwap keyword here ... Putting Spring aside for a moment, make sure the following is done: - compile resin.jni (./configure --prefix=/pathtoyourresin; make; make install) Oops , I know what went wrong . I didn't compile resin.jni Ogininally , I used resin as an apache module , and I 'thought' the 'make ; make install' was to build the apache module. But last year , I changed apache-with-resin-module to using ProxyPass/ProxyPassReverse to redirect java requests to backend resin server. That's why I forgot to compile resin.jni ... :p ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] resin class reloading not working (3.1.19)
Hi : I remember long long time ago , resin was (the only one that) able to reload only the modified class , not the entire web-app. That was great ! But after I upgraded to some version (sorry , I forget what version , it is long ago) , it didn't work anymore. Today , I check again , 3.1.19 still reload all web-app even I modified a String in println() , (The class signature remains intact) How to recall this feature now ? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin class reloading not working (3.1.19)
Hi : I remember long long time ago , resin was (the only one that) able to reload only the modified class , not the entire web-app. That was great ! But after I upgraded to some version (sorry , I forget what version , it is long ago) , it didn't work anymore. Today , I check again , 3.1.19 still reload all web-app even I modified a String in println() , (The class signature remains intact) I am not sure if you mean 3.1.9, but I checked with 3.1.9 and JDK 1.6.0_17 on windows – worked fine. When resin starts serving first app it'll output either In-place class redefinition (HotSwap) is available. or In-place class redefinition (HotSwap) is not available. In-place class reloading during development requires a compatible JDK and -Xdebug. at the config level (by default the logging level is lower, so you'll need to change levels to see the message. log name= level=all... logger name=com.caucho level=config/ --Alex How to recall this feature now ? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin class reloading not working (3.1.19)
Hi , this is my resin's init message : I grep no HotSwap keyword here ... log level is enabled : logger name= level=all/ logger name=com.caucho level=config/ -Xdebug is enabled too : jvm-arg-Xmx256m/jvm-arg jvm-arg-Xss1m/jvm-arg jvm-arg-Xdebug/jvm-arg jvm-arg-Dcom.sun.management.jmxremote/jvm-arg Resin-3.1.9 (built Mon, 13 Apr 2009 11:09:12 PDT) Copyright(c) 1998-2008 Caucho Technology. All rights reserved. Using Resin(R) Open Source under the GNU Public License (GPL). See http://www.caucho.com for information on Resin Professional, including caching, clustering, JNI acceleration, and OpenSSL integration. Starting Resin on Wed, 23 Dec 2009 09:04:50 +0800 (CST) [09:04:53.375] {main} 'select-manager' requires Resin Professional. See http://www.caucho.com for information and licensing. [09:04:53.376] {main} [09:04:53.377] {main} Linux 2.6.18-164.6.1.el5 i386 [09:04:53.377] {main} Java(TM) SE Runtime Environment 1.6.0_17-b04, UTF-8, zh [09:04:53.378] {main} Java HotSpot(TM) Client VM 14.3-b01, 32, mixed mode, sharing, Sun Microsystems Inc. [09:04:53.378] {main} user.name: smallufo [09:04:53.378] {main} resin.home = /usr/java/resin/ [09:04:53.379] {main} resin.root = /usr/java/resin/ [09:04:53.379] {main} resin.conf = /usr/java/resin/conf/resin.conf [09:04:53.379] {main} [09:04:53.819] {main} WebApp[http://localhost:8080] active [09:04:54.090] {main} WebApp[http://localhost:8080/resin-admin] active [09:04:54.723] {main} WebApp[http://localhost:8080/resin-doc] active [09:04:54.724] {main} Host[] active [09:04:56.326] {main} WebApp[http://foobar.com] Initializing Spring root WebApplicationContext lot of spring initialization message... [09:05:07.445] {main} DESTIONFACTORY_ALREADY_REGISTERED [09:05:07.547] {main} WebApp[http://foobar.com] active [09:05:07.813] {main} WebApp[http://foobar.com/resin-doc] active [09:05:07.814] {main} Host[foobar.com] active [09:05:07.823] {main} hmux listening to localhost.localdomain:6800 [09:05:07.831] {main} http listening to *:8080 [09:05:07.835] {main} Server[id=,cluster=app-tier] active [09:05:07.839] {main} Resin started in 17754ms ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin class reloading not working (3.1.19)
2009/12/23 smallufo small...@gmail.com Hi , this is my resin's init message : I grep no HotSwap keyword here ... log level is enabled : logger name= level=all/ Oops sorry , this should be log , not logger But after I restart resin , I still cannot grep any HotSwap keyword in jvm-default.log ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin class reloading not working (3.1.19)
2009/12/23 smallufo small...@gmail.com Hi , this is my resin's init message : I grep no HotSwap keyword here ... log level is enabled : logger name= level=all/ Oops sorry , this should be log , not logger Actually it's log and logger log name= level=all path=stdout: timestamp=whatever time stamp is/ and logger name=com.caucho level=config/ But after I restart resin , I still cannot grep any HotSwap keyword in jvm-default.log The record should appear (once) when a class is loaded from WEB-INF/classes , so after first request to the page using it. Also, resin jni should be compiled. --Alex ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin class reloading not working (3.1.19)
Hi , this is my resin's init message : I grep no HotSwap keyword here ... Putting Spring aside for a moment, make sure the following is done: - compile resin.jni (./configure --prefix=/pathtoyourresin; make; make install) - change default resin.conf from log name= level=info path=stdout: timestamp=[%H:%M:%S.%s] {%{thread}} / logger name=com.caucho level=info/ to: log name= level=all path=stdout: timestamp=[%H:%M:%S.%s] {%{thread}} / logger name=com.caucho level=config/ - deploy a simple app into webapps with a jsp page and a class (simple webapp attached) - start resin - access the deployed webapp's index.jsp page with a browser (curl, wget) After these steps you should see the following: 20:23:09.881] {main} Resin started in 1767ms [20:23:28.011] {http--8080-1$22775072} Loading .tld files from global classpath [20:23:28.192] {http--8080-1$22775072} Compiling _jsp/_index__jsp.java [20:23:28.946] {http--8080-1$22775072} In-place class redefinition (HotSwap) is available. and after a touch on qa/Test.class and accessing the webapp again the following line will appear [20:30:31.556] {http--8080-6$11446032} Reloading qa.Test The resin.conf and webapp are attached. --Alex resin.conf Description: Binary data x.war Description: Binary data log level is enabled : logger name= level=all/ logger name=com.caucho level=config/ -Xdebug is enabled too : jvm-arg-Xmx256m/jvm-arg jvm-arg-Xss1m/jvm-arg jvm-arg-Xdebug/jvm-arg jvm-arg-Dcom.sun.management.jmxremote/jvm-arg Resin-3.1.9 (built Mon, 13 Apr 2009 11:09:12 PDT) Copyright(c) 1998-2008 Caucho Technology. All rights reserved. Using Resin(R) Open Source under the GNU Public License (GPL). See http://www.caucho.com for information on Resin Professional, including caching, clustering, JNI acceleration, and OpenSSL integration. Starting Resin on Wed, 23 Dec 2009 09:04:50 +0800 (CST) [09:04:53.375] {main} 'select-manager' requires Resin Professional. See http://www.caucho.com for information and licensing. [09:04:53.376] {main} [09:04:53.377] {main} Linux 2.6.18-164.6.1.el5 i386 [09:04:53.377] {main} Java(TM) SE Runtime Environment 1.6.0_17-b04, UTF-8, zh [09:04:53.378] {main} Java HotSpot(TM) Client VM 14.3-b01, 32, mixed mode, sharing, Sun Microsystems Inc. [09:04:53.378] {main} user.name: smallufo [09:04:53.378] {main} resin.home = /usr/java/resin/ [09:04:53.379] {main} resin.root = /usr/java/resin/ [09:04:53.379] {main} resin.conf = /usr/java/resin/conf/resin.conf [09:04:53.379] {main} [09:04:53.819] {main} WebApp[http://localhost:8080] active [09:04:54.090] {main} WebApp[http://localhost:8080/resin-admin] active [09:04:54.723] {main} WebApp[http://localhost:8080/resin-doc] active [09:04:54.724] {main} Host[] active [09:04:56.326] {main} WebApp[http://foobar.com] Initializing Spring root WebApplicationContext lot of spring initialization message... [09:05:07.445] {main} DESTIONFACTORY_ALREADY_REGISTERED [09:05:07.547] {main} WebApp[http://foobar.com] active [09:05:07.813] {main} WebApp[http://foobar.com/resin-doc] active [09:05:07.814] {main} Host[foobar.com] active [09:05:07.823] {main} hmux listening to localhost.localdomain:6800 [09:05:07.831] {main} http listening to *:8080 [09:05:07.835] {main} Server[id=,cluster=app-tier] active [09:05:07.839] {main} Resin started in 17754ms ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest