Re: Running Tomcat as Non-Root under Linux listen for port 80
NoKideen wrote: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 Ask your Linux admin to disable the privileged port nonsense, which only has value on a multiaccess server, and which alwasy undermines security by unnecessarily encouraging running server processes as root when they would be safer (e.g. if/when exploits are found) run as non-privileged users Example iptables rules which achieve port redirection: /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 222.123.197.100 --dport 80 -j DNAT --to 222.123.197.100:8080 /sbin/iptables -A FORWARD -p tcp -i eth0 -d 222.123.197.100 --dport 8080 -j ACCEPT Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/113 - Release Date: 27/Sep/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Non-Root under Linux listen for port 80
NoKideen wrote: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 Google is your friend: http://www.google.com/search?q=linux+port+80+non-root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat as Non-Root under Linux listen for port 80
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Use the port redirection facilities in Linux (the details vary depending on your kernel, but ipchains or iptables is a good place to start if I recall) to forward all requests that come in on port 80 to port 8080. That way, Linux can run as a non-root user but still see requests arriving on port 80. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat as Non-Root under Linux listen for port 80
From: Peter Crowther That way, Linux can run as a non-root user but still see requests arriving on port 80. Sorry. Brain fade. Replace 'Linux' with 'Tomcat' in the above. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Non-Root under Linux listen for port 80
Use jsvc. - Original Message - From: NoKideen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd try as tomcat , but there is error even if I do # chown -R tomcat:root /usr/tomcat/* - 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: Running Tomcat as Non-Root under Linux listen for port 80
NoKideen said: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 80 is a privileged port ( 1024) and you need root-rights to bind to a privileged port. If the problem is that you don't have access to root, ask the admin to implement sudo. Joost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat as Non-Root under Linux listen for port 80
Create a normal user $TOMCAT_USER /bin/su $TOMCAT_USER -- $CATALINA_HOME/bin/startup.sh Owner is root, group is $TOMCAT_USER. -Original Message- From: NoKideen [mailto:[EMAIL PROTECTED] Sent: September 27, 2005 12:14 PM To: tomcat-user@jakarta.apache.org Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd try as tomcat , but there is error even if I do # chown -R tomcat:root /usr/tomcat/* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43396f67114289339113072!
Re: Running Tomcat as Non-Root under Linux listen for port 80
a.k.a. Commons-Daemon (http://jakarta.apache.org/commons/daemon/) Works beautifully. --David Andrés Glez. wrote: Use jsvc. - Original Message - From: NoKideen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd try as tomcat , but there is error even if I do # chown -R tomcat:root /usr/tomcat/* - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Non-Root under Linux listen for port 80
On Tue, 27 Sep 2005, Joost de Heer wrote: NoKideen said: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 80 is a privileged port ( 1024) and you need root-rights to bind to a privileged port. If the problem is that you don't have access to root, ask the admin to implement sudo. Here's a guide on how to set it up. http://www.mythic-beasts.com/support/topic_vds_java.html Pete -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ They may not have invented corruption in NYC, but they have tried to perfect it. -- seen on the internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 5.0.28 in server mode
Dear Karim, Please provide relevant peaces of your server.xml so we can get a chance to help you or have a look here http://jakarta.apache.org/tomcat/articles/performance.pdf you may already finde whats causing your problem there Greetings YEL... directBOX Reply --- From: Zaki, Karim R UTCHQ ([EMAIL PROTECTED]) To: TomcatUserGroup (tomcat-user@jakarta.apache.org) Date: 02.09.2005 16:46:44 Dear all, I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the Vignette APIs (provided as JARs). Everything works, but performance is really slow. The server that's hosting this is a quad processor (@2GHz each) Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see hardware as being an issue. One thing I'm trying to do is run Tomcat in server mode. My understanding is that this should enhance performance. However, adding -server to Tomcat's Java Options box causes Tomcat to not start. What am I doing wrong? Also, if anyone can provide performance tuning recommendations, please do. Thanks all.. Karim I didn't do it! ~ Bart Simpson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Verpassen Sie keine eBay-Auktion und bieten Sie bequem und schnell über das Telefon mit http://www.telefonbieten.de Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag eMail, FAX, SMS, VoiceMail mit http://www.directbox.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 5.0.28 in server mode
Thanks Yassine, I'll look into the PDF you provided. As for server.xml, here it is. ?xml version='1.0' encoding='utf-8'? Server debug=2 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=2 name=Catalina Connector acceptCount=100 connectionTimeout=2 debug=2 disableUploadTimeout=true port=8080 redirectPort=8443 threadPriority=10 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=2 defaultHost=localhost name=Catalina Host appBase=webapps debug=2 name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=2 prefix=localhost_log. suffix=.txt timestamp=true verbosity=2/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=2 prefix=catalina_log. suffix=.txt timestamp=true verbosity=2/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=2/ /Engine /Service /Server As you can see, very little customization. Any idea why I can't set -server? Thanks, Karim -Original Message- From: Yassine ELassad [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 11:03 AM To: tomcat-user@jakarta.apache.org Subject: Re: Running Tomcat 5.0.28 in server mode Dear Karim, Please provide relevant peaces of your server.xml so we can get a chance to help you or have a look here http://jakarta.apache.org/tomcat/articles/performance.pdf you may already finde whats causing your problem there Greetings YEL... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 5.0.28 in server mode
What does really slow mean? That's a subjective assessment, not a quantititative value. How many requests per second? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 8:46 AM To: Tomcat User Group Subject: Running Tomcat 5.0.28 in server mode Dear all, I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the Vignette APIs (provided as JARs). Everything works, but performance is really slow. The server that's hosting this is a quad processor (@2GHz each) Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see hardware as being an issue. One thing I'm trying to do is run Tomcat in server mode. My understanding is that this should enhance performance. However, adding -server to Tomcat's Java Options box causes Tomcat to not start. What am I doing wrong? Also, if anyone can provide performance tuning recommendations, please do. Thanks all.. Karim I didn't do it! ~ Bart Simpson - 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: Running Tomcat 5.0.28 in server mode
During a routine email scan at UTC, a file attached to this message was deleted per UTC Security Policy. UTC does not allow emailing several file types due to their potential to transmit viruses. An attachment named test-template.jsp was removed from this message. The body text of the message that included the deleted attachment can be found in the .txt file below. It is safe to open this file. If you believe this message is not business related simply delete it. If the message is business related and you require the file that was deleted, please contact the sender/nand arrange an alternate means of receiving it. The recommended method is to/nhave the sender zip the file before sending it. Well, I don't know how to measure the number of requests per second. If you can provide help with that, that would be great. What I'm doing is testing with a template provided by Vignette (I don't know if I can send attachments on this list). It takes 2 seconds to load! This really doesn't do any real work...so when the code starts to do something useful, we go into over a minute of load time per page. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 12:15 PM To: 'Tomcat Users List' Subject: RE: Running Tomcat 5.0.28 in server mode What does really slow mean? That's a subjective assessment, not a quantititative value. How many requests per second? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 8:46 AM To: Tomcat User Group Subject: Running Tomcat 5.0.28 in server mode Dear all, I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the Vignette APIs (provided as JARs). Everything works, but performance is really slow. The server that's hosting this is a quad processor (@2GHz each) Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see hardware as being an issue. One thing I'm trying to do is run Tomcat in server mode. My understanding is that this should enhance performance. However, adding -server to Tomcat's Java Options box causes Tomcat to not start. What am I doing wrong? Also, if anyone can provide performance tuning recommendations, please do. Thanks all.. Karim I didn't do it! ~ Bart Simpson - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 5.0.28 in server mode
Well, I don't know how to measure the number of requests per second. If you can provide help with that, that would be great. What I'm doing is testing with a template provided by Vignette: %@ page import=com.vignette.cds.client.beans.*% %@ page import=com.vignette.cms.client.beans.*% jsp:useBean id=cms scope=page class=com.vignette.cms.client.beans.CMS / jsp:useBean id=lc scope=page class=com.vignette.cds.client.beans.LocalConfig / % // you may have to modify the following string values String cmsUser = admin; String cmsPassword = admin; long cfgstart = System.currentTimeMillis(); String CMSHost = lc.getConfigValue (/cms/bob/PM_HOST); // get cms host int CMSPort = Integer.parseInt (lc.getConfigValue (/cms/bob/PM_PORT)); // get cms port long cfgstop = System.currentTimeMillis(); % got config data in %=cfgstop - cfgstart% millisecondsbr CMS Host = %=CMSHost%br CMS Port = %=CMSPort%br % long startconnect = System.currentTimeMillis(); CMSSecurity sec = new CMSSecurity(); sec.configure (application); cms.connect (sec, CMSHost, CMSPort, cmsUser, cmsPassword); if (cms.isConnected()) { %connected to cms br% cms.setCredsCookie(); } else { %connect to cms failed br% } long stopconnect = System.currentTimeMillis(); % connected to cms in %=stopconnect-startconnect% millisecondsbr br Templates in System Project:br % long startProjectList = System.currentTimeMillis(); Project proj = cms.findProjectByPath (Base ProjectSystem); Template[] templates = proj.getTemplates(); for (int i=1;itemplates.length;i++) { out.println (templates[i].getName() + br); } long stopProjectList = System.currentTimeMillis(); cms.disconnect(); long disconnect = System.currentTimeMillis(); % br listed project contents in %=stopProjectList-startProjectList% millisecondsbr disconnected from cms in %=disconnect-stopProjectList% millisecondsbr % java.text.SimpleDateFormat milliDateFormat = new java.text.SimpleDateFormat (MM/dd/ HH:mm:ss:SSS); java.util.Date rightNow = new java.util.Date(); String now = (milliDateFormat.format (rightNow)); % generated: %=now%br It takes 2 seconds to load! This really doesn't do any real work...so when the code starts to do something useful, we go into over a minute of load time per page. I did a ping test to the database involved and the average ping time is 300 microseconds, so I don't think it's network related. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 12:15 PM To: 'Tomcat Users List' Subject: RE: Running Tomcat 5.0.28 in server mode What does really slow mean? That's a subjective assessment, not a quantititative value. How many requests per second? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 8:46 AM To: Tomcat User Group Subject: Running Tomcat 5.0.28 in server mode Dear all, I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the Vignette APIs (provided as JARs). Everything works, but performance is really slow. The server that's hosting this is a quad processor (@2GHz each) Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see hardware as being an issue. One thing I'm trying to do is run Tomcat in server mode. My understanding is that this should enhance performance. However, adding -server to Tomcat's Java Options box causes Tomcat to not start. What am I doing wrong? Also, if anyone can provide performance tuning recommendations, please do. Thanks all.. Karim I didn't do it! ~ Bart Simpson - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 5.0.28 in server mode
A good tool for load testing is JMeter http://jakarta.apache.org/jmeter/index.html Here's a link to some testing we did with it for our product: http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm Basically, we go something like 1400 requests per minute on a uni-processor P4. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 11:02 AM To: Tomcat Users List Subject: RE: Running Tomcat 5.0.28 in server mode Well, I don't know how to measure the number of requests per second. If you can provide help with that, that would be great. What I'm doing is testing with a template provided by Vignette (I don't know if I can send attachments on this list). It takes 2 seconds to load! This really doesn't do any real work...so when the code starts to do something useful, we go into over a minute of load time per page. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 12:15 PM To: 'Tomcat Users List' Subject: RE: Running Tomcat 5.0.28 in server mode What does really slow mean? That's a subjective assessment, not a quantititative value. How many requests per second? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 8:46 AM To: Tomcat User Group Subject: Running Tomcat 5.0.28 in server mode Dear all, I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the Vignette APIs (provided as JARs). Everything works, but performance is really slow. The server that's hosting this is a quad processor (@2GHz each) Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see hardware as being an issue. One thing I'm trying to do is run Tomcat in server mode. My understanding is that this should enhance performance. However, adding -server to Tomcat's Java Options box causes Tomcat to not start. What am I doing wrong? Also, if anyone can provide performance tuning recommendations, please do. Thanks all.. Karim I didn't do it! ~ Bart Simpson - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.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: running tomcat on port 80
Shouldn't be any problems. Are you sure there are not other programs bound to 80? Try netstat -a in the dos window. -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:47 AM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.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: running tomcat on port 80
Or it is possible that something else is running on port 80 - possibly a webserver. U can use the netstat command to check/verify this. HTH, Anoop On 6/21/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.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] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Permission denied means you are running it with non-root user. Normal user can not bind to port 80. Thanks, Mandar -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 12:47 PM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.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: Running tomcat on Debian Sarge
Yoo, What dit you do untill now? Do you have a firewall? Greetings O. On 6/8/05, blijblijblij [EMAIL PROTECTED] wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - 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: Running tomcat on Debian Sarge
Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running tomcat on Debian Sarge
Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running tomcat on Debain Sarge
Need to clarify my previous posting. Debian has the jk2 connector package, not Blackdown. Also - the Debian-Tomcat installation listens on port 8180 instead of the default 8080.
RE: Running tomcat on Debian Sarge
I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803!
RE: Running tomcat on Debian Sarge
My sites are running debian + apache 2 + tomcat 5.0.28. Take a look at www.shareowner.com and https://www.investments.shareowner.com/lciponline. Connect refused has lots of reasons. For example, apache config, tomcat config, jk config etc. -Original Message- From: blijblijblij [mailto:[EMAIL PROTECTED] Sent: June 8, 2005 5:13 PM To: tomcat-user@jakarta.apache.org Subject: Running tomcat on Debian Sarge All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a75f4c76652063243841!
RE: Running tomcat on Debian Sarge
Well . . . he said he was a newbie . . . -- Original message -- I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803!
Re: Running tomcat on Debian Sarge
[EMAIL PROTECTED] wrote: Well . . . he said he was a newbie . . . Jep, green as grass :-) Going to give it another try this weekend, thanks for all the tips... Keep you guys posted. Thanx -- Original message -- I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running tomcat on Debian Sarge
Just remember that the Debian - Tomcat package listens on port 8180 instead of the default 8080 to prevent conflicts with another app which uses 8080. [EMAIL PROTECTED] wrote: Well . . . he said he was a newbie . . . Jep, green as grass :-) Going to give it another try this weekend, thanks for all the tips... Keep you guys posted. Thanx -- Original message -- I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803! - 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: Running Tomcat on multiple processors on Windows 2003
Huh? The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of the CPUs on our systems quite nicely. What may be going on is that some administrator has set Windows' CPU affinity to restrict all threads of a given process to a single CPU. - Chuck We have a recent and up2date Linux Redhat installation, and the sun Java hotspot 1.4.2 in server mode JVM. When I run top I see Java as one process, and with one Tomcat running in a performance test, it only hits 50% CPU (of a 2 CPU box). When I run 2 tomcats, I see two processes, and it hits 100% CPU. If anyone has seen this behavior, and then changed some settings to get Tomcat or Java to use multiple CPUs for one instance, I would be curious. Maybe it is something with the threading model or something. I thought Java used native threads by default, or at least green threads on top of native threads (one-to-one), so Im not sure how this fits in... Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on multiple processors on Windows 2003
From: Chris Hyzer [mailto:[EMAIL PROTECTED] Subject: Re: Running Tomcat on multiple processors on Windows 2003 I thought Java used native threads by default, or at least green threads on top of native threads (one-to-one), so Im not sure how this fits in... The green thread mechanism is not used in the 1.4 and beyond JVM itself - that was a holdover from the very early JVM days and was thankfully not carried forward into HotSpot. I'm not familiar enough with Linux threading to know if there's some mode where underlying native libraries might simulate the green thread behavior. - 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: Running Tomcat on multiple processors on Windows 2003
Chris, When running top you can toggle displaying individual threads by hitting H. Also, you can see threads using ps with the -m switch. Jim T. -Original Message- From: Chris Hyzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 11:40 AM To: tomcat-user@jakarta.apache.org Subject: Re: Running Tomcat on multiple processors on Windows 2003 Huh? The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of the CPUs on our systems quite nicely. What may be going on is that some administrator has set Windows' CPU affinity to restrict all threads of a given process to a single CPU. - Chuck We have a recent and up2date Linux Redhat installation, and the sun Java hotspot 1.4.2 in server mode JVM. When I run top I see Java as one process, and with one Tomcat running in a performance test, it only hits 50% CPU (of a 2 CPU box). When I run 2 tomcats, I see two processes, and it hits 100% CPU. If anyone has seen this behavior, and then changed some settings to get Tomcat or Java to use multiple CPUs for one instance, I would be curious. Maybe it is something with the threading model or something. I thought Java used native threads by default, or at least green threads on top of native threads (one-to-one), so Im not sure how this fits in... Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on multiple processors on Windows 2003
Chris, When running top you can toggle displaying individual threads by hitting H. Also, you can see threads using ps with the -m switch. Jim T. OK thanks, that is useful for visibility into threads vs processes. But I would think that if the CPU usage in top is 50% when one tomcat is running under load in a 2 CPU machine, and 100% when 2 or more tomcats are running under load, that it means only one CPU is being used for each tomcat... also, top shows which CPU has what load, and only one of them is all used up when total it is at 50%, and the other is 0%... so if we can get to 100% CPU usage on both CPUs with one tomcat running under load, that would be great. Regards, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on multiple processors on Windows 2003
From: Chris Hyzer [mailto:[EMAIL PROTECTED] Subject: RE: Running Tomcat on multiple processors on Windows 2003 ... so if we can get to 100% CPU usage on both CPUs with one tomcat running under load, that would be great. How about trying a simple two-thread Java program, where each thread sits in an infinite loop? Does this drive both CPUs to the limit? - 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: Running Tomcat on multiple processors on Windows 2003
1.What can he do to enable Tomcat to make use of all 4 processors? I dont know of an answer to that one. I think it is impossible unless you have a JVM that will use 4 procs... Sun doesnt seem to do this. 2.If a single instance of Tomcat can't make use of multiple processors, is it possible to set up multiple Tomcat services, each tied to a processor [I understand completely how to set up multiple Tomcat services, I just don't know how to tie them to a specific processor]? Yes, this is what we do on linux. Just setup the services, and let the operating system do the rest. Since you have multiple processes, the OS will see them both being used and put them on separate processors (well... Linux is smart enough to do it, who know about Windows. JK :) ) I believe the reason is that one JDK process is run and Tomcat is multithreaded. if you had multiprocess and you had static variables that you needed one copy of, you would need RMI or messaging or something and it would be more complicated. Actually what we do is we have several apps on one box, and we put some in one Tomcat instance, and some in the other. Works fine. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on multiple processors on Windows 2003
From: Chris Hyzer [mailto:[EMAIL PROTECTED] Subject: Re: Running Tomcat on multiple processors on Windows 2003 I dont know of an answer to that one. I think it is impossible unless you have a JVM that will use 4 procs... Sun doesnt seem to do this. Huh? The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of the CPUs on our systems quite nicely. What may be going on is that some administrator has set Windows' CPU affinity to restrict all threads of a given process to a single CPU. - 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: Running Tomcat from a CD-Rom
First thing that comes to mind are the startup scripts .. you'll need to comment out the parts that search for CATALINA_HOME in the system environment, so that it defaults to the current directory on the CD. Next thing I can think of is the fact that Tomcat creates files in the work directory (compiled JSPs). You could perhaps pre-compile your web application sources, but I still think it may end up trying to write to the CD. I personally don't know how, but that's for me the biggest issue I can see - writes to the file system .. other than that, the system will need Java (I think a JDK too unless 5.5 which may be able to run with a JRE) and the JAVA_HOME env. setting too, so how you do that is another question for you to answer ;) A. -Original Message- From: Julian White [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:32 To: tomcat-user@jakarta.apache.org Subject: Running Tomcat from a CD-Rom Hi, I want to run Tomcat from a CD-Rom complete with a web application. My application needs to be able to run on any PC without networkor an install program so everything would have to be installed on the CD-Rom. To get Tomcat to run directly from CD-Rom I am thinking I will have to change all configuration files that point to the Tomcat home directory and point them instead to a temporary folder under windows. Can anyone think of any other issues I am going to run into or if there is something I have overlooked. Env. is Tomcat 5.0, Windows Thanks in advance, Regards, Julian http://www.seregon.com/ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat using sablevm
Passing the classpath to VM is not a problem coz we have wrapper wriiten over sablevm which takes java's parameters and and converts it into sablevm's parameters. The wrapper is java-sablevm provided by the sablevm jvm. Could anyone provide me suggestion of where else it would be going wrong. Regards. ---Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 11:13 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm I hadnt tried SableVM. It may be that CLASSPATH settings Tomcat passes to VM is not properly passed to it. There may be difference in passing classpath to VM. Check the docs. rgds Antony Paul On Fri, 18 Feb 2005 10:45:58 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah I was able to run the tomcat suing sun JVM, but not with this particular jvm. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:41 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Were you able to run it in Sun or any other JVM. ? rgds Antony Paul On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Well the OS is Redhat linux 7.2 JVM version: sablevm 1.1.9 Tomcat version : 3.3.1a (Might be this is a older version but this is what I need to install) The error I get is as follows: Java.lang.InternalError:java.lang.ClassNotFoundException: org.apache.tomcat.core.ContextManager not found in [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./ ../lib/tomcat.jar, file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./] at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103) at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159) at java.lang.reflect.Method.getReturnType (Method.java:175) at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911) at java.lang.Class.internalGetMethods (Class.java:1109) at java.lang.Class.getMethods (Class.java:1078) at org.apache.tomcat.util.IntrospectionUtils.findMethods (IntrospectionUtils.java:727) at org.apache.tomcat.util.IntrospectionUtils.findMethod (IntrospectionUtils.java:733) at org.apache.tomcat.util.IntrospectionUtils.setAttribute (IntrospectionUtils.java:106) at org.apache.tomcat.startup.Main.execute (Main.java:304) at org.apache.tomcat.startup.Main.main (Main.java:140) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) I hope this information would help you all to give a solution to my problem!!! -Varsha. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:07 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s
Re: running tomcat using sablevm
On Fri, 18 Feb 2005 09:54:30 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! No idea about Sable, but Kaffe from CVS works, as long as you help it by adding stuff in the classpath (commons-logging-api.jar and jmx.jar). Basically it doesn't read the manifest which are in JARs yet. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
Remy Maucherat remy.maucherat at gmail.com writes: No idea about Sable, but Kaffe from CVS works, as long as you help it by adding stuff in the classpath (commons-logging-api.jar and jmx.jar). Basically it doesn't read the manifest which are in JARs yet. I've just merged in some code from GNU Classpath that should fix that :) cheers, dalibor topic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat using sablevm
Where could I find the changes which you merged. Please help me out as I need it to fix my sablevm problem. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dalibor Topic Sent: Friday, February 18, 2005 4:34 PM To: tomcat-user@jakarta.apache.org Subject: Re: running tomcat using sablevm Remy Maucherat remy.maucherat at gmail.com writes: No idea about Sable, but Kaffe from CVS works, as long as you help it by adding stuff in the classpath (commons-logging-api.jar and jmx.jar). Basically it doesn't read the manifest which are in JARs yet. I've just merged in some code from GNU Classpath that should fix that :) cheers, dalibor topic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
On Fri, 18 Feb 2005 16:48:36 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Where could I find the changes which you merged. Please help me out as I need it to fix my sablevm problem. I think you should give up on sable at the moment. I have never heard of anyone doing anthing Tomcat related with it, so it doesn't look good. Apparently, if you get Kaffe (www.kaffe.org) from CVS and build it, you might be able to run Tomcat 5.5 (with the usual JDK 1.4 compat for the jmx.jar, unless they also merged in a JMX impl) out of the box. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
varsha.agrawal at wipro.com writes: Where could I find the changes which you merged. Please help me out as I need it to fix my sablevm problem. I got them from GNU classpath's CVS so I assume you should still be able to find them there. You may need to patch sablevm for it to work, but as I don't hack on SableVM, I am afraid I don't know how to help you there. I'm sure Grzegorz, Etienne and the other nice SableVM developers on the SableVM mailing list can, though. best of luck! dalibor topic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat using sablevm
Hello, Well the OS is Redhat linux 7.2 JVM version: sablevm 1.1.9 Tomcat version : 3.3.1a (Might be this is a older version but this is what I need to install) The error I get is as follows: Java.lang.InternalError:java.lang.ClassNotFoundException: org.apache.tomcat.core.ContextManager not found in [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./ ../lib/tomcat.jar, file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./] at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103) at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159) at java.lang.reflect.Method.getReturnType (Method.java:175) at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911) at java.lang.Class.internalGetMethods (Class.java:1109) at java.lang.Class.getMethods (Class.java:1078) at org.apache.tomcat.util.IntrospectionUtils.findMethods (IntrospectionUtils.java:727) at org.apache.tomcat.util.IntrospectionUtils.findMethod (IntrospectionUtils.java:733) at org.apache.tomcat.util.IntrospectionUtils.setAttribute (IntrospectionUtils.java:106) at org.apache.tomcat.startup.Main.execute (Main.java:304) at org.apache.tomcat.startup.Main.main (Main.java:140) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) I hope this information would help you all to give a solution to my problem!!! -Varsha. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:07 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
Were you able to run it in Sun or any other JVM. ? rgds Antony Paul On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Well the OS is Redhat linux 7.2 JVM version: sablevm 1.1.9 Tomcat version : 3.3.1a (Might be this is a older version but this is what I need to install) The error I get is as follows: Java.lang.InternalError:java.lang.ClassNotFoundException: org.apache.tomcat.core.ContextManager not found in [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./ ../lib/tomcat.jar, file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./] at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103) at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159) at java.lang.reflect.Method.getReturnType (Method.java:175) at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911) at java.lang.Class.internalGetMethods (Class.java:1109) at java.lang.Class.getMethods (Class.java:1078) at org.apache.tomcat.util.IntrospectionUtils.findMethods (IntrospectionUtils.java:727) at org.apache.tomcat.util.IntrospectionUtils.findMethod (IntrospectionUtils.java:733) at org.apache.tomcat.util.IntrospectionUtils.setAttribute (IntrospectionUtils.java:106) at org.apache.tomcat.startup.Main.execute (Main.java:304) at org.apache.tomcat.startup.Main.main (Main.java:140) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) I hope this information would help you all to give a solution to my problem!!! -Varsha. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:07 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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: running tomcat using sablevm
Yeah I was able to run the tomcat suing sun JVM, but not with this particular jvm. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:41 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Were you able to run it in Sun or any other JVM. ? rgds Antony Paul On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Well the OS is Redhat linux 7.2 JVM version: sablevm 1.1.9 Tomcat version : 3.3.1a (Might be this is a older version but this is what I need to install) The error I get is as follows: Java.lang.InternalError:java.lang.ClassNotFoundException: org.apache.tomcat.core.ContextManager not found in [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./ ../lib/tomcat.jar, file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./] at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103) at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159) at java.lang.reflect.Method.getReturnType (Method.java:175) at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911) at java.lang.Class.internalGetMethods (Class.java:1109) at java.lang.Class.getMethods (Class.java:1078) at org.apache.tomcat.util.IntrospectionUtils.findMethods (IntrospectionUtils.java:727) at org.apache.tomcat.util.IntrospectionUtils.findMethod (IntrospectionUtils.java:733) at org.apache.tomcat.util.IntrospectionUtils.setAttribute (IntrospectionUtils.java:106) at org.apache.tomcat.startup.Main.execute (Main.java:304) at org.apache.tomcat.startup.Main.main (Main.java:140) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) I hope this information would help you all to give a solution to my problem!!! -Varsha. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:07 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat using sablevm
I hadnt tried SableVM. It may be that CLASSPATH settings Tomcat passes to VM is not properly passed to it. There may be difference in passing classpath to VM. Check the docs. rgds Antony Paul On Fri, 18 Feb 2005 10:45:58 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah I was able to run the tomcat suing sun JVM, but not with this particular jvm. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:41 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Were you able to run it in Sun or any other JVM. ? rgds Antony Paul On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Well the OS is Redhat linux 7.2 JVM version: sablevm 1.1.9 Tomcat version : 3.3.1a (Might be this is a older version but this is what I need to install) The error I get is as follows: Java.lang.InternalError:java.lang.ClassNotFoundException: org.apache.tomcat.core.ContextManager not found in [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./ ../lib/tomcat.jar, file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./] at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103) at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159) at java.lang.reflect.Method.getReturnType (Method.java:175) at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911) at java.lang.Class.internalGetMethods (Class.java:1109) at java.lang.Class.getMethods (Class.java:1078) at org.apache.tomcat.util.IntrospectionUtils.findMethods (IntrospectionUtils.java:727) at org.apache.tomcat.util.IntrospectionUtils.findMethod (IntrospectionUtils.java:733) at org.apache.tomcat.util.IntrospectionUtils.setAttribute (IntrospectionUtils.java:106) at org.apache.tomcat.startup.Main.execute (Main.java:304) at org.apache.tomcat.startup.Main.main (Main.java:140) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) I hope this information would help you all to give a solution to my problem!!! -Varsha. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:07 AM To: Tomcat Users List Subject: Re: running tomcat using sablevm Give more details and maybe someone can help. OS Version JVM version Tomcat Version Snip from logs with error Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:24 PM Subject: running tomcat using sablevm Hello, Has anyone tried running tomcat using sablevm (JVM). I am trying to run tomcat but it fails. It gives ClassDefNot Found error. I don't know how to go about running the tomcat. Any suggestions or any help is appreciated!!! Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Running Tomcat from jsvc
Kevin Offet wrote: Hi, to help cut through the apparent confusion, all you need to do is: 1) change ownership (recursively) of your tomcat install dir to ( if your user account that will run tomcat is called for example tomrunner ) tomrunner.tomrunner. 2) change to that user and decompress and build jsvc (in the ${tomcat.installdir}/bin dir) according to the straightforward instructions included. 3) change ownership of the resulting jsvc binary to root.root (root initially runs jsvc which then changes the user to your tomrunner) 4) build yourself a decent startup/shutdown script appropriate to your distro and your preferences. Read The Fine Manual at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html for all that you'll need to know. jsvc -help will also spit out it's allowed parameters that you can play with. 5) go have fun building web-apps. ;-) Kevin Thanks so much, Kevin for clarification. Before, it had not been evident to me that making jsvc required to do it as the user to which jsvc will change. Also, I had all files in $CATALINA_HOME owned by root:root. Now, as I changed $CATALINA_HOME/conf to ownership tomcat:tomcat and after making $CATALINA_HOME/work readable/writable by that user, everything works fine. Thanks for your help again -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat from jsvc
Hi, You have to start the jsvc as root, then it changes the effective user ID to non-root. Yoav Shapira http://www.yoavshapira.com -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 11:07 AM To: [EMAIL PROTECTED] Subject: Running Tomcat from jsvc Hi Folks, I'm having problems starting Tomcat 5.0.28 using jsvc. My system is SuSE Linux 9.1 with j2sdk1.4.2_05. When I start Tomcat using $CATALINA_HOME/bin/startup.sh everything works fine. But now I want to run Tomcat as a daemon under a non-root user. I followed the instructions on[1] for Unix daemon and built jsvc that I succeeded to start using the Tomcat5.sh script[2]. But actually, Tomcat didn't really start. So I added the options -verbose and -debug to the script[2] and saved the catalina.out log[3]. According to the log (line 1367), the daemon startet successfully, but when my browsers request http://localhost:8080/ , then there is no connection. The log (line 626)[3] is telling me that server.xml couldn't be loaded, but it didn't tell why. Could please somebody give me a hint what might be wrong and what I have to change to get it running? [1]http://jakarta.apache.org/tomcat/tomcat-5.0- doc/setup.html#Unix%20daemon [2]http://home.arcor.de/plsdontreply/tomcat/Tomcat5.sh.txt [3]http://home.arcor.de/plsdontreply/tomcat/catalina.out.txt -- Thanks in advance [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from jsvc
Shapira, Yoav wrote: Hi, You have to start the jsvc as root, then it changes the effective user ID to non-root. Hi, That's exactly what I did, and according to the log (line 1, line 685), the user has been changed. Did I misunderstand something? Of course, before that, I had tried to start that script as non-root and ran into a lot more of errors. But that's a different story. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from jsvc
[EMAIL PROTECTED] wrote: When I start Tomcat using $CATALINA_HOME/bin/startup.sh everything works fine. But now I want to run Tomcat as a daemon under a non-root user. [...] The log (line 626)[3] is telling me that server.xml couldn't be loaded, but it didn't tell why. Hi Volkmar, did you check the file system permissions of your $CATALINA_HOME directory? As I can see from my installations, server.xml has read and write permissions exclusively for its owner. My conclusion is that the directory must belong to the user, will run the service (wwwrun says your Tomcat5.sh). Kind regards, Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from jsvc
Wolfgang Hackl wrote: Hi Volkmar, did you check the file system permissions of your $CATALINA_HOME directory? As I can see from my installations, server.xml has read and write permissions exclusively for its owner. My conclusion is that the directory must belong to the user, will run the service (wwwrun says your Tomcat5.sh). Hi Wolfgang, I got everything in /opt/jakarta-tomcat-5.0.28 owned by root:root. So you mean, I should change all files in the conf subdirectory to be owned by wwwrun? Or is it better/safer to just make those files world readable/writeable and leaving them owned by root:root? When, during installation of Tomcat should I have changed the ownership or permissions of which files? I've installed Tomcat using cd /opt sudo tar xzf /tmp/jakarta-tomcat-5.0.28.tar.gz so that I got everything owned by root:root. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from jsvc
Hi, to help cut through the apparent confusion, all you need to do is: 1) change ownership (recursively) of your tomcat install dir to ( if your user account that will run tomcat is called for example tomrunner ) tomrunner.tomrunner. 2) change to that user and decompress and build jsvc (in the ${tomcat.installdir}/bin dir) according to the straightforward instructions included. 3) change ownership of the resulting jsvc binary to root.root (root initially runs jsvc which then changes the user to your tomrunner) 4) build yourself a decent startup/shutdown script appropriate to your distro and your preferences. Read The Fine Manual at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html for all that you'll need to know. jsvc -help will also spit out it's allowed parameters that you can play with. 5) go have fun building web-apps. ;-) Kevin [EMAIL PROTECTED] wrote: Wolfgang Hackl wrote: Hi Volkmar, did you check the file system permissions of your $CATALINA_HOME directory? As I can see from my installations, server.xml has read and write permissions exclusively for its owner. My conclusion is that the directory must belong to the user, will run the service (wwwrun says your Tomcat5.sh). Hi Wolfgang, I got everything in /opt/jakarta-tomcat-5.0.28 owned by root:root. So you mean, I should change all files in the conf subdirectory to be owned by wwwrun? Or is it better/safer to just make those files world readable/writeable and leaving them owned by root:root? When, during installation of Tomcat should I have changed the ownership or permissions of which files? I've installed Tomcat using cd /opt sudo tar xzf /tmp/jakarta-tomcat-5.0.28.tar.gz so that I got everything owned by root:root. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running tomcat 5.0 as a service in Windows OS
Pramod Jain wrote: a) with tomcat5w.exe, I go to startup tab and enter: start -config C:\abc\my_server.xml b) In Windows Services editor I go to Apache-Tomcat - Properties - Start Parameters and enter: start -config C:\abc\my_server.xml Don't use double-quotes - those will be passed literally to Tomcat, and it will try to open a file name with an embedded double-quote. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 5.5.1 With J2SE Version 1.3
On Wed, 8 Sep 2004 13:35:24 +0200, Evgenij Galperin [EMAIL PROTECTED] wrote: Hi all, i'm trying to run Tomcat 5.5.1 with JDK 1.3.1_06 (compat package is properly installed). When I try to start it, it won't start up, in console I get this message: Anyone any idea??? Tomcat 5.5 will not run on JRE 1.3. You need at least JRE 1.4. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 5 Headless
Add this to your JAVA_OPTS -Djava.awt.headless=true Normally, when rendering graphics, java will try to use the graphics engine. If no X-windows is installed, it fails to render things that use AWT. This parameter tells java not to use the system graphics engine. -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 10:06 AM To: Tomcat Users List (E-mail) Subject: Running Tomcat 5 Headless Hello Everyone, Can any one tell me how to make tomcat start headless and what it exactly means, I am new to this term? I am running a webapp on redhat 9 machine (without X11) and using awt for manipulatiing images. The browsers look for X11 session whenever i try to access the servlets. From what I understand, a headless tomcat can solve my problem. Nandish Rudra ECI Conference Call Services, LLC - 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: Running Tomcat as service on Win2003 Server
What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as service on Win2003 Server
wha The actual limitations are max number of cpu's, disk size and memory, not applications. I have no issues with any type of program not loading on a web edition install of 2k3 over one of Standard or Enterprise 2k3. The error log that Tomcat generates is going to provide more information that the windows Event log. I have tomcat running on several 2k3 web editon servers just fine, yet they are running with apache and not IIS (they are running as services though). Can you provide some more info on your configuration to assist in troubleshooting? On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - 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: Running Tomcat as service on Win2003 Server
Web Edition will not run any 'Enterprise' Applications (from MS at least). I've tried SQL 2000 with no luck. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Ty Mercer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:50 PM To: Tomcat Users List Subject: Re: Running Tomcat as service on Win2003 Server wha The actual limitations are max number of cpu's, disk size and memory, not applications. I have no issues with any type of program not loading on a web edition install of 2k3 over one of Standard or Enterprise 2k3. The error log that Tomcat generates is going to provide more information that the windows Event log. I have tomcat running on several 2k3 web editon servers just fine, yet they are running with apache and not IIS (they are running as services though). Can you provide some more info on your configuration to assist in troubleshooting? On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as service on Win2003 Server
enterprise apps weren't being referred to. But since you mention it, guess i'll try to install sql when i get to the office in the morning On Wed, 14 Jul 2004 16:28:18 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: Web Edition will not run any 'Enterprise' Applications (from MS at least). I've tried SQL 2000 with no luck. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Ty Mercer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:50 PM To: Tomcat Users List Subject: Re: Running Tomcat as service on Win2003 Server wha The actual limitations are max number of cpu's, disk size and memory, not applications. I have no issues with any type of program not loading on a web edition install of 2k3 over one of Standard or Enterprise 2k3. The error log that Tomcat generates is going to provide more information that the windows Event log. I have tomcat running on several 2k3 web editon servers just fine, yet they are running with apache and not IIS (they are running as services though). Can you provide some more info on your configuration to assist in troubleshooting? On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - 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] - 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: Running Tomcat as service on Win2000 Server
tomcat 5 has an installer option to install as a service, although it only sets it to auto instead of manual when you tick it. From the docs located at this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Introduction Windows Installing Tomcat on Windows can be done easily using the Windows installer. Its interface and functionality is similar to other wizard based installers, with only a few items of interest. Installation as a service: Tomcat will be installed as a Windows NT/2k/XP service no matter what setting is selected. Using the checkbox on the component page sets the service as auto startup, so that Tomcat is automatically startup when Windows starts. For optimal security, the service should be affected a separate user, with reduced permissions (see the Windows Services administration tool and its documentation). Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. Tray icon: When Tomcat is run as a service, there will not be any tray icon present when Tomcat is running. Note that when choosing to run Tomcat at the end of installation, the tray icon will be used even if Tomcat was installed as a service. The installer will create shortcuts allowing starting and configuring Tomcat. It is important to note that Tomcat administration web application can only be used when Tomcat is started. On Thu, 15 Jul 2004 12:14:54 +0800, Aris Javier [EMAIL PROTECTED] wrote: Hello! Can anybody tell me how to run Tomcat 5.0.25 as a SERVICE on windows 2000 server? Please in step by step explanation... Thanks a lot!!! -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 5:28 AM To: Tomcat Users List Subject: RE: Running Tomcat as service on Win2003 Server Web Edition will not run any 'Enterprise' Applications (from MS at least). I've tried SQL 2000 with no luck. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Ty Mercer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:50 PM To: Tomcat Users List Subject: Re: Running Tomcat as service on Win2003 Server wha The actual limitations are max number of cpu's, disk size and memory, not applications. I have no issues with any type of program not loading on a web edition install of 2k3 over one of Standard or Enterprise 2k3. The error log that Tomcat generates is going to provide more information that the windows Event log. I have tomcat running on several 2k3 web editon servers just fine, yet they are running with apache and not IIS (they are running as services though). Can you provide some more info on your configuration to assist in troubleshooting? On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
Re: Running Tomcat as service on Win2000 Server
1. Download Tomcat 2. Unzip the archive to a directory 3. Set CATALINA_HOME 4. Open a command prompt and type... %CATALINA_HOME%\bin\service.bat [install | remove] 5. Open the services applet from the admin tools 6. Start the Apache Tomcat service Note that I've had to add JAVA_HOME/lib/tools.jar to the classpath (inside service.bat) in order for JSP compilation to work properly, but servlets should run fine with the stock service.bat. Jake At 12:14 PM 7/15/2004 +0800, you wrote: Hello! Can anybody tell me how to run Tomcat 5.0.25 as a SERVICE on windows 2000 server? Please in step by step explanation... Thanks a lot!!! -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 5:28 AM To: Tomcat Users List Subject: RE: Running Tomcat as service on Win2003 Server Web Edition will not run any 'Enterprise' Applications (from MS at least). I've tried SQL 2000 with no luck. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Ty Mercer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:50 PM To: Tomcat Users List Subject: Re: Running Tomcat as service on Win2003 Server wha The actual limitations are max number of cpu's, disk size and memory, not applications. I have no issues with any type of program not loading on a web edition install of 2k3 over one of Standard or Enterprise 2k3. The error log that Tomcat generates is going to provide more information that the windows Event log. I have tomcat running on several 2k3 web editon servers just fine, yet they are running with apache and not IIS (they are running as services though). Can you provide some more info on your configuration to assist in troubleshooting? On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote: What version of Win2003 sever are you running, Standard, Web Edition? Web edition is made only to serve web pages. Some software won't even LOAD on it. Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:03 AM To: 'Tomcat Users List' Subject: Running Tomcat as service on Win2003 Server Hello, I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with IIS 6. The service will start and stop right away. Looking into the event viewer, the log indicated that Tomcat failed to start. Could anyone tell me what's wrong? We have the same version of Tomcat running fine on Win2K server. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running Tomcat from jsvc daemon under Linux as user tomcat
I have still not succeeded in getting jsvc daemon to run under Linux as user tomcat. All files under CATALINA_HOME are owned by the user tomcat. All files have been tried with 750 and 777 permissions. This does not solve the problem. I have noticed that jsvc looks up a JRE JVM rather than the development JVM when it initializes. The only thing I seem to be able to control (through jvm.cfg and JVM name) is whether it loads the server version or the client version. But it's still looking up a JRE -- even though tools.jar (a part of the JDK) is the first file listed in the classpath. All processes show that they are owned by user tomcat. The error I am seeing is FileNotFoundException. Last line of tomcat code to be called is: org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) The problem must have nothing to do with permissions for file ownership. Nothing to do with file permissions or ownership. The problem persists no matter what the file permissions are or who owns them. There is no solution to this from merely changing the permissions (or ownership) of tomcat files. And yet, everything works fine when I use startup.sh, even when I run as user tomcat. In fact, everything works fine under jsvc so long as all of the class files for the JSPs have been pre-built before starting tomcat. I should note that I am using 5.0.19 under SuSE United Linux 1.0. I have followed all of the instructions shown here: http://marc.theaimsgroup.com/?l=tomcat-userm=108373546715111w=2 And carefully repeated the process several times. ..Bob. ..Bob. = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running Tomcat from jsvc daemon under Linux as user tomcat
I have set everything in the entire $CATALINA_HOME directory tree to be owned by user tomcat, group tomcat. I even tried setting them to user.root and put tomcat in the root group. Still, Tomcat cannot write to the work dir. When I try to run jsvc as user root, I get a java.lang.reflect.InvocationTargetException. But when I run as root using startup.sh, everything's fine. And once I've compiled the jsps in the work directory and the class files exist, then I can run them under the daemon. So there's definitely something fishy with the jsvc daemon that is preventing me from compiling. I carefully set up the init.d tomcat script so that it mimics startup.sh as much as possible. Still no dice. I've turned on debugging and I see that when the daemon kicks off, it lists its parsed command line arguments (I've posted the output below). There are options such as run as service, install service, etc. Should I be trying to run as service? ..Bob. catalina_home is /usr/local/tomcat5 setting classpath classpath is @/usr/lib/java/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar:/usr/local/tomcat5/bin/commons-logging-api.jar:/usr/local/tomcat5/bin/bootstrap.jar@ jsvc debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS -- jsvc debug: | Detach: True jsvc debug: | Show Version:No jsvc debug: | Show Help: No jsvc debug: | Check Only: Disabled jsvc debug: | Run as service: No jsvc debug: | Install service: No jsvc debug: | Remove service: No jsvc debug: | JVM Name:server jsvc debug: | Java Home: /usr/lib/java jsvc debug: | PID File:/usr/local/tomcat5/logs/catalina.pid jsvc debug: | User Name: tomcat jsvc debug: | Extra Options: 8 jsvc debug: | -verbose jsvc debug: | -Dcatalina.home=/usr/local/tomcat5 jsvc debug: | -Djava.io.tmpdir=/usr/local/tomcat5/temp jsvc debug: | -Djava.endorsed.dirs=/usr/local/tomcat5/common/endorsed jsvc debug: | -Dcatalina.base=/usr/local/tomcat5 jsvc debug: | -Djava.class.path=/usr/lib/java/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar:/usr/local/tomcat5/bin/commons-logging-api.jar:/usr/local/tomcat5/bin/bootstrap.jar jsvc debug: | -Xms256m jsvc debug: | -Xmx384m jsvc debug: | Class Invoked: org.apache.catalina.startup.Bootstrap jsvc debug: | Class Arguments: 0 jsvc debug: +--- jsvc debug: user changed to 'tomcat' jsvc debug: User 'tomcat' validated jsvc debug: Attempting to locate Java Home in /usr/lib/java jsvc debug: Attempting to locate VM configuration file /usr/lib/java/jre/lib/jvm.cfg jsvc debug: Found VM configuration file at /usr/lib/java/jre/lib/jvm.cfg jsvc debug: Found VM client definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/client/libjvm.so jsvc debug: Found VM server definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/server/libjvm.so jsvc debug: Found VM hotspot definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/hotspot/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/hotspot/libjvm.so jsvc debug: Cannot locate library for VM hotspot (skipping) jsvc debug: Found VM classic definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/classic/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/classic/libjvm.so jsvc debug: Cannot locate library for VM classic (skipping) jsvc debug: Found VM native definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/native/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/native/libjvm.so jsvc debug: Cannot locate library for VM native (skipping) jsvc debug: Found VM green definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/green/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/green/libjvm.so jsvc debug: Cannot locate library for VM green (skipping) jsvc debug: Java Home located in /usr/lib/java jsvc debug: +-- DUMPING JAVA HOME STRUCTURE jsvc debug: | Java Home: /usr/lib/java jsvc debug: | Java VM Config.: /usr/lib/java/jre/lib/jvm.cfg jsvc debug: | Found JVMs: 2 jsvc debug: | JVM Name:client jsvc debug: | /usr/lib/java/jre/lib/i386/client/libjvm.so jsvc debug: | JVM Name:server jsvc debug: | /usr/lib/java/jre/lib/i386/server/libjvm.so jsvc debug: +--- jsvc debug: Using specific JVM in /usr/lib/java/jre/lib/i386/server/libjvm.so jsvc debug: Invoking w/ LD_LIBRARY_PATH=/usr/lib/java/jre/lib/i386/server:/usr/lib/java/jre/lib/i386 jsvc.exec debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS -- jsvc.exec debug: | Detach: True jsvc.exec debug: | Show Version:No jsvc.exec debug: | Show Help: No jsvc.exec debug: | Check Only: Disabled jsvc.exec debug: | Run as service: No jsvc.exec debug:
Re: running Tomcat from jsvc daemon under Linux as user tomcat
Bob, Check one more thing. What are the permission set for on the directories? Also did you find the work directory? And if so who was the owner and what were the permissions set to? Even if you own the directory, if you have set the permissions to not allow writes you will get errors or access denied. Just thinking of all possibilities. I think I did a chmod -R 750 tomcat5 on my main tomcat directory. Doug - Original Message - From: Bob White [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 21, 2004 5:45 AM Subject: Re: running Tomcat from jsvc daemon under Linux as user tomcat I have set everything in the entire $CATALINA_HOME directory tree to be owned by user tomcat, group tomcat. I even tried setting them to user.root and put tomcat in the root group. Still, Tomcat cannot write to the work dir. When I try to run jsvc as user root, I get a java.lang.reflect.InvocationTargetException. But when I run as root using startup.sh, everything's fine. And once I've compiled the jsps in the work directory and the class files exist, then I can run them under the daemon. So there's definitely something fishy with the jsvc daemon that is preventing me from compiling. I carefully set up the init.d tomcat script so that it mimics startup.sh as much as possible. Still no dice. I've turned on debugging and I see that when the daemon kicks off, it lists its parsed command line arguments (I've posted the output below). There are options such as run as service, install service, etc. Should I be trying to run as service? ..Bob. catalina_home is /usr/local/tomcat5 setting classpath classpath is @/usr/lib/java/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar:/usr/ local/tomcat5/bin/commons-logging-api.jar:/usr/local/tomcat5/bin/bootstrap.j ar@ jsvc debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS -- jsvc debug: | Detach: True jsvc debug: | Show Version:No jsvc debug: | Show Help: No jsvc debug: | Check Only: Disabled jsvc debug: | Run as service: No jsvc debug: | Install service: No jsvc debug: | Remove service: No jsvc debug: | JVM Name:server jsvc debug: | Java Home: /usr/lib/java jsvc debug: | PID File:/usr/local/tomcat5/logs/catalina.pid jsvc debug: | User Name: tomcat jsvc debug: | Extra Options: 8 jsvc debug: | -verbose jsvc debug: | -Dcatalina.home=/usr/local/tomcat5 jsvc debug: | -Djava.io.tmpdir=/usr/local/tomcat5/temp jsvc debug: | -Djava.endorsed.dirs=/usr/local/tomcat5/common/endorsed jsvc debug: | -Dcatalina.base=/usr/local/tomcat5 jsvc debug: | -Djava.class.path=/usr/lib/java/lib/tools.jar:/usr/local/tomcat5/bin/common s-daemon.jar:/usr/local/tomcat5/bin/commons-logging-api.jar:/usr/local/tomca t5/bin/bootstrap.jar jsvc debug: | -Xms256m jsvc debug: | -Xmx384m jsvc debug: | Class Invoked: org.apache.catalina.startup.Bootstrap jsvc debug: | Class Arguments: 0 jsvc debug: +--- jsvc debug: user changed to 'tomcat' jsvc debug: User 'tomcat' validated jsvc debug: Attempting to locate Java Home in /usr/lib/java jsvc debug: Attempting to locate VM configuration file /usr/lib/java/jre/lib/jvm.cfg jsvc debug: Found VM configuration file at /usr/lib/java/jre/lib/jvm.cfg jsvc debug: Found VM client definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/client/libjvm.so jsvc debug: Found VM server definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/server/libjvm.so jsvc debug: Found VM hotspot definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/hotspot/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/hotspot/libjvm.so jsvc debug: Cannot locate library for VM hotspot (skipping) jsvc debug: Found VM classic definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/classic/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/classic/libjvm.so jsvc debug: Cannot locate library for VM classic (skipping) jsvc debug: Found VM native definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/native/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/native/libjvm.so jsvc debug: Cannot locate library for VM native (skipping) jsvc debug: Found VM green definition in configuration jsvc debug: Checking library /usr/lib/java/jre/lib/i386/green/libjvm.so jsvc debug: Checking library /usr/lib/java/lib/i386/green/libjvm.so jsvc debug: Cannot locate library for VM green (skipping) jsvc debug: Java Home located in /usr/lib/java jsvc debug: +-- DUMPING JAVA HOME STRUCTURE jsvc debug: | Java Home: /usr/lib/java jsvc debug: | Java VM Config.: /usr/lib/java/jre/lib/jvm.cfg jsvc debug: | Found JVMs: 2 jsvc debug: | JVM Name:client jsvc debug: | /usr
Re: running Tomcat from jsvc daemon under Linux as user tomcat
Bob, It sounds like a permissions problem. Check the settings in the context for workdir=... If you have set this, then you must ensure that your tomcat user has rights to that directory also. Read through the following to see if you missed anything in your setup: http://marc.theaimsgroup.com/?l=tomcat-userm=108373546715111w=2 If all else fails, run TC as root, search for the temp directory and check the permissions on the parent directory. Set it and the temp directory to tomcat owner. Doug www.parsonstechnical.com - Original Message - From: Bob White [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 20, 2004 2:08 AM Subject: running Tomcat from jsvc daemon under Linux as user tomcat I am running Tomcat (under Linux) from jsvc daemon as user tomcat. When I do this, Tomcat fails to run JSPs because Tomcat cannot create java files in the work directories and subsequently cannot compile them (cuz they're not there). When I run Tomcat using startup.sh as user root I have no problems. When I run Tomcat using startup.sh as user tomcat, I can compile at least some of the java files, but there's another problem with one particular app which uses css stylesheets and the stylesheets don't get made properly. I'll worry about that later. Of course, the quick solution is to simply invoke startup.sh as root from my /etc/init.d/tomcat script. But according to instructions on the Apache site, I'm supposed to be able to run Tomcat as daemon using jsvc. But something's amiss. I installed Tomcat as user tomcat and user tomcat owns the entire directory tree (ie. /usr/local/tomcat5/...). I put user tomcat into group tomcat and group root and tried putting the entire directory tree into both the tomcat group and the root group. No difference. Any ideas? BTW, the exact error message I am getting is: java.io.FileNotFoundException: /usr/local/tomcat5/work/Catalina/localhost/AHEMSS/org/apache/jsp/ahess/ess0_ jsp.java at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) ... etc ..Bob. = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - 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: Running tomcat 5.18 as a service under Windows 2003
Howdy, Does it only happen when running as a service? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 1:51 PM To: [EMAIL PROTECTED] Subject: Running tomcat 5.18 as a service under Windows 2003 Hello friends. I'm experiencing an issue wherein if we run Tomcat 5 as a service in windows 2003 there are times when you cannot restart the service through the service manager. It dies at stop time and the services panel will forever report the status of the service as 'stopping'. Ctl-Alt-Delete will not allow you to kill the tomcat.exe process (restricted). Bouncing the machine helps but is obviously not a real solution. Tomcat is dying, web requests to the default page return a 404. You can also restart tomcat from the command line and it runs fine, with the exception that it still shows as 'stopping' the services manager. Any and all help is greatly appreciated. Thank you. Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running tomcat 5.18 as a service under Windows 2003
Hi Yoav - We only experience this problem when running as a service. Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Running tomcat 5.18 as a service under Windows 2003 02/10/2004 01:57 PM Please respond to Tomcat Users List Howdy, Does it only happen when running as a service? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 1:51 PM To: [EMAIL PROTECTED] Subject: Running tomcat 5.18 as a service under Windows 2003 Hello friends. I'm experiencing an issue wherein if we run Tomcat 5 as a service in windows 2003 there are times when you cannot restart the service through the service manager. It dies at stop time and the services panel will forever report the status of the service as 'stopping'. Ctl-Alt-Delete will not allow you to kill the tomcat.exe process (restricted). Bouncing the machine helps but is obviously not a real solution. Tomcat is dying, web requests to the default page return a 404. You can also restart tomcat from the command line and it runs fine, with the exception that it still shows as 'stopping' the services manager. Any and all help is greatly appreciated. Thank you. Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You. This e
RE: Running tomcat 5.18 as a service under Windows 2003
Hi Yoav - No! Additional analysis reveals that if run by the command line, calling shutdown will not always kill the window executing Tomcat. We do get a lot of messages about how Catalina is shutting down, but the window will not go away until I Ctrl-C inside of it. At that time, the window goes away and tomcat is no longer represented in task manager. Does this help with the diagnosis any? Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Running tomcat 5.18 as a service under Windows 2003 02/10/2004 01:57 PM Please respond to Tomcat Users List Howdy, Does it only happen when running as a service? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 1:51 PM To: [EMAIL PROTECTED] Subject: Running tomcat 5.18 as a service under Windows 2003 Hello friends. I'm experiencing an issue wherein if we run Tomcat 5 as a service in windows 2003 there are times when you cannot restart the service through the service manager. It dies at stop time and the services panel will forever report the status of the service as 'stopping'. Ctl-Alt-Delete will not allow you to kill the tomcat.exe process (restricted). Bouncing the machine helps but is obviously not a real solution. Tomcat is dying, web requests to the default page return a 404. You can also restart tomcat from the command line and it runs fine, with the exception that it still shows as 'stopping' the services manager. Any and all help is greatly appreciated. Thank you. Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you
RE: Running tomcat 5.18 as a service under Windows 2003
Howdy, No! Additional analysis reveals that if run by the command line, calling shutdown will not always kill the window executing Tomcat. We do get a lot of messages about how Catalina is shutting down, but the window will not go away until I Ctrl-C inside of it. At that time, the window goes away and tomcat is no longer represented in task manager. Does this help with the diagnosis any? Sure does, it's exactly why I asked. You most likely have non-daemon threads that aren't being terminated, so the JVM cannot shut down. Tomcat has shut down its own threads, including the connectors, hence the 404 pages in the browser, but the JVM itself cannot exit so the service is stuck. You need to make sure any threads you start are either daemons or you terminate them when your app is shutting down. A ServletContextListener's contextDestroyed method is one possible place to do this. This issue has been discussed on this list in the past, and other approaches suggested, so you might want to search the archives. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.2.7 from Service vs DOS
Just wanted to update this thread in case anyone else runs into this same problem. We upgraded the JDK to version 1.4.2_03 and installed a new service pointing to that JDK. We started Tomcat from the service. So far, in our almost full day of testing starting yesterday afternoon, our server has not crashed. We had previously tried upgrading the JDK to version 1.4.1_02, but that did not solve our server crashing problem. Out of curiosity, does anyone know what the difference is between JDK 1.4.0 and 1.4.2_03 that would have caused Tomcat to crash in the old version and not the new? Thank you to David Ramsey for his help. David Ramsey [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] ahoo.comcc: Subject: Re: Running Tomcat 4.1.2.7 from Service vs DOS 01/13/2004 10:03 AM Please respond to Tomcat Users List I don't know the reason but amongst other things to research are which JVM you end up using in either scenario. It appears that the default with Sun's JDK is that starting from a CMD.EXE prompt results in the client JVM being selected by default, whereas starting as a service uses the server JVM instead. Your issues may be related to this. I also highly recommend you consider upgrading from JDK 1.4.0 to the latest JDK, 1.4.2_03. There are numerous bug fixes between where you are and where the JDK is today, as well as performance optimizations. --- [EMAIL PROTECTED] wrote: We are running a newly developed Java app on Tomcat 4.1.2.7 with JDK 1.4.0 and using Struts 1.1. When we start the Tomcat server as a Service, this application comes up and is usable for about 15 minutes, and then it crashes (never at the same point in the app - so we have ruled that out). However, when we start the Tomcat server from a DOS prompt, this same application runs forever and never crashes. Before our production support team will agree to change the way they start and schedule Tomcat, they are asking for a reason that this occurs. Does anyone know what the difference is between running it from a Service vs. DOS and why one would cause it to crash and the other wouldn't? * PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited
Re: Running Tomcat 4.1.2.7 from Service vs DOS
I don't know the reason but amongst other things to research are which JVM you end up using in either scenario. It appears that the default with Sun's JDK is that starting from a CMD.EXE prompt results in the client JVM being selected by default, whereas starting as a service uses the server JVM instead. Your issues may be related to this. I also highly recommend you consider upgrading from JDK 1.4.0 to the latest JDK, 1.4.2_03. There are numerous bug fixes between where you are and where the JDK is today, as well as performance optimizations. --- [EMAIL PROTECTED] wrote: We are running a newly developed Java app on Tomcat 4.1.2.7 with JDK 1.4.0 and using Struts 1.1. When we start the Tomcat server as a Service, this application comes up and is usable for about 15 minutes, and then it crashes (never at the same point in the app - so we have ruled that out). However, when we start the Tomcat server from a DOS prompt, this same application runs forever and never crashes. Before our production support team will agree to change the way they start and schedule Tomcat, they are asking for a reason that this occurs. Does anyone know what the difference is between running it from a Service vs. DOS and why one would cause it to crash and the other wouldn't? * PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running tomcat on Solaris. Stops when exiting the console
Hi Guys I'm really stuck on this one. Can anybody shed some light on it? Sorry for the double post... Thanks Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 09 December 2003 15:23 To: Tomcat Users List (E-mail) Subject: Running tomcat on Solaris. Stops when exiting the console Hi all We have had this problem lately where we can start tomcat using Catalina start but when we exit the console it stops. When you look at the ps -ef | grep java it shows tomcat running and the PPID is 1 so the process belongs to inetd so I would have though it had detached from the terminal correctly. I also noticed if you start tomcat as normal using same procedure and then you tail the log files at $CATALINA_BASE/logs. Press control-c to exit the tail and tomcat also quits. Anybody have any idea what is going on here. Thanks Donie
Re: Running tomcat on Solaris. Stops when exiting the console
Tomcat is still in the same session as your console. You should be ok if you use 'csh' or if you 'nohup' the process. A service launcher like jsvc (which ships with TC 5) can also help. - Original Message - From: Donie Kelly [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:18 AM Subject: RE: Running tomcat on Solaris. Stops when exiting the console Hi Guys I'm really stuck on this one. Can anybody shed some light on it? Sorry for the double post... Thanks Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 09 December 2003 15:23 To: Tomcat Users List (E-mail) Subject: Running tomcat on Solaris. Stops when exiting the console Hi all We have had this problem lately where we can start tomcat using Catalina start but when we exit the console it stops. When you look at the ps -ef | grep java it shows tomcat running and the PPID is 1 so the process belongs to inetd so I would have though it had detached from the terminal correctly. I also noticed if you start tomcat as normal using same procedure and then you tail the log files at $CATALINA_BASE/logs. Press control-c to exit the tail and tomcat also quits. Anybody have any idea what is going on here. Thanks Donie This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RUNNING Tomcat startup script, AND/OR TOMCAT.BAT
Hello I am not getting it when it comes to the tomcat.bat file.Windows 98 In the file I have this. set _CP=%CP% set _TOMCAT_HOME=C:\Tomcat I do not know what to type in to replace the following line. set _CLASSPATH=%CLASSPATH% I cannot help you with that - hopefully someone else will. in the autoexec.bat file I have this for java PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_06\BIN; SET PATH=C:\jdk1.3.1_06;C:\jdk1.3.1_06\BIN;%PATH% SET CLASSPATH=.;C:\jdk1.3.1_06\lib\tools.jar;C:\jdk1.3.1_06\jre\lib\ext\servlet.ja r;%CLASSPATH% path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\;c:\dos;c:\ltc;c:\kronos;c:\kronos\kcc set JAVA_HOME=C:\jdk1.3.1_06 Your PATH need only point to $JAVA_HOME\bin - in addition to all the other windows-specific items (!) I would keep just the LAST 'path=C:\WINDOWS;...' item above (the penultimate line) as it is (deleting the 'path=' and 'set path=' items before it). Then AFTER that 'path=C:\WINDOWS;...' line I would add: SET PATH=%PATH%;C:\jdk1.3.1_06\bin; Assuming the 'C:\jdk1.3.1_06\bin' reference to be a valid one, of course :-) As for the classpath, you should return the 'servlet.jar' to the '$CATALINA_HOME\common\lib' directory, or at least remove it from the Java extensions folder if you had previously made a copy of it. Keeping it in the Java extensions folder is a recipe for trouble in my experience (!) Then your classpath variable should include the current directory reference (the dot) and a reference to '$CATALINA_HOME\common\lib\servlet.jar' so that you can compile your servlets. Try this: SET CLASSPATH=.;%CATALINA_HOME%\common\lib\servlet.jar The $JAVA_HOME variables looks okay, BTW. The error that I receive i Out of environment space... Just google: windows 98 environment space tomcat (all in one query) and you will see a JGuru posting that should help you. It is an MS-DOS Prompt issue - you need to allocate a little bit more memory to DOS. Good luck! Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running tomcat with JRE + tools.jar
-Original Message- From: Ted Weatherly [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:54 PM To: [EMAIL PROTECTED] Subject: Running tomcat with JRE + tools.jar Hello from around the corner! I know you're supposed to run tomcat using the SDK but I want to avoid that if possible. Instead, I am trying to run tomcat 4.1 using the JRE...and I still want the ability to compile servlets. I read somewhere that you can accomplish this by copying tools.jar to the $jre_home/lib directory. I tried this and I get: It is possible. You are on the right track. You also need to modify the startup scripts a bit. See below: ./startup.sh The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program If you search on this error message, you will see that it comes from setclasspath.sh : % grep The JAVA_HOME environment variable is not defined correctly * setclasspath.sh:echo The JAVA_HOME environment variable is not defined correctly setclasspath.sh:echo The JAVA_HOME environment variable is not defined correctly setclasspath.sh contains the following code: if [ ! -r $JAVA_HOME/bin/java -o ! -r $JAVA_HOME/bin/jdb -o ! -r $JAVA_HO ME/bin/javac ]; then echo The JAVA_HOME environment variable is not defined correctly Neither javac or jdb are included with the JRE. You need to modify this expression so that it only looks for lib/tools.jar . I don't think the jdb is mandatory unless you need to run in debug mode. And then, you need to make sure the CLASSPATH includes the path to tools.jar . I forget exactly how to do that. My JAVA_HOME is set to the base of my JRE (/usr/java/j2re1.4.2_01/). That path is valid. Tomcat starts if I set JAVA_HOME to the base of my SDK. That's because Tomcat can find the jdb the javac, because they are under your SDK. What do I have to do to get Tomcat to run with the JRE? Is there a doc for this? -Ted PS You can redistribute the SDK if it is bundled with your software, right? The legal agreement on java.sun.com seems to confirm this (The program [SDK] must add significant and primary functionality to the software.). I've read in a few forums, though, that you can only redistribute the JRE. Perhaps Sun's policy has changed? Read the license included with the JDK. It will specifically state which files can be redistributed. -= Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 443 as non-root
On Wed, Sep 24, 2003 at 08:33:32AM +0200, Damian Egli wrote: : : I have to run Tomcat standalone as user e.g tomcat (non-root) on port 443. : But the server doesn't start (not able to bind port 443). : With 8443 everything works fine. : : Why can't tomcat do that like apache ? In order to bind to port 443 (or any port below 1024), you must be root. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 443 as non-root
Damian Egli wrote: Hello I have to run Tomcat standalone as user e.g tomcat (non-root) on port 443. But the server doesn't start (not able to bind port 443). With 8443 everything works fine. Why can't tomcat do that like apache ? Because Java wasn't designed to allow that. There are solutions which are being worked on, such as the commons-daemon project. Tomcat 5 is designed to take advantage of commons-daemon, so it allows running a low port without root. See the docs: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Thanks for hints or help. I'm running Version 4.1.27 on SuSE 8.2 with SUN Java 2 Standard Edition (build 1.4.1_02-b06) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Actually, removing Jasper from 3.3.1(a) is about the same as for 4.1.x: You just comment out the JspInterceptor element in server.xml, and voila: you've got a JSP-less Servlet-Container. I tried that at the time - I can't remember which version, I'm afraid - and if I didn't have Jasper present, it barfed. I didn't have *any* references to JSPs left in the configuration, *anywhere*. Very strange. Never mind though - seems to be fine with 4.1. Ok, to be helpful, for 4.1.x, you need to comment out all references to JspServlet in $CATALINA_HOME/conf/web.xml (including the servlet-mapping). Then you have a JSP-less Servlet-Container. Cheers, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Yeah, well, it won't work with 3.3.0 (it will exhibit the intestinal behavior that you describe :). After the 3.3.0 release the Velocity people lobbied for a non-JSP Servlet-container, so with 3.3.1, we (with non-default options) gave it to them. Jon Skeet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Actually, removing Jasper from 3.3.1(a) is about the same as for 4.1.x: You just comment out the JspInterceptor element in server.xml, and voila: you've got a JSP-less Servlet-Container. I tried that at the time - I can't remember which version, I'm afraid - and if I didn't have Jasper present, it barfed. I didn't have *any* references to JSPs left in the configuration, *anywhere*. Very strange. Never mind though - seems to be fine with 4.1. Ok, to be helpful, for 4.1.x, you need to comment out all references to JspServlet in $CATALINA_HOME/conf/web.xml (including the servlet-mapping). Then you have a JSP-less Servlet-Container. Cheers, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Jon Skeet schrieb: Just out of curiosity: I'm wondering why you want to do that? The overhead of the JDK over JRE isn't that big and disk space isn't usually a problem. We distribute the JRE in our installation. I know these days you're allowed to distribute tools.jar (and javac.exe?) but the JRE we distribute (which would be inconvenient to change) doesn't allow this. Ah! Right, I didn't think about re-distribution. Cheers Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.27 without Jasper (or a JDK)?
I don't think you need to do anything. But you probaly want to do this: - remove $CATALINA/common/lib/jasper-compiler.jar - in $CATALINA/conf/web.xml - comment out boht jasper/jsp references If you don't use precompiled jsp's - remove $CATALINA/common/lib/jasper-runtime.jar You might not need $CATALINA/common/lib/ant.jar either. (I don't know if anything other than jasper depends on it) [ On second thought, you might need to edit setclasspath.bat (or sh) to remove the javac check. ] -Tim Jon Skeet wrote: I'm trying to run Tomcat 4.1 (currently 4.1.27) without needing a full JDK. I don't need any JSP stuff whatsoever, just servlets. Does anyone know of a page explaining how to remove Jasper from Tomcat, or fancy explaining it here? I couldn't find anything in the archive (with only a couple of searches, admittedly). Thanks, Jon Skeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?
I don't think you need to do anything. But you probaly want to do this: - remove $CATALINA/common/lib/jasper-compiler.jar - in $CATALINA/conf/web.xml - comment out boht jasper/jsp references If you don't use precompiled jsp's - remove $CATALINA/common/lib/jasper-runtime.jar You might not need $CATALINA/common/lib/ant.jar either. (I don't know if anything other than jasper depends on it) [ On second thought, you might need to edit setclasspath.bat (or sh) to remove the javac check. ] I'll certainly need to do the last bit, and I'll also (for the sake of completeness) remove the reference to tools.jar on the classpath. Great. I know I tried to do this with Tomcat 3.3, and I couldn't for the life of me get it to not require the Jasper jar files on the system... Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Jon Skeet schrieb: I'm trying to run Tomcat 4.1 (currently 4.1.27) without needing a full JDK. I don't need any JSP stuff whatsoever, just servlets. Does anyone know of a page explaining how to remove Jasper from Tomcat, or fancy explaining it here? I couldn't find anything in the archive (with only a couple of searches, admittedly). Thanks, Jon Skeet Just out of curiosity: I'm wondering why you want to do that? The overhead of the JDK over JRE isn't that big and disk space isn't usually a problem. Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Just out of curiosity: I'm wondering why you want to do that? The overhead of the JDK over JRE isn't that big and disk space isn't usually a problem. We distribute the JRE in our installation. I know these days you're allowed to distribute tools.jar (and javac.exe?) but the JRE we distribute (which would be inconvenient to change) doesn't allow this. There's also the fact that getting rid of JSPs gets rid of a fair amount of the *possibility* of security problems, which is never a bad thing :) Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat 4.1.27 without Jasper (or a JDK)?
Actually, removing Jasper from 3.3.1(a) is about the same as for 4.1.x: You just comment out the JspInterceptor element in server.xml, and voila: you've got a JSP-less Servlet-Container. Ok, to be helpful, for 4.1.x, you need to comment out all references to JspServlet in $CATALINA_HOME/conf/web.xml (including the servlet-mapping). Then you have a JSP-less Servlet-Container. Jon Skeet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't think you need to do anything. But you probaly want to do this: - remove $CATALINA/common/lib/jasper-compiler.jar - in $CATALINA/conf/web.xml - comment out boht jasper/jsp references If you don't use precompiled jsp's - remove $CATALINA/common/lib/jasper-runtime.jar You might not need $CATALINA/common/lib/ant.jar either. (I don't know if anything other than jasper depends on it) [ On second thought, you might need to edit setclasspath.bat (or sh) to remove the javac check. ] I'll certainly need to do the last bit, and I'll also (for the sake of completeness) remove the reference to tools.jar on the classpath. Great. I know I tried to do this with Tomcat 3.3, and I couldn't for the life of me get it to not require the Jasper jar files on the system... Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat off a CD
Rob, This came up fairly recently (last week?) and there was substantial discussion about the gotchas involved in doing this. Check the archives for more info. Amongst others, http://www.mail-archive.com/[EMAIL PROTECTED]/ justin At 12:45 PM 8/29/2003, you wrote: Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat off a CD
MessageIf you can get access to a laptop (I thought most schools have that or am I wrong?), you can install everything on it and then do your demo thru a Proxima projector. If you cannot get a laptop, you can use a portable USB2 hard-drive. That should work. Hope this helps. - Original Message - From: DeVenuto, Rob To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 02:45 PM Subject: Running Tomcat off a CD Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat off a CD
You can also try Microsoft Netmeeting if you're using Windows 2000 or Windows XP. It allows you to connect 2 or more computers charing the same desktop (yours). Students will be able to see what you're doing and I'm not sure because I've never tried it but I think it also allows for others to interact with your desktop as well. Anyways, just another option for you to think about :-) /JM -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: 29 August 2003 21:49 To: Tomcat Users List Subject: Re: Running Tomcat off a CD MessageIf you can get access to a laptop (I thought most schools have that or am I wrong?), you can install everything on it and then do your demo thru a Proxima projector. If you cannot get a laptop, you can use a portable USB2 hard-drive. That should work. Hope this helps. - Original Message - From: DeVenuto, Rob To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 02:45 PM Subject: Running Tomcat off a CD Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto -- - 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: Running Tomcat on JRocket
Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat on JRocket
Hi. I'm using Jrockit with Tomcat under Linux. Only a problem: The getMessage() from the SocketException is read (using coyote connector) , while Tomcat is waiting another string for the same exception, then under a normal socket timeout, tomcat logs a error(with full stackTrace ) instead of a warning, fulling the logs. Under RedHat 9, there are problems with NPTL : /opt/bea/jrockit81sp1_141_03/bin/java -version Segmentation fault LD_ASSUME_KERNEL=2.2.5 /opt/bea/jrockit81sp1_141_03/bin/java -version libbfd: libbfd.so: cannot open shared object file: No such file or directory libbfd: libbfd.so: cannot open shared object file: No such file or directory ERROR: The pthread library is unknown. Are you running a supported Linux distribution? (Segment-register gs appears to be unused) LD_ASSUME_KERNEL=2.4.1 /opt/bea/jrockit81sp1_141_03/bin/java -version java version 1.4.1_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03) BEA WebLogic JRockit(R) Virtual Machine (build 8.1sp1-1.4.1_03-viking-Load7-linux32-borg.appeal.se-20030619-1311, Native Threads, Generational Concurrent Garbage Collector) FYI Att MNM El Jue 28 Ago 2003 10:02, Shapira, Yoav escribió: Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Running Tomcat on JRocket
Howdy, I too have had stability problems with Jrockit on every single platform I've tried, so I never use it for production systems... Yoav Shapira Millennium ChemInformatics -Original Message- From: Mauricio Nuñez [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:16 AM To: [EMAIL PROTECTED] Subject: Re: Running Tomcat on JRocket Hi. I'm using Jrockit with Tomcat under Linux. Only a problem: The getMessage() from the SocketException is read (using coyote connector) , while Tomcat is waiting another string for the same exception, then under a normal socket timeout, tomcat logs a error(with full stackTrace ) instead of a warning, fulling the logs. Under RedHat 9, there are problems with NPTL : /opt/bea/jrockit81sp1_141_03/bin/java -version Segmentation fault LD_ASSUME_KERNEL=2.2.5 /opt/bea/jrockit81sp1_141_03/bin/java -version libbfd: libbfd.so: cannot open shared object file: No such file or directory libbfd: libbfd.so: cannot open shared object file: No such file or directory ERROR: The pthread library is unknown. Are you running a supported Linux distribution? (Segment-register gs appears to be unused) LD_ASSUME_KERNEL=2.4.1 /opt/bea/jrockit81sp1_141_03/bin/java -version java version 1.4.1_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03) BEA WebLogic JRockit(R) Virtual Machine (build 8.1sp1-1.4.1_03-viking-Load7-linux32-borg.appeal.se-20030619-1311, Native Threads, Generational Concurrent Garbage Collector) FYI Att MNM El Jue 28 Ago 2003 10:02, Shapira, Yoav escribió: Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Running Tomcat on JRocket
Hi Yoav, I tried that and couldn't start Tomcat. Does it matter that I am using 4.0.6? Regards Jim. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 15:03 To: Tomcat Users List Subject: RE: Running Tomcat on JRocket Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on JRocket
Howdy, It shouldn't matter that you're using tomcat 4.0.x, or 4.1.x, or 5.1.x, etc. What is the problem you had when starting tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:48 AM To: 'Tomcat Users List' Subject: RE: Running Tomcat on JRocket Hi Yoav, I tried that and couldn't start Tomcat. Does it matter that I am using 4.0.6? Regards Jim. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 15:03 To: Tomcat Users List Subject: RE: Running Tomcat on JRocket Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you
RE: Running Tomcat on JRocket
Hi Yoav, It was a colleague who was having the problems. When I looked at the errors I found out it was because he was setting JDK 1.4 specific parameters. I removed these and it now works. Thanks for you help. Jim. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 16:04 To: Tomcat Users List Subject: RE: Running Tomcat on JRocket Howdy, It shouldn't matter that you're using tomcat 4.0.x, or 4.1.x, or 5.1.x, etc. What is the problem you had when starting tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:48 AM To: 'Tomcat Users List' Subject: RE: Running Tomcat on JRocket Hi Yoav, I tried that and couldn't start Tomcat. Does it matter that I am using 4.0.6? Regards Jim. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 15:03 To: Tomcat Users List Subject: RE: Running Tomcat on JRocket Howdy, Assuming you mean J:Rockit (the BEA JVM), just install JRockit and set your JAVA_HOME environment variable to point at the JRockit installation directory rather than the Sun JVM directory. You don't need to modify tomcat in any way. Yoav Shapira Millennium ChemInformatics -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 9:56 AM To: 'Tomcat Users List' Subject: Running Tomcat on JRocket Hi, Does anyone know what I have to do to run Tomcat on JRocket? I have searched the archive and found some mention of JRocket but no details on what to do. I am trying to run Tomcat 4.0.6 on JRocket and I have changed JAVA_HOME to point to JRocket but I can't get it to run. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential
RE: running tomcat from CD
Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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: running tomcat from CD
And this was discussed a few times in the archives! -Tim Shapira, Yoav wrote: Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
Howdy, Note, however, that all FileLoggers have a configurable directory. The workDir for host and context is configurable as well. The system.out/system.err destination is set to $CATALINA_HOME/logs/catalina.out in $CATALINA_HOME/bin/catalina.sh and can be changed at will. So a more accurate answer might be: - You need to modify the above in your server.xml and catalina.sh before burning your copy of tomcat to CD - Whatever directory you use for your logs and workDir (which is required by the servlet spec, as I said earlier) needs to be off the CD-ROM, but accessible and writeable. Yoav Shapira \On Thu, 21 Aug 2003, Halstead, Chris wrote: Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
How do I access the archives? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:32 AM To: Tomcat Users List Subject: Re: running tomcat from CD And this was discussed a few times in the archives! -Tim Shapira, Yoav wrote: Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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]