-
1. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
derry Jul 1, 2003 3:40 AM (in response to josh_hu)JBoss 3.x deletes the work-dirs on undeployment/shutdown. They contain the compiled JSPs.
You can change this behaviour by adding following line to jbossweb-tomcat.sar/META-INF/jboss-service.xml:
false
Hope this helps
Thomas -
2. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
josh_hu Jul 9, 2003 6:23 PM (in response to josh_hu)I tried adding:
false
to my jboss-service.xml in the directory you specified. But everytime I shut down jboss, my work directory is still cleared out. Is there any other config file I need to change?
My jboss-service.xml starts like this:
false
true
Many thanks
Josh -
3. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jbossuser Jul 14, 2003 4:55 PM (in response to josh_hu)Has anyone solved this? I am seeing the same behavior, i.e. DeleteWorkDirs=false is not working.
-
4. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jbossuser Jul 14, 2003 5:34 PM (in response to josh_hu)Actually, that was dumb. You just need to set the Host workDir to the something e.g.
since the tmp folder gets cleaned by jboss. -
5. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
elingsoft Jul 18, 2003 8:23 PM (in response to josh_hu)false
-
6. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
colinthorburn Aug 1, 2003 5:47 AM (in response to josh_hu)The same would appear to be true for JBoss-3.2.2.RC1/jbossweb-jetty.sar.
Does anyone have a solution for this config? -
7. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jonlee Aug 1, 2003 7:35 AM (in response to josh_hu)Try this thread for a per web-app Jetty solution for preserving compiled JSPs. http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=
-
8. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
koalajboss Dec 7, 2003 11:24 PM (in response to josh_hu)where Can set that?
any one can tell me details :) thx! -
9. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jonlee Dec 7, 2003 11:49 PM (in response to josh_hu)JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml or similar depending on your run-time instance and JBoss 3.2.x version. The example gives a run-time instance of default. The SAR could be jbossweb-tomcat41.sar. YMMV so adapt accordingly.
-
10. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
koalajboss Dec 11, 2003 1:29 AM (in response to josh_hu)"jonlee" wrote:
JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml or similar depending on your run-time instance and JBoss 3.2.x version. The example gives a run-time instance of default. The SAR could be jbossweb-tomcat41.sar. YMMV so adapt accordingly.
Thank you all!
I am OK! -
11. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
reitsma Dec 15, 2003 12:47 PM (in response to josh_hu)Nevertheless one can prevent JBoss from deleting these seemingly handcrafted JSP translations, can anybody explain why the compilation takes so much time in JBoss 3.2.2? It is at least 10 times slower compared with the stand-alone Tomcat!
-
12. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jdragon Dec 15, 2003 4:44 PM (in response to josh_hu)If this:
<attribute name="DeleteWorkDirs">false</attribute>
<Host name="localhost" unpackWARs="true" autoDeploy="true" workDir="/work/MainEngine/localhost">
is set and I change a JSP file, will jboss detect this and re-create a new jsp_Java file??? -
13. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jdragon Dec 15, 2003 4:45 PM (in response to josh_hu)"jdragon" wrote:
If this:<attribute name="DeleteWorkDirs">false</attribute>
<Host name="localhost" unpackWARs="true" autoDeploy="true" workDir="/work/MainEngine/localhost">
is set and I change a JSP file, will jboss detect this and re-create a new jsp_Java file???
Opps, I meant to put (between the quotes):
false
-
14. Re: Tomcat slow using JBoss3.2/Tomcat 4.1
jonlee Dec 15, 2003 11:18 PM (in response to josh_hu)The default Jasper settings in web.xml means that the *.jsp files will be checked for date changes, and will be automatically recompiled - given the checkInterval. Refer to the Tomcat Jasper howto at http://jakarta.apache.org/tomcat for more information. The operation of recompilation of JSPs is not governed by JBoss.