Tomcat log in linux
In Windows, when you run Tomcat, a DOS command line window pops up and you see real-time messages from Tomcat. If something isn't going right ... you see those messages. Is there something analogous in Linux/Tomcat? I'm trying to get the dumb thing running but I'm not seeing any debug info and the logs look relatively empty. Thanks. NEal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlet output returned as a file
Hi The servlet I am writing is working 100% the problem is that the servlet output which goes to java.io.PrintWriter out = response.getWriter(); is returned as a file. The browser insted of showing the html is asking me to save it to disk. When I am looking at the file everything is fine the html is perfect and if I am trying to open it from the file system it looks good any sugestion Thanks in advance Nehemia Litterat - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
Re: Servlet output returned as a file
Helloo Nehemia, I suggest setting the ContentType of the response to something that fit's your data. response.setContentType(text/html); Otherwise some Browsers (Netscape 6.2 for example) treat no content as binary a.f.a.i.k Hope that helps, Jan Nehemia Litterat To: [EMAIL PROTECTED] nlitterat@yah cc: oo.com Subject: Servlet output returned as a file 26.08.2002 09:03 Please respond to Tomcat Users List Hi The servlet I am writing is working 100% the problem is that the servlet output which goes to java.io.PrintWriter out = response.getWriter(); is returned as a file. The browser insted of showing the html is asking me to save it to disk. When I am looking at the file everything is fine the html is perfect and if I am trying to open it from the file system it looks good any sugestion Thanks in advance Nehemia Litterat - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet output returned as a file
What did you set the Content-type as? It should be test to html/text. If it is set to a type not supported by your browser it may ask you to save it as a file. Neal -Original Message- From: Nehemia Litterat [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 12:03 AM To: [EMAIL PROTECTED] Subject: Servlet output returned as a file Hi The servlet I am writing is working 100% the problem is that the servlet output which goes to java.io.PrintWriter out = response.getWriter(); is returned as a file. The browser insted of showing the html is asking me to save it to disk. When I am looking at the file everything is fine the html is perfect and if I am trying to open it from the file system it looks good any sugestion Thanks in advance Nehemia Litterat - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: startup/shutdown Tomcat on Linux
Neal, Assuming you're running a bash-like (sh, bash, ksh) shell then you would execute the Linux analogs of shutdown.bat or startup.bat, which are named shutdown.sh and startup.sh respectively. So you would type the following from the console (no brackets in actual input): [cd $CATALINA_HOME /bin ] OR [cd $TOMCAT_HOME/bin] depending on your version of Tomcat and how the respective environment was setup [./shutdown.sh] and that's it Since you have restarted the server you will need to restart Tomcat by rnunning the following from the console: [cd $CATALINA_HOME /bin ] OR [cd $TOMCAT_HOME/bin] depending on your version of Tomcat and how the respective environment was setup [./startup.sh] and he should start --- To be sure, you could configure the system to be started after boot (similar to an NT/2K Service) and assign him to one or more run-levels. This is a little more complicated and I believe there are already some how-tos in the archives on this topic. HTH. Ciao. --- Yousef Shemisa | [EMAIL PROTECTED] 650.365.9704 x12 NetUnderdogs Dynamically-driven Flash, eCommerce, and portal solutions for business http://www.netunderdogs.com http://www.netunderdogs.com/ - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 25, 2002 10:04 PM Subject: startup/shutdown Tomcat on Linux How do you start and shutdown Tomcat on Linux? I'm (obvioulsy) a windows person. I am attempting to get my app running on Linux. From the /bin directory I attempted to call shutdown.bat. This didn't work so I restarted the server (shutdown -r now). When the server came back, Tomcat was no longer responding. Attempting to call the URLs pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request that never comes back. I guess my ideal would be that Tomcat would auto-start upon reboot of the server. Is this easy to setup? In the near-term though I just need to know how to start/restart/shutdown tomcat. Thanks in advance! Neal -- 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: Tomcat Installation on linux
- == khozaima shakir [EMAIL PROTECTED] writes: - Should a startup window open? It didn't open. No, if you are running tomcat from a shell. Or did you run it from a Windows emulator? - When I try to shutdown the tomcat, it gives segmentation fault. How do you shutdown the tomcat? -- --Jhair -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
unpacking war files?
Hi I'm using tomcat 4.0.4. My ant building Script creates a war file and put it to the in the subdirectory geonet of the webapps directory. But now the Tomcat don't automaticallly unpack this war file. In the server.xml configuration file I insert a new Context entry Context path=/geonet docBase=geonet debug=0 reloadable=true/ Is that a bug of tomcat, that it is not going to unpack it or did I forgot to configure something in my configuration files? Thanks in advance!!! Cyrill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: unpacking war files?
Hi Cyrill, put the .war right into the webapps/ directory (not into a subdirectory) and I believe it will deploy. that will be webapps/geonet.war if it doesn't deploy try deleting the geonet directory first. Hope that helps, Jan Cyrill Zadra [EMAIL PROTECTED] To: [EMAIL PROTECTED] izh.ch cc: Subject: unpacking war files? 26.08.2002 10:34 Please respond to Tomcat Users List Hi I'm using tomcat 4.0.4. My ant building Script creates a war file and put it to the in the subdirectory geonet of the webapps directory. But now the Tomcat don't automaticallly unpack this war file. In the server.xml configuration file I insert a new Context entry Context path=/geonet docBase=geonet debug=0 reloadable=true/ Is that a bug of tomcat, that it is not going to unpack it or did I forgot to configure something in my configuration files? Thanks in advance!!! Cyrill -- 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]
Can't restart Linux
I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: unpacking war files?
Hi Thanks a lot. I actuallay already tried that way, but instead to put all the files to the geonet directory it stored it in the weapps directory. But now it works! Cyrill [EMAIL PROTECTED] wrote: Hi Cyrill, put the .war right into the webapps/ directory (not into a subdirectory) and I believe it will deploy. that will be webapps/geonet.war if it doesn't deploy try deleting the geonet directory first. Hope that helps, Jan Cyrill Zadra [EMAIL PROTECTED] To: [EMAIL PROTECTED] izh.ch cc: Subject: unpacking war files? 26.08.2002 10:34 Please respond to Tomcat Users List Hi I'm using tomcat 4.0.4. My ant building Script creates a war file and put it to the in the subdirectory geonet of the webapps directory. But now the Tomcat don't automaticallly unpack this war file. In the server.xml configuration file I insert a new Context entry Context path=/geonet docBase=geonet debug=0 reloadable=true/ Is that a bug of tomcat, that it is not going to unpack it or did I forgot to configure something in my configuration files? Thanks in advance!!! Cyrill -- 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: Can't restart Linux
In the server.xml change all debug=XX attributes from 0 to 10 and look in the log files when you run the startup.sh script. I can't remember which file to look in but just try all of them. You will probably see an error in one of these files. Jacob -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: 26. august 2002 10:52 To: Tomcat Users List Subject: Can't restart Linux I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- 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: Can't restart Linux
Alright. Did that. It generated a log file catalina_2002-8-26. But all it says in it is HttpConnector Opening server socket on all host IP addresses. :-\ No errors seem to have been reported The really interested behavior here ... is that the web browser never really comes back. It just sits there indefinitely with the message in the status bar opening page ... and the url). Neal -Original Message- From: Jacob Vennervald Madsen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:01 AM To: Tomcat Users List Subject: RE: Can't restart Linux In the server.xml change all debug=XX attributes from 0 to 10 and look in the log files when you run the startup.sh script. I can't remember which file to look in but just try all of them. You will probably see an error in one of these files. Jacob -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: 26. august 2002 10:52 To: Tomcat Users List Subject: Can't restart Linux I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- 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: Can't restart Linux
Actually, I found another file that contained all the system err out info - logs/catalina.out. I was able to resolve the problem with this debug info. Thanks for the tip! :) Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:24 AM To: Tomcat Users List Subject: RE: Can't restart Linux Alright. Did that. It generated a log file catalina_2002-8-26. But all it says in it is HttpConnector Opening server socket on all host IP addresses. :-\ No errors seem to have been reported The really interested behavior here ... is that the web browser never really comes back. It just sits there indefinitely with the message in the status bar opening page ... and the url). Neal -Original Message- From: Jacob Vennervald Madsen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:01 AM To: Tomcat Users List Subject: RE: Can't restart Linux In the server.xml change all debug=XX attributes from 0 to 10 and look in the log files when you run the startup.sh script. I can't remember which file to look in but just try all of them. You will probably see an error in one of these files. Jacob -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: 26. august 2002 10:52 To: Tomcat Users List Subject: Can't restart Linux I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- 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]
Max Http Connection on Tomcat4.0
Hi all, I am trying to determine the maximum number of simultaneous Http connections to Catalina. In order to do so I have written a simple served that - Accepts a request (overrides only the service ) - Reads some data from the request (128 bytes) - Sleeps for 20 secs - Writes random response (128 bytes) I am connecting to the servlet using an http client based on the java.net package. My client holds hundreds of threads to simultaneously connect to the server. Connections are closed after each request. Catalina's server.xml was configured accordingly: Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=1000 maxProcessors=15000 acceptCount=1000 debug=0 connectionTimeout=6/ Catalina was also allocated enough memory (RAM) for runtime (judging by the performance monitor, it's memory usage was relatively low) I tested the server on two different hardware configurations: 1) PIII - 533MHZ ; 512 MB 2) Compaq Server - Dual CPU PIII 866 each ; 512 MB I am using J2SE 1.4.0_01 both on server and client side. The results were almost identical ~600. After this numbers I got connect refused exception. I know the Catalina should hold more than 600 connections in the same time, I tried it my self using C++ client. I got 3,000 without a refusal and then stopped the test. Any one have an idea? Is it a problem in the HttpURLConnection class? URLConnection? did any one test this number yet? IKA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: startup/shutdown Tomcat on Linux
or if it is an option you might want to install the 4.0.4 rpm, it seems to install the rc.d scripts for you automatically Just use the .sh counterparts to the .bat files you used on Windows. If you want Tomcat to start when the system comes up (or, to use some jargon, enters the proper run level) you should find someone at your site who's familiar with Linux configuration. This can be handled manually, by editing startup and shutdown files in /etc/rc.d or, on many modern Linux -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: startup/shutdown Tomcat on Linux
hi neal with tomcat4.0.4 there are no default webapps. (Prior to this there was a root context pre-configured) If you are getting a page that says 'There is no context available to process this request' or something, then it's running. If you are getting the standard 'The page cannot be displayed' (IE) then it's not. Which do you get. Also the first thing u should do is check the logs... try /usr/java/jakarta-tomcat4.0.4/catalina.out maybe your answer is there. or... try typing 'ps -aux' at the command line. If you see about 10-20 references to a process like /usr/java/j2sdk1.4.0/bin/java -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/java/j2sdk1.4.0/lib. etc then tomcat is running. -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:59 PM To: Tomcat Users List Subject: RE: startup/shutdown Tomcat on Linux Thanks for the info. I set my TOMCAT_HOME (/usr/java/jakarta-tomcat4.0.4) and JAVA_HOME (/usr/java/j2sdk1.4.0_01) env variables as needed to run these commands. The commands appear to now run fine (startup for instance will list 4 env variables it is apparently referenceing - CATALINA_BASE, CATALINA_HOME, CATALINA_TMPDIR, JAVA_HOME) and control is returned to the shell ... but Tomcat still isn't returning any pages to my browser. It was working fine before I restarted the server. :-\ Any thoughts? Thanks. Neal -Original Message- From: Randall R Schulz [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 25, 2002 10:21 PM To: [EMAIL PROTECTED] Subject: Re: startup/shutdown Tomcat on Linux Neal, Just use the .sh counterparts to the .bat files you used on Windows. If you want Tomcat to start when the system comes up (or, to use some jargon, enters the proper run level) you should find someone at your site who's familiar with Linux configuration. This can be handled manually, by editing startup and shutdown files in /etc/rc.d or, on many modern Linux systems, by using a GUI front-end to those configuration files. However, there are several variants on the underlying scheme and the tools that expose it, so it's not feasible to instruct you on the details from what you've told us (i.e., simply that you're using Linux). Good luck. Randall Schulz Mountain View, CA USA At 22:04 2002-08-25, neal wrote: How do you start and shutdown Tomcat on Linux? I'm (obvioulsy) a windows person. I am attempting to get my app running on Linux. From the /bin directory I attempted to call shutdown.bat. This didn't work so I restarted the server (shutdown -r now). When the server came back, Tomcat was no longer responding. Attempting to call the URLs pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request that never comes back. I guess my ideal would be that Tomcat would auto-start upon reboot of the server. Is this easy to setup? In the near-term though I just need to know how to start/restart/shutdown tomcat. Thanks in advance! Neal -- 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: Tomcat Installation on linux
Hi Jhair, yes, I am running tomcat from shell. About shoutdown, I shutdown tomcat by : shutdown.sh Thanks Shakir From: Jhair Tocancipa Triana [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat Installation on linux Date: 26 Aug 2002 09:49:07 +0200 - == khozaima shakir [EMAIL PROTECTED] writes: - Should a startup window open? It didn't open. No, if you are running tomcat from a shell. Or did you run it from a Windows emulator? - When I try to shutdown the tomcat, it gives segmentation fault. How do you shutdown the tomcat? -- --Jhair -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat log in linux
No, there is nothing analogous to the command line window that pops up in Windows in Linux when starting tomcat. Windows is a poor operating system for running services. Linux/UNIX is a proper operating system for running services...there is no need to startup another process to run tomcat on Linux. Tomcat (and other services) simply run as they should. If you post error messages, and possibly snippets of your log files, and what you've done to try and resolve any of them, it would be much easier for someone to help. We don't even know what Linux you are using. That said, depending on the version of Linux you are using, and the version of tomcat, you can determine if something is running with the ps command. man ps will provide you with help, in general tomcat can be seen running by looking for lines that have java in them, after using the command: ps -ef A shorthand way of doing this is ps -ef |grep java. John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:46 AM To: Tomcat Users List Subject: Tomcat log in linux In Windows, when you run Tomcat, a DOS command line window pops up and you see real-time messages from Tomcat. If something isn't going right ... you see those messages. Is there something analogous in Linux/Tomcat? I'm trying to get the dumb thing running but I'm not seeing any debug info and the logs look relatively empty. Thanks. NEal -- 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: Can't restart Linux
Please give us more information. Be specific. What URL is not giving a response? What do the logs say? After you run startup.sh, what is the output of ps -ef |grep java? John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:52 AM To: Tomcat Users List Subject: Can't restart Linux I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- 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]
apache-tomcat
Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: apache-tomcat
Hi Tal, never done it myself but here is a best practices Making Tomcat Work with Apache: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp Hope that helps, Carsten -Ursprüngliche Nachricht- Von: Adar Wesley [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 26. August 2002 15:14 An: 'Tomcat Users List' Betreff: apache-tomcat Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [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: apache-tomcat
If you have tomcat connected to apache, you can see this in action by checking the JkMount directives in your httpd.conf. Use JkMount to notify apache which URLs should be sent to tomcat. John Turner [EMAIL PROTECTED] -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:14 AM To: 'Tomcat Users List' Subject: apache-tomcat Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [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: unpacking war files?
You have to deploy your.war file to a directory on your own if you have a defined context pointing to a directory with the same name as a .war file. It is actually stated in the docs that the auto deployment of the.war file will *not* happen in this case, however, I'm not entirely sure why? There is actually a bug reported on this trying to determine whether the behavior is a feature or a bug. I don't have the bug URL handy, but you can search for it at http://nagoya.apache.org/bugzilla/ . Jake At 10:58 AM 8/26/2002 +0200, you wrote: Hi Thanks a lot. I actuallay already tried that way, but instead to put all the files to the geonet directory it stored it in the weapps directory. But now it works! Cyrill [EMAIL PROTECTED] wrote: Hi Cyrill, put the .war right into the webapps/ directory (not into a subdirectory) and I believe it will deploy. that will be webapps/geonet.war if it doesn't deploy try deleting the geonet directory first. Hope that helps, Jan Cyrill Zadra [EMAIL PROTECTED] To: [EMAIL PROTECTED] izh.ch cc: Subject: unpacking war files? 26.08.2002 10:34 Please respond to Tomcat Users List Hi I'm using tomcat 4.0.4. My ant building Script creates a war file and put it to the in the subdirectory geonet of the webapps directory. But now the Tomcat don't automaticallly unpack this war file. In the server.xml configuration file I insert a new Context entry Context path=/geonet docBase=geonet debug=0 reloadable=true/ Is that a bug of tomcat, that it is not going to unpack it or did I forgot to configure something in my configuration files? Thanks in advance!!! Cyrill -- 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: apache-tomcat
If you use mod_jk, you can auto-generate the config files that need to be included at the end of your httpd.conf file Put this immediatey after the opening Server ... element: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll jkDebug=info workersConfig=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.9/conf/jk/workers.properties jkLog=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.9/logs/mod_jk.log / Make sure to set your paths accordingly for your own system setup. Then, put this immediately after the opening the Host ... element: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / At the startup of Tomcat, this will generate a file in $TOMCAT_HOME/conf/auto called mod_jk.conf. What I usually do is copy that out to conf/jk and point to that file. I then comment out the Listeners in my server.xml from this point on unless my webapps running under Tomcat change significantly. I just edit by hand since most of it will stay the same. Make sure to include the new mod_jk.conf file in your httpd.conf like this: Include C:/Program Files/Apache Group/Jakarta/tomcat-4.1.9/conf/jk/mod_jk.conf Oh, and your workers.properties should look something like this: workers.tomcat_home=$(CATALINA_HOME) workers.java_home=$(JAVA_HOME) ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp13.cachesize=8 worker.ajp14.port=8011 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=mysupersecretkey worker.ajp14.credentials=mysuperveryrandomentropy worker.ajp14.lbfactor=1 worker.ajp14.cachesize=8 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)catalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Jake At 03:14 PM 8/26/2002 +0200, you wrote: Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: apache-tomcat
That article is for using mod_webapp as the connector between Tomcat 4 and Apache. I wouldn't necessarily consider that a best practice. I have found mod_jk 1.2 a better solution for my needs. With mod_jk 1.2 I use the Apache mod_jk config directive JkAutoAlias. This automatically maps Apache to serve static files for all web contexts. Or you could do it individualu with yhe apache Alias directive. The only docs I see for JkAutoAlias are in the jakarta-tomcat-connectors CVS repository in file jk/doc/mod_jk-howto.html. Regards, Glenn [EMAIL PROTECTED] wrote: Hi Tal, never done it myself but here is a best practices Making Tomcat Work with Apache: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp Hope that helps, Carsten -Ursprüngliche Nachricht- Von: Adar Wesley [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 26. August 2002 15:14 An: 'Tomcat Users List' Betreff: apache-tomcat Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [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: javax directory
Would that in the classpath for java or for the Tomcat. -Original Message- From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 1:23 PM To: 'Tomcat Users List' Subject: RE: javax directory you need to set the servlet.jar or j2ee.jar file in classpath Thanks Goverdhan -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 2:21 PM To: Tomcat Users List (E-mail) Subject: javax directory I am trying to compile a application that uses import javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I attempt to compile this code I receive errors stating that it could not find these symbols. I noticed that they are actually located in the tomcat directory. Should this be copied to the java directory or is there something else I should do. -- 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: javax directory
The classpath used when you do your Java compiling. Tomcat is not involved at all at this stage in the game. Reis, Tom reistom@cdneTo: 'Tomcat Users List' [EMAIL PROTECTED] t.cod.edu cc: Subject: RE: javax directory 08/26/02 08:52 AM Please respond to Tomcat Users List Would that in the classpath for java or for the Tomcat. -Original Message- From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 1:23 PM To: 'Tomcat Users List' Subject: RE: javax directory you need to set the servlet.jar or j2ee.jar file in classpath Thanks Goverdhan -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 2:21 PM To: Tomcat Users List (E-mail) Subject: javax directory I am trying to compile a application that uses import javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I attempt to compile this code I receive errors stating that it could not find these symbols. I noticed that they are actually located in the tomcat directory. Should this be copied to the java directory or is there something else I should do. -- 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]
connect Apache + Tomcat on different hosts
Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [EMAIL PROTECTED] - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Let me try this again: tomcat returns cached file rather than updated file
Mike: These are not JSP files, its just a regular file (its actually an XML file), that is being downloaded from a webapp directory via tomcat using a java URL connection from a servlet. Non-jsp files are not stored in work directory. -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 4:46 PM To: Tomcat Users List Subject: RE: Let me try this again: tomcat returns cached file rather than updated file Hmm, I don't think that tomcat does cache files. Or at least I haven't seen that behavior in version 3.x which is what I use. Are you sure that you deleted everything (and all subdirectories) in the work directory? I've seen what you're describing, but it seemed to go away after I did that. You might also try touch'ing all the jsp files so that it forces a recompile, but if you clear the work directory it shouldn't need that. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Let me try this again: tomcat returns cached file rather than updated file Cleaning out the work directory did not help. I think only compiled classes go there, not sure what tomcat does with cached files... Bowden -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 2:33 PM To: Tomcat Users List Subject: RE: Let me try this again: tomcat returns cached file rather than updated file Try restarting tomcat after clearing out the work directory. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 11:16 AM To: 'Tomcat Users List' Subject: RE: Let me try this again: tomcat returns cached file rather than updated file Thanks for the response, Mike: Note this test was done within a java program -- outside the browser -- so there is no browser at all, has to be coming from Tomcat in response to the underlying HTTP GET sent by the call to get the content by the java URL object Bowden -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 2:11 PM To: Tomcat Users List Subject: RE: Let me try this again: tomcat returns cached file rather than updated file Check your browser settings, make sure it's set to check the cache on every page access. It's probably the browser that's the problem. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 23, 2002 10:54 AM To: 'Tomcat Users List' Subject: Let me try this again: tomcat returns cached file rather than updated file Hi Sorry for the multiple postings about this, but I am baffled, and am surprised at the behavior... When using a java.net.URL to download a file on a tomcat webapp, i am finding that I get the OLD content rather than the new content I wrote a simple java test program: - write first to the file (FileWriter) - read the file (URL), verify first is read - write second to the file (FileWriter) - read the file (URL), should be second but gets first If I insert a pause (sleep call) before the second write, the second read does correctly obtain second I also tested on an Apache accesible directory and the problem does not appear, the second read correctly returns second immediately Does the tomcat cache mechanism not work when there is not sufficient elapsed times between file updates? I can't believe noone has noticed this Or is there something wrong with my configuration? Thanks Bowden -Original Message- From: Wise, Bowden (Research) Sent: Friday, August 23, 2002 7:40 AM To: 'Tomcat Users List' Subject: Why does TOMCAT return cache page when file has been modified?? Hi Please review my original message below and let me know if you have seen this or know why it is happening thanks Bowden -Original Message- From: Wise, Bowden (Research) Sent: Thursday, August 22, 2002 5:13 PM To: '[EMAIL PROTECTED]' Subject: Tomcat Retrieves old cached file after file update Hi I am finding that Tomca4.0.3 is returning old cached content even after the underlying file has been modified. I have a servlet and JSP that work together, the servlet modifies a file in a web accessible directory (via FileWriter) and then redirects to the JSP which uses a URL to read the content of the file and display it. Once redirected, even though the file changed, the data displayed is the old content. I wrote a simple program to
Re: connect Apache + Tomcat on different hosts
modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [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: Static pages dir inside webapps
D - I am a newbie, but may be able to help. The $CATALINA_HOME\webapps\[your app] is the directory I store static pages. This is the area for public files where WEB-INF stores protected documents. Adding a special subdir called [your app]\static\ worked for me. Of course, I forgot to restart Tomcat the first time (dah), but I eventually gathered my senses. As far as what previous allowed, I can't help you. I started with 2.3 and there is a strict directory specification. Anyhow, I didn't see another repsonse - hope this helps. Jeff --- D Bamud [EMAIL PROTECTED] wrote: I *need* to put a directory (say static) inside webapps that contains static html pages. When I try to invoke http://localhost:8080/static/test.html I get 404 error. HOWEVER the moment I make *the* dir WEB-INF in static dir it starts working. It was working fine in TC3.x without WEB-INF dir but gives the problem in TC4.0.4. Does that mean that all the apps must adhere to have WEB-INF dir? Why? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBCRealm - difference between no user/password and SQLException
Hi all, Using the JDBCReal, you specify in web.xml what page to goto if there is an error form-error-page.../form-error-page. However, I believe that this page is used for both non fatal situations, like the the username/password doesn't exist, and for fatal situations, like if if the database is down. Is there any way to tell the difference so that a relogin page can be displayed in one instance and a fatal error page in the other? thanks, mike/ -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 12:01 PM To: 'Tomcat Users List' Subject: RE: specify the url after j_security_check login The user is directed to the login when they request a secure resource. If they complete the login process successfully then they ar forwarded to the page that they asked for previously. Hamish -Original Message- From: Michael Remijan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 6:53 PM To: Tomcat Users List Subject: specify the url after j_security_check login Hi, is it possible to specify what url tomcat should goto after a j_security_check login is successful instead of tomcat just loading what's in your welcome-file-list ? thanks, mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 11:33 PM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: Tomcat + apache Here you go Aaron, ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc This is an install for Win2k, Tomcat 4.1.8, JDSK1.4.0, mod_jk2 It' fairly easy to install. Sorry, all I have right now is a Word Doc, but all the hyper links work, I think. If you want Apache with SSL then I can do that too, but it's more complicated. Yall have fun now, hear? rls Aaron Chan [EMAIL PROTECTED] 08/07/2002 02:29 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat + apache Hi, I am using Windows 2000 Server instead of Linux. Anywhere I can go to find help on setting up? Thanks. Aaron Chan -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 06, 2002 7:57 PM To: Tomcat Users List Subject: R: Tomcat + apache Ops, sorry I forgot to mention I've linux red hat 7.3 Tomcat 4.0.4 Apache 2.0.39 java 1.4.0 I've seen the 3 connectors which is the best? Thx Simone -Messaggio originale- Da: Turner, John [mailto:[EMAIL PROTECTED]] Inviato: martedì 6 agosto 2002 13.44 A: 'Tomcat Users List' Oggetto: RE: Tomcat + apache To get tomcat to work with apache for serving mixed content, you will need to choose a connector. At this time, there are three to choose from: mod_jk (AJP), mod_webapp (WARP), and mod_jk2. Then you configure apache to serve certain content, and send other content to tomcat via the connector for processing. Without knowing your platform and OS environment, there's no way to point you to documentation on how to work with a connector. You can make the entire environment start at boot time quite easily. Again, not knowing your environment, there's no way to point you to alternatives. John Turner [EMAIL PROTECTED] -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 06, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: Tomcat + apache Sorry for this questions that could have been already answered, but I didn't find anything on the net and the archive doesn't have a search feature. I'm new in tomcat world, basically I'm a programmer but I've to setup a web server on linux with apache and tomcat. What I'd like to know is: 1 - How can I integrate apache 2.x with tomcat 4.0.4 (I mean having apache handle static files and php, while tomcat just handles java dynamic contents) 2 - How can I make this environment start at boot time. Thank you Simone -- 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] -- 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: connect Apache + Tomcat on different hosts
I believe all you have to change is the worker.ajp13.host line in workers.properties to the correct hostname, which would be the hostname of the machine running tomcat. John Turner [EMAIL PROTECTED] -Original Message- From: Bauer, Christopher [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:49 AM To: '[EMAIL PROTECTED]' Subject: connect Apache + Tomcat on different hosts Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [EMAIL PROTECTED] - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Installation on linux
Shakir, Where did you get that command from? Here's what you did: You truncated your shutdown.sh script. The : is the no-op command that is used when one wants to use side-effects (such as I/O redirection) without running a command. The is similar to that of the DOS/CMD.exe/Command.com in Windows, it redirects output to the file whose name follows. So you ran the null command (which produces no output) and redirected it to the shutdown.sh script, thus truncating it. Had you used the append output redirection, , all would be OK, since adding 0 bytes to the end of shutdown.sh would not do any damage (it would only alter the last modification time of that file, which you could see with ls -l shutdown.sh). So you'll have to retrieve the shutdown.sh script from your Tomcat distribution. Then to use it, just invoke it. Since it usually does not run indefinitely and does not produce a lot of output or usually any particularly interesting output, there's no need to redirect its output. I recommend that people recently switching from Windows to Linux or another Unix-like system get some tutorial materials on these basics. There are some vague similarities with Windows, but a lot is different and groping around in the dark is not really advisable. Good luck. Randall Schulz Mountain View, CA USA At 04:21 2002-08-26, khozaima shakir wrote: Hi Jhair, yes, I am running tomcat from shell. About shoutdown, I shutdown tomcat by : shutdown.sh Thanks Shakir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Strange message compiling a JSP in Tomcat 4.0.4
Hi all, I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to run a JSP. I receive the following error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi). 1 error Unfortunately, I have no access to the source code. Any hint ? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
changing workers in mod_jk
Hi Group ! when generating mod_jk.conf using tomcat run -jkconf I always get workers named ajpxx, can I change that ? I'd like the mod_jk.conf to be created with workers_named ajpxx_blah. Ciao Tal Log-On [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat log in linux
Neal, On Unix (-like) systems, I'll usually start a separate terminal window (I assume you've got an X Window System display connected to the Unix system you're using) and start Tomcat there so I can monitor the standard output. This achieves the same results as the window created by Windows when you launch Tomcat there. You should familiarize yourself with the tail command, particularly it's -f option. (Use the man command: man tail). This allows you to monitor additions to a file as they appear. This way you can keep log files and monitor them visually at the same time. For an alternative with similar possibilities, lear about the tee utility. It operates in a pipeline by copying its input to its output (as cat would do with no arguments) but also writes a copy of all the data that passes through it to a file. I can append to the file, too. Keep in mind that the terminal emulators have options that allow you to specify how many lines scroll-back to preserve. Good luck. Randall Schulz Mountain View, CA USA At 23:46 2002-08-25, neal wrote: In Windows, when you run Tomcat, a DOS command line window pops up and you see real-time messages from Tomcat. If something isn't going right ... you see those messages. Is there something analogous in Linux/Tomcat? I'm trying to get the dumb thing running but I'm not seeing any debug info and the logs look relatively empty. Thanks. NEal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: javax directory
I do have the servlet.jar set in the classpath and I still have the same problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 8:56 AM To: Tomcat Users List Subject: RE: javax directory The classpath used when you do your Java compiling. Tomcat is not involved at all at this stage in the game. Reis, Tom reistom@cdneTo: 'Tomcat Users List' [EMAIL PROTECTED] t.cod.edu cc: Subject: RE: javax directory 08/26/02 08:52 AM Please respond to Tomcat Users List Would that in the classpath for java or for the Tomcat. -Original Message- From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 1:23 PM To: 'Tomcat Users List' Subject: RE: javax directory you need to set the servlet.jar or j2ee.jar file in classpath Thanks Goverdhan -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 2:21 PM To: Tomcat Users List (E-mail) Subject: javax directory I am trying to compile a application that uses import javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I attempt to compile this code I receive errors stating that it could not find these symbols. I noticed that they are actually located in the tomcat directory. Should this be copied to the java directory or is there something else I should do. -- 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: connect Apache + Tomcat on different hosts
Hi Peter! Thanks for the reply. I am still confused about the worker.home and workers.java_home properties in the worker.properties file. This configuration file is placed on the unix host, where apache runs. Tomcat runs on my local dev maschine (NT). Should I use the local path for both? Regards Christopher -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: Montag, 26. August 2002 16:12 To: Tomcat Users List; '[EMAIL PROTECTED]' Subject: Re: connect Apache + Tomcat on different hosts modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [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]
Context management and virtual host
I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JWSDP-TOMCAT - how to install Running a bookStore example
Hi Friends, I am facing the following problem when i am trying to build, install and run the example. Here is the link what i am trying. http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL2.html upto step 3 it is ok. when i try to run ant install i am facing the problem. Here is the list from the command prompt: C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4ant install Buildfile: build.xml init: prepare: build: install: [install] FAIL - Encountered exception java.io.IOException: java.lang.reflect. InvocationTargetException BUILD FAILED [install] Total time: 1 second C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4\build.xml:93: FAIL - Encountered exception java.io.IOException: java.lang.reflect.InvocationTarget Exception If somebody knows kindly help me. Thanks in Advance. Regards, Sundar -- Peter Choe [EMAIL PROTECTED] wrote: modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [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] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JWSDP-TOMCAT - how to install Running a bookStore example
Hi Friends, I am facing the following problem when i am trying to build, install and run the example. Here is the link what i am trying. http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL2.html upto step 3 it is ok. when i try to run ant install i am facing the problem. Here is the list from the command prompt: C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4ant install Buildfile: build.xml init: prepare: build: install: [install] FAIL - Encountered exception java.io.IOException: java.lang.reflect. InvocationTargetException BUILD FAILED [install] Total time: 1 second C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4\build.xml:93: FAIL - Encountered exception java.io.IOException: java.lang.reflect.InvocationTarget Exception If somebody knows kindly help me. Thanks in Advance. Regards, Sundar -- Peter Choe [EMAIL PROTECTED] wrote: modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [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] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: changing workers in mod_jk
On Mon, 26 Aug 2002, Adar Wesley wrote: Hi Group ! when generating mod_jk.conf using tomcat run -jkconf I always get workers named ajpxx, can I change that ? I'd like the mod_jk.conf to be created with workers_named ajpxx_blah. I don't know how to change what's in the automatically generated config file, but you can always just copy that and edit it, and then use the edited version (i.e. Include that in your httpd.conf instead of the automatically generated one). Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: connect Apache + Tomcat on different hosts
just modify the workers.properties file on the server running the apache. look for the ajp13 connector properties and change: workers.ajp13.home=www.tomcatserver.com and make sure the ajp13 on your tomcat server in the server.xml file is enabled. At 10:22 AM 8/26/2002, you wrote: Hi Peter! Thanks for the reply. I am still confused about the worker.home and workers.java_home properties in the worker.properties file. This configuration file is placed on the unix host, where apache runs. Tomcat runs on my local dev maschine (NT). Should I use the local path for both? Regards Christopher -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: Montag, 26. August 2002 16:12 To: Tomcat Users List; '[EMAIL PROTECTED]' Subject: Re: connect Apache + Tomcat on different hosts modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [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: connect Apache + Tomcat on different hosts
On Mon, 26 Aug 2002, Bauer, Christopher wrote: Hi Peter! Thanks for the reply. I am still confused about the worker.home and workers.java_home properties in the worker.properties file. This configuration file is placed on the unix host, where apache runs. Tomcat runs on my local dev maschine (NT). Should I use the local path for both? Those values are not needed by mod_jk (or anything else), they're just macros (variables) you can set in that file to make it easier to specify (and change) some of the other settings. -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: Montag, 26. August 2002 16:12 To: Tomcat Users List; '[EMAIL PROTECTED]' Subject: Re: connect Apache + Tomcat on different hosts modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [EMAIL PROTECTED] - Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: connect Apache + Tomcat on different hosts
On Mon, 26 Aug 2002, Peter Choe wrote: just modify the workers.properties file on the server running the apache. look for the ajp13 connector properties and change: workers.ajp13.home=www.tomcatserver.com That should be host, not home. and make sure the ajp13 on your tomcat server in the server.xml file is enabled. Also make sure the ports match up. At 10:22 AM 8/26/2002, you wrote: Hi Peter! Thanks for the reply. I am still confused about the worker.home and workers.java_home properties in the worker.properties file. This configuration file is placed on the unix host, where apache runs. Tomcat runs on my local dev maschine (NT). Should I use the local path for both? Regards Christopher -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: Montag, 26. August 2002 16:12 To: Tomcat Users List; '[EMAIL PROTECTED]' Subject: Re: connect Apache + Tomcat on different hosts modify the workers.properties file and change the host name of the ajp13 connector to the tomcat server. At 09:48 AM 8/26/2002, Bauer, Christopher wrote: Hi! Is it possible to have Apache on one host (Solaris 8) and tomcat on another (Win NT 4) connected via mod_jk? If yes, how can I achieve this? Thanks in advance! Kind Regards Christopher --- Christopher Bauer Dresdner Bank AG RCO - Intranet Team Juergen-Ponto-Platz 1 D-60301 Frankfurt am Main Phone: ++49(0)69/263-17717 Mail: [EMAIL PROTECTED] - Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: CGI FORM entry empty with TOMCAT standalone
See earlier postings on CGI's I don't think included CGI's work in Tomcat Standalone. I haven't been able to confirm this. Here's my earlier post: I'm using Tomcat 4.0.4 to serve dynamic and static pages. I can get includes to work and I can get CGI's to work but I can't get included CGI's to work. you can pick your friends, you can pick your nose... Anyway, here's what works: includes on .html pages: !--#include virtual=Shared/footer-- includes on .jsp pages: %@ include file=Shared/footer % CGI that works: http://localhost/PCW/cgi-bin/test-cgi And here's what DOESN'T work (this is on a .html page) !--#include virtual=/cgi-bin/test-cgi-- !--#include virtual=/PCW/cgi-bin/test-cgi-- !--#include virtual=../../WEB-INF/cgi/test-cgi-- My Tomcat config file is completely standard - I uncommented the SSI and CGI bits and renamed the appropriate .jar files but there are no other config changes. Since both CGI's and includes work my assumption here is that the SSI servlet doesn't call the CGI servlet. In other words when I call the CGI from the URL it gets handled by the CGI servlet, and when I include it it gets handled by the SSI servlet but what I need is for the SSI servlet to call the CGI servlet which it doesn't do. Or I could just be making all this up. Anyone want to set me straight? Or, even better, just tell me how to make it work. I've a lot of trouble using Tomcat with Apache so I'd prefer to avoid that route and go with a straight Tomcat solution if at all possible. TIA, steve Hi, I Need to integrate some current CGI with an new Java Application. So i have installed CGI in Tomcat 4.0.4 standalone and i want not use Apache. CGI is running BUT I CAN'T receive FORM DATA. ? my variable $keywords is empty. I have also tried it with an Apache Standalone and that is Ok. I suppose some problem with CGI ReadParse function. Anyone have an idea ?? Thanks Philippe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Bugzilla down, can't submit tomcat bug
I've emailed the contact listed on the error page but the email bounces back. I'm not sure what I can do to report a tomcat bug. -- http://issues.apache.org/bugzilla/post_bug.cgi Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange message compiling a JSP in Tomcat 4.0.4
Do you have the stack trace? -Original Message- From: Nome real [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:19 PM To: Tomcat Users List Subject: Strange message compiling a JSP in Tomcat 4.0.4 Hi all, I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to run a JSP. I receive the following error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi). 1 error Unfortunately, I have no access to the source code. Any hint ? 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: Tomcat Installation on linux
Hi Randall, Sorry, guess the way i typed was misleading, i typed just shutdown.sh at command prompt. The directory that I was in when I type in startup.sh or shutdown.sh is user/userName/jakarta-tomcat-4.0.4/bin The output i get on shutdown is -- Segmentation fault Shakir From: Randall R Schulz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat Installation on linux Date: Mon, 26 Aug 2002 07:18:58 -0700 Shakir, Where did you get that command from? Here's what you did: You truncated your shutdown.sh script. The : is the no-op command that is used when one wants to use side-effects (such as I/O redirection) without running a command. The is similar to that of the DOS/CMD.exe/Command.com in Windows, it redirects output to the file whose name follows. So you ran the null command (which produces no output) and redirected it to the shutdown.sh script, thus truncating it. Had you used the append output redirection, , all would be OK, since adding 0 bytes to the end of shutdown.sh would not do any damage (it would only alter the last modification time of that file, which you could see with ls -l shutdown.sh). So you'll have to retrieve the shutdown.sh script from your Tomcat distribution. Then to use it, just invoke it. Since it usually does not run indefinitely and does not produce a lot of output or usually any particularly interesting output, there's no need to redirect its output. I recommend that people recently switching from Windows to Linux or another Unix-like system get some tutorial materials on these basics. There are some vague similarities with Windows, but a lot is different and groping around in the dark is not really advisable. Good luck. Randall Schulz Mountain View, CA USA At 04:21 2002-08-26, khozaima shakir wrote: Hi Jhair, yes, I am running tomcat from shell. About shoutdown, I shutdown tomcat by : shutdown.sh Thanks Shakir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Bugzilla down, can't submit tomcat bug
Bugzilla seems to be working for me. I read your msg concerning differentiation between SQLException's and user login failure. I don't think it's possible, and I don't think it's a bug. Mainly because not all Realm's use SQLExceptions. I think you would have to modify the Realm interface and the BaseRealm class to add this functionality. If you are just trying to request an enhancement, that would be the place too. - Andrew -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:10 AM To: Tomcat Users List Subject: Bugzilla down, can't submit tomcat bug I've emailed the contact listed on the error page but the email bounces back. I'm not sure what I can do to report a tomcat bug. -- http://issues.apache.org/bugzilla/post_bug.cgi Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. -- 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: Tomcat Installation on linux
try 'sh ./catalina.sh start' from jakarta-tomcat-4.0.4/bin regards, michael - Original Message - From: khozaima shakir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 11:23 AM Subject: Re: Tomcat Installation on linux Hi Randall, Sorry, guess the way i typed was misleading, i typed just shutdown.sh at command prompt. The directory that I was in when I type in startup.sh or shutdown.sh is user/userName/jakarta-tomcat-4.0.4/bin The output i get on shutdown is -- Segmentation fault Shakir From: Randall R Schulz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat Installation on linux Date: Mon, 26 Aug 2002 07:18:58 -0700 Shakir, Where did you get that command from? Here's what you did: You truncated your shutdown.sh script. The : is the no-op command that is used when one wants to use side-effects (such as I/O redirection) without running a command. The is similar to that of the DOS/CMD.exe/Command.com in Windows, it redirects output to the file whose name follows. So you ran the null command (which produces no output) and redirected it to the shutdown.sh script, thus truncating it. Had you used the append output redirection, , all would be OK, since adding 0 bytes to the end of shutdown.sh would not do any damage (it would only alter the last modification time of that file, which you could see with ls -l shutdown.sh). So you'll have to retrieve the shutdown.sh script from your Tomcat distribution. Then to use it, just invoke it. Since it usually does not run indefinitely and does not produce a lot of output or usually any particularly interesting output, there's no need to redirect its output. I recommend that people recently switching from Windows to Linux or another Unix-like system get some tutorial materials on these basics. There are some vague similarities with Windows, but a lot is different and groping around in the dark is not really advisable. Good luck. Randall Schulz Mountain View, CA USA At 04:21 2002-08-26, khozaima shakir wrote: Hi Jhair, yes, I am running tomcat from shell. About shoutdown, I shutdown tomcat by : shutdown.sh Thanks Shakir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: Context management and virtual host
There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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: Strange message compiling a JSP in Tomcat 4.0.4
Nome, Although I'm not sure exactly what the problem is, this has happened to me before when I've replaced some class files or jars that a JSP uses while Tomcat was running, and then updated the JSP so Tomcat had to recompile it. A restart of Tomcat fixed the problem. regards, Michael - Original Message - From: Adziashvili, Itzik [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, August 26, 2002 11:13 AM Subject: RE: Strange message compiling a JSP in Tomcat 4.0.4 Do you have the stack trace? -Original Message- From: Nome real [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:19 PM To: Tomcat Users List Subject: Strange message compiling a JSP in Tomcat 4.0.4 Hi all, I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to run a JSP. I receive the following error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi). 1 error Unfortunately, I have no access to the source code. Any hint ? 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Installation on linux
Shakir, Sorry for the misunderstanding. That's pretty odd. It's typical nowadays on Unix systems to omit . from the PATH, so unless you've added . (or an empty PATH element, which is to say a leading colon or two colons in a row), you need to enter ./shutdown or a full path name .../jakarta-tomcat-4.0.4/bin/shutdown.sh (where ... is the directory in which the Tomcat installation was performed) in order to invoke the proper script. The Segmentation fault certainly should not occur. If it was the JVM that crashed like that, it's a sure indication of a bug in the JVM or in a native (as in JNI) library used by your platform's Java system. Make sure you have the latest stable release of Java installed on your system. Randall Schulz Mountain View, CA USA At 08:23 2002-08-26, khozaima shakir wrote: Hi Randall, Sorry, guess the way i typed was misleading, i typed just shutdown.sh at command prompt. The directory that I was in when I type in startup.sh or shutdown.sh is user/userName/jakarta-tomcat-4.0.4/bin The output i get on shutdown is -- Segmentation fault Shakir From: Randall R Schulz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat Installation on linux Date: Mon, 26 Aug 2002 07:18:58 -0700 Shakir, Where did you get that command from? Here's what you did: You truncated your shutdown.sh script. The : is the no-op command that is used when one wants to use side-effects (such as I/O redirection) without running a command. The is similar to that of the DOS/CMD.exe/Command.com in Windows, it redirects output to the file whose name follows. So you ran the null command (which produces no output) and redirected it to the shutdown.sh script, thus truncating it. Had you used the append output redirection, , all would be OK, since adding 0 bytes to the end of shutdown.sh would not do any damage (it would only alter the last modification time of that file, which you could see with ls -l shutdown.sh). So you'll have to retrieve the shutdown.sh script from your Tomcat distribution. Then to use it, just invoke it. Since it usually does not run indefinitely and does not produce a lot of output or usually any particularly interesting output, there's no need to redirect its output. I recommend that people recently switching from Windows to Linux or another Unix-like system get some tutorial materials on these basics. There are some vague similarities with Windows, but a lot is different and groping around in the dark is not really advisable. Good luck. Randall Schulz Mountain View, CA USA At 04:21 2002-08-26, khozaima shakir wrote: Hi Jhair, yes, I am running tomcat from shell. About shoutdown, I shutdown tomcat by : shutdown.sh Thanks Shakir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context management and virtual host
I agree there's no problem with installing the manager application in each virtual host. I just don't want to do this because I don't want to publish this context to anyone, even with credentials. I would be ready to this on our production server if I could restrict manager context access to some IP adresses (127.0.0.1 for exemple). == Is it possible? (if not, what about thinking of this in future release?) There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Installation on linux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Aug 26, 2002 at 11:23:16AM -0400, khozaima shakir wrote: Hi Randall, Sorry, guess the way i typed was misleading, i typed just shutdown.sh at command prompt. The directory that I was in when I type in startup.sh or shutdown.sh is user/userName/jakarta-tomcat-4.0.4/bin The output i get on shutdown is -- Segmentation fault please execute the following in user/userName/jakarta-tomcat-4.0.4/bin and post it to the list: sh -x ./shutdown.sh shutdown.txt the command will create a file shutdown.txt which you can post. this will give us an idea of where the seg fault is happening. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ak3kggA8sH0iRXQRAsWRAKCEY9kcw+0Z5hp0JHQJogUS0Y7fCgCeKB19 ig4T5NBEsdnRqZYSXX68hDQ= =c+G2 -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Installation on linux
Hi, At 08:48 2002-08-26, Peter T. Abplanalp wrote: On Mon, Aug 26, 2002 at 11:23:16AM -0400, khozaima shakir wrote: Hi Randall, Sorry, guess the way i typed was misleading, i typed just shutdown.sh at command prompt. The directory that I was in when I type in startup.sh or shutdown.sh is user/userName/jakarta-tomcat-4.0.4/bin The output i get on shutdown is -- Segmentation fault Please execute the following in user/userName/jakarta-tomcat-4.0.4/bin and post it to the list: sh -x ./shutdown.sh shutdown.txt Better make that: sh -x shutdown.sh shutdown.txt 21 (the ./ is unnecessary here, since the PATH is not used to find shutdown.sh -- PATH would be consulted if you included the -c option, however) The real point is to include the standard error in the output captured in shutdown.txt And really, a .txt suffix? Yuck! Randall when in Rome ... Schulz Mountain View, CA USA The command will create a file shutdown.txt which you can post. This will give us an idea of where the seg fault is happening. - -- Peter Abplanalp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE : Bugzilla down, can't submit tomcat bug
Did you actually submit a bug? I tried several times on Friday, Saturday, and again today and each time it takes about 5 minutes to time out. The bug I want to submit is for the CATALINA_BASE variable.. When I use it my web app is not accessible. I've posted a few messages about it but haven't gotten much of a response, I don't think many people have tried using it. http://marc.theaimsgroup.com/?l=tomcat-userm=103000367314894w=2 -Original Message- From: Andrew Conrad [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 5:26 PM To: 'Tomcat Users List' Subject: RE: Bugzilla down, can't submit tomcat bug Bugzilla seems to be working for me. I read your msg concerning differentiation between SQLException's and user login failure. I don't think it's possible, and I don't think it's a bug. Mainly because not all Realm's use SQLExceptions. I think you would have to modify the Realm interface and the BaseRealm class to add this functionality. If you are just trying to request an enhancement, that would be the place too. - Andrew -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:10 AM To: Tomcat Users List Subject: Bugzilla down, can't submit tomcat bug I've emailed the contact listed on the error page but the email bounces back. I'm not sure what I can do to report a tomcat bug. -- http://issues.apache.org/bugzilla/post_bug.cgi Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. -- To unsubscribe, e-mail: mailto:tomcat-user- [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:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Context management and virtual host
Use the Remote Address Valve Context path=/manager Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1 / /Context More info is here - http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html - Andrew -Original Message- From: Q. Werty [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:48 AM To: tomcat-user Subject: Re: Context management and virtual host I agree there's no problem with installing the manager application in each virtual host. I just don't want to do this because I don't want to publish this context to anyone, even with credentials. I would be ready to this on our production server if I could restrict manager context access to some IP adresses (127.0.0.1 for exemple). == Is it possible? (if not, what about thinking of this in future release?) There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:tomcat-user- [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: Tomcat Installation on linux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Aug 26, 2002 at 09:07:31AM -0700, Randall R Schulz wrote: Hi, hello. sh -x shutdown.sh shutdown.txt 21 The real point is to include the standard error in the output captured in shutdown.txt good point. And really, a .txt suffix? Yuck! well, i wanted to make sure our windows listeners where able to open it without having to do some open with rigamaroll if they were so inclined. personally, i don't use an os that makes me put extensions on things so that it knows how to open them. my os assumes i know what i am doing and lets me open things any way i want. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9alO9ggA8sH0iRXQRAmEPAJ4+1lGkbkOELcS6HpaD13+Qupx+JQCeLV2/ bffV6TxM26YUNoKD+Stg168= =XuOI -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context management and virtual host
On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 17:48:10 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Re: Context management and virtual host I agree there's no problem with installing the manager application in each virtual host. I just don't want to do this because I don't want to publish this context to anyone, even with credentials. I would be ready to this on our production server if I could restrict manager context access to some IP adresses (127.0.0.1 for exemple). == Is it possible? (if not, what about thinking of this in future release?) Check out the Request Filters section on: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html Craig There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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: Context management and virtual host
OK, I haven't saw this. Thanks a lot Use the Remote Address Valve Context path=/manager Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1 / /Context More info is here - http://jakarta.apache.org/tomcat/tomcat-4.0- doc/config/valve.html - Andrew -Original Message- From: Q. Werty [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:48 AM To: tomcat-user Subject: Re: Context management and virtual host I agree there's no problem with installing the manager application in each virtual host. I just don't want to do this because I don't want to publish this context to anyone, even with credentials. I would be ready to this on our production server if I could restrict manager context access to some IP adresses (127.0.0.1 for exemple). == Is it possible? (if not, what about thinking of this in future release?) There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat- [EMAIL PROTECTED] To: [utf-8] tomcat-user tomcat- [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:tomcat-user- [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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context management and virtual host
OK, thanks a lot too. On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 17:48:10 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [utf-8] tomcat-user [EMAIL PROTECTED] Subject: Re: Context management and virtual host I agree there's no problem with installing the manager application in each virtual host. I just don't want to do this because I don't want to publish this context to anyone, even with credentials. I would be ready to this on our production server if I could restrict manager context access to some IP adresses (127.0.0.1 for exemple). == Is it possible? (if not, what about thinking of this in future release?) Check out the Request Filters section on: http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/context.html Craig There is no current support for a manager webapp that works cross-host. The people I know using multiple virtual hosts haven't had any problems with the notion of installing manager in each host (usually with a unique username/password if you allow the virtual host users to manage their own webapps). Admin webapp support for contexts is primarily for tweaking existing config properties. I view manager as the standard mechanism for dynamic starting and stopping of webapps, in addition to deploying, undeploying, and reloading. Although the user interface of manager is quite limited, it is expressly designed to be used by tools -- such as the Ant custom tasks included in Tomcat 4.1, and the version of deploytool shipped with the JWSDP http://java.sun.com/webservices/. People building plugins for IDEs should really be integrating support for manager commands instead of trying to embed Tomcat inside their environments. They'd find it a lot easier. Craig On Mon, 26 Aug 2002, Q. Werty wrote: Date: Mon, 26 Aug 2002 16:42:32 +0200 From: Q. Werty [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat- [EMAIL PROTECTED] To: [utf-8] tomcat-user tomcat- [EMAIL PROTECTED] Subject: Context management and virtual host I'am looking for a way to manage all contexts installed on my server. I've got numerous virtual hosts and I'like NOT to install manager context in all virtual hosts. How can I do? - Is it possible to install a cross-host context in Tomcat? - I saw the administration interface in Tomcat 4.1 beta. It's a very great work, this interface enable to see/add/remove all contexts accross all virtual hosts. I thought it was what I was looking for but apparently there's nothing to start/stop/reload context. Is it planned for final version? Thanks in advance for any response Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- 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] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk error
Hi Nicholas, I have always assumed these error messages were caused by the browser closing the connection -- generally because the user has clicked on something else or pressed STOP. (Of course, a double-click can exhibit the same way.) The servlet doesn't know that the user is no longer listening, so when it tries to write the response to a closed connection, it get's an error. thanks for the answer... so nothing serious (no bugs in mod_jk) :) . What about buggy browsers needing a workaround in httpd.conf or similar? Are the following directives sufficient? httpd.conf (SSL virtual host): SetEnvIf User-Agent .*MSIE.* \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 Greetings, Carsten -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: startup/shutdown Tomcat on Linux
sh startup.sh sh is the shell. At 10:04 PM 8/25/2002 -0700, you wrote: How do you start and shutdown Tomcat on Linux? I'm (obvioulsy) a windows person. I am attempting to get my app running on Linux. From the /bin directory I attempted to call shutdown.bat. This didn't work so I restarted the server (shutdown -r now). When the server came back, Tomcat was no longer responding. Attempting to call the URLs pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request that never comes back. I guess my ideal would be that Tomcat would auto-start upon reboot of the server. Is this easy to setup? In the near-term though I just need to know how to start/restart/shutdown tomcat. Thanks in advance! Neal -- 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: Tomcat log in linux
Have you even opened the command line in Linux? At 11:46 PM 8/25/2002 -0700, you wrote: In Windows, when you run Tomcat, a DOS command line window pops up and you see real-time messages from Tomcat. If something isn't going right ... you see those messages. Is there something analogous in Linux/Tomcat? I'm trying to get the dumb thing running but I'm not seeing any debug info and the logs look relatively empty. Thanks. NEal -- 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: Can't restart Linux
Turns out it was my bad. I had edited a roles in the tomcat users xml file and omotted a quotation mark - thus tomcat wasn't able to parse the XML. It was confusing though becuase the debug info wasn't forthcoming. Jacob's suggestion to set the debug levels though seems to have helpd. That and discoving the catalina.out file. :) Cheers. Neal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:57 AM To: 'Tomcat Users List' Subject: RE: Can't restart Linux Please give us more information. Be specific. What URL is not giving a response? What do the logs say? After you run startup.sh, what is the output of ps -ef |grep java? John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:52 AM To: Tomcat Users List Subject: Can't restart Linux I can't get tomcat to restart in linux. I run the ./bin/startup.sh file and it lists a fe env variables ... no errors. This seems to imply that its starting ... but yet I never get a response back from the server. It was working fine until I added a couple of host and connector nodes to the server.xml file and restarted the server. Since then I've removed those additional nodes, rebooted, and again attempted to to start Tomcat. Still no luck. Any thoughts? Neal -- 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]
creating virtual hosts - HOW TO?
I am attempting to create multiple discreet web apps, each of whom can listen to their own URLs for page requests. Here's an example of what I've done for each webApp (virtual host): Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path=/hotel docBase=hotel debug=10 / /Host But, I am getting a 500 error with the message No Context configured to process this request. It sees to be at least redirecting the requests for the specified URLs correctly (away from the default webapp) ... but I'm getting that darned 500 error ... dispite specifying the Context node. grrr Any thoughts? Thanks! Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.x body tags not exposing variables?
I'm having a problem with Tomcat 4.x and body tags. I am trying to migrate from a JBoss/Tomcat4.x environment to a Tomcat 4.1.9 setup. I say this because the tags in question function as I would expect with the JBoss setup but not the Tomcat setup. Here is the situation. I have a tag that exposes certain variables to the page: public class ExposerTag extends BodyTagSupport { public int doStartTag() throws JspTagException { //This team variable is properly declared in a TEI class pageContext.setAttribute(team, team); return EVAL_BODY_INCLUDE; } } And I call this tag as such within a jsp page: softball:softballExposer %= team.toString(); % /softball:softballExposer I get a NullPointer exception from this JSP page at the team.toString() line. I know from logging statements within the tag that there is a valid Team object being sent to the page context. Taking a look at the resulting servlet source of this jsp page, it looks like that because the tag returns the EVAL_BODY_INCLUDE result, the team attribute is never set (the code has been cleaned for your viewing pleasure): int result = exposer.doStartTag(); if (result != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (result != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody(); _bc.clear(); out = _bc; exposer.setBodyContent(_bc); exposer.doInitBody(); team = (Team) pageContext.findAttribute(team); } do { out.write(team.toString()); } while { //blah } } So I believe my problem is that because I am using the EVAL_BODY_INCLUDE result for the doStartTag() method of my exposer tag, the attribute is never sent to the page context for consumption within the page. My questions are; 1) Why would this work in a JBoss/Tomcat setup and not in a purely Tomcat setup and 2) Should I not be using the EVAL_BODY_INCLUDE result code for a method of this type? When I change the tag to return the EVAL_BODY_BUFFERED result, then any nested tags are properly written out to the output stream, so I don't believe this is an acceptable option. Can anybody shed some light on my situation. I have that eerie feeling that I'm missing something incredibly simple here... -Ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat log in linux
There is top and ps aux. At 07:54 AM 8/26/2002 -0400, you wrote: No, there is nothing analogous to the command line window that pops up in Windows in Linux when starting tomcat. Windows is a poor operating system for running services. Linux/UNIX is a proper operating system for running services...there is no need to startup another process to run tomcat on Linux. Tomcat (and other services) simply run as they should. If you post error messages, and possibly snippets of your log files, and what you've done to try and resolve any of them, it would be much easier for someone to help. We don't even know what Linux you are using. That said, depending on the version of Linux you are using, and the version of tomcat, you can determine if something is running with the ps command. man ps will provide you with help, in general tomcat can be seen running by looking for lines that have java in them, after using the command: ps -ef A shorthand way of doing this is ps -ef |grep java. John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:46 AM To: Tomcat Users List Subject: Tomcat log in linux In Windows, when you run Tomcat, a DOS command line window pops up and you see real-time messages from Tomcat. If something isn't going right ... you see those messages. Is there something analogous in Linux/Tomcat? I'm trying to get the dumb thing running but I'm not seeing any debug info and the logs look relatively empty. Thanks. NEal -- 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: creating virtual hosts - HOW TO?
Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[TC 4.1] Defining jsp reloading using conf/web.xml
The conf/web.xml seems to define two parameters ( development, reloading ) for the JSP page compiler that do not seem to work. Can anyone confirm that these work for them, or has the Context reloadable=true / replaced this type of configuration? Example: !-- fragment from conf/web.xml --- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namedevelopment/param-name param-valuetrue/param-value /init-param init-param param-namereloading/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet !-- end fragment -- Andrew Conrad 617.470.8045 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat-connector....
Hi, I know that this is a never ending story but just one thing Why is there a special effort being made in creating the directory structure, yet when I get to the final folder it´s empty!? For example: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0 /bin/linux/i386/ Please don´t flame because I´m not trying to be rude. It´s just that it would be easier if it was there... Regards, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat-connector....
H...not sure what the complaint is here. The binaries are here (mod_jk, tomcat 3 and 4 compatible): http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38 6/ And the source is here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/ Let us know if that isn't sufficient. John Turner [EMAIL PROTECTED] -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:09 PM To: [EMAIL PROTECTED] Subject: Tomcat-connector Hi, I know that this is a never ending story but just one thing Why is there a special effort being made in creating the directory structure, yet when I get to the final folder it´s empty!? For example: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1.2.0 /bin/linux/i386/ Please don´t flame because I´m not trying to be rude. It´s just that it would be easier if it was there... Regards, Michael -- 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: Tomcat-connector....
that´s more than sufficient. I was looking at the wrong place! Mind you, it makes sense to look under builds/jakarta-tomcat-connectors/jk/ :-) Thanks a bunch, Michael - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, August 26, 2002 8:08 PM Subject: RE: Tomcat-connector H...not sure what the complaint is here. The binaries are here (mod_jk, tomcat 3 and 4 compatible): http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38 6/ And the source is here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/ Let us know if that isn't sufficient. John Turner [EMAIL PROTECTED] -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:09 PM To: [EMAIL PROTECTED] Subject: Tomcat-connector Hi, I know that this is a never ending story but just one thing Why is there a special effort being made in creating the directory structure, yet when I get to the final folder it´s empty!? For example: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1.2.0 /bin/linux/i386/ Please don´t flame because I´m not trying to be rude. It´s just that it would be easier if it was there... Regards, Michael -- 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: creating virtual hosts - HOW TO?
Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Cheers! Neal -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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]
env variable keeps resetting on restart of server
Does anyone know why my JAVA_HOME environment variable won't keep when I restart the server (Linux)? Here's how I set it (note I set TOMCAT_HOME the same way and it hasn't been a problem): JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: env variable keeps resetting on restart of server
If you are setting it after you login, it only holds for that login session. If you logout or restart the server, it is gone. If you need it to stick around, you can put it in /etc/profile if you want it to apply to every person who logs in, or put it in your .profile ($HOME/.profile) file so that it is set when you login. John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:29 PM To: Tomcat Users List Subject: env variable keeps resetting on restart of server Does anyone know why my JAVA_HOME environment variable won't keep when I restart the server (Linux)? Here's how I set it (note I set TOMCAT_HOME the same way and it hasn't been a problem): JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME Thanks. Neal -- 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]
Tomcat4.0 with and Apache2
Hello, We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are enough differences between Apache 1.3 and Apache 2.0 that the existing documentation does not help us. Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following items: LoadModule proxy_module {path-to-modules}/mod_proxy.so AddModule mod_proxy.c ProxyPass /myapp http://localhost:8081/myapp ProxyPassReverse /myapp http://localhost:8081/myapp but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know what to do. What is the equivalent configuration for Apache 2.0? Is there any documentation that exists for connecting these specific versions? Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have iPlanet and would like to continue using it, but we can't find any way to get the two products to work together. thank you in advance for your assistance, Raj and Brandon - Broward Community College
Re: env variable keeps resetting on restart of server
If you are setting it after you login, it only holds for that login session. If you logout or restart the server, it is gone. If you need it to stick around, you can put it in /etc/profile if you want it to apply to every person who logs in, or put it in your .profile ($HOME/.profile) file so that it is set when you login. John Turner [EMAIL PROTECTED] Correct, except the file has different names depending on what shell you are using. .bash_profile or .bash_login for bash, .login for csh or tcsh. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat4.0 with and Apache2
If your documentation is telling you to use mod_proxy to connect apache to tomcat, burn that documentation. You want to use mod_jk or mod_webapp with tomcat and apache. mod_jk is more robust at this juncture, and there are good resources available to explain how to get mod_jk working with apache and tomcat. Which platform are you using? Windows? Linux/UNIX? I'm not familiar enought wiht iPlanet OS support to be able to tell which platform you are using. Here is a resource for apache 2.0 and tomcat 4 on Win2K: http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html Here is a resource for apache 1.3 and RH 7.2: http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not that different, you just need an apache-2.0 specific mod_jk.so). In addition, the list can help you out pretty easily if you post back with more specific information. Don't rely on whatever documentation you have, it seems to be grossly in error. John Turner [EMAIL PROTECTED] -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: Tomcat4.0 with and Apache2 Hello, We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are enough differences between Apache 1.3 and Apache 2.0 that the existing documentation does not help us. Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following items: LoadModule proxy_module {path-to-modules}/mod_proxy.so AddModule mod_proxy.c ProxyPass /myapp http://localhost:8081/myapp ProxyPassReverse /myapp http://localhost:8081/myapp but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know what to do. What is the equivalent configuration for Apache 2.0? Is there any documentation that exists for connecting these specific versions? Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have iPlanet and would like to continue using it, but we can't find any way to get the two products to work together. thank you in advance for your assistance, Raj and Brandon - Broward Community College -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat4.0 with and Apache2
Hi, I am planing to use tomcat4.0 with Apache2 using the mod_proxy, because I think that it ahs more scalability as you can after sometime move the tomcat to other machine. But as I saw your e-mail, saying to burn What Integration do you tinhk it´s better and why? thank you -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat4.0 with and Apache2 If your documentation is telling you to use mod_proxy to connect apache to tomcat, burn that documentation. You want to use mod_jk or mod_webapp with tomcat and apache. mod_jk is more robust at this juncture, and there are good resources available to explain how to get mod_jk working with apache and tomcat. Which platform are you using? Windows? Linux/UNIX? I'm not familiar enought wiht iPlanet OS support to be able to tell which platform you are using. Here is a resource for apache 2.0 and tomcat 4 on Win2K: http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html Here is a resource for apache 1.3 and RH 7.2: http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not that different, you just need an apache-2.0 specific mod_jk.so). In addition, the list can help you out pretty easily if you post back with more specific information. Don't rely on whatever documentation you have, it seems to be grossly in error. John Turner [EMAIL PROTECTED] -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: Tomcat4.0 with and Apache2 Hello, We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are enough differences between Apache 1.3 and Apache 2.0 that the existing documentation does not help us. Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following items: LoadModule proxy_module {path-to-modules}/mod_proxy.so AddModule mod_proxy.c ProxyPass /myapp http://localhost:8081/myapp ProxyPassReverse /myapp http://localhost:8081/myapp but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know what to do. What is the equivalent configuration for Apache 2.0? Is there any documentation that exists for connecting these specific versions? Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have iPlanet and would like to continue using it, but we can't find any way to get the two products to work together. thank you in advance for your assistance, Raj and Brandon - Broward Community College -- 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: Tomcat4.0 with and Apache2
Sorry, perhaps that was too harsh. You don't need mod_proxy to put tomcat on a separate machine from apache. mod_jk supports load-balancing (http://www.ubeans.com/tomcat for a HOWTO), and if you just want tomcat on a separate machine without load-balancing, you change the host parameter in mod_jk's worker.properties file to the hostname of the tomcat server instead of localhost or whatever the default is (see earlier posts today on this list on exactly this topic). In addition, with mod_jk, you can set tomcat (provided tomcat is on the same machine) to auto-generate the mod_jk configuration directives for apache. That means that you only need to change one server configuration (tomcat), and the apache configuration will follow. mod_proxy probably works (I haven't tried it) and others are probably doing it that way, but in my opinion it would make sense to use the tool that was specifically developed to integrate with tomcat, and that means one of the connectors such as mod_jk or mod_webapp. Obviously, you are welcome to use whatever suits your environment and situation. John Turner [EMAIL PROTECTED] -Original Message- From: Milhomem, Marcus [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:47 PM To: Tomcat Users List Subject: RE: Tomcat4.0 with and Apache2 Hi, I am planing to use tomcat4.0 with Apache2 using the mod_proxy, because I think that it ahs more scalability as you can after sometime move the tomcat to other machine. But as I saw your e-mail, saying to burn What Integration do you tinhk it´s better and why? thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: env variable keeps resetting on restart of server
Neal, you never give the info we need at the start. Where have you set the JAVA_HOME variable? /etc/profile? At 11:29 AM 8/26/2002 -0700, you wrote: Does anyone know why my JAVA_HOME environment variable won't keep when I restart the server (Linux)? Here's how I set it (note I set TOMCAT_HOME the same way and it hasn't been a problem): JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME Thanks. Neal -- 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]
'Caching' of JSP pages
I am running Tomcat 4.1 on Linux 7.2. When I edit a jsp page, I continue to see the old page even after: using the 'reload' command of the 'Manager' app, and using the 'reload' and 'install' commands. Where is the compiled version of the page being cached? and How can I get it it to re-compile the new jsp's? Any help would be appreciated. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE : Bugzilla down, can't submit tomcat bug
I haven't submitted a bug, but new bugs are appearing. Example - http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12046 The date is 2002-08-26 17:06 - Andrew -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 12:09 PM To: 'Tomcat Users List' Subject: RE : Bugzilla down, can't submit tomcat bug Did you actually submit a bug? I tried several times on Friday, Saturday, and again today and each time it takes about 5 minutes to time out. The bug I want to submit is for the CATALINA_BASE variable.. When I use it my web app is not accessible. I've posted a few messages about it but haven't gotten much of a response, I don't think many people have tried using it. http://marc.theaimsgroup.com/?l=tomcat-userm=103000367314894w=2 -Original Message- From: Andrew Conrad [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 5:26 PM To: 'Tomcat Users List' Subject: RE: Bugzilla down, can't submit tomcat bug Bugzilla seems to be working for me. I read your msg concerning differentiation between SQLException's and user login failure. I don't think it's possible, and I don't think it's a bug. Mainly because not all Realm's use SQLExceptions. I think you would have to modify the Realm interface and the BaseRealm class to add this functionality. If you are just trying to request an enhancement, that would be the place too. - Andrew -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:10 AM To: Tomcat Users List Subject: Bugzilla down, can't submit tomcat bug I've emailed the contact listed on the error page but the email bounces back. I'm not sure what I can do to report a tomcat bug. -- http://issues.apache.org/bugzilla/post_bug.cgi Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. -- To unsubscribe, e-mail: mailto:tomcat-user- [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:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [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: env variable keeps resetting on restart of server
Thanks John, I did not realize this. I'll make this change. :) Neal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:32 AM To: 'Tomcat Users List' Subject: RE: env variable keeps resetting on restart of server If you are setting it after you login, it only holds for that login session. If you logout or restart the server, it is gone. If you need it to stick around, you can put it in /etc/profile if you want it to apply to every person who logs in, or put it in your .profile ($HOME/.profile) file so that it is set when you login. John Turner [EMAIL PROTECTED] -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:29 PM To: Tomcat Users List Subject: env variable keeps resetting on restart of server Does anyone know why my JAVA_HOME environment variable won't keep when I restart the server (Linux)? Here's how I set it (note I set TOMCAT_HOME the same way and it hasn't been a problem): JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME Thanks. Neal -- 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]
process: invoke java.lang.NoSuchMethodError
I am using Tomcat 4.0.4, Apache 1.3.12, JDK 1.3.1 on Windows 2000 Server. When trying to run a jsp file I get the error: 2002-08-26 12:02:36 Ajp13Processor[8009][2] process: invoke java.lang.NoSuchMethodError at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:159) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) Anyone have any ideas? jav -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: creating virtual hosts - HOW TO?
I'd try putting the appBase (not appbase !!!) for your virtual host somewhere *other* than the webapps subdirectory -- that is just going to cause confusion for the default host. Second, the docBase directory for a Context is resolved relative to the directory of the parent appBase, so you'd end up looking for this webapp in $CATALINA_HOME/webapps/hotel/hotel. Craig On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 10:26:48 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: creating virtual hosts - HOW TO? I am attempting to create multiple discreet web apps, each of whom can listen to their own URLs for page requests. Here's an example of what I've done for each webApp (virtual host): Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path=/hotel docBase=hotel debug=10 / /Host But, I am getting a 500 error with the message No Context configured to process this request. It sees to be at least redirecting the requests for the specified URLs correctly (away from the default webapp) ... but I'm getting that darned 500 error ... dispite specifying the Context node. grrr Any thoughts? Thanks! Neal -- 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: creating virtual hosts - HOW TO?
On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 11:15:17 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Jacob Kjome [EMAIL PROTECTED] Subject: RE: creating virtual hosts - HOW TO? Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Note that this will cause your app to be deployed under context path /hotel on the default host, in addition to being deployed as the root webapp of the virtual host. That's probably not what you want -- the solution is to make the appBase of this host be someplace else. Note that you can use an absolute pathname for either appBase or docBase. Cheers! Neal Craig -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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: creating virtual hosts - HOW TO?
Aah. Good catch. Yeah, you're right ... that's what its doing. Alright. I will definitely change that. Cheers. Neal -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 12:45 PM To: Tomcat Users List Cc: Jacob Kjome Subject: RE: creating virtual hosts - HOW TO? On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 11:15:17 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Jacob Kjome [EMAIL PROTECTED] Subject: RE: creating virtual hosts - HOW TO? Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Note that this will cause your app to be deployed under context path /hotel on the default host, in addition to being deployed as the root webapp of the virtual host. That's probably not what you want -- the solution is to make the appBase of this host be someplace else. Note that you can use an absolute pathname for either appBase or docBase. Cheers! Neal Craig -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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: Tomcat4.0 with and Apache2
Hi, I am running both Apache2.0 and Tomcat4.0 on solaris8, I have downloaded binaries of tomcat4 and I have compiled Apache from source code.It didnot do --enable-module=so while configuring apache, that means do I have to re-configure apache again. My modules directory under apache doesn't have any mod_* files. mod_jk comes with tomcat or do i need to separately download it, if so please give me the link can you give me a resource link for configuration of tomact4 and apache2 on solaris environment. thanks a lot... Raj [EMAIL PROTECTED] 08/26/02 02:41PM If your documentation is telling you to use mod_proxy to connect apache to tomcat, burn that documentation. You want to use mod_jk or mod_webapp with tomcat and apache. mod_jk is more robust at this juncture, and there are good resources available to explain how to get mod_jk working with apache and tomcat. Which platform are you using? Windows? Linux/UNIX? I'm not familiar enought wiht iPlanet OS support to be able to tell which platform you are using. Here is a resource for apache 2.0 and tomcat 4 on Win2K: http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html Here is a resource for apache 1.3 and RH 7.2: http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not that different, you just need an apache-2.0 specific mod_jk.so). In addition, the list can help you out pretty easily if you post back with more specific information. Don't rely on whatever documentation you have, it seems to be grossly in error. John Turner [EMAIL PROTECTED] -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: Tomcat4.0 with and Apache2 Hello, We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are enough differences between Apache 1.3 and Apache 2.0 that the existing documentation does not help us. Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following items: LoadModule proxy_module {path-to-modules}/mod_proxy.so AddModule mod_proxy.c ProxyPass /myapp http://localhost:8081/myapp ProxyPassReverse /myapp http://localhost:8081/myapp but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know what to do. What is the equivalent configuration for Apache 2.0? Is there any documentation that exists for connecting these specific versions? Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have iPlanet and would like to continue using it, but we can't find any way to get the two products to work together. thank you in advance for your assistance, Raj and Brandon - Broward Community College -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: i can't acces absolute symbolic link created with ln -s command on LINUX
Any ideas on this bug? I posted exactly the same question before and got no response. jsp:include seems not working with symlinked directory. It works on 4.0 version, but stops working on 4.1 version. Is it a tomcat bug or coyote bug? I thought [4.1.9] build with bug fix for #10949 will solve the problem, but does not seem so. Thanks. -Original Message- From: CouasPhilippe [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 9:57 AM To: 'Tomcat Users List' Subject: RE: i can't acces absolute symbolic link created with ln -s command on LINUX -Message d'origine- De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]] Date: mercredi 31 juillet 2002 09:59 A: Tomcat Users List Objet: Re: i can't acces absolute symbolic link created with ln -s command on LINUX A new Idea for resolving this problem ? Thanks Philippe I have reproduced this situation and have the same problem here I have made a link to Tomcat examples directory. ln -s /path/to/tomcat/webapps/examples example So with FollowSymLinks and Indexes options I see the direcory context, see static files, but as soon as I try to get jsp page I have the same 404 error [GET /examples/jsp/snp/snoop.jsp HTTP/1.1 404 687] And the similar error with servlet examplesThe requested URL /examples/servlet/RequestParamExample was not found on this server. Although I just have noticed that I use TC 4.0.4 where you seem don't have this issue On Wednesday 31 July 2002 08:04, you wrote: -Message d'origine- De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]] Date: mercredi 31 juillet 2002 07:47 A:Tomcat Users List Objet:Re: i can't acces absolute symbolic link created with ln -s command on LINUX I use Tomcat 4.1.7 Standalone my link is ln -s /appli appli and Tomcat is in /usr/bin Directory. I have exactly same problem with AIX I think there is as security parameter somewhere 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]
How does Tomcat and/or servlets handle HTTP chunked reads?
I'm just curious how Tomcat handles HTTP requests that only want a portion of the content. I'm specifically interested in things like PDF files, which is the most common client of chunked data. I suppose its solely up to the Servlet to figure out that the request wants a chunk of data (from the request headers) and return the appropriate bits (and status code), correct? Has anyone played with this at all? We're getting ready to put some Filters in front of some PDFs, and this little detail caught my eye. We haven't actually tried anything yet. Just wondering what others experiences were regarding chunked reads. Thanx! Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
postgresql jndi jdbc getConnection() problem
I saw one other post on the archives about this but it has no resolution. I have set up Tomcat 4.0.4 to use the jndi resource factory to use pgsql jdbc connection pooling (fake pooling). Whenever I call the second line of this code: Context ctx = (Context) new InitialContext().lookup(java:comp/env); conn = ((DataSource) ctx.lookup(jdbc/IFDB)).getConnection(); I get a Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.lang.NullPointerException Stack Trace: java.lang.NullPointerException at org.postgresql.Connection.openConnection(Connection.java:155) error. My server.xml resource looks like this within the context tag: ResourceParams name=jdbc/IFDB parameter nameuser/name valuekenjackson/value /parameter parameter namepassword/name value29gzy8/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter namedriverName/name valuejdbc:postgresql://postgresql1.eapps.com:5432//value /parameter /ResourceParams NOTE: I have changed the user parameter to name username but that doesn't help and the tyrex api asks for user so I'm assuming that's right. and my webapp web.xml: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-name jdbc/IFDB /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref Has anyone else run into a similar problem. From what I have seen on the list the Tyrex api is a problem, but I'm currently stuck with it. thanks, Adam Kramer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Internal Sever Error
Hi Everyone, I recently installed the Tomcat 4.0.3 on a windows 2000 sever machine running with Microsoft IIS. I needed to do this to run a war file that controls a web-base application of documentum (our current content management system). After I installed Tomcat the test serlvets and other pages worked fine, but when I went to test the documentum software I get the following error (I have read a lot of documentation and have talked to several documentum tech supports with no success), would anybody know why I am getting the following error, Any help is much appreciated, Thank you. 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: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java :246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 70) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java :566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav a:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:11 07) at java.lang.Thread.run(Thread.java:536) root cause java.lang.VerifyError: (class: com/documentum/web/formext/config/ConfigFile, method: loadXML signature: (Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;) Incompatible object argument for function call at com.documentum.web.formext.config.HttpConfigReader.loadAppConfigFile(HttpC onfigReader.java:109) at com.documentum.web.formext.config.ConfigService.initialiseApp(ConfigServic e.java:513) at com.documentum.web.formext.config.ConfigService.(ConfigService.java:441) at com.documentum.web.formext.config.ConfigService.refresh(ConfigService.java :89) at com.documentum.web.formext.config.ConfigService.getConfigLookup(ConfigServ ice.java:67) at com.documentum.web.common.LocaleService.getDefaultLocale(LocaleService.jav a:113) at com.documentum.web.formext.component.ComponentDispatcher.onSessionStart(Co mponentDispatcher.java:195) at com.documentum.web.formext.component.ComponentDispatcher.mapRequestToCompo nent(ComponentDispatcher.java:266) at com.documentum.web.formext.component.ComponentDispatcher.doGet(ComponentDi spatcher.java:150) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at com.documentum.web.formext.component.ComponentDispatcher.service(Component Dispatcher.java:127) at
Design Questions..
I created a simple servlet that will use a JDBC driver and access a table in a postgresql database. It will display the table in HTML formatted output. This is great but I'd like to extend it's functionality. I'd like to have a way so that the user can Add, Delete and Update the table via the web page/servlet. This is easy enough, but how do I have the servlet update its own output in the web browser so that it reflects the new changes? Is there a refresh command or something. I was thinking having a jsp page where the user inputs the changes, and then POST it to the servlet.. still not sure how the page gets updated. Anybody have any example sites/code?? Here's my classes Rigby.class is the client class that calls on DBThing to do the database access. --- Rigby.java --- // Copyright Michael Hanna 2002 // do not use without permission of author import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; // All we need for JDBC public class Rigby extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response)throws IOException, ServletException { PrintWriter out; DBThing dbt; ResultSet results; Date birthdate, now; boolean isColoured = true; // is this table row coloured or not String database = rigby; String username = nevermind; String password = nevermind; String mdMsg; response.setContentType(text/html); out = response.getWriter(); out.println(html); out.println(body); out.println(head); out.println(titleRigby/title); out.println(/head); out.println(body); out.println(h2Contents of friends:/h2); try { Class.forName(org.postgresql.Driver); //load the driver //out.println(BInside try2/B); dbt = new DBThing(database, username, password); mdMsg = dbt.getMetaDataMsg(); out.println(mdMsg + BR); results = dbt.queryDB(select firstname, surname, email, tel, birthdate from friends order by surname asc); //isNull = results.wasNull(); out.println(ResultSet null?: + results.wasNull() + BR); //results.last(); //out.println(Current Row: + results.getRow() + BR); out.println(form type=POST action=carts.jsp); out.println(BR); out.println(Order by:); out.println(SELECT NAME='Order by'); out.println(OPTIONFirst Name); out.println(OPTIONSurname); out.println(OPTIONBirthdate); out.println(/SELECT); out.println(INPUT TYPE=submit name='submit' value='Go'); out.println(/form); out.println(BR); if (results != null) { out.println(TABLE border = 1 cellspacing = 0); out.println(TR); //out.println(TDBid/TD/B out.println(TDBFirst Name/TD/B +TDBSurname/TD/B + TDBEmail/TD/B + TDBPhone/TD/B+TDBBirthdate/TD/B); out.println(/TR); //out.println(\n); while (results.next()) { if (isColoured == false) { out.println(TR); isColoured = true; } else { out.println(TR bgcolor = #CC); isColoured = false; } //birthdate = new Date(results.getDate(birthdate)); //now = new Date(); //out.println(TD + results.getInt(id) + /TD); out.println(TD + results.getString(firstname) + /TD + TD + results.getString(surname)+ /TD + TD A href = mailto:; + results.getString(email) ++ results.getString(email)+ /A /TD + TD +results.getString(tel)+/TD + TD + results.getString(birthdate)+/TD); out.println(/TR); } } else { out.println(The friends database is empty.br); } results.close(); out.println(/TABLE); } catch (ClassNotFoundException cnf) { out.println(***Exception:\n+cnf); cnf.printStackTrace(); } catch (SQLException se) { out.println(***Exception:\n+se); se.printStackTrace(); } //out.println(hey2); out.println(/body); out.println(/html); } } --- DBThing.java --- // Copyright Michael Hanna 2002 // do not use without permission of author import java.sql.*; // All we need for JDBC import java.lang.*; public class DBThing { Connection db;// A connection to the database Statementsql; // Our statement to run queries with DatabaseMetaData dbmd; //
Re: javax directory
On Thursday 22 August 2002 20:21, you wrote: I am trying to compile a application that uses import javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I attempt to compile this code I receive errors stating that it could not find these symbols. I noticed that they are actually located in the tomcat directory. Should this be copied to the java directory or is there something else I should do. This problem of compiling is very well described at http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/part1/page9.jsp not only described but there is a given solution to this issue Take a look, may be you find your solution there ilis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Design Questions..
Michael, I'm sure everyone else is gonna tell you this too, but here are some pointers from just glancing over the code. - set up your db connection in the init() method, not doGet(). doGet() is executed every time the servlet is called with an HTTP GET. So, effectively, you are loading the driver and creating a connection and DBThing object and blah blah blah every time your servlet is called. That's a performance killer. - better yet, use a Connection Pool that's created on startup. Write your own, or there are many available. I'm sure others will provide links... - as far as your question: I'm assuming you're using an HTML form to POST/GET to the servlet. There are alot of ways you can go, but a simple one is to have a parameter called 'databaseaction' or whatever, and that indicates which operation the servlet will perform from it's doGet() or doPost(). Alternatvely, you can have a different HTML form/page for each action that calls the servlet (or a different servlet, although that's pretty inefficient) with a different parameter. This is easy enough, but how do I have the servlet update its own output in the web browser so that it reflects the new changes? Is there a refresh command or something. You can have the servlet (or JSP) just call itself, and at the end of processing, just display whatever you were going to display normally. Servlets are based on a request/response model, so once the servlet has finished returning data to your browser, it is not going to attempt to push new data out. It would have to be called again after the update takes place. I was thinking having a jsp page where the user inputs the changes, and then POST it to the servlet.. still not sure how the page gets updated. Anybody have any example sites/code?? You can have the form on the JSP just call the JSP again. The JSP tests for the right combination of parameters and performs the appropriate actions... e.g. in 'faq.jsp' (this is basically just snippits) html body % JDBCConnectionPool connectionPool = (JDBCConnectionPool)application.getAttribute(edu.tcnj.cs.cmsc446.Connection pool); % form name=myform action=faq.jsp method=POST ... /form % /* get params, test for form submission, take appropriate action */ String submitted=request.getParameter( Submit ); String questiontext=request.getParameter( questiontext ); String username=request.getParameter( username ); if( submitted!=null submitted.equals( Submit Question ) questiontext!=null !questiontext.equals( ) username!=null !username.equals( ) ){ edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new edu.tcnj.cs.cmsc446.SQLWorker(); try{ sqlWorker.setConnection( connectionPool.getConnection() ); sqlWorker.submitQuestion( questiontext, username ); sqlWorker.logQuestionPost( username, question, request.getRemoteAddr() ); }catch(Exception badQues){ application.log( faq.jsp: error submitting new question=+badQues ); }finally{ if( connectionPool!=null ) connectionPool.free( sqlWorker.getConnection() ); } }else{ out.println( pNo question asked at this time. Enjoy browsing./p ); } % !-- more html -- % edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new edu.tcnj.cs.cmsc446.SQLWorker(); try{ sqlWorker.setConnection( connectionPool.getConnection() ); Vector entries = sqlWorker.getQuestions(); if( entries!=null ){ Question ques=null; for( int i=0;ientries.size();i++ ){ ques = (Question)entries.elementAt( i ); out.println( trtd width=\23%\font face=\Arial, Helvetica, sans-serif\ size=\2\a href=\answer.jsp?refNum=+ques.getRefNum()+\+ques.getRefNum()+/a/fo nt/td ); out.println( td width=\77%\font face=\Arial, Helvetica, sans-serif\ size=\2\+ques.getQuestion()+/font/td/tr ); } }else{ out.println( trtdno entries/tdtdno questions at this time/td/tr ); } }catch( Exception e ){ application.log( faq.jsp: error getting all questions=+e ); }finally{ if( connectionPool!=null ) connectionPool.free( sqlWorker.getConnection() ); } % /body /html Regards, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]