AW: flush=false not working?
I see one additonal problem with the original aproach. If you don't set the buffersize big enough to hold the complete result of a request and there several includes that produce parts of the result you don't have control which include will be the last one to access the header before the header will be sent (resulting in 'response has already bean commited') Regarding your answer: Wether reading the date from the database is a significant overhead depends on the kind of the database query. If the time is mostly spent in the query and not in the get/release call, the connection pool doesn't help much. I see a further problem with this approach: To get the last modified date from the database the controlling servlet needs the knowledge how to get it (It must know what the includes do). This is a bad design (in my opinion). I think it's better to design the includes in a way that they store the last access time in common place (e.g a bean with request scope) and the controlling servlet just reads this value. (This again will only work if the -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 06:28 An: Tomcat Users List Betreff: Re: flush=false not working? By the way, doing the extra read to get the last modified date in the controlling servlet or page is not a significant overhead with properly designed use of a connection pool. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
charset fail to set browser encoding
Hi, I am new in using Tomcat. I got a problem in displaying i18n char in jsp page. I got a simple jsp page as below: html head META http-equiv=Content-Type content=text/html; charset=gb2312 /head font face=Verdana, Arial, Helvetica, sans-serifbfont size=3×¢²á/font/b/font The charset have been set to gb2312. However, one have to change the encoding manually inside the brower in order to view the encoding correctly. I have also tried to change the file extension from xx.jsp to xx.html. It works in xx.html extension, but fail to display correct encoding in xx.jsp. Am I miss something? Could any one give me a hand on it? Thanks in advanced! Regards, --kenneth -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Default Website -- Still not working -- Thanks!
Hi Everyone, I know I've previously asked this question, but I'm still having issues with it, I'm still a new to Tomcat. I would really appreciate further guidance on this issue. I'm trying to setup Tomcat so the default directory is something else other then Examples when I type in the IP address. I know where to change the welcome documents, but I can't figure out how to change the default path. Here are things which I have tried changing in the server.xml file. Changed from Examples to Test Context path=/Test docBase=webapps/Test debug=0 I've also tried changing every reference from Examples to Test but Tomcat wouldn't startup after that. If someone could tell me what I'm missing I would really appreciate it. My environment: Windows 2000 SP2, Tomcat 4.0.3 Thank you! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml how-to
Check the DTD for web.xml or RTFM. http://jakarta.apache.org/tomcat Markus On fredag, juni 14, 2002, at 03:34 , Scott Seidl wrote: Can someone give me a good resource on how to create the web.xml file for a web application using servlets? Thanks Scott -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: front controller pattern and security
John Gregg wrote: Hi all. I've been thinking about how the j2ee front controller pattern (used by Struts et al.) does/does not take advantage of url-based authorization constraints in web.xml. I want to avoid having to check roles in my own code as much as possible. At first I thought I could declare a URL like /somewebapp/somerole/* to require the somerole role before being allowed access to my controller servlet. Another URL would be /somewebapp/someotherrole/* but would map to the same servlet. That servlet would then pick off the action at the end of the URL and execute it. However, while I can restrict access to the servlet, or whatever other physical resource I'm trying to protect, what I really want to protect is the action that's executed. Am I just stuck with enumerating all possible actions in by web.xml (/somewebapp/somerole/someaction, /somewebapp/somerole/someotheraction, etc.)? Should I instead make a filter that enforces this for me? I'm facing the same problem with Apache SOAP's rpcrouter. Surely, the way you describe, using servlet-mapping auth-constraint does exactly what you want? In other words, you have one (controller) servlet declared, and you use servlet-mapping to declare all urls that invoke that servlet. In auth-contstraint you declare the mapping between urls and user roles. So, when a user invokes /app/manager/ac_details, the auth-constraint would trigger an authorisation check to make sure the user was in the indicated role. Then (if he's allowed), because the servlet-mapping maps this url to the controller servlet, the controller servlet is invoked, and, as you say, you can then determine what the action was (ac_details) by examining the url. This method does not restrict access to the controller servlet directly, but does protect the functions to be performed. Or have I misunderstood? Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Jacob Kjome wrote: The definitive solution has been provided by Leslie Hughes [EMAIL PROTECTED] here: snip So, please, do yourselves a favor and ignore the docs for a bit on this one. Copy the configuration line for line that Leslie has provided. Then, of course, change the values to match your setup. I *guarantee* this works and it is the standard way it is supposed to be done. Maybe this DataSource thread can finally be put to rest? I'd *love* this thread to go away and die, but until JNDI DataSource can be made to work for all of us, it's gonna run run! As my previous post indicated, I am using Les Hughes proposed solution, and I *still* get a Tyrex exception, because it's trying to instantiate the mythical hsql driver. Has anybody got any suggestions other than it works for me; I don't mind delving into the code, but it'd be nice to know where to start looking! Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: charset fail to set browser encoding
try, %@ page contentType=text/html; charset=gb2312 % at the first line in your jsp page. -Ursprüngliche Nachricht- Von: Kenneth Tang [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 09:26 An: [EMAIL PROTECTED] Betreff: charset fail to set browser encoding Hi, I am new in using Tomcat. I got a problem in displaying i18n char in jsp page. I got a simple jsp page as below: html head META http-equiv=Content-Type content=text/html; charset=gb2312 /head font face=Verdana, Arial, Helvetica, sans-serifbfont size=3×¢²á/font/b/font The charset have been set to gb2312. However, one have to change the encoding manually inside the brower in order to view the encoding correctly. I have also tried to change the file extension from xx.jsp to xx.html. It works in xx.html extension, but fail to display correct encoding in xx.jsp. Am I miss something? Could any one give me a hand on it? Thanks in advanced! Regards, --kenneth -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Default Website -- Still not working -- Thanks!
I think what you want is this in your server.xml: Context path= docBase=webapps/Test debug=0 Dennis -Original Message- From: S W [mailto:[EMAIL PROTECTED]] Sent: vrijdag 14 juni 2002 9:35 To: [EMAIL PROTECTED] Subject: Default Website -- Still not working -- Thanks! Hi Everyone, I know I've previously asked this question, but I'm still having issues with it, I'm still a new to Tomcat. I would really appreciate further guidance on this issue. I'm trying to setup Tomcat so the default directory is something else other then Examples when I type in the IP address. I know where to change the welcome documents, but I can't figure out how to change the default path. Here are things which I have tried changing in the server.xml file. Changed from Examples to Test Context path=/Test docBase=webapps/Test debug=0 I've also tried changing every reference from Examples to Test but Tomcat wouldn't startup after that. If someone could tell me what I'm missing I would really appreciate it. My environment: Windows 2000 SP2, Tomcat 4.0.3 Thank you! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache SSLCERT + Tomcat 3.3 + keytool
See http://www.comu.de/docs/tomcat_ssl.htm | i have a THAWTE standart CERTIFICATION which thawte says it's X.509v3 , | but the keytool does not allow to import the corresponding RSA key, | with / without the password, build as .pem file. | The same .pem works great with the apache. | | How to import this RSA Key with keytool? | Year, worked great until i tried to change the passwords.. which at all, did not work! I had to change the defaultpassword in the ImportKey.java and to spare some time, i changed the default name to tomcat. ready. and now to MultiDomainVirtuellHosting and SSL with different CERTS :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
-Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 19:14 To: 'Tomcat Users List' Subject: RE: [offtopic] IDE for Tomcat? Hi - This was just posted earlier today: http://www.netbeans.org/ It looks very promising, but I haven't worked with it. We're using Borland's JBuilder...it seems to be the most neutral of the available options. MSFT's Java IDE isn't current anymore, as far as I know. http://www.borland.com/jbuilder/ I believe the personal edition is free, but it might not have all the features you are looking for. Any features lacking from the freebie-version of JBuilder could probably be replaced by Ant? Personally, I use the Enterprise Edition of JBuilder, but rarely use most of its built-in functionality - I let Ant take care of that. Best wishes John There's also things like MetroWerks CodeWarrior: http://www.metrowerks.com/desktop/java/ HTH John Turner [EMAIL PROTECTED] http://www.aas.com -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Error found while connecting to mysql from JSP page deployedontomcat
Hi, I have installed tomcat on HP-UX box.I have deployed my web application on tomcat container.I have copied mysql JDBC driver under common/lib area. While running the application i am getting following error Cannot load JDBC driver class 'null' java.lang.NullPointerException: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) Your code is missing this : try { Class.forName(drivername); } catch (Exception e) { System.out.println(failed to load Driver:+drivername); } where drivername is org.gjt.mm.mysql.Driver OR the other mysqljdbc package! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Tomcat performance issues
Hi All I have designed some jsp pages which extract from a database. But the pages can take upto 5 minutes before they show the content. Is there anyway I can pinpoit where the bottle neck is. My current settings are APACHE + MOD_jk + Tomcat 4.03 (could the bottle neck be my Apache and tomcat servers being on separate machines?) . Are there any tools that I can use to test the performance of my servers? if you setup mod_jk in an not optimal way, you get long timeouts until, the page is shown, but 5 minutes is a bit to long. Our tests here indicate a mass performance speed up, if we don't chain apache and tomcat and use tomcat standalone. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I can't startup tomcat 4.0.3 with security option
I' ve installed tomcat 4.0.3 on Linux 7.2 and I try to start with security option but It doesn't work: the error message is: Catalina.start: java.security.AccessControlException: access denied (java.io.FilePermission /var/tomcat4/conf/server.xml read) server.xml is tomcat4.tomcat4 for owner and group and permission 640. to startup I do the following steps: 1. I've not changed the catalina.policy 2. I modified the /etc/rc.d/init.d/tomcat4 and I have added -security at the startup line. P.S. The previous version 4.0.1 with the same steps, startup up correctly in security mode. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat performance issues
If you disable the database connection, the time is still long? Are you sure is not a db problem? Hi - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 14, 2002 11:59 AM Subject: AW: Tomcat performance issues Hi All I have designed some jsp pages which extract from a database. But the pages can take upto 5 minutes before they show the content. Is there anyway I can pinpoit where the bottle neck is. My current settings are APACHE + MOD_jk + Tomcat 4.03 (could the bottle neck be my Apache and tomcat servers being on separate machines?) . Are there any tools that I can use to test the performance of my servers? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 on Solaris
Hi all, We are trying to build Tomcat 4.0.3 on Solaris 2.6 and are having trouble locating a copy of the JAXP 1.1.3 we have tried JAXP 1.2 but it doesn't seem to work. Does anybody have a copy or know where it can be found. cheers John. _ Common Services Agency Disclaimer The information contained in this message may be confidential or legally privileged and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. _ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
Has anybody used Visual Café 4.5.2? We just bough the expert edition and it's total crap. Cannot get it to do remote debugging... Cannot compile Tomcat code with internal JDK 1.3.0_1 (Says it cannot locate main in Bootstrap.class ??) Works with JDK 1.2.2 (internal) Using external JDK works but needs a week to run Tomcat If anybody has any ideas about these types of problems with Café or have a solution let me know... Donie -Original Message- From: John Niven [mailto:[EMAIL PROTECTED]] Sent: June 14, 2002 10:48 To: 'Tomcat Users List' Subject: RE: [offtopic] IDE for Tomcat? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 19:14 To: 'Tomcat Users List' Subject: RE: [offtopic] IDE for Tomcat? Hi - This was just posted earlier today: http://www.netbeans.org/ It looks very promising, but I haven't worked with it. We're using Borland's JBuilder...it seems to be the most neutral of the available options. MSFT's Java IDE isn't current anymore, as far as I know. http://www.borland.com/jbuilder/ I believe the personal edition is free, but it might not have all the features you are looking for. Any features lacking from the freebie-version of JBuilder could probably be replaced by Ant? Personally, I use the Enterprise Edition of JBuilder, but rarely use most of its built-in functionality - I let Ant take care of that. Best wishes John There's also things like MetroWerks CodeWarrior: http://www.metrowerks.com/desktop/java/ HTH John Turner [EMAIL PROTECTED] http://www.aas.com -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SIGTERM to stop TOMCAT
Hi all, I've got a question regarding stopping TOMCAT on solaris. I use TOMCAT 4.0.3 Standalone (without any webserver) Solaris 2.6 jdk1.3.1 Here my question: Is it valid to stop TOMCAT by sending SIGTERM to the process? I'd like to do so, because I started TOMCAT within a monitoring process. This is a little C-program, which starts TOMCAT (by means of the catalina.sh script) and watch if the TOMCAT process is running. If the process is not running the C-programm will autmatically restart it. To terminate TOMCAT I must kill the monitoring process, that send a SIGTERM to its child process, the TOMCAT process. Thanx for your help in advance. Regards Karin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Default Website -- Still not working -- Thanks!
Hi S W, Sorry about my earlier answer. This was based on earlier versions. In version 4.0.3 you need to add a Context entry like you mentioned. Important to know is that the path must be zero-length string i.e. . This is explained in the documentation in the section concerning the Context Container. The Following is an excerpt: /* You may define as many Context elements as you wish, nested within a Host element in conf/server.xml. Each such Context MUST have a unique context path, which is defined by the path attribute. In addition, you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. */ -Original Message- From: S W [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 9:35 AM To: [EMAIL PROTECTED] Subject: Default Website -- Still not working -- Thanks! Hi Everyone, I know I've previously asked this question, but I'm still having issues with it, I'm still a new to Tomcat. I would really appreciate further guidance on this issue. I'm trying to setup Tomcat so the default directory is something else other then Examples when I type in the IP address. I know where to change the welcome documents, but I can't figure out how to change the default path. Here are things which I have tried changing in the server.xml file. Changed from Examples to Test Context path=/Test docBase=webapps/Test debug=0 I've also tried changing every reference from Examples to Test but Tomcat wouldn't startup after that. If someone could tell me what I'm missing I would really appreciate it. My environment: Windows 2000 SP2, Tomcat 4.0.3 Thank you! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
manager not accepting the username and password
Hi, I have installed my tomcat 4.0.3. i had changed the user name, password and role in tomcat-users.xml file to what i needed and that time it was working. Now when i give the same user id and password it is not accepting. I cant understand this weird behaviour. I have checked the tomcat-users file, and everything is fine as it should be. Please somebody could throw some light on where i must have gone wrong. Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1031 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
testing tomcat
Hi, I have tomcat up and running on Solaris. The only access I have to this machine is via Telnet. Is there any tools I can install on Solaris to test that Tomcat is running and able to server pages. I know I could use a browser and hit the URL but the machine is behind a NAT box so before I blame the IP address mapping I want to be sure that Tomcat is up and running on the IP address I told it to start on Hope that makes sense. Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat SSL + VHosts was: Apache SSLCERT + Tomcat 3.3 + keytool
and now to MultiDomainVirtuellHosting and SSL with different CERTS :-) To add serveral CERTS to the keyring is not the problem, but to tell Tomcat to use a specific key for a vhost. Is this possible?? I can't see any options for this in the vhost xml directives. Any suggestions? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: testing tomcat
When you're logged on your solaris system try : telnet 127.0.0.1 port then hit return key GET / HTTP/1.0 then hit twice return key port should be 8080 if you did not change it. you should get the default tomcat web page if it's up and running. Christophe -Message d'origine- De : Matthew Oatham [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 14 juin 2002 13:37 À : '[EMAIL PROTECTED]' Objet : testing tomcat Hi, I have tomcat up and running on Solaris. The only access I have to this machine is via Telnet. Is there any tools I can install on Solaris to test that Tomcat is running and able to server pages. I know I could use a browser and hit the URL but the machine is behind a NAT box so before I blame the IP address mapping I want to be sure that Tomcat is up and running on the IP address I told it to start on Hope that makes sense. Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: testing tomcat
You can use wget to request pages locally. http://wget.sunsite.dk/ http://www.sunfreeware.com/programlistsparc8.html#wget -Ursprüngliche Nachricht- Von: Matthew Oatham [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:37 An: '[EMAIL PROTECTED]' Betreff: testing tomcat I have tomcat up and running on Solaris. The only access I have to this machine is via Telnet. Is there any tools I can install on Solaris to test that Tomcat is running and able to server pages. I know I could use a browser and hit the URL but the machine is behind a NAT box so before I blame the IP address mapping I want to be sure that Tomcat is up and running on the IP address I told it to start on -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: testing tomcat
Is lynx installed on the Solaris box? Use that to test the site - assuming your site works with a text browser. Or if you want to have lots of fun, the firewalls allow it, your machine is addressable, and Netscape is installed on the Solaris box - launch Netscape (or similar) on the Solaris box and have the DISPLAY sent to your Unix workstation (assuming you are using a Unix/Linux workstation) Odds are - your stuck with choice 1. -Tim Matthew Oatham wrote: Hi, I have tomcat up and running on Solaris. The only access I have to this machine is via Telnet. Is there any tools I can install on Solaris to test that Tomcat is running and able to server pages. I know I could use a browser and hit the URL but the machine is behind a NAT box so before I blame the IP address mapping I want to be sure that Tomcat is up and running on the IP address I told it to start on Hope that makes sense. Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Other question
Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura Alle 18:18, giovedì 13 giugno 2002, hai scritto: Hi, your code seems very interesting, but I haven't understood one thing: you says Then add the following into server.xml --Begin server.xml snippet Listener className=PidLifeCycle / --End server.xml snippet do you want to say conf/server.xml? Can you put Listener... in the server.xml? Where do I have to put it in the server.xml? Thanks Laura Alle 17:07, giovedì 13 giugno 2002, hai scritto: For what its worth - I created (and use) a LifecycleListener that runs on startup which logs the process ID into a file called tomcat.pid. Which is created by a shell script called writepid.sh. Below is all the code to get this to work. This code also assumes your current working directory is $CATALINA_HOME. --Begin code import org.apache.catalina.LifecycleEvent; /** * A helper for getting the PID of java so shutting down tomcat is MUCH * easier. */ public class PidLifeCycle implements org.apache.catalina.LifecycleListener { public void lifecycleEvent(LifecycleEvent event) { if (start.equals(event.getType())) { try { Runtime.getRuntime().exec(/bin/sh bin/writepid.sh); } catch(Throwable e) { e.printStackTrace(); } } } } --End Code The code above will launch the following shell script. Should be in the bin/ directory of your tomcat installation. --Begin Shell script echo $PPID logs/tomcat.pid --End Shell script Then add the following into server.xml --Begin server.xml snippet Listener className=PidLifeCycle / --End server.xml snippet -Tim Rick Fincher wrote: Hi Laura, Tomcat actually does have a pid. It is a java application. Under Solaris if you do a ps -elf |grep nativ you will see a listing beginning with your JAVA_HOME and ending with ../bin/sparc/nativ_t. That's the pid of the java virtual machine. If you have multiple java apps running each will have a JVM so you may need to sort out which java pid is Tomcat. You can also use top after starting Tomcat. You will see an entry for java in the table along with the pid and memory and cpu usage info. Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Other question
Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Other question
I think that under linux this will not work anyway because every thread has it's own pid and you won't know wether the thread that was used to run the servlet is still alive. -Ursprüngliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 14:26 An: Tomcat Users List Betreff: Re: Other question Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multiple Tomcats on one server
You can run multiple instances of tomcat on one server, no problem. I have a production server that has 8 instances of tomcat (3.x) running at the moment, I'm sure other people have done it with more. instance is not equal to installation. Tomcat is only installed once, but on startup, using different server.xml (like server-one.xml, server-two.xml, etc) you can run many instances, each on it's own port. In each server.xml, make appropriate changes to things like the Context container, and then for each instance you want a startup script or in your case a .bat file that changes CLASSPATH appropriately and calls tomcat with a pointer to the appropriate server.xml file. I don't use tomcat on Windows, so I can't help you with specifics, but on a UN*X it's definitely something that can be done. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Nathan Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 10:00 PM To: Tomcat Users List Subject: Multiple Tomcats on one server Does anybody know if more than one tomcat can be installed on the same server at any one time, specifically Tomcat 3.3.1. Does it require just changing the environment variable for the dos window tomcat is started in and changing the port numbers that tomcat will listen for requests and sutdown signals on or is it more than that. Any suggestions will be appreciated. Nathan.
RE: Tomcat 4 java.lang.OutOfMemoryError - More Info?
Howdy, No, I don't mean JPDA_OPTS: those are for debugging. CATALINA_OPTS is the environment variable, and one (good) place to set is is in $CATALINA_HOME/bin/catalina.sh. You can also set it in other scripts that start / stop tomcat, etc. I always thought the internal documentation in Catalina.sh was sufficient. Basically, CATALINA_OPTS will be passed to the java runtime as-is. So if you say CATALINA_OPTS='-Xmx200m', -Xmx200m will be passed to the java runtime, telling it to give you 200MB max on the heap as opposed to the default 64MB. The java.sun.com site has documentation on all the java runtime options. -Xmx is just the beginning if you want to seriously tune your memory / GC performance. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 6:14 PM To: Tomcat Users List Subject: Tomcat 4 java.lang.OutOfMemoryError - More Info? When you say CATALINA_OPTS, you are talking about in the catalina.sh that starts the Tomcat server? Your talking about this line in the catalina.sh file: JPDA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address =$JPDA_ADDRESS,server=y,suspend=n Also, is the somewhere I can find documentation on these things? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Shapira, Yoav Yoav.Shapira@mpiTo: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Tomcat 4 java.lang.OutOfMemoryError 06/13/02 03:06 PM Please respond to Tomcat Users List Howdy, Add -XmxNm to your CATALINA_OPTS, where N is a the maximum heap space in MB. The Java default is 64MB, and you're running out of memory. See http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java-classic.html Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Tomcat 4 java.lang.OutOfMemoryError I've seen this question a lot in the email group, but I can't find the solution. Could someone point me to the fix for this problem. I can send the whole log file if needed. It just shows exceptions being thrown and at the bottom it says this: - Root Cause - java.lang.OutOfMemoryError Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: manager not accepting the username and password
Not sure if this is true, but somewhere I read that you have to have both manager and admin roles assigned to the user attempting access to the manager context. Jake At 04:37 PM 6/14/2002 +0530, you wrote: Hi, I have installed my tomcat 4.0.3. i had changed the user name, password and role in tomcat-users.xml file to what i needed and that time it was working. Now when i give the same user id and password it is not accepting. I cant understand this weird behaviour. I have checked the tomcat-users file, and everything is fine as it should be. Please somebody could throw some light on where i must have gone wrong. Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1031 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Well, I confess that I've never tried this on 4.0.3. I guess your solution is to upgrade to 4.1.3 beta. There is *no* Tyrex to give you any phantom hsql driver issues. So, I guess my guarantee only applies to 4.1.3 that I've actually tested this on. I suggest the upgrade. Jake At 10:23 AM 6/14/2002 +0200, you wrote: Jacob Kjome wrote: The definitive solution has been provided by Leslie Hughes [EMAIL PROTECTED] here: snip So, please, do yourselves a favor and ignore the docs for a bit on this one. Copy the configuration line for line that Leslie has provided. Then, of course, change the values to match your setup. I *guarantee* this works and it is the standard way it is supposed to be done. Maybe this DataSource thread can finally be put to rest? I'd *love* this thread to go away and die, but until JNDI DataSource can be made to work for all of us, it's gonna run run! As my previous post indicated, I am using Les Hughes proposed solution, and I *still* get a Tyrex exception, because it's trying to instantiate the mythical hsql driver. Has anybody got any suggestions other than it works for me; I don't mind delving into the code, but it'd be nice to know where to start looking! Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cant compile tomcat 4.0.3 as a module to apache 2.0
I think you might be dragging in the wrong apxs. As far as I know, /usr/sbin/apxs is the apxs for Apache 1.3. If you've installed Apache 2, the apxs you want should be somewhere like $APACHE_HOME/bin. I don't have access to my apache 2 box at the moment, but I got a similar error and solved it by not using /usr/sbin/apxs and instead explicitly declaring the one under the Apache 2 directory. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 7:36 PM To: 'Tomcat Users List' Subject: Cant compile tomcat 4.0.3 as a module to apache 2.0 I am also getting the following when trying to install tomcat as a module to apache 2.36 Apache compile: EAPI_MM=SYSTEM OPTIM=-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache --includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf --localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man --enable-so --with-apxs cd /tmp/{tomcat_connector}/webapp support/buildconf.sh I get the following error: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... --- All done I downloaded apr_20020612223008.tar.gz untar cd apr ./configure make cd /tmp/{tomcat_connector}/webapp ./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr but still getting error: checking for Apache apxs... yes sh: /usr/bin/envvars: No such file or directory apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/sbin/httpd'.. configure: error: /include not found. Use --with-apr-include=DIR. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
I agree. You don't need $3000 IDEs. I use UltraEdit + JSwat + Ant + WinCVS. Total cost: $30. Make sure to take advantage of the configurable tools in your editor, if it has any. I can launch Tomcat, Postgres, JUnit, and compile, run, clean, you name it all from within UltraEdit. Some of my coworkers like JBuilder but they seem to struggle with it sometimes because you have to do everything the JBuilder way. I do everything the John way. Total cost: priceless. john -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]. org]On Behalf Of Joel Sather Sent: Thursday, June 13, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: RE: [offtopic] IDE for Tomcat? Personally, I don't need code completion and stuff so I just use a simple editor and then ANT to do the builds. I need to deploy on a different machine so I just check the file into CVS and run ANT on the server (does the pull from CVS and then compiles into my JAR). Once the build and deployment are done, if you have Tomcat setup right it recognizes the new JAR has been uploaded. Very slick. Anyway, it really depends on which features you need from your IDE. I can do everything I need with ANT and vi if I have to now. :) -J Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
The John way rocks. :) John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: John Gregg [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 9:46 AM To: 'Tomcat Users List' Subject: RE: [offtopic] IDE for Tomcat? I agree. You don't need $3000 IDEs. I use UltraEdit + JSwat + Ant + WinCVS. Total cost: $30. Make sure to take advantage of the configurable tools in your editor, if it has any. I can launch Tomcat, Postgres, JUnit, and compile, run, clean, you name it all from within UltraEdit. Some of my coworkers like JBuilder but they seem to struggle with it sometimes because you have to do everything the JBuilder way. I do everything the John way. Total cost: priceless. john
Multiple Tomcats on one server
How to run setup multiple instances of Tomcat 4 on Windows 2000 since tomcat runs as a service? Thanks, Jack Li -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 8:58 AM To: 'Tomcat Users List' Subject: RE: Multiple Tomcats on one server You can run multiple instances of tomcat on one server, no problem. I have a production server that has 8 instances of tomcat (3.x) running at the moment, I'm sure other people have done it with more. instance is not equal to installation. Tomcat is only installed once, but on startup, using different server.xml (like server-one.xml, server-two.xml, etc) you can run many instances, each on it's own port. In each server.xml, make appropriate changes to things like the Context container, and then for each instance you want a startup script or in your case a .bat file that changes CLASSPATH appropriately and calls tomcat with a pointer to the appropriate server.xml file. I don't use tomcat on Windows, so I can't help you with specifics, but on a UN*X it's definitely something that can be done. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Nathan Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 10:00 PM To: Tomcat Users List Subject: Multiple Tomcats on one server Does anybody know if more than one tomcat can be installed on the same server at any one time, specifically Tomcat 3.3.1. Does it require just changing the environment variable for the dos window tomcat is started in and changing the port numbers that tomcat will listen for requests and sutdown signals on or is it more than that. Any suggestions will be appreciated. Nathan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: manager not accepting the username and password
In Tomcat 3.x you have to define the role admin. In Tomcat 4.x you have to define the role manager. mit freundlichen Grussen Galexis AG Beat Friedli . SW-Entwicklung (DDIS/ASW) Grubenstrasse 11 . CH-3322 Schoenbuehl tel: +41 (0)31 858 72 32 . fax: +41 (0)31 858 78 81 -Ursprungliche Nachricht- Von: Jacob Kjome [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 15:23 An: Tomcat Users List Betreff: Re: manager not accepting the username and password Not sure if this is true, but somewhere I read that you have to have both manager and admin roles assigned to the user attempting access to the manager context. Jake At 04:37 PM 6/14/2002 +0530, you wrote: Hi, I have installed my tomcat 4.0.3. i had changed the user name, password and role in tomcat-users.xml file to what i needed and that time it was working. Now when i give the same user id and password it is not accepting. I cant understand this weird behaviour. I have checked the tomcat-users file, and everything is fine as it should be. Please somebody could throw some light on where i must have gone wrong. Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1031 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: web.xml how-to
http://developer.java.sun.com/developer/Books/javaserverpages/servlets_javas erver/servlets_javaserver05.pdf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP
Hi, I had the same issue but with using FORM. Do we have to set the REALM if we use form? Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: Friedli Beat [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:57 AM To: 'Tomcat Users List' Subject: AW: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP I have the same problem as Sankaranarayanan. I may give you more detailed Information about the problem IIS / manager-application: The authentication is correctly installed. Prove: When using http://localhost:8080/manager the application works fine. Only when using the adress http://www.aWebSiteOnIISWithRederectionToTomcat.com/manager we get the access denied message. mit freundlichen Grussen Galexis AG Beat Friedli . SW-Entwicklung (DDIS/ASW) Grubenstrasse 11 . CH-3322 Schoenbuehl tel: +41 (0)31 858 72 32 . fax: +41 (0)31 858 78 81 -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Juni 2002 20:28 An: Tomcat Users List Betreff: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP Oh ok. You mentioned in your first email that tomcat does seem to be throw the challenge response box. Well as for the redirector, I don't know much about it. I don't use IIS. Sorry. Also quoting your first email, you said that you get Access to the specified resource is denied which almost implies that the request is reaching Tomcat. But to confirm, check the logs. Maybe the problem is with Tomcat and not with the redirector. RS Sankaranarayanan (Ganesh) Ganapathy [EMAIL PROTECTED] on 06/13/2002 12:39:43 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP No, basic authentication doesnt work in the redirector case atleast with IIS - The challenge response box doesnt come up ! I am trying to solve this for over a week now and I hardly see any response - has anybody got this working at all? - Can the redirector developers help, PLEASE? --Ganesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 10:36 AM To: Tomcat Users List Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP Maybe I'm missed something in your email. Since you are getting the authentication dialog box, BASIC authentication works, right? If you don't know the username/password, then see the tomcat-users.xml file in %CATALINA_HOME%/conf directory. Add a line for the manager app: tomcat-users ... ... user name=mymanager password=mymanager roles=manager / /tomcat-users Hope this helps. RS Sankaranarayanan (Ganesh) Ganapathy [EMAIL PROTECTED] on 06/13/2002 12:29:35 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with this for overaweek now - PL HELP It is privileged as well as configured to use basic authentication! It is the basic authentication that I cant get to work with IIS and tomcat connected using the AJP redirector! thanx Ganesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 10:26 AM To: Tomcat Users List Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this for overaweek now - PL HELP If you have the examples working with IIS, the Manager context will behave the same way (except that it's is privileged) since it's a web application itself. See Context entry for manager in server.xml. RS Sankaranarayanan (Ganesh) Ganapathy [EMAIL PROTECTED] on 06/13/2002 12:16:45 PM Please respond to Tomcat Users List [EMAIL PROTECTED]
Re: Other question
I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: --- #!/usr/local/bin/perl open (PIDFILE, logs/tomcat.pid); print PIDFILE getppid(); close (PIDFILE); I also had to give fully qualified paths in both the Perl script and in Runtime.getRuntime().exec() to get it to find the correct files. Use the original Java class that Tim wrote and just point it to the Perl script. Also, just call the Perl script--you don't need to call /bin/sh first. Make sure to chmod the script to executable, too. Thanks for the Java code, Tim. It works great now. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 07:26AM Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Versisign Global Certificate and Tomcat 4.0.3?
My company requires we use Verisign Global Certificates and I'm currently running Tomcat 4.0.3 in standalone mode. Is it possible to install a global certificate into Tomcat stand alone? Anyone out there doing it? Thanks, Ryan
Re: Fw: Other question
Hi , excuse me, but the function getppid() ? What is this? Can you send me? Thanks a lot Laura Alle 16:20, venerdì 14 giugno 2002, hai scritto: - Original Message - From: Joel Sather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 4:05 PM Subject: Re: Other question I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: - - - #!/usr/local/bin/perl open (PIDFILE, logs/tomcat.pid); print PIDFILE getppid(); close (PIDFILE); - - -- I also had to give fully qualified paths in both the Perl script and in Runtime.getRuntime().exec() to get it to find the correct files. Use the original Java class that Tim wrote and just point it to the Perl script. Also, just call the Perl script--you don't need to call /bin/sh first. Make sure to chmod the script to executable, too. Thanks for the Java code, Tim. It works great now. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 07:26AM Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- +---+ Software Engineer - Spinetti Marco Italia OnLine Spa - Wind Tel: 050 - 944264 Italy +---+ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Fw: Other question
Hi, can you send me the function too? The perl script can be the solution. Thanks Laura Alle 16:31, venerdì 14 giugno 2002, hai scritto: Hi , excuse me, but the function getppid() ? What is this? Can you send me? Thanks a lot Laura Alle 16:20, venerdì 14 giugno 2002, hai scritto: - Original Message - From: Joel Sather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 4:05 PM Subject: Re: Other question I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: --- -- - - #!/usr/local/bin/perl open (PIDFILE, logs/tomcat.pid); print PIDFILE getppid(); close (PIDFILE); --- -- - -- I also had to give fully qualified paths in both the Perl script and in Runtime.getRuntime().exec() to get it to find the correct files. Use the original Java class that Tim wrote and just point it to the Perl script. Also, just call the Perl script--you don't need to call /bin/sh first. Make sure to chmod the script to executable, too. Thanks for the Java code, Tim. It works great now. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 07:26AM Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
Or you could just download netbeans. It's free. CVS integration, JPDA debugger, ant integration. Total cost: nada, nothing, zilch, zippo. Am I glad it is friday. ;-) Larry [EMAIL PROTECTED] 06/14/02 07:46 AM I agree. You don't need $3000 IDEs. I use UltraEdit + JSwat + Ant + WinCVS. Total cost: $30. Make sure to take advantage of the configurable tools in your editor, if it has any. I can launch Tomcat, Postgres, JUnit, and compile, run, clean, you name it all from within UltraEdit. Some of my coworkers like JBuilder but they seem to struggle with it sometimes because you have to do everything the JBuilder way. I do everything the John way. Total cost: priceless. john -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]. org]On Behalf Of Joel Sather Sent: Thursday, June 13, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: RE: [offtopic] IDE for Tomcat? Personally, I don't need code completion and stuff so I just use a simple editor and then ANT to do the builds. I need to deploy on a different machine so I just check the file into CVS and run ANT on the server (does the pull from CVS and then compiles into my JAR). Once the build and deployment are done, if you have Tomcat setup right it recognizes the new JAR has been uploaded. Very slick. Anyway, it really depends on which features you need from your IDE. I can do everything I need with ANT and vi if I have to now. :) -J Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Fw: Other question
getppid() is a library function, it should already be on your system. It's like printf(), gethostbyname(), etc. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:37 AM To: Tomcat Users List Subject: Re: Fw: Other question Hi, can you send me the function too? The perl script can be the solution. Thanks Laura Alle 16:31, venerdì 14 giugno 2002, hai scritto: Hi , excuse me, but the function getppid() ? What is this? Can you send me? Thanks a lot Laura Alle 16:20, venerdì 14 giugno 2002, hai scritto: - Original Message - From: Joel Sather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 4:05 PM Subject: Re: Other question I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: --- -- - - #!/usr/local/bin/perl open (PIDFILE, logs/tomcat.pid); print PIDFILE getppid(); close (PIDFILE); --- -- - -- I also had to give fully qualified paths in both the Perl script and in Runtime.getRuntime().exec() to get it to find the correct files. Use the original Java class that Tim wrote and just point it to the Perl script. Also, just call the Perl script--you don't need to call /bin/sh first. Make sure to chmod the script to executable, too. Thanks for the Java code, Tim. It works great now. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 07:26AM Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Other question
What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Other question
Well in the stage I have linux, but in the production solaris 8. Is there any difference? Laura Alle 16:40, venerdì 14 giugno 2002, hai scritto: What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cant compile tomcat 4.0.3 as a module to apache 2.0
John I dont think it can be apache 1.3 because I built the box without apache and compiled from source. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 8:25 AM To: 'Tomcat Users List' Subject: RE: Cant compile tomcat 4.0.3 as a module to apache 2.0 I think you might be dragging in the wrong apxs. As far as I know, /usr/sbin/apxs is the apxs for Apache 1.3. If you've installed Apache 2, the apxs you want should be somewhere like $APACHE_HOME/bin. I don't have access to my apache 2 box at the moment, but I got a similar error and solved it by not using /usr/sbin/apxs and instead explicitly declaring the one under the Apache 2 directory. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 7:36 PM To: 'Tomcat Users List' Subject: Cant compile tomcat 4.0.3 as a module to apache 2.0 I am also getting the following when trying to install tomcat as a module to apache 2.36 Apache compile: EAPI_MM=SYSTEM OPTIM=-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache --includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf --localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man --enable-so --with-apxs cd /tmp/{tomcat_connector}/webapp support/buildconf.sh I get the following error: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... --- All done I downloaded apr_20020612223008.tar.gz untar cd apr ./configure make cd /tmp/{tomcat_connector}/webapp ./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr but still getting error: checking for Apache apxs... yes sh: /usr/bin/envvars: No such file or directory apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/sbin/httpd'.. configure: error: /include not found. Use --with-apr-include=DIR. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Other question
Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: Tomcat Users List Subject: AW: Other question What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Fw: Other question
Yeah, the function getppid() is a function built into Perl. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 09:39AM getppid() is a library function, it should already be on your system. It's like printf(), gethostbyname(), etc. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:37 AM To: Tomcat Users List Subject: Re: Fw: Other question Hi, can you send me the function too? The perl script can be the solution. Thanks Laura Alle 16:31, venerdì 14 giugno 2002, hai scritto: Hi , excuse me, but the function getppid() ? What is this? Can you send me? Thanks a lot Laura Alle 16:20, venerdì 14 giugno 2002, hai scritto: - Original Message - From: Joel Sather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 4:05 PM Subject: Re: Other question I tried to run Tim's original sh script under Solaris and it wouldn't give me anything, so I wrote a version in Perl. My script looks like this: --- -- - - #!/usr/local/bin/perl open (PIDFILE, logs/tomcat.pid); print PIDFILE getppid(); close (PIDFILE); --- -- - -- I also had to give fully qualified paths in both the Perl script and in Runtime.getRuntime().exec() to get it to find the correct files. Use the original Java class that Tim wrote and just point it to the Perl script. Also, just call the Perl script--you don't need to call /bin/sh first. Make sure to chmod the script to executable, too. Thanks for the Java code, Tim. It works great now. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-917-4719 [EMAIL PROTECTED] 06/14/02 07:26AM Welcome to PID hell! I have this working on HPUX, if you are trying this on another UNIX - I'm not sure what may happen but here are some hints to track things down. 1) Make sure the directory you are starting tomcat you are typing bin/startup.sh. This ensures you will write the the correct log directory. 2) My original version of the script was: #!/bin/sh echo $PPID logs/tomcat.pid This printed out the wrong PID since the first line created an extra shell process for the script to execute in. I wonder if Runtime.getRuntime().exec is creating an extra process which would cause you to get the wrong pid. If that is the case - I can't be of help. A Google search will probably provide a better solution than mine for determining process id of a java program. -Tim Laura wrote: Hi, I have installed your code in my Tomcat (4.0.2 + apache). But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: bash: kill: (3977) - No such pid Where is the problem? Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cant compile tomcat 4.0.3 as a module to apache 2.0
Sorry, but that doesn't make a whole lot of sense. Your first message specifically says when trying to install tomcat as a module to apache 2.36. So how can you have a box without apache if what you're trying to do is install mod_webapp as a connector??? You might also want to try getting and building APR via CVS, as it explains in the mod_webapp README.txt file, instead of downloading and untarring. Seriously, do a find on your system and look for apxs. My guess is you have two apxs's out there, and the one you're pulling in (/usr/sbin/apxs) isn't the one you want for apache 2. You want the other one. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Cant compile tomcat 4.0.3 as a module to apache 2.0 John I dont think it can be apache 1.3 because I built the box without apache and compiled from source. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 8:25 AM To: 'Tomcat Users List' Subject: RE: Cant compile tomcat 4.0.3 as a module to apache 2.0 I think you might be dragging in the wrong apxs. As far as I know, /usr/sbin/apxs is the apxs for Apache 1.3. If you've installed Apache 2, the apxs you want should be somewhere like $APACHE_HOME/bin. I don't have access to my apache 2 box at the moment, but I got a similar error and solved it by not using /usr/sbin/apxs and instead explicitly declaring the one under the Apache 2 directory. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 7:36 PM To: 'Tomcat Users List' Subject: Cant compile tomcat 4.0.3 as a module to apache 2.0 I am also getting the following when trying to install tomcat as a module to apache 2.36 Apache compile: EAPI_MM=SYSTEM OPTIM=-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache --includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf --localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man --enable-so --with-apxs cd /tmp/{tomcat_connector}/webapp support/buildconf.sh I get the following error: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... --- All done I downloaded apr_20020612223008.tar.gz untar cd apr ./configure make cd /tmp/{tomcat_connector}/webapp ./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr but still getting error: checking for Apache apxs... yes sh: /usr/bin/envvars: No such file or directory apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/sbin/httpd'.. configure: error: /include not found. Use --with-apr-include=DIR. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Other question
That's a good tip! Thanks! John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics
Re: [offtopic] IDE for Tomcat?
I use Eclipse (www.eclipse.org) which has very cool support for refactoring: I use Struts so I do more bean coding than HTML editing and I do need support for refactoring sometimes. Also it has wonderful integration with Junit: I can actually test my servlets from the IDE. The Tomcat plugin will even edit your server.xml file (if you allow that) and the context for your app. The downside is that it uses huge amounts of memory (need at least 256MB) and has a fairly steep learning curve at the beginning. No support for ssh... And if you want to be able to start and stop Tomcat from the IDE Tomcat must be on localhost. If you do all of your stuff inside jsps (no servlets) then DreamWeaver MX could be a good pick too. HTH, umberto Cindy Ballreich wrote: I was wondering what kind of IDEs people were using for Tomcat development? Any recomendations for someone who's been developing on linux from a NT desktop via ssh? (vi has it's charms, but there's got to be a better way!) Anything to avoid? Thanks Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED] Tel. 049-8239380 (assistenza) We'll try to make different mistakes this time. - Larry Wall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Versisign Global Certificate and Tomcat 4.0.3?
http://www.comu.de/docs/tomcat_ssl.htm change the defaults alias to 'tomcat' and ie. password=changeit. -Ursprungliche Nachricht- Von: Ryan Cornia [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 16:22 An: [EMAIL PROTECTED] Betreff: Versisign Global Certificate and Tomcat 4.0.3? My company requires we use Verisign Global Certificates and I'm currently running Tomcat 4.0.3 in standalone mode. Is it possible to install a global certificate into Tomcat stand alone? Anyone out there doing it? Thanks, Ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
At 06:53 AM 6/14/02 +0200, Nikola Milutinovic wrote: Yes, and it should work - but it doesn't. For most of us, DataSource is null and nothing apperas in the logs. Question: where is your JDBC driver currently located? I got the same result until I moved it from WEB_INF/lib/ to $CATALINA_HOME/common/lib/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [offtopic] IDE for Tomcat?
Umberto Nicoletti wrote: I use Eclipse (www.eclipse.org) which has very cool support for refactoring: I use Struts so I do more bean coding than HTML editing and I do need support for refactoring sometimes. Also it has wonderful integration with Junit: I can actually test my servlets from the IDE. The Tomcat plugin will even edit your server.xml file (if you allow that) and the context for your app. The downside is that it uses huge amounts of memory (need at least 256MB) and has a fairly steep learning curve at the beginning. No support for ssh... And if you want to be able to start and stop Tomcat from the IDE Tomcat must be on localhost. If you do all of your stuff inside jsps (no servlets) then DreamWeaver MX could be a good pick too. HTH, umberto Cindy Ballreich wrote: I was wondering what kind of IDEs people were using for Tomcat development? Any recomendations for someone who's been developing on linux from a NT desktop via ssh? (vi has it's charms, but there's got to be a better way!) Anything to avoid? Thanks Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Try using Nedit, It has syntax highlighting for just about everything and macros for compiling and other little features. It;s available as an rpm or source from any Linux site. If you have to use NT though, try and using Ultra Edit. I think it costs $30 bucks. Dave H
AW: AW: Other question
Yes linux has a complete different process model: Every thread has it's own pid. The PID you get is at best the one of the thread that is used to run the servlet. Chances are high that this thread doesn't live anymore. The worst that can happen, is that the pid is reassigned to a complete different program (if your server runs long enough). If you kill that you might get unpredicted results. Have a look at your linux system with pstree -ap I don't know if such tool is part of solaris, if not you can get one here: http://www.sunfreeware.com/programlistsparc8.html#pstree I see two better options - use one of the ports that is used by tomcat, get the pid and go on. - Use a comand line argument to identify the java instance and use a combination of ps and grep to identify the pid (That's the way we handle our sites for 3 years now) -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 16:44 An: Tomcat Users List Betreff: Re: AW: Other question Well in the stage I have linux, but in the production solaris 8. Is there any difference? Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Expiring a page on Apache/Tomcat
Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
listing directories in tomcat
how can i forbid the directories listing in tomcat? thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Expiring a page on Apache/Tomcat
I think you have to provide a bit more info. What do you mean with doesn't work ? Which browser version do you use ? Which apache version do you use ? Which tomcat version do you use ? Which connector do you use ? -Ursprüngliche Nachricht- Von: Mariela Schafer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:03 An: '[EMAIL PROTECTED]' Betreff: Expiring a page on Apache/Tomcat Wichtigkeit: Hoch Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: listing directories in tomcat
Which Version? In TC4 you have an entry in the web.xml in your conf dir. init-param param-namelistings/param-name param-valuetrue/param-value /init-param Set this value to false. That's it. -Ursprüngliche Nachricht- Von: Carlos [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:08 An: Tomcat Users List Betreff: listing directories in tomcat how can i forbid the directories listing in tomcat? thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expiring a page on Apache/Tomcat
Hi I have tried the code % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % for not cacheing. But it is not working. Could you please help in solving my problem. I am using Internet Explorer 5.0 and Apache Tomcat/4.0.1. I put this code at the starting of the JSP page. Please suggest me solution for my problem -Mensaje original- De: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:16 Para: Tomcat Users List Asunto: AW: Expiring a page on Apache/Tomcat I think you have to provide a bit more info. What do you mean with doesn't work ? Which browser version do you use ? Which apache version do you use ? Which tomcat version do you use ? Which connector do you use ? -Ursprüngliche Nachricht- Von: Mariela Schafer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:03 An: '[EMAIL PROTECTED]' Betreff: Expiring a page on Apache/Tomcat Wichtigkeit: Hoch Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expiring a page on Apache/Tomcat
I would recommend upgrading your browser, first of all...5.0 is broken in many, many places, as are it's minor versions (5.01, etc). Also, the Cache-Control header is not a browser directive, and neither is the Expires header. Both headers are for content caches, not browsers (RFC 2616, I believe). By content caches I mean things like Inktomi's TrafficServer cache and products like it, which ISPs use to cut down on bandwidth usage. As far as I know, the only caching header that is a browser directive is Pragma: no-cache and even that is shaky, especially on IE 5.0. Make sure, in your browser, that you have Tools-InternetOptions-General-TemporaryInternetFiles/Settings set to Every visit to the page. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Mariela Schafer [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:19 AM To: 'Tomcat Users List' Subject: RE: Expiring a page on Apache/Tomcat Hi I have tried the code % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % for not cacheing. But it is not working. Could you please help in solving my problem. I am using Internet Explorer 5.0 and Apache Tomcat/4.0.1. I put this code at the starting of the JSP page. Please suggest me solution for my problem -Mensaje original- De: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:16 Para: Tomcat Users List Asunto: AW: Expiring a page on Apache/Tomcat I think you have to provide a bit more info. What do you mean with doesn't work ? Which browser version do you use ? Which apache version do you use ? Which tomcat version do you use ? Which connector do you use ? -Ursprüngliche Nachricht- Von: Mariela Schafer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:03 An: '[EMAIL PROTECTED]' Betreff: Expiring a page on Apache/Tomcat Wichtigkeit: Hoch Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expiring a page on Apache/Tomcat
I think Tomcat 3.2.1 and some of the later versions had this bug. -Mensaje original- De: Turner, John [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:29 Para: 'Tomcat Users List' Asunto: RE: Expiring a page on Apache/Tomcat I would recommend upgrading your browser, first of all...5.0 is broken in many, many places, as are it's minor versions (5.01, etc). Also, the Cache-Control header is not a browser directive, and neither is the Expires header. Both headers are for content caches, not browsers (RFC 2616, I believe). By content caches I mean things like Inktomi's TrafficServer cache and products like it, which ISPs use to cut down on bandwidth usage. As far as I know, the only caching header that is a browser directive is Pragma: no-cache and even that is shaky, especially on IE 5.0. Make sure, in your browser, that you have Tools-InternetOptions-General-TemporaryInternetFiles/Settings set to Every visit to the page. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Mariela Schafer [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:19 AM To: 'Tomcat Users List' Subject: RE: Expiring a page on Apache/Tomcat Hi I have tried the code % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % for not cacheing. But it is not working. Could you please help in solving my problem. I am using Internet Explorer 5.0 and Apache Tomcat/4.0.1. I put this code at the starting of the JSP page. Please suggest me solution for my problem -Mensaje original- De: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:16 Para: Tomcat Users List Asunto: AW: Expiring a page on Apache/Tomcat I think you have to provide a bit more info. What do you mean with doesn't work ? Which browser version do you use ? Which apache version do you use ? Which tomcat version do you use ? Which connector do you use ? -Ursprüngliche Nachricht- Von: Mariela Schafer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:03 An: '[EMAIL PROTECTED]' Betreff: Expiring a page on Apache/Tomcat Wichtigkeit: Hoch Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Other question
Just for clarification, doing tomcat.pid wouldn't really work, because all you would get is the ps entry for that value. You'd have to use cut or awk and grab the actual PID from the PID column in the listing that resulted from ps -ef | grep java | grep myapp and redirect it to tomcat.pid. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: Tomcat Users List Subject: AW: Other question What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A performance issue about Apache/Tomcat on NT.
Hi all: I'm new to this email list, and my question may appear old or innocent to you. Anyway, here is my question. I have an envoronment with Apache 1.2/Tomcat 3.1 running on NT4.0 servers. Yes, it's kinda old. The behavior is after the web/app servers were on for a period of time, let's say, 20 days, it's getting slower. And now, the time for it's getting slower becomes shorter, it's like 3 days. I don't know if it's something special for Apache/Tomcat on NT server box or it even happens on Unix flavors. Is it due to memory leak, or some other problems/bugs of Apache/Tomcat, JVM , NT ?? I need help. I hope someone can point out to me where the problem(s) is, and what's the best solution. Maybe all the related bugs have been fixed in more recent releases of Tomcat/Apache/NT SPs ?? Any info would be helpful. Thanks. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A performance issue about Apache/Tomcat on NT.
It's definitely not a UNIX thing, I have that environment in production right now on RH 7.2 and do not experience those problems. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Bing Zhang [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:46 AM To: 'Tomcat Users List' Subject: A performance issue about Apache/Tomcat on NT. Hi all: I'm new to this email list, and my question may appear old or innocent to you. Anyway, here is my question. I have an envoronment with Apache 1.2/Tomcat 3.1 running on NT4.0 servers. Yes, it's kinda old. The behavior is after the web/app servers were on for a period of time, let's say, 20 days, it's getting slower. And now, the time for it's getting slower becomes shorter, it's like 3 days. I don't know if it's something special for Apache/Tomcat on NT server box or it even happens on Unix flavors. Is it due to memory leak, or some other problems/bugs of Apache/Tomcat, JVM , NT ?? I need help. I hope someone can point out to me where the problem(s) is, and what's the best solution. Maybe all the related bugs have been fixed in more recent releases of Tomcat/Apache/NT SPs ?? Any info would be helpful. Thanks. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expiring a page on Apache/Tomcat
HELP!! I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. -Mensaje original- De: Mariela Schafer Enviado el: viernes, 14 de junio de 2002 12:34 Para: 'Tomcat Users List' Asunto: RE: Expiring a page on Apache/Tomcat I think Tomcat 3.2.1 and some of the later versions had this bug. -Mensaje original- De: Turner, John [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:29 Para: 'Tomcat Users List' Asunto: RE: Expiring a page on Apache/Tomcat I would recommend upgrading your browser, first of all...5.0 is broken in many, many places, as are it's minor versions (5.01, etc). Also, the Cache-Control header is not a browser directive, and neither is the Expires header. Both headers are for content caches, not browsers (RFC 2616, I believe). By content caches I mean things like Inktomi's TrafficServer cache and products like it, which ISPs use to cut down on bandwidth usage. As far as I know, the only caching header that is a browser directive is Pragma: no-cache and even that is shaky, especially on IE 5.0. Make sure, in your browser, that you have Tools-InternetOptions-General-TemporaryInternetFiles/Settings set to Every visit to the page. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Mariela Schafer [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:19 AM To: 'Tomcat Users List' Subject: RE: Expiring a page on Apache/Tomcat Hi I have tried the code % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % for not cacheing. But it is not working. Could you please help in solving my problem. I am using Internet Explorer 5.0 and Apache Tomcat/4.0.1. I put this code at the starting of the JSP page. Please suggest me solution for my problem -Mensaje original- De: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 14 de junio de 2002 12:16 Para: Tomcat Users List Asunto: AW: Expiring a page on Apache/Tomcat I think you have to provide a bit more info. What do you mean with doesn't work ? Which browser version do you use ? Which apache version do you use ? Which tomcat version do you use ? Which connector do you use ? -Ursprüngliche Nachricht- Von: Mariela Schafer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 17:03 An: '[EMAIL PROTECTED]' Betreff: Expiring a page on Apache/Tomcat Wichtigkeit: Hoch Hi All, I am trying to expire a page on Tomcat Apache In my JSP code I have set this up % response.setDateHeader (Expires, 0); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-store); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); % But when I run it on Apache/Tomcat it does not work. Why ?? Mariela -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A performance issue about Apache/Tomcat on NT.
If you suspect a memory leak, you can us perfmon to monitor specific processes. Select process as the performance object, then monitor the Pool Paged Bytes and Pool Non-paged Bytes of the suspected processes. [EMAIL PROTECTED] 06/14/02 10:46AM Hi all: I'm new to this email list, and my question may appear old or innocent to you. Anyway, here is my question. I have an envoronment with Apache 1.2/Tomcat 3.1 running on NT4.0 servers. Yes, it's kinda old. The behavior is after the web/app servers were on for a period of time, let's say, 20 days, it's getting slower. And now, the time for it's getting slower becomes shorter, it's like 3 days. I don't know if it's something special for Apache/Tomcat on NT server box or it even happens on Unix flavors. Is it due to memory leak, or some other problems/bugs of Apache/Tomcat, JVM , NT ?? I need help. I hope someone can point out to me where the problem(s) is, and what's the best solution. Maybe all the related bugs have been fixed in more recent releases of Tomcat/Apache/NT SPs ?? Any info would be helpful. Thanks. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Hi, Cindy Yes, and it should work - but it doesn't. For most of us, DataSource is null and nothing apperas in the logs. Question: where is your JDBC driver currently located? I got the same result until I moved it from WEB_INF/lib/ to $CATALINA_HOME/common/lib/ thanks for your hint. I moved my driver to $CATALINA_HOME/common/lib/. But it makes no difference. There is still no connection to the DB. :-(( Anyone else with better testing results? Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Other question
Hi, Yepp, you're right ;) Forgot that part. For us on Solaris 2.8 it's ps -ef | grep java | grep myapp | awk '{print $2}' Yoav Shapira Millennium ChemInformatics -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:41 AM To: 'Tomcat Users List' Subject: RE: Other question Just for clarification, doing tomcat.pid wouldn't really work, because all you would get is the ps entry for that value. You'd have to use cut or awk and grab the actual PID from the PID column in the listing that resulted from ps -ef | grep java | grep myapp and redirect it to tomcat.pid. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: Tomcat Users List Subject: AW: Other question What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Other question
On linux, ps -ef | grep java | grep myapp | awk '{print $1}' I'm trying it. Laura Alle 17:59, venerdì 14 giugno 2002, hai scritto: Hi, Yepp, you're right ;) Forgot that part. For us on Solaris 2.8 it's ps -ef | grep java | grep myapp | awk '{print $2}' Yoav Shapira Millennium ChemInformatics -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:41 AM To: 'Tomcat Users List' Subject: RE: Other question Just for clarification, doing tomcat.pid wouldn't really work, because all you would get is the ps entry for that value. You'd have to use cut or awk and grab the actual PID from the PID column in the listing that resulted from ps -ef | grep java | grep myapp and redirect it to tomcat.pid. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: Tomcat Users List Subject: AW: Other question What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A performance issue about Apache/Tomcat on NT.
Oh, I wanted to add one thing: when I started the Tomcat, I added -Xmx256m into TOMCAT_OPTS, so that the JVM running Tomcat can take upto 256M of memory if needed. Does this have something to do with my performance issue that Apache\Tomcat is getting slower after running for 10-20 days ?? Bing -Original Message- From: Bing Zhang [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:46 AM To: 'Tomcat Users List' Subject: A performance issue about Apache/Tomcat on NT. Hi all: I'm new to this email list, and my question may appear old or innocent to you. Anyway, here is my question. I have an envoronment with Apache 1.2/Tomcat 3.1 running on NT4.0 servers. Yes, it's kinda old. The behavior is after the web/app servers were on for a period of time, let's say, 20 days, it's getting slower. And now, the time for it's getting slower becomes shorter, it's like 3 days. I don't know if it's something special for Apache/Tomcat on NT server box or it even happens on Unix flavors. Is it due to memory leak, or some other problems/bugs of Apache/Tomcat, JVM , NT ?? I need help. I hope someone can point out to me where the problem(s) is, and what's the best solution. Maybe all the related bugs have been fixed in more recent releases of Tomcat/Apache/NT SPs ?? Any info would be helpful. Thanks. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Other question
On Solaris, you can use 'pgrep' which will return the PID based upon a grep. Do a man on it; it has saved my bacon when writing process monitors. Ben Ricker Web Security System Administrator Wellinx.com On Fri, 2002-06-14 at 11:05, Laura wrote: On linux, ps -ef | grep java | grep myapp | awk '{print $1}' I'm trying it. Laura Alle 17:59, venerdì 14 giugno 2002, hai scritto: Hi, Yepp, you're right ;) Forgot that part. For us on Solaris 2.8 it's ps -ef | grep java | grep myapp | awk '{print $2}' Yoav Shapira Millennium ChemInformatics -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:41 AM To: 'Tomcat Users List' Subject: RE: Other question Just for clarification, doing tomcat.pid wouldn't really work, because all you would get is the ps entry for that value. You'd have to use cut or awk and grab the actual PID from the PID column in the listing that resulted from ps -ef | grep java | grep myapp and redirect it to tomcat.pid. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:45 AM To: Tomcat Users List Subject: RE: Other question Howdy, A relatively unix-flavor-independent way to do it is to give your process an identifier via the first argument, i.e. the first thing in CATALINA_OPTS, for example -Da=myapp. You would then do ps -ef | grep java | grep myapp tomcat.pid. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 10:41 AM To: Tomcat Users List Subject: AW: Other question What operating system do you have ? -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 13:59 An: Tomcat Users List Betreff: Re: Other question But it doesn't seem to be correct. It writes in tomcat.pid a PID that doesn't seem to be correct: I have tried to do: kill -9 PID (which is in the tomcat.pid) and the system tells me: -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A performance issue about Apache/Tomcat on NT.
Is it possible that the problem could be in your servlet/jsp application code, not in tomcat/apache/nt? What does the app do? Bing Zhang BZhang@7thonlin To: 'Tomcat Users List' [EMAIL PROTECTED] e.com cc: Subject: RE: A performance issue about Apache/Tomcat on NT. 06/14/2002 12:15 PM Please respond to Tomcat Users List Oh, I wanted to add one thing: when I started the Tomcat, I added -Xmx256m into TOMCAT_OPTS, so that the JVM running Tomcat can take upto 256M of memory if needed. Does this have something to do with my performance issue that Apache\Tomcat is getting slower after running for 10-20 days ?? Bing -Original Message- From: Bing Zhang [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:46 AM To: 'Tomcat Users List' Subject: A performance issue about Apache/Tomcat on NT. Hi all: I'm new to this email list, and my question may appear old or innocent to you. Anyway, here is my question. I have an envoronment with Apache 1.2/Tomcat 3.1 running on NT4.0 servers. Yes, it's kinda old. The behavior is after the web/app servers were on for a period of time, let's say, 20 days, it's getting slower. And now, the time for it's getting slower becomes shorter, it's like 3 days. I don't know if it's something special for Apache/Tomcat on NT server box or it even happens on Unix flavors. Is it due to memory leak, or some other problems/bugs of Apache/Tomcat, JVM , NT ?? I need help. I hope someone can point out to me where the problem(s) is, and what's the best solution. Maybe all the related bugs have been fixed in more recent releases of Tomcat/Apache/NT SPs ?? Any info would be helpful. Thanks. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [JK2] Binaries for win32
De: Ian Darwin [mailto:[EMAIL PROTECTED]] Enviado el: 14 de junio de 2002 19:14 Thanks, but why is there both an isapi_redirector2.dll and a mod_jk2.dll? Well, they are binaries, right ? :) For IIS you will need the apr ones and i_r2.dll.. only.. all in the same dir.. Does one invoke the other? Is there any kind of how-to for version 2 of this stuff? The iis-howto doc is all in terms of TC3 and the old jk version. Unfortunately, not, check CVS, http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native2/, but we all gathering volunteers all the time :)), dont hesitate to post at tomcat-user for further help on config , but there at the CVS you will get more or less all you need to make it work.. (Please continue theread at tomcat-user thanks..) Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT 4.0.3
Dear whomever it may concern, I was wondering if anybody could help regarding a class loading issue. This issue seems as if it was resolved in TOMCAT 4.0.4b - where a fix was made so that none of the classes in java were overridden. However, for certain reasons, I am restricted to use TOMCAT 4.0.3. My problem is in regards to using org.omg.CORBA.ORB class (this class with the same package name exists in rt.jar and my orb jar). I'm using JacORB with my web application, but I get the following error: java.lang.VerifyError: (class: org/jacorb/orb/ORB, method: interceptorInit signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.omg.CORBA.ORB.create(Unknown Source) at org.omg.CORBA.ORB.init(Unknown Source) I've traced the error to where the init method is called for the ORB, and made sure that the properties being passed to the init had the correct values for org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingleton. To make sure this was a class loader problem, I have removed the org.omg.CORBA.* from my jacorb.jar, and my application works fine. I've also modified the tomcat startup script to include the jacorb.jar in the classpath (from a dir other than the web application's lib directory), and that also works, but for certain reasons, I do not want to move the jacorb.jar elsewhere. Thus, I was wondering if there was any way to resolve this on the application end, without resorting to TOMCAT 4.0.4. -Yu-Chan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [offtopic] IDE for Tomcat?
I'm using Forte 4, which is now called Sun ONE Studio 4. I'm liking the new version a lot. It has better integration with Tomcat now. Plus, it has Tomcat 4. Functionality and response wise it seem to of improved. I've been using Forte, and now Sun ONE Studio 4, for about six months or so to develop servlets. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [JK2] Binaries for win32
Where do isapi_redirector2.dll and mod_jk2.dll live? There is nothing listed under the apr link from the jk/native2 link. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: June 14, 2002 10:34 AM To: 'Ian Darwin' Cc: 'tomcat-user' Subject: RE: [JK2] Binaries for win32 De: Ian Darwin [mailto:[EMAIL PROTECTED]] Enviado el: 14 de junio de 2002 19:14 Thanks, but why is there both an isapi_redirector2.dll and a mod_jk2.dll? Well, they are binaries, right ? :) For IIS you will need the apr ones and i_r2.dll.. only.. all in the same dir.. Does one invoke the other? Is there any kind of how-to for version 2 of this stuff? The iis-howto doc is all in terms of TC3 and the old jk version. Unfortunately, not, check CVS, http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native2/, but we all gathering volunteers all the time :)), dont hesitate to post at tomcat-user for further help on config , but there at the CVS you will get more or less all you need to make it work.. (Please continue theread at tomcat-user thanks..) Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: mapping upper-case to lower !
This would work, but mod_rewrite and mod_webapp interfere with each other - webapp grabs all URLs before rewrite has a chance to work on them... --- Ralph Einfeldt [EMAIL PROTECTED] wrote: Store all files in lower case and write a filter that tranforms any requested jsp name to lower case. (Of course the same works with upper case) But that requires that all (!!!) jsp files name have the same case. -Ursprüngliche Nachricht- Von: Walid Al-Abbadi [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Juni 2002 17:36 An: Tomcat Users List Betreff: Re: mapping upper-case to lower ! i know that easy solution .. but i want a general one to my application , so any user can type Capital/small letters to request the page without any limitation on only using small letters ! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [offtopic] IDE for Tomcat?
I've been a bit wary of Forte due to the whole bundling of Tomcat thing. Which version of Tomcat 4 is it? Is it a full version? Does it work with JDK1.4? And does it interfere at all with a standard installation of Tomcat 4? Thank you, Liam Morley [EMAIL PROTECTED] wrote: I'm using Forte 4, which is now called Sun ONE Studio 4. I'm liking the new version a lot. It has better integration with Tomcat now. Plus, it has Tomcat 4. Functionality and response wise it seem to of improved. I've been using Forte, and now Sun ONE Studio 4, for about six months or so to develop servlets. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Coyote JK 2
I want to use the Coyote JK 2 in a production environment? I am running apache 2.0.36, tomcat 4.0.3 on Solaris 7. They have builds v1.0-b1 to v1.0-b9 in the jakarta-tomcat-connectors/coyote/release directory. Which is the recommended build to connect apache and tomcat? Any suggestions would be appreciated Thanks. Z-Roc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TurbineResources.properties
Hello everyone, I hope everyone had a great week?? Anyway, I have installed Tomcat 4.03. And everything seems to work like a charm. All the example jsp/servlets work as they should. My question, why in the catalina.out file, do I get java.io.FileNotFoundException: null/WEB-INF/conf/TurbineResources.properties I never installed Turbine on my server. Should I? From the website it says Turbine is a servlet based framework that allows experienced Java developers to quickly build secure web applications Why is this error showing in my logs when I just have Tomcat? Thansk for the help.. --chad -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tuning Tomcat
Dear Friends, My team is working on deploy a heavy load transaction(1000 hits/sec) application on Apache and Tomcat. We are using HP-UX 9000. We are using load balancing feature of Tomcat. So far we have experienced that the loadbalancer runs out of memory. It would be nice if Tomcat would spawn multiple JVMs to cater to the requests. A single process can attach to up to 3 G of memory. If we could spawn three JVMs we could attach to 9 G of memory. Does any one of any idea or experience with this? Regards. Ravi Verma 916 705 3261 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jikes with tomcat 4.0.3???
Is this possible, i've googled, searched this mailing list, but can't turn up much info. Seems people are having trouble with UTF-8 encoding??? Thanks, Andy Miller [EMAIL PROTECTED]
tomcat 4 and Forte 3.0/Netbeans integration
Tomcat 3.2 is 'tightly integrated with' Forte for Java CE 3. I'm using Tomcat 4.x and want to debug some JSPs with Forte - anyone know how I can install Tomcat 4.x to run 'in' Forte? HSN __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [offtopic] IDE for Tomcat?
Howdy, jEdit. IntelliJ IDEA. Eclipse. I like them in that order (jEdit best), but I like them all more than Forte/SunONE ;) It's all about personal preferences, though, so whatever tickles your fancy. Yoav Shapira Millennium ChemInformatics -Original Message- From: Liam Morley [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:22 PM To: Tomcat Users List Subject: Re: [offtopic] IDE for Tomcat? I've been a bit wary of Forte due to the whole bundling of Tomcat thing. Which version of Tomcat 4 is it? Is it a full version? Does it work with JDK1.4? And does it interfere at all with a standard installation of Tomcat 4? Thank you, Liam Morley [EMAIL PROTECTED] wrote: I'm using Forte 4, which is now called Sun ONE Studio 4. I'm liking the new version a lot. It has better integration with Tomcat now. Plus, it has Tomcat 4. Functionality and response wise it seem to of improved. I've been using Forte, and now Sun ONE Studio 4, for about six months or so to develop servlets. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1/4.0 manager application
I'm facing a few problems with the Tomcat manager application.. 1. In 4.0.4, the install command copies the web app into the appBase directory.. in 4.1.3, the install does not do this; however the installed application is availble for use. After restarting Tomcat 4.1, the newly installed application is not visible. Am I doing something wrong here? or is it a bug in 4.1? 2. How do you pass the war file to the 4.1 deploy command? The documentation says - Upload the web application archive (WAR) file that is specified as the request data in this HTTP PUT . Umm.. how do I do this via a browser? On another train..what is the difference between what the install and deploy commands do? AFAIK, both seem to be installing and starting the app.. Thanks!!! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
building mod_jk under 3.3.1 for apache 2.0-series
I'm trying to build a native version (under xBSD) of mod_jk under tomcat-3.3.1 for my 2.0.36 apache server. I see that this is apparently possible given the existence of the .so under http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i386 for linux dists, but in the source under both the binary and src tomcat dists in native/mod_jk there is no specific 2.0-series server directory. My question is how was the mod_jk for apache 2.x under tomcat 3.3.1 built? I gave the 1.3 directory a shot but as you might expect there are several header include (amongst other) issues. Thanks for any pointers you might have. I'm relatively new to some of these packages and may have missed something obvious but in poking around I haven't been able to make anything fly. -Colin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1/4.0 manager application
My understanding is that everything you see from Install is a feature, not a bug. It's a bit strange, but that's what it's spec'd out to do. The difference with Deploy is that it installs the app permanently. Not sure about how to upload the file through the manager web application. I know you can do it (as well as Install, Reload etc) in 4.1 via one of the new Ant taskdefs.. you might check those out. Sam Ewing java_developer99 To: [EMAIL PROTECTED] @yahoo.com cc: Subject: Tomcat 4.1/4.0 manager application 06/14/2002 03:00 PM Please respond to Tomcat Users List I'm facing a few problems with the Tomcat manager application.. 1. In 4.0.4, the install command copies the web app into the appBase directory.. in 4.1.3, the install does not do this; however the installed application is availble for use. After restarting Tomcat 4.1, the newly installed application is not visible. Am I doing something wrong here? or is it a bug in 4.1? 2. How do you pass the war file to the 4.1 deploy command? The documentation says - Upload the web application archive (WAR) file that is specified as the request data in this HTTP PUT . Umm.. how do I do this via a browser? On another train..what is the difference between what the install and deploy commands do? AFAIK, both seem to be installing and starting the app.. Thanks!!! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [JK2] Binaries for win32
De: Short, Dave [mailto:[EMAIL PROTECTED]] Enviado el: 14 de junio de 2002 19:48 Where do isapi_redirector2.dll and mod_jk2.dll live? There is nothing listed under the apr link from the jk/native2 link. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w in32/ Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Hi I've posted a solution see Generic DataSource Resource Factory Available. JDBC Data Source on the tomcat user maillist. See also Updated. Generic DataSource Resource Factory. Available. JDBC Data Source , for an update to the readme for Pool Oracle connections. Tony - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 14, 2002 9:03 AM Subject: Re: Connection pooling doesn't work for me ... Help !! Hi, Cindy Yes, and it should work - but it doesn't. For most of us, DataSource is null and nothing apperas in the logs. Question: where is your JDBC driver currently located? I got the same result until I moved it from WEB_INF/lib/ to $CATALINA_HOME/common/lib/ thanks for your hint. I moved my driver to $CATALINA_HOME/common/lib/. But it makes no difference. There is still no connection to the DB. :-(( Anyone else with better testing results? Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Does Jakarta have a connection pooling project?
Hi I've posted a solution see Generic DataSource Resource Factory Available. JDBC Data Source on the tomcat user maillist. See also Updated. Generic DataSource Resource Factory. Available. JDBC Data Source , for an update to the readme for Pool Oracle connections. Tony - Original Message - From: John McNally [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 5:35 PM Subject: Re: Does Jakarta have a connection pooling project? On Thu, 2002-06-13 at 16:53, [EMAIL PROTECTED] wrote: Is there a connection pooling project in Jakarta that I can use for database connection pooling? I've found the pool component under Jakarta Commons, but is that the only one? There is DBCP in commons. I'm not sure if that is what you meant by the pool component as there is also a Pool component that is general object pooling. DBCP contains BasicDataSource, which iirc is the default connection pool that ships with the latest catalina code. There is also Jdbc2Pool located in jakarta-commons-sandbox. It uses a ConnectionPoolDataSource as its source of connections as opposed a Driver as BasicDataSource does. I would say it is better featured than BasicDataSource, but I am the author. It can be more complex to configure. john mcnally -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Missing attributes - TC Bugs?
I am currently using TC4.0.4.b2 and experienced a strange situation. In my current project, a context listener initiates a DB connection pool and save it in the servlet context while the server is initiating; it also initiates an agent class when a session is up and save the instance in the session. A few day ago, I found for some unknown reason the connection pool was dereferred to null. Today, I find for an unknown reason the agent instance can not be retrieved. Do they caused by some bugs in TC? The following error is related with the problem, but the message doesn't show all of time when the problem occures. 2002-06-14 05:40:59 StandardManager[/mm] Exception loading sessions from persistent storage java.io.InvalidClassException: com.vernonwu.match.controller.web.MatchAgent; local class incompatible: stream classdesc serialVersionUID = 5047219192640347664, local class serialVersionUID = -7337541456441715806 Thanks for your help. Vernon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can't run JSP Samples on new Tomcat 4.0.3 install
Folks, I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3; there is an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS, and is based on the Apache HTTP Server - presumably V1.3). I ran into some port conflicts when I tried to start tomcat so I added 1 to all the port numbers in the conf file and then tomcat appeared to start and stop correctly. I next tried to exercise the servlet and JSP samples and I found that all the servlet samples worked fine but none of the JSP samples worked at all. Each JSP sample produced an output similar to the following: quoted_output === Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error TYPE Exception report MESSAGE Internal Server Error DESCRIPTION The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. EXCEPTION javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain. internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain. doFilter(ApplicationFilterChain.java:193) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) ROOT CAUSE java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler. compile(SunJavaCompiler.java(Compiled Code)) at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled Code)) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) === /quoted_output Since I am not yet a member of the illuminati, I cannot qickly determine what I failed to install or configure properly - and so any help would be appreciated. Incidentally there was a similar problem reported on 06/12 by pasiar at 13: 50:43; in that case it was on a Linux box and an HTTP 404 was emitted. Thanks in advance. Bernie Landman
Tomcat Performance is good!
I've recently been doing some fiddling with Tomcat. I've built a King James Bible search program. I based it off of my brother's perl bible search program. It outputs all identical HTML to the perl version. It was already out performing it by a couple of seconds on one particular search. The search for perl took about 6 seconds and the search in the J2EE version on tomcat took approx 4 seconds. With some code efficiency improvements, I've gotten that down to less than 3 seconds. Just thought you might all like to hear some good news about Tomcat. Tomcat 4.0.3 Apache 1.3.20 Perl 5.6.0 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Performance is good!
Let's hope that it will also work for applications without acts of god... -Message d'origine- De : Trenton D. Adams [mailto:[EMAIL PROTECTED]] Envoyé : sam. 15 juin 2002 0:06 À : 'Tomcat Users List' Objet : Tomcat Performance is good! I've recently been doing some fiddling with Tomcat. I've built a King James Bible search program. I based it off of my brother's perl bible search program. It outputs all identical HTML to the perl version. It was already out performing it by a couple of seconds on one particular search. The search for perl took about 6 seconds and the search in the J2EE version on tomcat took approx 4 seconds. With some code efficiency improvements, I've gotten that down to less than 3 seconds. Just thought you might all like to hear some good news about Tomcat. Tomcat 4.0.3 Apache 1.3.20 Perl 5.6.0 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.lang.NullPointerException at TldLocationsCache.processJars when running Tomcat 4.x built from sources
Dear Collegues ! I tried to build Tomcat 4.0.3 and then 4.1 (from cvs) and every time failing the same way (!) when running the built project. (running tomcat and pointing the browser to http://localhost:8080). The compilation run rather fine - just some depreciation warnings. I followed instructions in BUILT.txt. Please point me into the right direction. I know something went wrong. But what ? Has anybody similar problems ? There were some inconsistences: The downloaded jakarta-tomcat-connectors does not contain SystemLogHandler.class - I found it on the one downloaded from cvs. Also there were no # - Commons Logging, version 1.0.1 or later - in the location pointed in build.properties.sample file: commons-logging.loc=http://jakarta.apache.org/builds/jakarta-commons/release /commons-logging/v1.0.1/commons-logging-1.0.1.tar.gz I have found them also somewhere among cvs downloaded files. sincerely Olek Poznan, Poland System : w2k JDK: 1.4.0 ANT: 1.4.1 Tomcat 4.0.3 - source download Tomcat 4.1 from cvs javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94 7) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NullPointerException at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j ava:203) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 9) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at
Re: Can't run JSP Samples on new Tomcat 4.0.3 install
This has been discussed quite a few times :-) The solution is to either copy the tool.jar under JAVA_HOME/lib to CATALINA_HOME\common\lib or add it to the classpath. RS Bernard Landman [EMAIL PROTECTED] on 06/14/2002 03:54:16 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] [EMAIL PROTECTED] cc: Subject:Can't run JSP Samples on new Tomcat 4.0.3 install Folks, I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3; there is an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS, and is based on the Apache HTTP Server - presumably V1.3). I ran into some port conflicts when I tried to start tomcat so I added 1 to all the port numbers in the conf file and then tomcat appeared to start and stop correctly. I next tried to exercise the servlet and JSP samples and I found that all the servlet samples worked fine but none of the JSP samples worked at all. Each JSP sample produced an output similar to the following: quoted_output === Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error TYPE Exception report MESSAGE Internal Server Error DESCRIPTION The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. EXCEPTION javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain. internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain. doFilter(ApplicationFilterChain.java:193) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) ROOT CAUSE java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler. compile(SunJavaCompiler.java(Compiled Code)) at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled Code)) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) === /quoted_output Since I am not yet a member of the illuminati, I cannot qickly determine what I failed to install or configure properly - and so any help would be appreciated. Incidentally there was a similar problem reported on 06/12 by pasiar at 13: 50:43; in that case it was on a Linux box and an HTTP 404 was emitted. Thanks in advance. Bernie Landman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1/4.0 manager application
On Fri, 14 Jun 2002, Sam Ewing wrote: Date: Fri, 14 Jun 2002 13:00:25 -0700 (PDT) From: Sam Ewing [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 4.1/4.0 manager application I'm facing a few problems with the Tomcat manager application.. 1. In 4.0.4, the install command copies the web app into the appBase directory.. in 4.1.3, the install does not do this; however the installed application is availble for use. This is the correct behavior for the future -- it takes advantage of the fact that the docBase property of a context can be an absolute pathname. I use this feature for rapid development (coupled with the custom Ant tasks that talk to the Manager webapp, by installing the output directory of my build process. So, now my development cycle is: (1) ant compile (2) ant install (3) test things (4) fix something (5) ant compile reload (6) goto (3) until its time for a beer (7) ant remove and never have to shut down Tomcat for anything. (The only time you need to do a remove and install again is if you change web.xml - reload only pays attention to updated classes so that it can run faster.) The Application Developer's Guide that comes with 4.1.x explains this, and includes a nice build.xml file to start with. Besides supporting the Ant tasks described above, it automatically sets up your compile classpath to reflect the environment that will be present at runtime (for example, it adds all the JAR files in common/lib and the other shared directories). After restarting Tomcat 4.1, the newly installed application is not visible. Am I doing something wrong here? or is it a bug in 4.1? Saving the updated state (into server.xml) is a feature that is currently still being added -- I think you'll see that finished by 4.1.5. 2. How do you pass the war file to the 4.1 deploy command? The documentation says - Upload the web application archive (WAR) file that is specified as the request data in this HTTP PUT . Umm.. how do I do this via a browser? You don't -- it requires a client program. Simplest way, again, is to use the custom Ant deploy task which does all the nitty gritty for you. You can easily incorporate the execution of this into a shell script. On another train..what is the difference between what the install and deploy commands do? AFAIK, both seem to be installing and starting the app.. Install connects an unpacked directory, or a WAR file, directly to a running Tomcat installation. Because nothing has to be copied, this runs pretty quickly, and is ideal for development. However, the directory or WAR file has to be on the same machine that Tomcat is running on. Deploy lets you run a tool (or Ant script) on a separate computer. It takes longer because of the need to upload the WAR, but you can run it from anywhere, not just the same server. Over time, I expect to see management tools and IDEs incorporate support for using the deploy and undeploy features behind the scenes for you -- it makes for very easy Tomcat application management. Thanks!!! Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can't run JSP Samples on new Tomcat 4.0.3 install
tools.jar. Sorry! Slip of the finger :-) RS [EMAIL PROTECTED] on 06/14/2002 05:08:09 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Can't run JSP Samples on new Tomcat 4.0.3 install This has been discussed quite a few times :-) The solution is to either copy the tool.jar under JAVA_HOME/lib to CATALINA_HOME\common\lib or add it to the classpath. RS Bernard Landman [EMAIL PROTECTED] on 06/14/2002 03:54:16 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] [EMAIL PROTECTED] cc: Subject:Can't run JSP Samples on new Tomcat 4.0.3 install Folks, I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3; there is an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS, and is based on the Apache HTTP Server - presumably V1.3). I ran into some port conflicts when I tried to start tomcat so I added 1 to all the port numbers in the conf file and then tomcat appeared to start and stop correctly. I next tried to exercise the servlet and JSP samples and I found that all the servlet samples worked fine but none of the JSP samples worked at all. Each JSP sample produced an output similar to the following: quoted_output === Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error TYPE Exception report MESSAGE Internal Server Error DESCRIPTION The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. EXCEPTION javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain. internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain. doFilter(ApplicationFilterChain.java:193) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) ROOT CAUSE java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler. compile(SunJavaCompiler.java(Compiled Code)) at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled Code)) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) . . at org.apache.catalina.connector.http.HttpProcessor. process(HttpProcessor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor. run(HttpProcessor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:498) === /quoted_output Since I am not yet a member of the illuminati, I cannot qickly determine what I failed to install or configure properly - and so any help would be appreciated. Incidentally there was a similar problem reported on 06/12 by pasiar at 13: 50:43; in that case it was on a Linux box and an HTTP 404 was emitted. Thanks in advance. Bernie Landman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]