Re: VERY VERY URGENT!!!!
Can't comment on #1 but #2 is set in your Web Apps war file. From: Catalin [EMAIL PROTECTED] Organization: Quattrosoft International Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Wed, 19 Dec 2001 15:14:28 -0800 To: [EMAIL PROTECTED] Subject: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Stability of Tomcat 3.3 vs. 4.0
I would suggest Tomcat 4.0 because it is integrated into Jboss which gives you a MAJOR speed up between the servlet layer and the Jboss layer. Major speed up. From: Wilson, Wayne [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Tue, 18 Dec 2001 13:21:34 -0500 To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Subject: Stability of Tomcat 3.3 vs. 4.0 Hi, Because of some deadlock bugs in Tomcat 3.2.3 that we are experiencing (891, 1006 1798), we are going to have to switch to either Tomcat 3.3 or 4.X. What do people think about the stability of each of these versions? We will be running this on W2K in conjunction with JBoss and because we need load balancing we will be using mod_jk. What do you think? --Wayne -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SSL and CAs
I am setting up an SSL site. At this point I don't know if I will be running Tomcat4 standalone or with Apache in front. Is the certificate format compatible between the two? I was planning on using Thawte for my certificate provider. Tomcat is not in their list of supported Web servers. Which should I choose? Hunter -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Catching NPE's in JSPs
Like a lot of people, sometimes I'll see a JSP error out with an NPE... In this case I have a JSP that pulls some stuff using request.getAttribute() and displays the info... I'm having a hell of a time finding the current culprit of my NPE... I've tried pulling out sections of code and reloading... Still having trouble... Tomcat4 seems to buffer slightly differently where with 3.x the NPE was closer to the code that was just output? Anyway, wondering if anyone has any insightful methods to track down NPEs in JSPs... Hunter
Coding Tags the Right Way
I have the Manning book, JSP Tag Libraries which I've been using to help develop some of my first tags. For their iterator tags that work with beans, they use a lot of reflection. I've not used reflection much in projects before this but I seem to remember from my education that reflection is a very expensive process... Anyone that has worked with tags have any insight as to how this design could negatively impact performance on the Web app? Hunter
Strange Tomcat - Apache Configuration
I am using Tomcat 3.2.3 in conjunction with JBoss and Apache in front... First off, my configuration works just fine. My problem is that from the Apache conf file, I don't see why it works. When I change it to what I think it *should* be, it doesn't work anymore... Here are some details: Apache 1.3.20 w/ mod_jk JBoss 2.4 w/ embedded Tomcat 3.2.3 Some env variables: JBOSS_HOME = /usr/local/jboss TOMCAT_HOME = /usr/local/jboss/tomcat I also have an old, inactive (i.e. not running) copy of Tomcat at /usr/local/jakarta-tomcat-3.2.2 Here is part of my *working* Apace conf file: VIRTUALHOST x.x.x.x DocumentRoot /server1/libmedia ServerName www.liberationmedia.com ServerAlias www.liberationmedia.com liberationmedia.com CustomLog /server1/libmedia/logs/apache.log combined ServerAdmin [EMAIL PROTECTED] Alias /libmedia /usr/local/jakarta-tomcat-3.2.2/webapps/libmedia Directory /usr/local/jakarta-tomcat-3.2.2/webapps/libmedia Options Indexes FollowSymLinks /Directory JkMount /libmedia/servlet/* ajp12 JkMount /libmedia/*.jsp ajp12 JkMount /libmedia/* ajp12 Location /libmedia/WEB-INF/ AllowOverride None deny from all /Location Location /libmedia/META-INF/ AllowOverride None deny from all /Location /VIRTUALHOST Here you see that the Directory directive is pointing at the INACTIVE version of Tomcat. This copy of Tomcat is not running. Changes to the files in it's webapps directory DO NOT change the running site, only changes to the files under the TOMCAT_HOME specified above do. If I change the directory directive to point to the real tomcat directory, Apache returns a not available error (as if Tomcat wasn't even started). This makes absolutely no sense to me and I don't feel comfortable with a configuration I don't understand. Any help is greatly appreciated.
Re: NYNY
While a commendable idea, my peering reports show all major networks fully functioning... I'm not sure if there is a bandwidth crisis at the moment. From: Thomas Cherry [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 11 Sep 2001 13:41:26 -0500 To: [EMAIL PROTECTED] Subject: NYNY Lets try to keep traffic down to let those who need information or communication with loved ones use the bandwidth. Lets have no traffic for 24 hours. Thanks.
Re: Call EJB in OC4J from Tomcat
While it may work in the built-in container, other containers definitely need the stub classes to be able to manipulate the references to the remote objects... Hunter From: Ghislain Gadbois [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 10 Sep 2001 17:05:17 -0400 To: [EMAIL PROTECTED] Subject: RE: Call EJB in OC4J from Tomcat Actually, it seems that OC4J doesn't need stub classes at all!! It doesn't seem to generate any client classes when an EJB is deployed in the server. I ran a sample Java application and my servlet from within JDeveloper wihout needing any stub class at all. But, when I try to run the exact same servlet in another servlet container (I have the same behavior in JRun BTW), I keep getting ClassCastExceptions... This puzzles me... Thanks for your help. Cheers Ghis -Message d'origine- De : Lin, Zhongwu [mailto:[EMAIL PROTECTED]] Envoyé : 10 septembre, 2001 16:53 À : '[EMAIL PROTECTED]' Objet : RE: Call EJB in OC4J from Tomcat Looks like you don't have stub classes of your ejbHome in your tomcat. Try put those in your application's \web-inf\lib (your ejb jar file) or \web-inf\classes ( classese file) it should work then. regards zlin -Original Message- From:Ghislain Gadbois [SMTP:[EMAIL PROTECTED]] Sent:Monday, September 10, 2001 3:42 PM To:[EMAIL PROTECTED] Subject:RE: Call EJB in OC4J from Tomcat Sure, here it is... BTW, I used the same kind of code to call EJBs in Oracle JVM and in Websphere and it always worked... try { Hashtable oEnv = new Hashtable(5); // Max needed + 1 oEnv.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.ApplicationClientInitialContextFactory); oEnv.put(Context.PROVIDER_URL, ormi://saturne:23791/Demo); oEnv.put(Context.SECURITY_PRINCIPAL, admin); oEnv.put(Context.SECURITY_CREDENTIALS, admin); InitialContext oContext = new InitialContext(oEnv); U2007ML_UsersHome oHome; // This is where I get the ClassCastException... oHome = (U2007ML_UsersHome) oContext.lookup(U2007ML_UsersRemote); ... } catch(Exception ex) { ex.printStackTrace(); } Thanks for your help! -Message d'origine- De : Lin, Zhongwu [mailto:[EMAIL PROTECTED]] Envoyé : 10 septembre, 2001 16:27 À : '[EMAIL PROTECTED]' Objet : RE: Call EJB in OC4J from Tomcat Can you show us how you make call to ejb? otherwise on one can help you zlin -Original Message- From:Ghislain Gadbois [SMTP:[EMAIL PROTECTED]] Sent:Monday, September 10, 2001 3:25 PM To:Tomcat-User list (E-mail) Subject:Call EJB in OC4J from Tomcat Hi, I have a servlet deployed in Tomcat 3.2.1 on SunOS 5.6. My servlet works fine. I have EJB components deployed in Oracle Containers for J2EE (OC4J) which are J2EE compliant containers. I can call my EJB components from my servlet if I run my servlet from my IDE (Oracle JDeveloper 3.2.2), but, when I try to call my EJB components from the servlet runn in Tomcat, I have a ClassCastException (java.lang.ClassCastException: __Proxy5). Can anyone help me on this one? What is going on? Why can't I call my EJB components when my servlet runs in Tomcat? Thanks for your help
Finding a Memory Leak in a Web Application
I think my application is leaking. Over time the size of the Java process grows but never shrinks back down. I'm not sure of the best way to find the leak. I can't afford expensive profiling tools like OptimizeIt, etc... It may be something as simple as a design flaw on my part... Here's my design: requests come into a servlet which creates vectors of objects from database data. These vectors are stored in the request scope and then I forward to a JSP page where the results are displayed from the Vectors. I assumed (incorrectly?) that since they were in the request scope they would be garbage collected after the request was over (which is when the page has been sent to the user, right?). Is this not the case? Any help/suggestions anyone has would be great! Hunter
Re: Aw: Finding a Memory Leak in a Web Application
Whoops. Forgot to give my info: Tomcat 3.2.2 on JDK1.3.1 / Red Hat Linux 6.0 with updated libs. Running Apache 1.3.19 in front, using APJ12. From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 27 Jun 2001 23:50:55 +0200 (CEST) To: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Aw: Finding a Memory Leak in a Web Application Simple question: What JDK version are you using ?` I had similiar problems with 1.2.x After upgrading, the were gone (an new appeared, quite nomal with java i think :-)
Mapping Issue with Apache
Howdy. I use Apache 1.3.19 in front of Tomcat 3.2.2 and have a couple of sites running on it with great success. I'm trying out the Jive message board system and I'm stumped on an Apache/Tomcat problem... I've got the main stuff passing through but under the admin/ directory, where index.jsp sits and is served up properly, there is an images directory. None of the images are found when viewing index.jsp. Checking the image directly gives me an Apache 404, indicating to me that Apache is having trouble finding the file... If the images directory is under the admin directory, which is serving up jsp's just fine, shouldn't it just work? Hunter
Re: 3.2.2 Dies After Prolonged Use...
Thanks for the info. I'll let you know how it goes... Hunter From: Jeff Kilbride [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 1 Jun 2001 17:50:27 -0700 To: [EMAIL PROTECTED] Subject: Re: 3.2.2 Dies After Prolonged Use... I seem to remember something from the tomcat-dev list about 3.2.x dying less than gracefully if the max_threads parameter for PoolTCPConnector is ever exceeded. I believe the default is 50, so if you're ever hitting more than 50 concurrent threads, maybe this is the problem. If you're using Tomcat with Apache, try upping your max_threads parameter to match the max number of child processes your Apache installation allows (MaxClients in httpd.conf). If you're running standalone, up max_threads to a reasonable number you don't think you'll hit. If I remember correctly, this solved the problem for someone else -- or at least significantly prolonged Tomcat's life cycle. I'd really be interested in hearing if this helps. Thanks, --jeff
3.2.2 Dies After Prolonged Use...
You may remember my posts about Tomcat dying on me... Well I upgraded to 3.2.2 and it is still happening. It only seems to happen after prolonged periods (lots of hits)... I increased the heap to 256MB with a max of 512MB. We're not using sessions on the site and the session timeout is set to 5 minutes anyway... What could be going on? Hunter
Re: File uploads and Ajp13 with Tomcat 3.2.2
Did you compile and install the new mod_jk.so? From: Paul Rubenis [EMAIL PROTECTED] Organization: University of Minnesota Reply-To: [EMAIL PROTECTED] Date: Thu, 31 May 2001 13:43:02 -0500 To: [EMAIL PROTECTED] Subject: File uploads and Ajp13 with Tomcat 3.2.2 I am wondering if anyone has installed the newer Tomcat 3.2.2 and tried file uploads via a servlet with the ajp13 protocol. The release notes state that file uploads are now working with this protocol, yet I still receive the same error I received when using Tomcat 3.2.1. I am running Tomcat 3.2.2 with IBM's Apache 1.3.6 and IBM's 1.3 jdk on a Redhat 6.2 box. I am also using the oreilly jar file to process file uploads. The webserver and tomcat installation are running on the same machine. I have ssl enabled on the webserver. Any insight would be greatly appreciated.
Re: 3.2.1 Dies
Yeah, I'm still having problems in this area. Is 3.2.2 improved? I've seen a few messages about thread dead-lock problems lately on 3.2.2... I'm now logging the output of the tomcat.sh script so I should see if it is OutOfMemory or whatever when everything dies... Hunter From: Bill Graham [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 May 2001 09:14:09 -0700 To: [EMAIL PROTECTED] Subject: RE: 3.2.1 Dies Someone about a month ago mentioned that this was a bug in Tomcat where it chokes when the max threads is exceeded. I've had the same problem with load testing that I've done and increasing the max threads worked for the number of threads I had. Unfortunately, this fix in not scaleable... bill
Re: Urgent.. basic requirement for Tomcat
For development, pretty much any modern PC can run Tomcat. Any machine that supports a Java2 JVM... From: Steven Loh [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 24 May 2001 01:25:33 To: [EMAIL PROTECTED] Subject: Urgent.. basic requirement for Tomcat do you know the basic requirements(OS, and other expects) of getting the tomcat runs on my PC? I need this urgent. Steve _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
3.2.1 Dies
I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux 2.4.4/Apache 1.3.19. After a few days of serving up the hits very well, Tomcat just dies. It won't respond to shutdown requests and stops serving pages, giving out only null pointer exceptions. Killing the java processes manually and restarting Tomcat clears it up. Anyone else seen this? Any idea how to work around it? Hunter
Re: 3.2.1 Dies
Which log file would I look in? servlet.log shows nothing, neither does jasper.log... Hunter From: Srinadh Karumuri [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 12:03:45 -0400 To: [EMAIL PROTECTED], Tomcat User List [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies Did you check the log files? This sounds like a OutOfMemoryError. You can increase the heap size while starting the tomcat. -Sri At 08:16 AM 05/21/2001 -0700, Hunter Hillegas wrote: I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux 2.4.4/Apache 1.3.19. After a few days of serving up the hits very well, Tomcat just dies. It won't respond to shutdown requests and stops serving pages, giving out only null pointer exceptions. Killing the java processes manually and restarting Tomcat clears it up. Anyone else seen this? Any idea how to work around it? Hunter
Re: 3.2.1 Dies
What does running with nohup do for you? I usually start Tomcat using tomcat.sh start and then just log out... Hunter From: Srinadh Karumuri [EMAIL PROTECTED] Date: Mon, 21 May 2001 13:43:53 -0400 To: Hunter Hillegas [EMAIL PROTECTED], Tomcat User List [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies - I am running the tomcat using 'nohup' (UNIX command) on Solaris. My OutOfMemory errors were logged in nohup.log
Re: 3.2.1 Dies
Well, I am using the scripts and my Tomcat just dies after a few days of heavy load... We're talking hundreds of thousands of hits... Any other ideas are appreciated. I'm tempted to try 3.2.2 but since this is a production site, I'm a bit scared off by the beta status of the software. Hunter From: Tim O'Neil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 12:18:52 -0700 To: [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies What does running with nohup do for you? I usually start Tomcat using tomcat.sh start and then just log out... Me too. Nohup (no hangup) runs the command in an ingnore hangup signal mode- not the same as a process fork. I think the cmd runs as an orphaned process. If he runs it as nohup cmd that's pretty much what the tomcat startup script does, minus the process env setup. Really he should use the scripts. I'm guessing he's not using the at the end of the invocation, the os sees the process is orphaned after a while, and kills it.
Re: 3.2.1 Dies
I'll try that. I've not played with those settings. Any suggestions as to a sane amount to set it to? Others out there? Hunter From: Thom Park [EMAIL PROTECTED] Organization: Borland Software Company Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 13:10:54 -0700 To: [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies You may have used up all of your free threads. Try increasing the thread pool for the Http connector - see if it improves the longevity of your tomcat instance. -Thom
Re: 3.2.1 Dies
How can I check to see if I have a lot of dead threads? Hunter From: Devon Ziegler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 16:43:04 -0400 To: [EMAIL PROTECTED] Subject: RE: 3.2.1 Dies Interesting.used up all free threads.increase thread pool. shouldn't users just have to wait for a free thread if they hit the pool limit? Increasing it should let more requests be handled simultaneously, but how would it help longevity? I'm not saying it won't. Just skeptical. That said, I seem to lose threads with tomcat 3.2.1 on Linux 2.2.14 using Sun's 1.3 JDK. What I mean is that dead threads pile up WELL in excess of the thread pool limit. These threads don't seem to handle requests any more. Tomcat slows down quite noticeably too. I'm not sure I have ever left it up long enough to know if it might just die after enough threads pile up(well, it definitely would when it hit the OS' thread limit). Are you seeing far more threads than you would expect (well in excess of the pool size)? Maybe we are suffering from the same malady.
Problems with 3.2.1 Just Dying
I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux 2.4.4/Apache 1.3.19. After a few days of serving up the hits very well, Tomcat just dies. It won't respond to shutdown requests and stops serving pages, giving out only null pointer exceptions. Killing the java processes manually and restarting Tomcat clears it up. Anyone else seen this? Any idea how to work around it? Hunter
What's up with all the different Tomcats?
Okay... What's the story with the different versions... 3.2.1 is the current release and 3.2.2 is a beta of a maintenance... But what's the deal with 3.3 AND 4.0? I know 4.0 is based on Servlet 2.3, but what else? Hunter
Re: Tomcat install on Cobalt.
I've never used a Cobalt. What version of Java does it have? As far as this: ** Here is where I'm lost *** 4. ? - Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy, then add the Java interpreter to your PATH environment variable. It means do something like this: for Bash: export JAVA_HOME=/usr/local/jdk1.3 export PATH=$PATH:/usr/local/jdk1.3/bin That's assuming that the Java install is in /usr/local/jdk1.3 If not, change the paths appropriately. Hunter From: Charles Williams \(CEO\) [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 27 Apr 2001 20:28:20 +0200 To: [EMAIL PROTECTED] Subject: Re: Tomcat install on Cobalt. So I take it noone knows how to install tomcat? chuck
apj12 or apj13 on 3.2.2?
With 3.2.1 I couldn't use apj12 because I needed to do file uploads through Apache and it just didn't work. I see that bug has been fixed in 3.2.2. I'm wondering if under 3.2.2, which protocol is faster/scales better for a popular site? Any input is appreciated. Hunter
Re: seems as though a servlet engine would have a little clearer documentation on getting servlets running
There doesn't need to be a servlet directory. Tomcat will automatically handle it. The thing that's confusing is that the layout you call from the URL is mostly virtual... For your servlet-name element, are you sure you want the .class on the end? I can tell you that I've no problems setting up Tomcat on several servers. I find the docs quite clear. Hunter From: Dan Sharon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 23 Apr 2001 11:01:40 -0700 To: [EMAIL PROTECTED] Subject: seems as though a servlet engine would have a little clearer documentation on getting servlets running ok, install tomcat, jsps are workin, made new context, jsps are workin in it, write a servlet(5 min), try to get servlet working(5 hr), read documentation, it says put servlets in WEB-INF/classes dir, did that it says add servlet to WEB-INF/web.xml, did that web-app servlet servlet-nameservtest.class/servlet-name servlet-classservtest.class/servlet-class /servlet /web-app restart tomcat(can't believe this has to be done everytime a servlet gets added or changed), did that it says call your servlet with http://thehost/WEB-APP/servlet/theservletname; did that response: 404 there's no servlet directory, kinda makes sense, but i thought mod_jk was taking care of that. HMM. so now that i've followed the instructions and that didn't work, i make a servlet directory and add my servlet there. web browser tries to download and save it to my disk, no display. i'm sure that this being a servlet engine, it would probably serve servlets, otherwise that would be really embarrasing for the programmers, so, anyone got any suggestions?
Profiling
What's the easiest profiler to use with my web app running on Tomcat? Hunter
ArrayList vs. Vector
I use Vectors in some parts of my Web app and I'm thinking about using ArrayLists instead... Any caveats to using them in a Web app environment? Hunter
Re: ArrayList vs. Vector
This leads to a new question... What impact does synchronization have on Web applications? Where is it necessary? From: Tim O'Neil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 23 Apr 2001 13:03:25 -0700 To: [EMAIL PROTECTED] Subject: Re: ArrayList vs. Vector At 03:59 PM 4/23/2001 -0400, you wrote: Vectors are thread safe, by default ArrayLists aren't. But its a fairly trivial matter use an Collection interface that has a synchronized method to do an operation where synchronizing is desired.
Re: ArrayList vs. Vector
But that would only apply to objects kept in the application or session scope, yes? If an object a new object is created and placed in the request scope, it's only going to be accessed by one user (that request) right? Hunter From: Tim O'Neil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 23 Apr 2001 13:47:01 -0700 To: [EMAIL PROTECTED] Subject: Re: ArrayList vs. Vector At 01:09 PM 4/23/2001 -0700, you wrote: This leads to a new question... What impact does synchronization have on Web applications? Where is it necessary? Well, the only good use of a collection is for keeping tabs on a group of data records, right? Well, what happens if one web user hits your baseball averages server and updates Cardinal Albert Pujols batting average while another user tries to update at exactly the same time? This is what synchronization is for.
Re: ArrayList vs. Vector
So if not, that's not the case? Thanks. Hunter From: Tim O'Neil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 23 Apr 2001 14:26:08 -0700 To: [EMAIL PROTECTED] Subject: Re: ArrayList vs. Vector At 02:07 PM 4/23/2001 -0700, you wrote: But that would only apply to objects kept in the application or session scope, yes? If an object a new object is created and placed in the request scope, it's only going to be accessed by one user (that request) right? Keep thinking that if you write single thread model servlets.
Re: Tomcat mod_jk very slow if used with apache
I somewhat Tomcat Internals ignorant. What change would I need to make to see the kind of increases you are talking about? Hunter -- Hunter Hillegas [EMAIL PROTECTED] Who is Sharky Towers? What is BroTools? From: Craig O'Brien [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 20 Apr 2001 06:03:05 -0700 To: [EMAIL PROTECTED] Subject: RE: Tomcat mod_jk very slow if used with apache VERY COOL guys!! What a nice letter to wake up to. I made the change mentioned and my server's performance went from 14.51 pages per second to 82 pages per second. Still if I access tomcat directly I get over 200 pages per second but that is much better. Any other ideas? Thanks, Craig -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 4:51 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat mod_jk very slow if used with apache I'm +1 to remove the fdatasync or any other sync method. Log must be run with low priority If Dan agree, I'll remove the datasync. :) - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 12:33 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat mod_jk very slow if used with apache Hello Henri, hello Thomas, The problem comes from the call to fdatasync in the logging code of mod_jk. I already mentioned this to Dan Milstein. It should really be checked, if that way of flushing to the physical disk (and not only to the file system cache which should be enough) is really needed. The problem becomed more important due to the fact, that the actual production release incorrectly documents the existence of a log level warn. In 3.2.1 this does not exist. The header file for the logging declares only: #define JK_LOG_DEBUG_LEVEL 0 #define JK_LOG_INFO_LEVEL 1 #define JK_LOG_ERROR_LEVEL 2 #define JK_LOG_EMERG_LEVEL 3 #define JK_LOG_DEBUG_VERB debug #define JK_LOG_INFO_VERBinfo #define JK_LOG_ERROR_VERB error #define JK_LOG_EMERG_VERB emerg and if you use any undeclared log level (as e.g. warn) the code falls through to debug. So using warn you actually produce tons of debug output, each line calling fdatasync to flush to disk. We had the same problem on the first day of a heavy load production system and had some hard hours to find out. I think the second point (incorrect log level warn) is corrected in the next release (by changing documentation and default - not code), the first thing, throwing out fdatasync - should still be done. Greetings, Rainer Jung At 10:54 20.04.01 , you wrote: Could you be more explicit. OS, mod_jk version, tomcat version, apache version Thanks - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 10:52 AM To: [EMAIL PROTECTED] Subject: Tomcat mod_jk very slow if used with apache I encountered the following problem: Tomcat was about 20 times slower if the access went via apache, compared to a direct access. The solution was the following: I had to put the loglevel of mod_jk to error instead of warn(as proposed). httpd.conf: JkLogLevel error Mod_jk does not seem to be a quick logger. This is the logoutput for out simple request if JkLogLevel warn: [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match loadbalancer [jk_worker.c (123)]: Into wc_get_worker_for_name loadbalancer [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_lb_worker.c (471)]: Into jk_worker_t::get_endpoint [jk_lb_worker.c (300)]: Into jk_endpoint_t::service [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 8 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on [jk_connect.c (140)]: jk_open_socket, return, sd = 8 [jk_ajp13_worker.c (166)]: In jk_endpoint_t::connect_to_tomcat, connected sd = 8 [jk_ajp13.c (527)]: ajp13_unmarshal_response: status = 200 [jk_ajp13.c (534)]: ajp13_unmarshal_response: Number of headers is = 1 [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html] [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
Re: Tomcat vs JServ
Sounds like you haven't setup your mount points for mod_jk JKMount in Apache so it doesn't know to forward the request to Tomcat. This is covered in the docs. From: "Arnaud Dostes - NTI" [EMAIL PROTECTED] Organization: NTI Reply-To: [EMAIL PROTECTED] Date: Thu, 19 Apr 2001 18:56:28 +0200 To: [EMAIL PROTECTED] Subject: Re: Tomcat vs JServ Did you succeed in gluing tomcat to apache ? I get 404 errors when running servlets and running a jsp file displays the code thanks.
Re: setting up tomcat and apache to run together
Title: Re: setting up tomcat and apache to run together Greg- There is quite a bit of documentation on using Tomcat with Apache. You need to use mod_jk with Apache to redirect the requests. Look up the docs, I think youll figure it out. Good choice of platform BTW. :-) Hunter From: Greg Chakmakian [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 18 Apr 2001 11:48:45 -0400 To: [EMAIL PROTECTED] Subject: setting up tomcat and apache to run together Bear with me, I know you all have probably already been through this one before. I have Apache (for Darwin/Mac OS X) and Tomcat 3.2.1. They both run great by themselves; apache on port 80 and tomcat on 8080. I want to setup the two so that if I go to a jsp page on Apache it will use tomcat to process the jsp pages; i.e - http://www.apache.org/test.jsp gets processed by tomcat even though its being access through apache. I know I can turn off apache and reconfigure tomcat so that it runs off of port 80, but I would rather do it the other way. Like I said, I know this has probably been discussed and I apologize for being repetitive. I couldn't find any information on how to do this. Any help or direction you all could give would be greatly appreciated. -greg Healant Web Developer [EMAIL PROTECTED] [EMAIL PROTECTED] 336-370-0604 x111
Serving with Virtual Hosts w/o a Context Name - ?
Here's my setup: Tomcat 3.2.1 with Apache 1.3.19 on Red Hat 6.2. We have about 50 IP based virtual hosts, some of which use Tomcat, others which do not. Is it possible to setup Tomcat to serve a virtual host the contents of a context without the context name having to be in the URL? I.e. www.somedomain.com goes directly to the context mywebapp instead of it having to be www.somedomain.com/mywebapp/ ? I thought I saw a site that did this but I wasn't sure, especially since I have Apache in the mix and all the virtual hosts... The FAQ-O-Matic answer is to put in a redirect. That works fine, just seems less elegant. Any ideas? Hunter
Java Update on Linux
Anyone tried the JDK1.3.1 that Sun released recently for Linux? They claim reliability enhancements... Just wondering. Hunter
Re: Tomcat 3 vs Tomcat 4
Just to chime in, the documentation for TC4 is still pretty raw. I asked this same question awhile back, as well as details for mod_webapp and got no response. Is there documentation not on the site? Hunter From: "Pae Choi" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 12 Apr 2001 08:55:22 -0700 To: [EMAIL PROTECTED] Subject: Re: Tomcat 3 vs Tomcat 4 A couple of major differences among others will be: o Support for Different Specification of Servlet JSP o Architecture See the Documentation. Pae Hi, I am in the process of investigating to choose a servlet container for our project. I am wondering if we should start off with Tomcat 4.0 or Tomcat 3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x and Tomcat 4.x? Thanks. -Vik _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Java Update on Linux
Release candidates are not production level code, at least by name... The relase candidate may become the golden master, but there is no guarantee there aren't show-stopping bugs. Still, I'm interested in experiences. I'm Dling it now. Hunter From: Kaneda K [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 12 Apr 2001 19:02:18 +0200 To: [EMAIL PROTECTED] Subject: RE: Java Update on Linux At 11:36 12/04/2001 -0400, you wrote: That's not a release, it's a release *candidate*. A big difference. Which is ?? -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 11:27 AM To: Tomcat User List Subject: Java Update on Linux Anyone tried the JDK1.3.1 that Sun released recently for Linux? They claim reliability enhancements... Just wondering. Hunter
Re: Fed up to the back teeth with tomcat !!!
This scares me as I'm about to deploy my first big Apache/Tomcat/Postgre site with 3.2.1... Any ideas/solutions the developers can offer would be appreciated. Hunter From: "Andy C" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 11 Apr 2001 20:11:33 +0100 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Fed up to the back teeth with tomcat !!! I am fed up to the back teeth with Tomcat under Apache. I'm trying to run a 24/7 web page servinbg around 20,000 .jsp pages a day and I'v ehad to reset the damn server 3 times today already.
Problem with Ant + JAVA_HOME
I have JAVA_HOME set to /usr/local/jdk1.3 which is where my JDK is. I just installed Tomcat 3.2.1 on a new development server and builds are failing saying they can't find the compiler and telling me to set JAVA_HOME. It is set (confirmed with printenv) and so I'm at a bit of a loss... Any ideas? Thanks, Hunter
Re: Instantiating Beans on Tomcat
I was getting those but it was because my bean didn't have a constructor that took no args but it looks like yours does... Not sure... Hunter From: "Brandon Cruz" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 10 Apr 2001 17:54:24 -0500 To: [EMAIL PROTECTED] Subject: Instantiating Beans on Tomcat I am trying to instantiate a very simple bean on Tomcat in a JSP using the directive... jsp:useBean id="sessionBean" scope="session" class="InfoBean" / Everytime I try to run it, I get the following exception... javax.servlet.ServletException: Cannot create bean of class InfoBean
mod_webapp
Just wondering where I can get more info on mod_webapp and Tomcat 4 / Catalina in general. I looked through CVS and also on the developer list but I can't find any docs, even preliminary ones. Thanks, Hunter
Re: Confusing Problem with SQL Query in Tomcat
Padding the ? with spaces did nothing... Still returns false in that instance... Very strange... Hunter From: Joe Laffey [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 00:07:44 -0600 (CST) To: Tomcat User List [EMAIL PROTECTED] Subject: Re: Confusing Problem with SQL Query in Tomcat On Mon, 26 Mar 2001, Hunter Hillegas wrote: pst.clearParameters(); No need for clearParameters(). The setString will override any old parameters (if their were any). Can't hurt though, can it? Don't think so, but why make extra method calls ;-) My guess is that it has something to do with the rs.getString(java.lang.String) call. Try rs.getString(int) instead to narrow it down. (The int is the column number. I would highly suggest doing something like "SELECT name, column2, column3, FROM table WHERE whereclause" instead of doing "SELECT * ...". If all you want is the name then only SELECT that. You think? The counter isn't getting incremented at all, suggesting that rs.next() is evaluating to false, thus suggesting the query is returning 0 rows... Hmmm... My bad. I should have read that part of your note more carefully. Now I am a little confused... You tried pasting a plain SELECT string with no "?"s in the prepareStatement string? Are you certain that the connection pool works right? Try it with a plain connection that you establish right there in the code perhaps. What happens when there is more than one row in the DB that matches your WHERE clause? Then does it work? if so, is it mssing one row, or complete? Is it possible that you have a non-committed transaction from a command line client that is holding up this SELECT with a lock? (It should give an exception.) Do you not see an exception? If not, are you sure your exception reporting code works right? Here is an interesting quote from the Sun docs on ResultSet: " The column name option is designed to be used when column names are used in the SQL query. For columns that are NOT explicitly named in the query, it is best to use column numbers. If column names were used there is no way for the programmer to guarantee that they actually refer to the intended columns." This might explain not being able to get the data, but it doesn't seems to explain why the rs.next() would be false. Do column numbers start at 0 or 1? I will try changing the query and using the column number... For some reason they start at 1. Note that this should be faster than the string anyway. Joe Laffey LAFFEY Computer Imaging St. Louis, MO -- Need to do multi-file string replacement in Un*x, but don't want to mess with sed? Try rpl. It's a free text replacement utility with source. http://www.laffeycomputer.com/rpl.html -- Check it out!
Re: File Upload
Title: Re: File Upload It has problems with older versions of the Apj13 protocol connecting with Apache... Use either Apj12 or mod_jk from CVS... Hunter From: Simon Chatfield [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 10:59:38 -0700 To: [EMAIL PROTECTED] Subject: Re: File Upload I'm using that package as well, but have never had the problem you're describing. All datatypes work fine. Fabien Modoux wrote: Hello, I am using Tomcat with Apache on Linux. I am using the OReilly package to upload files through a servlet, but it only works for text files. I found several messages in the archive about that, but haven't been able to find a good solution. Does anyone know how to go around or fix this problem. Thanks, -Fabien -- Simon Chatfield VP, Software Development Inteflux Inc.
Re: Confusing Problem with SQL Query in Tomcat
Title: Re: Confusing Problem with SQL Query in Tomcat Using rtrim() had no effect... This is starting to bum me out... Hunter From: Cox, Charlie [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 08:50:24 -0500 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Confusing Problem with SQL Query in Tomcat Some data types(char) are fixed length on some databases. I'm not familiar with postgres, but you may want to try 'where upper(rtrim(name)) = upper(?)' to trim any trailing spaces. I have run into cases where in a char(10) field,'ABC' is not equal to 'ABC ', which is what is actually stored. Other data types, like varchar, only store 'ABC' and thus would work. Also, rtrim() may slow down your query so you may want to right pad the string you are passing in to be the correct length if you want to use a char() type. Charlie -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:48 AM To: Tomcat User List; Joe Laffey Subject: Re: Confusing Problem with SQL Query in Tomcat From: Joe Laffey [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 26 Mar 2001 23:38:48 -0600 (CST) To: Tomcat User List [EMAIL PROTECTED] Cc: Hunter Hillegas [EMAIL PROTECTED] Subject: Re: Confusing Problem with SQL Query in Tomcat pst = con.prepareStatement(SELECT * FROM artist_info WHERE upper(name) = upper(?)); Does Postgres have any equalsIgnoresCase support? If so, might be faster than this. I'll have to check on this. I don't know. pst.clearParameters(); No need for clearParameters(). The setString will override any old parameters (if their were any). Can't hurt though, can it? pst.setString(1, artistName); rs = pst.executeQuery(); while (rs.next()) { out.println(Is the inputted name: + artistName + equal to: + rs.getString(name) + ?BR); //DEBUG counter++; //DEBUG [snip] My guess is that it has something to do with the rs.getString(java.lang.String) call. Try rs.getString(int) instead to narrow it down. (The int is the column number. I would highly suggest doing something like SELECT name, column2, column3, FROM table WHERE whereclause instead of doing SELECT * If all you want is the name then only SELECT that. You think? The counter isn't getting incremented at all, suggesting that rs.next() is evaluating to false, thus suggesting the query is returning 0 rows... Do column numbers start at 0 or 1? I will try changing the query and using the column number... You also might not want to call rs.getString() on the same column twice. Use a temp var instead. (The Sun docs say not to do this for maximum portability. The docs also say to read columns from left to right, which is why I suggested SELECTing actual columns in a know order instead of using *.) If you get this to work please let us know how.
Re: IP changes to domain name in URL
There is a directive in http.conf to rewrite Ips to URLs. Just turn it off. From: Nael Mohammad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 10:45:13 -0800 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: IP changes to domain name in URL Set the host name in the httpd.conf file for domain name resolution, use the ServerName directive to do this. Also, might want to check that your host file specifies the name of your system and is associated with the system IP address. --Nael -Original Message- From: Christopher Shade [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 2:09 PM To: Tomcat-User Mailing List Subject: IP changes to domain name in URL Hi, We're using Apache/Tomcat 3.2.1 and a login.jsp page...When we use the IP address in the URL, and we try to log in, the URL changes to our IP name and our "user not found" page appears. It is a relative URL, so it appears that Apache or Tomcat is changing our IP address to our IP name in the URL, and we're losing the session that was created initially with the IP address. Does anyone know what's happening or how to fix it so that we can use the IP address in the URL? Thanks, ...Christopher in Denver
Re: IP changes to domain name in URL
UseCanonicalName On Turn it off. From: Nael Mohammad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 11:13:41 -0800 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: IP changes to domain name in URL which directive is this? -Original Message----- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 10:47 AM To: Tomcat User List Subject: Re: IP changes to domain name in URL There is a directive in http.conf to rewrite Ips to URLs. Just turn it off. From: Nael Mohammad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 10:45:13 -0800 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: IP changes to domain name in URL Set the host name in the httpd.conf file for domain name resolution, use the ServerName directive to do this. Also, might want to check that your host file specifies the name of your system and is associated with the system IP address. --Nael -Original Message- From: Christopher Shade [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 2:09 PM To: Tomcat-User Mailing List Subject: IP changes to domain name in URL Hi, We're using Apache/Tomcat 3.2.1 and a login.jsp page...When we use the IP address in the URL, and we try to log in, the URL changes to our IP name and our "user not found" page appears. It is a relative URL, so it appears that Apache or Tomcat is changing our IP address to our IP name in the URL, and we're losing the session that was created initially with the IP address. Does anyone know what's happening or how to fix it so that we can use the IP address in the URL? Thanks, ...Christopher in Denver
Re: Confusing Problem with SQL Query in Tomcat
From: Joe Laffey [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 26 Mar 2001 23:38:48 -0600 (CST) To: Tomcat User List [EMAIL PROTECTED] Cc: Hunter Hillegas [EMAIL PROTECTED] Subject: Re: Confusing Problem with SQL Query in Tomcat pst = con.prepareStatement("SELECT * FROM artist_info WHERE upper(name) = upper(?)"); Does Postgres have any equalsIgnoresCase support? If so, might be faster than this. I'll have to check on this. I don't know. pst.clearParameters(); No need for clearParameters(). The setString will override any old parameters (if their were any). Can't hurt though, can it? pst.setString(1, artistName); rs = pst.executeQuery(); while (rs.next()) { out.println("Is the inputted name: " + artistName + " equal to: " + rs.getString("name") + "?BR"); //DEBUG counter++; //DEBUG [snip] My guess is that it has something to do with the rs.getString(java.lang.String) call. Try rs.getString(int) instead to narrow it down. (The int is the column number. I would highly suggest doing something like "SELECT name, column2, column3, FROM table WHERE whereclause" instead of doing "SELECT * ...". If all you want is the name then only SELECT that. You think? The counter isn't getting incremented at all, suggesting that rs.next() is evaluating to false, thus suggesting the query is returning 0 rows... Do column numbers start at 0 or 1? I will try changing the query and using the column number... You also might not want to call rs.getString() on the same column twice. Use a temp var instead. (The Sun docs say not to do this for "maximum portability." The docs also say to read columns from left to right, which is why I suggested SELECTing actual columns in a know order instead of using *.) If you get this to work please let us know how.
Re: Confusing Problem with SQL Query in Tomcat
From: Joe Laffey [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 27 Mar 2001 00:07:44 -0600 (CST) To: Tomcat User List [EMAIL PROTECTED] Subject: Re: Confusing Problem with SQL Query in Tomcat Can't hurt though, can it? Don't think so, but why make extra method calls ;-) Good point. My guess is that it has something to do with the rs.getString(java.lang.String) call. Try rs.getString(int) instead to narrow it down. (The int is the column number. I would highly suggest doing something like "SELECT name, column2, column3, FROM table WHERE whereclause" instead of doing "SELECT * ...". If all you want is the name then only SELECT that. You think? The counter isn't getting incremented at all, suggesting that rs.next() is evaluating to false, thus suggesting the query is returning 0 rows... Hmmm... My bad. I should have read that part of your note more carefully. Now I am a little confused... You tried pasting a plain SELECT string with no "?"s in the prepareStatement string? Are you certain that the connection pool works right? Try it with a plain connection that you establish right there in the code perhaps. The connection pool works in other parts of the same servlet... I'll have to try without it. What happens when there is more than one row in the DB that matches your WHERE clause? Then does it work? if so, is it mssing one row, or complete? Haven't tested this yet. I will try this now. Is it possible that you have a non-committed transaction from a command line client that is holding up this SELECT with a lock? (It should give an exception.) Do you not see an exception? If not, are you sure your exception reporting code works right? I'm not using transactions in this app... I don't think so... Here is an interesting quote from the Sun docs on ResultSet: " The column name option is designed to be used when column names are used in the SQL query. For columns that are NOT explicitly named in the query, it is best to use column numbers. If column names were used there is no way for the programmer to guarantee that they actually refer to the intended columns." This might explain not being able to get the data, but it doesn't seems to explain why the rs.next() would be false. Interesting... \ Do column numbers start at 0 or 1? I will try changing the query and using the column number... For some reason they start at 1. Note that this should be faster than the string anyway. Thanks. I'll try these suggestions and let you know how it turns out... Hunter
RE: Servlet Mapping Problem -- ???
The only difference between the servers is that production uses virtual hosts. I assume this must be the problem. What directives do I need to change to make servlet mapping work on a machine with Apache virtual hosts defined? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:34 PM To: [EMAIL PROTECTED] Subject:Re: Servlet Mapping Problem -- ??? Hunter Hillegas wrote: I have a strange problem with Tomcat 3.2 that I can't figure out... I have two servers, a development server and a production server. The development server is working just fine. I have a servlet called marketCustomerVendorController that is mapped to /marketCustomerVendorController as seen here from web.xml: servlet-mapping servlet-namemarketCustomerVendorController/servlet-name url-pattern/marketCustomerVendorController/url-pattern /servlet-mapping On the dev box, it works great. Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to the production box. Does your dev box run Tomcat standalone and your production box run Tomcat behind Apache? If so, the most likely reason for this is that the Apache connector is totally ignorant of anything you define in web.xml -- you'll have to modify the tomcat-apache.conf file to include any additional forwarding you want. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Strange JSP Compilation Problem
I have a JSP page that calls some objects that are in a package... When I try to view the JSP, it generates a compile error: org.apache.jasper.JasperException: Unable to compile class for JSP/server/jakarta-tomcat-3.2.1/work/localhost_8080%2Fgroundswell/_0002fnews _0002fbackend_0005flabel_0005fnews_0005fedit_00031_0002ejspbackend_0005flabe l_0005fnews_0005fedit1_jsp_0.java:178: Undefined variable or class name: currentNewsBean out.print( currentNewsBean.getRecNum() ); Okay, this looks very simple... Like I just forgot to instantiate it... The thing is I didn't... The object gets instantiated prior to being called... Is there anything else that could be wrong? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Servlet Mapping Problem -- ???
Anyone have any more ideas on this one? I still can't get it figured out and I'm getting desperate. -- Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH 805-565-1415 FAX From: "Craig R. McClanahan" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 9 Feb 2001 12:33:47 -0800 To: [EMAIL PROTECTED] Subject: Re: Servlet Mapping Problem -- ??? Hunter Hillegas wrote: I have a strange problem with Tomcat 3.2 that I can't figure out... I have two servers, a development server and a production server. The development server is working just fine. I have a servlet called marketCustomerVendorController that is mapped to /marketCustomerVendorController as seen here from web.xml: servlet-mapping servlet-namemarketCustomerVendorController/servlet-name url-pattern/marketCustomerVendorController/url-pattern /servlet-mapping On the dev box, it works great. Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to the production box. Does your dev box run Tomcat standalone and your production box run Tomcat behind Apache? If so, the most likely reason for this is that the Apache connector is totally ignorant of anything you define in web.xml -- you'll have to modify the tomcat-apache.conf file to include any additional forwarding you want. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet Mapping Problem -- ???
I have a strange problem with Tomcat 3.2 that I can't figure out... I have two servers, a development server and a production server. The development server is working just fine. I have a servlet called marketCustomerVendorController that is mapped to /marketCustomerVendorController as seen here from web.xml: servlet-mapping servlet-namemarketCustomerVendorController/servlet-name url-pattern/marketCustomerVendorController/url-pattern /servlet-mapping On the dev box, it works great. Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to the production box. When Tomcat had brought up the new Web app, the mapping doesn't work (404). If I type in context/servlet/marketCustomerVendorController it does work however. I double-checked the web.xml file in the webapps/context_name/WEB-INF/ directory to make sure that it was correct and it is. tomcat-apache.conf is the same on both boxes... I'm sure it's some config option somewhere but I went through it and I can't find it. Both boxes seem to be setup the same way... Any ideas? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Servlet Mapping Problem -- ???
They both are Tomcat+Apache... I compared the tomcat-apache.conf files for both boxes and despite some file system paths that are different, it looks like they both contain the same directives for the context... So I don't think that's it... What else could it be? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:34 PM To: [EMAIL PROTECTED] Subject:Re: Servlet Mapping Problem -- ??? Hunter Hillegas wrote: I have a strange problem with Tomcat 3.2 that I can't figure out... I have two servers, a development server and a production server. The development server is working just fine. I have a servlet called marketCustomerVendorController that is mapped to /marketCustomerVendorController as seen here from web.xml: servlet-mapping servlet-namemarketCustomerVendorController/servlet-name url-pattern/marketCustomerVendorController/url-pattern /servlet-mapping On the dev box, it works great. Yesterday I tried to push the WAR (generated by Ant via ./build dist) out to the production box. Does your dev box run Tomcat standalone and your production box run Tomcat behind Apache? If so, the most likely reason for this is that the Apache connector is totally ignorant of anything you define in web.xml -- you'll have to modify the tomcat-apache.conf file to include any additional forwarding you want. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]