RE: tomcat as service under linux how-to
Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
Here's my rc.local script that i used to start the Tomcat and Apache automatically. however i did not have any script that startup Apache and Tomcat both at boot time. i just added the isStarted and if statement, and haven't test on it, maybe u would wanna try on it, no success is guaranteed though :p . If anyone else have a better options then u could use theirs. PS: to use this script u must have the httpd and tomcat4 script in ur /etc/rc.d/init.d folder, which i think should come with the installation of the Apache and tomcat4. u should be able to get these script from the web if u dun have them.. Hope this helps: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local service httpd start isStarted=`ps -ef | grep -i httpd | grep -v grep | awk {'print $2'} | head -1` if [ $isStarted 0 ] then service tomcat4 start fi - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM Subject: RE: tomcat as service under linux how-to Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trouble with multipart/form-data and servlet name
Hello, I'm testing our applicatio under Tomcat 5.5.9 (under Linux and with sun jdk 1.4.2_08) and I have the following behaviour: The getServletName() return org.apache.catalina.INVOKER.com.sharedvalue.document.servlet.admin.UploadFiles when I use a form with enctype=multipart/form-data that call a servlet named com.sharedvalue.document.servlet.admin.UploadFiles. I was expecting com.sharedvalue.document.servlet.admin.UploadFiles. This behaviour occurs only when the form is a multipart. As this breaks some functionnality in our application, I would like to know it's a normal behaviour ? Thanks in advance, -Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat as service under linux how-to
So may I know what's the booting seq. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 4:13 PM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Here's my rc.local script that i used to start the Tomcat and Apache automatically. however i did not have any script that startup Apache and Tomcat both at boot time. i just added the isStarted and if statement, and haven't test on it, maybe u would wanna try on it, no success is guaranteed though :p . If anyone else have a better options then u could use theirs. PS: to use this script u must have the httpd and tomcat4 script in ur /etc/rc.d/init.d folder, which i think should come with the installation of the Apache and tomcat4. u should be able to get these script from the web if u dun have them.. Hope this helps: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local service httpd start isStarted=`ps -ef | grep -i httpd | grep -v grep | awk {'print $2'} | head -1` if [ $isStarted 0 ] then service tomcat4 start fi - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM Subject: RE: tomcat as service under linux how-to Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: binary streaming / content-type problem with mod_jk ?
Any ideas ? It would be helpful :) Thanks, Jérôme Chauvin Le 19 juil. 05, à 10:09, Jérôme Chauvin a écrit : Hi all ! I've developed a servlet (BinaryStreaming based on StreamingContent by Raj Behera) which does a binary stream of a mpeg video file which is created progressively (by another servlet/software/Unix command/... not important ) and finally read and played by Quicktime. I use Apache and Tomcat so I've installed mod_jk All work well (- MacOS and Windows) but... : If I go on http://localhost:8080/my_test/BinaryStreaming it works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...). I have mod_jk so I can go on http://localhost/my_test/BinaryStreaming and here it still works well with QT7. But QT6 seems to wait that the video file is entirely created to start the viewing instead of starting to play the movie as soon as there is data in it, progressively. - like it does with QT7 and QT6 with :8080 OR when I use QT7 without :8080. I think it's due to mod_jk but I've no idea to make it work I've found that another person had a similar problem, but no answer was given : http://www.junlu.com/msg/107218.html This message was posted in 09/2004 and it seems that Apache causes problems with pre-defined MIME-Types. Does someone have an answer or an idea ? :-) I really need to fix this ! :( Thanks in advance. :o) Regards, Jérôme --- Jérôme Chauvin OPSOMAI 77, rue de Charonne 75011 Paris - France Tél : +33 (0)1 58 39 38 22 Fax : +33 (0)1 43 70 70 72 @ : [EMAIL PROTECTED] URL : http://www.opsomai.com
Re: Tomcat and SSL
i dont think https and http requests from the same machine will be having any impact on the session created already. I mean even if u call request.getSession(true) in a secure page and if a valid session already exists , nothinng like creating a new session and invalidating it will happen. There will not any difference between a http request and https request from web server point of view, except that they are received on different ports and one needs to be decrypted before processing any detailed explaination on this will be appreciated On 7/19/05, Mufaddal Khumri [EMAIL PROTECTED] wrote: Hello, I wanted to verify if I am understanding this right. The website has certain sections of it using HTTPS (secure) and certain sections use only HTTP (unsecure). 1. A new session resulting from a call to request.getSession(true) in a secure area of a website is invalidated automatically when the session transitions from the secure to an unsecure area of the website. 2. A new session resulting from a call to request.getSession(true) in an unsecure area of a website is untouched when the session transitions from the unsecure to a secure area of the website and from the unsecure to a secure area of the website. Am I understanding 1 and 2 right? Thanks, Mufaddal. -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. Consult your physician prior to the use of any medical supplies or product. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection pool exhausted
hi, u have to close the connection, sothat container puts it back in the pool . as u set maxActive=100 at max only 100 connections will be maintained in pool and as u r not closing the connection, u would have ran out of all the connections available in pool (ie 100) closing the connection should solve ur problem check this link for more details http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html regards Srikanth Peddireddy On 7/20/05, Tony Smith [EMAIL PROTECTED] wrote: I am runing tomcat 5.0 + postgresql. I set my connection pool in server.xml as: Resource name=jdbc/mysource type=javax.sql.DataSource password= driverClassName=org.postgresql.Driver maxIdle=100 maxWait=5000 validationQuery=select * from test username= url=jdbc:postgresql://localhost:5432/mydb maxActive=100/ I call it from my servlet as: public Connection getConnection(){ try{ Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/mysource); DatabaseManager.initDataSource(ds); return ds.getConnection(); }catch(Exception e){ e.printStackTrace(); } return null; } I use the connection as: Connection connection = getConnection(); //jdbc //I did not call connection.close(). Should I? Then, I can run my web app. But not for long. I got the following exception after browse a few pages: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool exhausted How can I fix it? Thanks, --- skausl [EMAIL PROTECTED] wrote: I have log4j-1.2.11.jar in Tomcat\common\lib and log4j.properties in Tomcat\common\classes\. -Original Message- Sorry if this is an oft-repeated question. Digging through old archives of this list and Google haven't turned up anything directly related. I'm trying to run Tomcat 5.5.9 as a windows service (installed it using service.bat), but for some unknown reason, it does not pick up the log4j.properties files located in my applications WEB-INF\classes directory. As far as I can tell, the java options, classpath and startup class are identical for both. Is this a limitation/weakness of the Windows Service or do I have something mis-configured? Thank You. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JNDI Realm + Active Directory Server
Two things that I noticed. I don't know how correct they are, but it seems to work in my environment. 1. In my Realm definition Realm I have connectionName and connectionPassword attributes which specify the user that can login to AD and query and authenticate others. 2. My Realm definition is in the context of my webapp and my web.xml configuration looks something like the following: security-constraint^M web-resource-collection^M web-resource-nameLogin Screen/web-resource-name^M url-pattern/Login.jsp/url-pattern^M /web-resource-collection^M ^M auth-constraint ^M role-nameMIS Distribution/role-name^M /auth-constraint^M /security-constraint^M I never use the context name in my web.xml like you have setup with moretests. Hope this helps. Kal -Original Message- From: Luis Durán [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 6:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat JNDI Realm + Active Directory Server I had a hard time trying to configure Tomcat to authenticate with MS Active Directory Service, i tried a lot of samples, i edited them but i didn't get nothing. This is the last configuration i tried: /META-INF/context-xml: ?xml version=1.0 encoding=UTF-8? Context path=/moretests Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://192.168.200.2:389; referrals=follow userBase=cn=Users,dc=w2ksvr,dc=local userSearch=(sAMAccountName={0}) userSubtree=true userRoleName=memberOf roleBase=cn=Users,dc=w2ksvr,dc=local roleSearch=(sAMAccountName={0}) roleSubtree=true rolename=cn / /Context I gave the shot to the bind mode and to the password comparison mode with any results. /WEB-INF/web.xml: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 login-config auth-methodBASIC/auth-method realm-namemoretests/realm-name /login-config session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list security-constraint web-resource-collection web-resource-namewhole site/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method /web-resource-collection auth-constraint role-nameprueba/role-name /auth-constraint /security-constraint security-role descriptionUsuario/description role-nameprueba/role-name /security-role /web-app Of course, i have created that group inside ADS and populated it with a user called elebis with a simple password. I even browsed ADS with ldap browser and everything seemed ok, Does anybody know why am I doing wrong? Can anybody help me to work around it? Thanks in advanced, pals -- Luis Edgardo Durán Lebis Soporte Técnico y Sistemas http://mipagina.cantv.net/elebis [EMAIL PROTECTED] 0416-7580991 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTE: All e-mail sent to or from this address will be received by the Waterfield Group corporate e-mail system and is subject to archival, monitoring, and/or review by someone other than the recipient or the sender. This e-mail and any of its attachments may contain proprietary information, which is privileged and confidential. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jkstatus
Hi, I have installed a cluster using Apache2.0.54 + mod_jk 1.2.13 + Tomcat5.5.9. And it´s working fine. I want to configure jkstatus but I haven´t been success. My worker.properties worker.tomcat1.type=ajp13 worker.tomcat1.host=localhost worker.tomcat1.port=8009 worker.tomcat1.lbfactor=1 worker.tomcat1.cachesize=1 worker.tomcat2.type=ajp13 worker.tomcat2.host=localhost worker.tomcat2.port=8010 worker.tomcat2.lbfactor=1 worker.tomcat2.cachesize=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=tomcat1,tomcat2 worker.status.type=status worker.list=loadbalancer, status My tomcat.conf IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /servlets-examples/* loadbalancer JkMount /jkstatus/* status When I try /jkstatus/ I receive Internal Server Error. Can anybody help me ? Thanks Rogerio Baldini
Using a constant in a JSP
Hello ! This is probably a dumb question, but I'll try anyway. Please dont laugh at my ignorance ;-) I'm trying to use a constant (static final String) that is defined in a class. My code looks roughly so : %@ page import='ch.tecost.siems.dao.care.planification.FrequencyType' % [...] html:radio name=form property=frequencyType value=${FrequencyType.MEAL_TIME} [...] / Of course, this doesnt seem to work. What would be the right syntax ? I'm a bit lost and dont know exactly what I should be looking for. Yes, I tried Google with no success; or too much success (millions of page that dont exactly tell me what to do in this case) ... Thanks a lot for the time you will take to make me less ignorant ! Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a constant in a JSP
html:radio name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % [...] / Regards Guru -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 15:10 To: Tomcat Users List Subject: Using a constant in a JSP Hello ! This is probably a dumb question, but I'll try anyway. Please dont laugh at my ignorance ;-) I'm trying to use a constant (static final String) that is defined in a class. My code looks roughly so : %@ page import='ch.tecost.siems.dao.care.planification.FrequencyType' % [...] html:radio name=form property=frequencyType value=${FrequencyType.MEAL_TIME} [...] / Of course, this doesnt seem to work. What would be the right syntax ? I'm a bit lost and dont know exactly what I should be looking for. Yes, I tried Google with no success; or too much success (millions of page that dont exactly tell me what to do in this case) ... Thanks a lot for the time you will take to make me less ignorant ! Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a constant in a JSP
On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: html:radio name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % [...] / Regards Guru Thanks a lot ! Of course, it's obvious once we know it ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a constant in a JSP
Next dummy question : I have a test between a Constant and a page variable : c:when test=${form.frequencyType == % FrequencyType.MEAL_TIME.getValue(); %} Which also doesnt use the right syntax ... If you're not bored yet, could please help me a bit more ? Thanks a lot ! Guillaume On 7/20/05, Guillaume Lederrey [EMAIL PROTECTED] wrote: On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: html:radio name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % [...] / Regards Guru Thanks a lot ! Of course, it's obvious once we know it ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Using a constant in a JSP
Hi, this is simply not supported in EL! I submitted this already as an enhancement https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=134 But it won't be in the next release in JSP 2.1, that's for sure. So you need to do a workaround: - Use a bean to retrive the constant - write an EL function Cheers Bernhard -Ursprüngliche Nachricht- Von: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 20. Juli 2005 16:10 An: Tomcat Users List Betreff: Using a constant in a JSP Hello ! This is probably a dumb question, but I'll try anyway. Please dont laugh at my ignorance ;-) I'm trying to use a constant (static final String) that is defined in a class. My code looks roughly so : %@ page import='ch.tecost.siems.dao.care.planification.FrequencyType' % [...] html:radio name=form property=frequencyType value=${FrequencyType.MEAL_TIME} [...] / Of course, this doesnt seem to work. What would be the right syntax ? I'm a bit lost and dont know exactly what I should be looking for. Yes, I tried Google with no success; or too much success (millions of page that dont exactly tell me what to do in this case) ... Thanks a lot for the time you will take to make me less ignorant ! Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a constant in a JSP
logic:equals name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % Guru Loves Struts /logic:equals -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 15:29 To: Tomcat Users List Subject: Re: Using a constant in a JSP Next dummy question : I have a test between a Constant and a page variable : c:when test=${form.frequencyType == % FrequencyType.MEAL_TIME.getValue(); %} Which also doesnt use the right syntax ... If you're not bored yet, could please help me a bit more ? Thanks a lot ! Guillaume On 7/20/05, Guillaume Lederrey [EMAIL PROTECTED] wrote: On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: html:radio name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % [...] / Regards Guru Thanks a lot ! Of course, it's obvious once we know it ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a constant in a JSP
On 7/20/05, Bernhard Slominski [EMAIL PROTECTED] wrote: Hi, this is simply not supported in EL! I submitted this already as an enhancement https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=134 But it won't be in the next release in JSP 2.1, that's for sure. So you need to do a workaround: - Use a bean to retrive the constant - write an EL function Thanks for the reply. Too bad it doesnt work à droite en dehors de la boite ... I'll use your workaround for now. Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a constant in a JSP
On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: logic:equals name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % Guru Loves Struts /logic:equals Wow... ! This one looks better ! Thanks a lot ! Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.9 does loads classes from the wrong webapp
Hi, short: the classloader does load classes from a complete seperate webapp, because classes are the same and differ only by code versions. with this setup in server.conf : Host name=servername.de Alias name=bugzilla.servername.de DefaultContext docBase=webapps/ticket path=// /Alias Alias name=www.servername.de/ Context path=/ docBase=webapps/webanwendung reloadable=false trusted=false /Context Context path=/beta docBase=webapps/webanwendungbeta reloadable=true trusted=false /Context Context path=/test docBase=webapps/test reloadable=true trusted=false /Context ... /host and this dirtree: /tomcat/webapps/webanwendung/WEB-INF/classes/package1 /tomcat/webapps/webanwendung/WEB-INF/classes/package2 /tomcat/webapps/webanwendung/WEB-INF/classes/package3 /tomcat/webapps/webanwendungbeta/WEB-INF/classes/package1 /tomcat/webapps/webanwendungbeta/WEB-INF/classes/package2 /tomcat/webapps/webanwendungbeta/WEB-INF/classes/package3 ... There are NO SYMLINKS in use, all classes-directories are seperate. With the same classnames and interfaces in each same named package i.e. webapps/webanwendungbeta/WEB-INF/classes/package1/Database.class is loaded in webapps/webanwendung and vice versa. It does not happen with every class. Best thing is, if i recompile the class x in webapps/webanwendungenbeta/WEB-INF/classes , webanwendungenbeta does reload !! BUT does still use the other class incarnation! I use the lastest TC 5.5.9 . I had this problem with 5.0.28 too, which was the reason to update to 5.5.9 . Any suggestings? m.Schwarz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a constant in a JSP
On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: logic:equals name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % Guru Loves Struts /logic:equals Just a small correction for the next one who'll need this advice : The tag is logic:equal/ and NOT logic:equals/ (at least if we are both talking about the struts-logic taglibs ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a constant in a JSP
Sorry My apologies ... Yes I am talking about struts taglibs ... Regards Guru I love Struts -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 15:58 To: Tomcat Users List Subject: Re: Using a constant in a JSP On 7/20/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: logic:equals name=form property=frequencyType value=%= FrequencyType.MEAL_TIME % Guru Loves Struts /logic:equals Just a small correction for the next one who'll need this advice : The tag is logic:equal/ and NOT logic:equals/ (at least if we are both talking about the struts-logic taglibs ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
Guys, I have been experiencing an interesting problem lately with our production servers. We are running Tomcat 5.5.9 with 1.4.2_08 on Gentoo box. We have around 15 contexts (identical web application for 15 separate clients) inside weapps. Our application is very XML/XSLT oriented. Our main third party hibernate, axis, batik, struts, velocity and bunch of apache commons stuff. I have identified the ones that can go in the shared/lib and put the rest in WEB-INF/lib. I have attached two text files that list these two directory listings. Problem is every now and then we will see an OutOfMemoryError on the box that looks similar to this: java.lang.OutOfMemoryError java.util.zip.ZipFile.open(Native Method) java.util.zip.ZipFile.init(ZipFile.java:112) java.util.jar.JarFile.init(JarFile.java:127) java.util.jar.JarFile.init(JarFile.java:92) org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java :1544) org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas sLoader.java:1763) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1570) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:850) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1299) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1181) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable(NewPooledConnec tion.java:256) com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.ja va:52) com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(Defau ltConnectionTester.java:136) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.testPooledConnection(C3P 0PooledConnectionPool.java:156) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishResourceOnCheck out(C3P0PooledConnectionPool.java:125) com.mchange.v2.resourcepool.BasicResourcePool.attemptRefurbishResourceOnChec kout(BasicResourcePool.java:1065) com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResource Pool.java:238) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C 3P0PooledConnectionPool.java:232) com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource. java:94) net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0Connect ionProvider.java:33) net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:292) net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373) net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:) net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67) net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784) net.sf.hibernate.loader.Loader.doQuery(Loader.java:269) net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader .java:138) net.sf.hibernate.loader.Loader.doList(Loader.java:1063) net.sf.hibernate.loader.Loader.list(Loader.java:1054) net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554) net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531) net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1527) ... ... This to me indicates Tomcat is running out of memory when it tries to load classes from a Jar. Has anybody seen this before? If anybody has, can you please elaborate on it. Does it mean I I one too many jars. Bear in mind that the libs in WEB-INF/lib directory will be loaded 15 times for 15 contexts. Is that where the problem could be coming from? Also, at this point I thought I will tell you guys about my JVM parameters: export JAVA_OPTS=-server -Xms512m -Xmx1000m -Xss256k export CATALINA_OPTS=-XX:MaxPermSize=300m -XX:+UseDefaultStackSize -Djava.awt.headless=true I would be ever so greatful if anybody could shed any light or share their experiences with me. Kind regards... Arup Vidyerthy total 4240 -rw-r--r-- 1 root root 478024 Jun 13 20:49 c3p0-0.9.0-pre4.jar -rw-r--r-- 1 root root 1848328 Jun 13 20:49 castor-0.9.7.jar -rw-r--r-- 1 root root 31605 Jun 13 20:49 commons-logging-1.0.3.jar -rw-r--r-- 1 root root 53232 Jun 13 20:49 ehcache-0.9.jar -rw-r--r-- 1 root root 967576 Jun 13 20:49 hibernate2.jar -rw-r--r-- 1 root root8812 Jun 13 20:49 jta.jar -rw-r--r-- 1 root root 352668 Jun 13 20:49 log4j-1.2.8.jar -rw-r--r-- 1 root root 13091 Jun 13 20:49 odmg-3.0.jar -rw-r--r-- 1 root root 361173 Jun 13 20:49 velocity-1.4.jar -rw-r--r-- 1 root root 89043 Jun 13 20:49 velocity-tools-1.1.jar -rw-r--r-- 1 root root 14242 Jun 13 20:49
RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: FW: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) Problem is every now and then we will see an OutOfMemoryError on the box that looks similar to this: java.lang.OutOfMemoryError java.util.zip.ZipFile.open(Native Method) Unfortunately, OOME is used as a catch-all for many OS-related resource problems. My guess is in this case that you've exceeded the limit on file descriptors for the process. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
Hi Chuck, Thanks for your reply. In other words, may be not have 15 contexts/web app on one server. May be 10. I guess it is hard to say. Looking at the no. of jars, do you think it is an excessive amount? Any pointers in terms of how I should approach this problem...? Thanks... /Arup -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 17:14 To: Tomcat Users List Subject: RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: FW: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) Problem is every now and then we will see an OutOfMemoryError on the box that looks similar to this: java.lang.OutOfMemoryError java.util.zip.ZipFile.open(Native Method) Unfortunately, OOME is used as a catch-all for many OS-related resource problems. My guess is in this case that you've exceeded the limit on file descriptors for the process. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) Any pointers in terms of how I should approach this problem...? I'd raise the limit on the number of open file descriptors and see what happens. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What parser does Tomcat 5.5 use by default?
Hi all this is a simple question. I'm trying to figure out what parser tomcat 5.5 uses by default after a fresh install. Does anyone know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What parser does Tomcat 5.5 use by default?
From: Dewey, John [mailto:[EMAIL PROTECTED] Subject: What parser does Tomcat 5.5 use by default? Hi all this is a simple question. I'm trying to figure out what parser tomcat 5.5 uses by default after a fresh install. Does anyone know? Parser for what? XML? JSP? ??? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What parser does Tomcat 5.5 use by default?
For XML. Sorry for not being more specific. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 9:49 AM To: Tomcat Users List Subject: RE: What parser does Tomcat 5.5 use by default? From: Dewey, John [mailto:[EMAIL PROTECTED] Subject: What parser does Tomcat 5.5 use by default? Hi all this is a simple question. I'm trying to figure out what parser tomcat 5.5 uses by default after a fresh install. Does anyone know? Parser for what? XML? JSP? ??? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Closing HTTP request/connections
Within the Tomcat Manager console, what we have noticed is that when the Current thread busy reaches 99 (or whatever the max is set at), Tomcat begins serving up blank pages. At that point, we have to restart Tomcat to release the connections, and everything seems to work after that. Is there any way to kill those connections? We have tried modifying the server.xml file (changing config parameters), but nothing seems to be working. Again, any assistance would be greatly appreciated. Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about deployment (including executables in war)
Hi Alon, Thanks for reply. I am new to tomcat development. but I'll try my best to be more specific. it seems that there are a couple of ways to 'deploy' web applications. the deploy task has a localWar attribute that points to the local build directory. Or you can use the war attribute that points to a single war file containing the application. my web application presents results that are at the moment computed by a number of stand-alone programs on the server. for maximum reliability I decided to keep copies of these executables in the application distribution directory structure, at this point WEB-INF/bin. to create the war file for distribution I use the ant dist command. the dist target includes the task: jar jarfile=${dist.home}/${app.name}-${app.version}.war basedir=${build.home}/ the jar task is able to create a single war file from the contents of the build.home directory hierarchy (that includes WEB-INF/bin). but in the process it changes the permissions of the executable files to read-only (i.e. strips the execute bit). as a result my application is unable to run these executables after installation. if I manually make these programs executable at the installation directory (webapp) the application runs fine. so apparently the SecurityManager has no problem with that (I can obtain a Runtime, and run a process from within the web application with no problem). I suppose that's something to look a bit more into to make sure the application is secure. At this point I do the installation like this target name=install depends=compile description=Install application to servlet container delete dir=${catalina.home}/webapps/${app.name}/ mkdirdir=${catalina.home}/webapps/${app.name}/ copy todir=${catalina.home}/webapps/${app.name} fileset dir=${build.home}/ /copy chmod perm=oug+x fileset dir=${catalina.home}/webapps/${app.name}/WEB-INF/bin /fileset /chmod /target I run ant stop ant install ant start but this does not seem to be terribly reliable. I get messages at catalina.out saying things like application has not been started and application has already been started and sometimes I need to do start and stop a couple of times before the application is actually running. using the localWar deploy method runs into similar problems in terms of stripping the execute bit off the executables when installed. any ideas / comments / suggestions ? thanks Murad Nayal Alon Belman wrote: Murad, I'm not 100% sure what you're asking -- like what do you mean by jar strips the execute file permissions from my programs? -- but i'm assuming you cant do it. In fact, I will be more than a little alarmed if a packaged web app can include and run arbitrary executables unless specifically allowed to so by its server's SecurityManager, or if the server is running without a SecurityManager. That is, you cannot do it unless you configure it OUTSIDE your web application. Hope this helps, Alon On 7/17/05, Murad Nayal [EMAIL PROTECTED] wrote: Hi Everybody, I need to include executable programs as part of my web application. in development I created a directory WEB-INF/bin where I kept copies of the programs I need. problem is when I create a war file for my application, jar strips the execute file permissions from my programs. is there any way around this at all where I would still have my application packaged as a single war file with the necessary executables (with the correct permissions). many thanks Murad Nayal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about deployment (including executables in war)
Many thanks Richard, I suppose that answers my question, albeit I was hoping there was something more elegant that can be done other than changing file permissions after installation. what is the correct way to reload applications after copying files into the installation directory? ant stop; ant start seem not to be designed for that judging from the complaints from tomcat I get in catalina.out!! thanks again Murad Nayal Richard Mixon (qwest) wrote: Murad/Alon, This has nothing to do with a SecurityManager. Murad is trying to run the executables on the server - from one of his servlets I assume. The problem is the fact that a war files is basically just a zip file. It does not maintain the file attributes that are specific to a particular operating system (e.g. execute, read-only, write, etc.). Other archive formats do this (e.g. tar and Windows backup archives). I believe the user's umask setting is probably used to set the permissions - but Tomcat might do something different. Regardless, even if Tomcat honors the umask setting, you would not want to change this such that all files were marked executable when the jar was uncompressed. I am not sure you have much option other than to have a custom ant script that alters the permissions after the files are deployed from the war file. The jakarta-tomcat-5.5.x-deployer has a deployment script (build.xml) that should be a good starting point. Hope this helps - Richard -Original Message- From: Alon Belman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 4:44 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: question about deployment (including executables in war) Murad, I'm not 100% sure what you're asking -- like what do you mean by jar strips the execute file permissions from my programs? -- but i'm assuming you cant do it. In fact, I will be more than a little alarmed if a packaged web app can include and run arbitrary executables unless specifically allowed to so by its server's SecurityManager, or if the server is running without a SecurityManager. That is, you cannot do it unless you configure it OUTSIDE your web application. Hope this helps, Alon On 7/17/05, Murad Nayal [EMAIL PROTECTED] wrote: Hi Everybody, I need to include executable programs as part of my web application. in development I created a directory WEB-INF/bin where I kept copies of the programs I need. problem is when I create a war file for my application, jar strips the execute file permissions from my programs. is there any way around this at all where I would still have my application packaged as a single war file with the necessary executables (with the correct permissions). many thanks Murad Nayal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with refreshing JSP
The other thing to note about reloading JSPs is that tomcat 5.5 seems to copy ones web context directory into its own webapps directory. Any changes to the original JSPs will not show up unless you physically copy the JSP from the original directory to the webapps directory. I use the maven:install goal which worked well with tomcat 5.0. It created a directory (say /home/blah/project/target/project_name). If I changed a JSP, I simply ran war:webapp which would copy all the changed files into the said directory. With tomcat 5.5, this does not work because the tomcat seems to care less about the specified directory after installing the webapp. To work around this, my web app build target (maven.war.webapp.dir) is now /home/blah/bin/tomcat/webapps/project_name (pointing directly to the tomcat installation). At first I simply used the war:webapp goal, but the context.xml file was not picked up. Now I used the tomcat:install goal again which builds the webapp in the tomcat webapps directory and then uses the tomcat manager to install the directory. I should probably set autoDeploy to false so that conflicts do not occur between the auto deploy mechanism and the tomcat manager. Anyway, I don't think this is an elegant solution, so if anyone has any other suggestions on how to handle this, please let me know. -Trav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HI
It's the long-awaited film version of the Broadway hit. The message sent as a binary attachment. ** ** WARNING: Panda Antivirus GateDefender has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to protect your network. Panda Antivirus GateDefender Administrator: [EMAIL PROTECTED] 07/21/05 10:12:26 Panda Antivirus GateDefender (Version 5.1 R1c (5.0.60.2)) - http://www.pandasoftware.com/ Antivirus Vendor: Panda Software Scan Engine Version: 4.1.4.307 Pattern File Version: 3.101528 (Timestamp: 20/07/2005 145915) Machine name: EPOC-F2-7200 Machine IP address: 192.168.64.22 Server: 192.168.64.15 Client: 221.253.199.172 Protocol: SMTP Virus: W32/Lovgate.AC.worm found! Attachment: doc.zip ** ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HI
It's the long-awaited film version of the Broadway hit. The message sent as a binary attachment. ** ** WARNING: Panda Antivirus GateDefender has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to protect your network. Panda Antivirus GateDefender Administrator: [EMAIL PROTECTED] 07/21/05 10:12:26 Panda Antivirus GateDefender (Version 5.1 R1c (5.0.60.2)) - http://www.pandasoftware.com/ Antivirus Vendor: Panda Software Scan Engine Version: 4.1.4.307 Pattern File Version: 3.101528 (Timestamp: 20/07/2005 145915) Machine name: EPOC-F2-7200 Machine IP address: 192.168.64.22 Server: 192.168.64.15 Client: 221.253.199.172 Protocol: SMTP Virus: W32/Lovgate.AC.worm found! Attachment: doc.zip ** ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't start tomcat as user
Hi, Got problem starting Tomcat as user tomcat. No problem starting it under root. Any idea why ?
Re: can't start tomcat as user
dummy wrote: Hi, Got problem starting Tomcat as user tomcat. No problem starting it under root. Any idea why ? On Linux, only root can open ports below 1024 (included). You must compile the jsvc program and setup a tomcat user and it will start tomcat as root and then change the effective user before receiving requests. I hope this help. (jsvc is in the bin folder, i think is originally compressed) -- Luis Edgardo Durán Lebis Soporte Técnico y Sistemas http://mipagina.cantv.net/elebis [EMAIL PROTECTED] 0416-7580991 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't start tomcat as user
Then how to start automatically at boot time ? -Original Message- From: Luis Durán [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 9:33 AM To: Tomcat Users List Subject: Re: can't start tomcat as user dummy wrote: Hi, Got problem starting Tomcat as user tomcat. No problem starting it under root. Any idea why ? On Linux, only root can open ports below 1024 (included). You must compile the jsvc program and setup a tomcat user and it will start tomcat as root and then change the effective user before receiving requests. I hope this help. (jsvc is in the bin folder, i think is originally compressed) -- Luis Edgardo Durán Lebis Soporte Técnico y Sistemas http://mipagina.cantv.net/elebis [EMAIL PROTECTED] 0416-7580991 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question about deployment (including executables in war)
Murad, I would not copy the files - but just change the permissions. No restart should be necessary that way - unless I'm missing something. However to answer your question, using the build.xml in jakarta-tomcat-5.5.9-deployer, I usually use the following command to restart the application: ant stop start It works for me. That said, I have seen cases where after I deploy and app and then do a start I get complaints ... Doing something like: Ant stop undeploy deploy start I finally figured that the deploy was issuing an implicit start, so I changed it to: ant stop undeploy deploy Hope this helps. - Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Murad Nayal Sent: Wednesday, July 20, 2005 12:32 PM To: Tomcat Users List; Richard Mixon (qwest) Subject: Re: question about deployment (including executables in war) Many thanks Richard, I suppose that answers my question, albeit I was hoping there was something more elegant that can be done other than changing file permissions after installation. what is the correct way to reload applications after copying files into the installation directory? ant stop; ant start seem not to be designed for that judging from the complaints from tomcat I get in catalina.out!! thanks again Murad Nayal Richard Mixon (qwest) wrote: Murad/Alon, This has nothing to do with a SecurityManager. Murad is trying to run the executables on the server - from one of his servlets I assume. The problem is the fact that a war files is basically just a zip file. It does not maintain the file attributes that are specific to a particular operating system (e.g. execute, read-only, write, etc.). Other archive formats do this (e.g. tar and Windows backup archives). I believe the user's umask setting is probably used to set the permissions - but Tomcat might do something different. Regardless, even if Tomcat honors the umask setting, you would not want to change this such that all files were marked executable when the jar was uncompressed. I am not sure you have much option other than to have a custom ant script that alters the permissions after the files are deployed from the war file. The jakarta-tomcat-5.5.x-deployer has a deployment script (build.xml) that should be a good starting point. Hope this helps - Richard -Original Message- From: Alon Belman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 4:44 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: question about deployment (including executables in war) Murad, I'm not 100% sure what you're asking -- like what do you mean by jar strips the execute file permissions from my programs? -- but i'm assuming you cant do it. In fact, I will be more than a little alarmed if a packaged web app can include and run arbitrary executables unless specifically allowed to so by its server's SecurityManager, or if the server is running without a SecurityManager. That is, you cannot do it unless you configure it OUTSIDE your web application. Hope this helps, Alon On 7/17/05, Murad Nayal [EMAIL PROTECTED] wrote: Hi Everybody, I need to include executable programs as part of my web application. in development I created a directory WEB-INF/bin where I kept copies of the programs I need. problem is when I create a war file for my application, jar strips the execute file permissions from my programs. is there any way around this at all where I would still have my application packaged as a single war file with the necessary executables (with the correct permissions). many thanks Murad Nayal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]