Tomcat buffered output
Hi all! How increasing output buffer size for servlets/jsp's will affect the overall server performance? As I know this should lead to more intensive memory usage... What about response time? Regards. Denis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat buffered output
Hi all! How increasing output buffer size for servlets/jsp's will affect the overall server performance? As I know this should lead to more intensive memory usage... What about response time? Regards. Denis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
test please ignore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error page and buffering - tomcat bug?
Hi all! My env is: sun_jdk142_04 + JBoss323 + Tomcat 4.1.29 I have the chain of 4 included pages a1.jsp includes a2.jsp, a2.jsp includes a3.jsp etc... each include looks like: a1: some html/scriptlet code here/ jsp:include page=a2.jsp flush=false/ some html/scriptlet code here/ at the start of each jsp I wrote %@ page buffer=2048kb% // much more than I need %@ page autoFlush=false % the last jsp at the end throws an exception - and I receive the following content:: a lot of html code my error.jsp page Tried to setup buffer size for web.xml to 2MB for DefaultServlet servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-nameoutput/param-name param-value2097152/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet No luck - still receiving alot of html code before error.jsp. Any thoughts/suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mechanism to control the HTTP header order?
And you should tell the vendor of the COTS search engine that they're not following the HTTP spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 The order in which header fields with differing field names are received is not significant. dwh Tim Funk wrote: Nope. -Tim Sean Cooper wrote: I have an application that I am test crawling with a COTS search engine. It runs fine in an embedded version of Tomcat where the header order is http/1.0 200 OK, Content-Type, Connection:close, Date, Server, Last-Modified, but the header order for the stand-alone Tomcat installation in Windows came out as http/1.0 ok, Last-Modified, Content-Type, Date, Server, Connection:close. Which is causing a problem with the COTS search product. Is there any mechanism to control the order that Tomcat displays the HTTP headers in? I need to ensure that the Last-Modified header appears after the Date header. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Eclipse users list/mail group
When you find it please tell the rest of us! It's unclear to me which of the lists is a general-user list... they seem to be very specific. Thanks, dwh Sternbergh, Cornell wrote: Hi First, my apologies for being off-topic. I've been searching eclipse.org for list/forum/group/whatever, for simple users of Eclipse, not developers, without success. Anybody know such a source? TIA Cornell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repeat: Can Tomcat be used with non-webapps?
Maybe I'm just being really dense, but why might you want to do this? Wouldn't it make more sense to use one of the other (non-webapp-specific) containers? dwh Chris Collins wrote: Hi, guys, I am trying to use tomcat as a container for my program which is not a web-application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yoav --RE: TC 5 production use
Also keep in mind that Apache isn't the *only* thing you can put in front of Tomcat. grin While we do have Apache in the mix (for some legacy apps), we also run Squid [1] in reverse-proxy mode in front of *that* to (a) reduce response time on cachable content and (b) remove some of the load on Tomcat. It did mean we had to be pretty careful about our HTTP cache-control headers, but it's been a nice solution. dwh [1] http://www.squid-cache.org/ Shapira, Yoav wrote: This is a good example of something that hits on Apache's strong points: perl, mod_php, rewriting. So it's probably good for you to use Apache. But many people on this list come here because they work with servlets and JSPs, and maybe some static content. In many of those cases, Apache is not needed. And in no case should it be added without careful thought and consideration, as it's a significant architecture piece. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpd trace and tomcat
A google search on tomcat http trace came up with a slew of pages about this... Did you try that? dwh Sankaranarayanan (Ganesh) Ganapathy wrote: Hi All, It was brought to my attention that tomcat by default runs httpd trace and that it is a potential security hole. I don't understand what httpd trace is - can somebody explain? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] The Way Java Handles Date
Why does Sun need to do it? Anyone could do it. Seems like it could be a candidate for Jakarta Commons... or is it too trivial? http://jakarta.apache.org/commons/ dwh Yansheng Lin wrote: As I said, this is a faq. There is already tutorials on Sun's Website. But the way it works now is kind of counter-intuitive. That's the problem to new user. Wouldn't it be nicer if Sun came up with an Wrapper interface that allows the user create a Date object with different arguments? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 vs. Resin?
...a great reputation for being small, fast, and easy to configure And here I thought you were talking about Jetty... grin dwh p.s. I haven't actually used Jetty, but have have heard good things about it and have been meaning to. Josh Rehman wrote: Has anyone compared Tomcat 5 and Resin? Resin has a huge drawback of being closed-source, but it has a great reputation for being small, fast, and easy to configure. Tomcat is working for us, but has been something of a bear WRT learning curves and gotchas, so I'm interested in learning more about the alternatives. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: -verbose:gc
See http://java.sun.com/docs/hotspot/gc1.4.2/index.html#2.2. Measurement|outline dwh Derek Mahar wrote: Would someone please decipher the following line in $CATALINA_HOME/logs/catalina.out? [GC 28827K-22937K(64896K), 0.0062130 secs] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat webapp welcome file
Hi: I created a webapp as ROOT under tomcat 4.1.27, and set the welcome file as index.jsp for the webapp. And I start the tomcat server and open my IE go to localhost. In the IE address bar, it changes to http://localhost/index.jsp. Is there a way to config the tomcat to let it not display index.jsp and just display http://localhost? Thanks in advance. - Denis
Re: OpenSource / Free Profilers to use with Tomcat
I used IBM alphaworks' jinsight (http://www.alphaworks.ibm.com/tech/jinsight) several years ago to do some profiling of a Tomcat-hosted application. YMMV. dwh Allistair Crossley wrote: Hi Guys, I hope you dont mind me asking if there are any free/opensource profilers out there that are quite good and offer the same type of features as JProfiler et al that I can use to profile tomcat 5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: UNSUBSCRIBE!!!
Me t -Original Message- From: ArcherDaPunk [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 4:46 PM To: Tomcat Users List Subject: UNSUBSCRIBE!!! UNSUBSCRIBE ME PLEASE! OR TELL ME HOW!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to retrieve the information of current HTTP request Tomcat is processing?
Can I write a jsp or servlet to list all the HTTP request the tomcat is processing currently? Is it possible? - Denis
Re: tomcat jitters, then hangs - please help
I would also get a thread dump from the JVM. dwh Arthur Veinstein wrote: Hi Noam, Sounds like you have some problem with the DB connection. Can you provide the server.xml configuration ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Are there any successful website using Apache Tomcat + MySQL + Windows OS?
Just curious about the scalibility of this combination. - Denis
Re: Newbie: Java Mail Problem
From the error, looks like it's still trying to connect to an smtp server at localhost. Did you restart Tomcat after changing mail.smtp.host? dwh David Diskin wrote: I've just set up Tomcat 4.1.18 on my Windows XP Home PC. I installed it as a service. I have no problem connecting to the Tomcat main web page. I reconfigured conf/server.xml and changed to value of mail.smtp.host to smtp.verizon.net, my isp mail server. However, when I go to run the jsp send mail example, I get the following exception. Can anyone help on this? == ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Beginner
What happens when the examples do not work? Do you get an error message? What is it? dwh eduardofcomelo wrote: I have installed the Tomcat but the examples aren't working very well. Example the numberguess do not work. All the examples are out of work ! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Thread dump
Run it under a JPDA debugger and use something like - Xrunjdwp:transport=dt_shmem,server=y,suspend=y so that the JVM stops and waits for debugger commands right away. Then you could get to the right point in your code, and with any decent debugger look at the thread dump without needing to send the signal. By the way, what exactly do you mean by right from the moment tomcat starts up? Do you mean before the tomcat's main() starts? Before your servlet is loaded? dwh [EMAIL PROTECTED] wrote: You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack() on each thread in your code. I can't provide any definite answers on how to get a thread dump right from the moment Tomcat starts, but I suppose you could modify Tomcat code (call the about the methods in your code) to do this. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DB2/servlet error....Help need please
Can you run the same code outside of a servlet context? If so then it sounds like classpath problems. If not, can you re-install DB2? Sounds like your installation might be bad or you might be missing some components. dwh [EMAIL PROTECTED] wrote: (Thu Aug 01 15:52:50 2002) pid= 2192 jdbcFSQLConnect(): The levels of db2java.zip ((null)) and db2jd (n010415) do not match, einfo= -111 (client IP = 10.3.13.34) Now, I can make out that there is mis-match between db2java.zip and db2jd levels... But I don't know how to correct it... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DB2/servlet error....Help need please
Not clear what your response to my first question was: does db2 connectivity work from code that is executed *outside* of a servlet context, that is, from the command line? I would make sure that works first. dwh [EMAIL PROTECTED] wrote: Hello Denis Thanks for your suggestions... I tried reinstalling DB2 but the same problem is coming... If you look here it asks for someFixPack 2 or later. [...] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DB2/servlet error....Help need please
Then it is most likely a classpath problem. You need to make sure the db2 jars are on the classpath for Tomcat. Looks like you're on NT or Win2K, not sure which version of Tomcat... I think your best bet is to modify tomcat.bat and just add all the db2 jars to the classpath there. (Someone please feel free to jump in with a more correct way to do this... and I think the recommended way changed from Tomcat 3 to 4? This has always confused me...) dwh [EMAIL PROTECTED] wrote: Sorry Dennis to skip answering the first part... well yes DB2 connectivity works fine outside the servlet context... If I run a simple JAVA file to perform DB2 database data retrieval, it works fine. Its only with servlet it is not working... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: localhost vs IP address in the URL
I'm not a networking guru, (and this is sort of OT for Tomcat) but I'm not convinced by M.Schwartz's response that this is due solely to DNS name resolution. I don't think that would account for such a big difference in time--once the name was resolved to the IP address, behavior should be the same, no? Saravanan, you say there's a 20x difference but what's the magnitude? Are we talking 10 ms vs. 200 ms. or 1 second vs 20 seconds? By IP address do you mean 127.0.0.1 or the IP address of the computer? My pet theory is that the TCP/IP stack is recognizing the IP address as being of the local box and is shortcutting packets from transmit queues to receive queues in memory, without actually getting the NIC involved or anything. Or maybe the NIC is doing this. Many years ago when I did hardware testing, we first ran into TCP/IP stacks that had this optimization. The other thought is that for some reason different maximum packet sizes are being used with these different connections? Of course, this is just a theory. Someone with a little more knowledge might be able to speak more authoritatively grin. dwh Saravanan Bellan wrote: Windows 2000 Tomcat 3.2.3 If I try to upload a file using the regular HTML/HTTP, there is a 20x difference in performance between using localhost vs the IP address in the Web Server URL. Ofcourse I'm running the browser on the same machine where tomcat is installed. Using localhost is 20 times slower than using IP address. Doesnt make a difference if I use Apache/AJP/Tomcat or Direct to Tomcat web server. Can somebody throw some light on this. 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: version question
Sounds premature to blame Tomcat (or that version) for this. I can think of a lot of questions I would want to have answered before I assumed it was a problem specific to 3.3: - does this happen when you run against Tomcat standalone, or only when running through Apache? mod_jk can be a pain in the ^%^%, but in my experience it has always either completely worked or completely not worked. - what do you mean by can't keep app running. Does the JVM exit? If not, what's the behavior? Error responses? Hung responses? - if responses are hanging, I would get a thread dump and expect to see one or more threads deadlocked. - does it happen in a single-client test, or only when multiple clients are accessing (again, that would indicate a threading problem) - is this something that worked satisfactorily with earlier versions of infrastructure and is only now breaking? Or is this new development? dwh Ed Tybursky wrote: I am having major downtime issues currently our environment is this: Apache 1.3.20 + mod_jk Tomcat 3.3 I cant seem to keep an application running for any matter of time. Nothing is ever reflected in the logs and logging is set to DEBUG. Is tomcat 3.3 just a total piece of junk?? should I at least upgrade to 3.3.1 or just totally move to 4.0?? I really need some help. Thanks Ed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: good profiler software for Java apps ??
I agree with Chris' recommendations for testing automation. For profiling, I've had best luck with the IBM alphaworks jinsight: http://www.alphaworks.ibm.com/tech/jinsight. Not quite as easy to use as commercial products, but a good bargain for the money... dwh Chris Bailey wrote: Check out JUnitPerf, HttpUnit, and JMeter for some of the below needs. Memory leaks? In a Java app?! How can that be ;) -Original Message- From: Bing Zhang [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 9:45 AM To: 'Tomcat Users List' Subject: good profiler software for Java apps ?? Hi: Just wondering if someone could recommend any good open source profiler software to monitor/analyze performance and track down memory leaks in Java applications. Also, is there any open source testing-automation software/tool equivalent to WinRunner/LoadRunner ?? Appreciate your help. Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Auto Start Tomcat
This is a Linux question, not Tomcat-specific. Try google and search on linux startup scripts. Looks like Linux (which I don't know) is like Solaris (which I sorta know) in that you probably want to link your Tomcat startup scripts into /etc/rc3.d with the right names. You don't want cron for this. That runs programs at specific time intervals. dwh Wynn Ricks wrote: I have heard of it but am new to the Linux world like this is day 5. say that the box looses power for some reason will CRON start TomCat when the server is done restarting without anybody logging into the machine? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ***Please reply as no one on this list has offered ANY help***
Without digging in too deeply, is it possible your problem is the cloning of the 'meet' Hashtable in connectUser? Remember that cloning a Hashtable (and other Collection/Dictionary objects) is a shallow clone. Only the table itself is cloned, not the objects pointed to by the table. I'm not *sure* that's a problem in this case, but is that what you intend? It's not clear to me why you're cloning it there, anyway... dwh Stuart Stephen wrote: Hello, I'm having touble with my HTTP tunnelling servlet and its driving me crazy. The tunnel works fine for a single user. However when another user connects to the tunnel the servlet does not perform how I would expect it to. [...] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
When is Tomcat going to support Xerces 2?
We are currently using Tomcat 4 in our Web Tier to transform some XML documents into HTML using Xalan XSLT processor. Therefore, we would really like to be able to use the latest Xalan 2.3 which comes with Xerces 2.0 (this combination gives very good results on our app servers) but unfortunately Tomcat 4 doesn't seem to like Xerces 2. Anybody knows when it will start liking it? Denis. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
configure Apache-Tomcat to read local web.xml for each webapp
Hello, All, I am using Apache-Tomcat. In my configuration, the Apache does not read local web.xml (tomcat/webapps/virtualhost1/WEB-INF/web.xml). However, Apache does read global web.xml (tomcat/conf/web.xml). Does anybody know how to configure to read the local web.xml? Any help will be highly appreciated! Thanks, Denis __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: somebody trying hack me, what they really wanted?
I do - Original Message - From: E B [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 14, 2001 04:28 AM Subject: Re: somebody trying hack me, what they really wanted? just for statistics, how many of you run tomcat directly without apache/iis, with your machine being on the internet. All the responses for this thread indicate they do so. Be careful, I know of one machine which was compromised and which had tomcat on 80. although I am not sure that hack was through tomcat. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- 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: Crystal report work with Tomcat
Hi We use CR within Tomcat, but we do NOT use the java API for the report display applet. We actually create downloadable reports with various formats (PDF, RTF, etc.), and do not display them. So the following may not apply to you. If your goal is only to show reports using their applet, my guess is that you should be able to copy their JAR file(s) to your WEB-INF/lib and use the Java API for the report applet. For what we wanted to do, I had to actually write a few DLLs, since CR does not provide any entry in its API that is java-based and that is aimed to something else than displaying a report in an applet. So here's the solution we have : -- Report templates and logic are stored within a Visual-Basic DLL (CR integration with C++ is a real pain) as DSR objects from CR dev components. -- This DLL is loaded and accessed through JNI, but as JNI is C/C++ based, we needed a C++ DLL that actually forwards all requests to the VB DLL... -- The JNI DLL is loaded within Java using loadLibrary and a Java class defines all the native methods accessible via JNI.. The VB dll is placed in the WEB-INF/lib folder and the jni access DLL is placed in the JDK/bin directory. Now the drawbacks : It is complicated for no apparent reason (the only reason is that CR does not provide any java entry point...), because there's 3 layers of code (java class declaring native calls, JNI DLL, VB DLL) It is a real pain trying to support multiple formats as CR 8.5 has an incredible amount of bugs (PDF needs several patches). It is a real pain to install the CR 8.5 dev components on the machine where Tomcat runs because there's many patches to apply in a definite order. It is not stable at all...it crashes every 2 or 3 days or so, but I cannot blame CR for that because I haven't took the time to make sure it's not my code that leaks memory...(although MSVC++ dumps do not show any leak) and that JVM crashes I experience are not caused by my JNI calls. And the worst is, despite what CR engineers said (until I sent them some code proving the point), the export DLL they provide is not multi-threadedwhich is a nightmare in a web-environment because every creation of a report is queued... Hope this helps you find another solution Denis - Original Message - From: Miao, Franco CAWS:EX [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 01:15 AM Subject: Crystal report work with Tomcat Hi there, anyone has experience about show Crystal report in Jsp on Tomcat? anything need to install in Tomcat? Franco -- 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: about servlet-mapping in web.xml file
Try to set the "load-on-startup" parameter to -1 for your RequestHooker. This has the nice effect of creating your servlet when Tomcat is starting and before it accepts any request We use this to initialize our API before serving our pages, and it works like a charm.... Denis - Original Message - From: "Katsuyuki Michishita" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 05:09 AM Subject: about servlet-mapping in web.xml file Hi, I have a question about servlet-mapping. I have following code in "C:\tomcat\conf\web.xml." ... servlet-mapping servlet-name RequestHooker /servlet-name url-pattern *.jsp /url-pattern /servlet-mapping servlet-mapping servlet-name RequestHooker /servlet-name url-pattern *.html /url-pattern /servlet-mapping I thought that "RequestHokker" is called before *.jsp is executed. But it's not. (By the way, "RequestHokker" is called before *.html) why this is happing? if you can, please let me know. Thanks -Kats -- 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: Crystal report work with Tomcat
Hi Brian, hi all I was not aware that Inet-Software was doing some CR stuff... I'll have a closer look as we're already customers of this company (we bought their JDBC driver for M$-SQL). Seeing the stability of this driver, I have full confidance in them and I must also say that the support is just great ! Thanks for the info ! Denis - Original Message - From: Brian Adams [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 10:36 AM Subject: RE: Crystal report work with Tomcat Sorry I missed the thread. I am working with Tomcat/CR for a project at work and we dropped the applet that crystal reports provides. they have not supported it for quite sometime now(htey are in bed with MS) and they applet has bugs. Denis is right though, I believe you just drop it in WEB-INF/lib. I too wrote all my dll's but I interacted with C++ (MFC) through JNI and it is complicated. We decide to use a company from Germany (www.inetsoftware.de) and it is working out really well. Their prices are cheap and they provide a full java implimentation of what you want for your RPT files. If it was not for them I would be working weekends trying to write all my functionality before the due date. Good luck, Brian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Me and include directives....
relative URL=absolute URL - servlet context name (or as you call my webapp root) That's exactly the answer I was looking for ! Thanks a lot this is the best way: %@ include file=/common/begin.jsp % All right then, I'll standardize my stuff right away... Thanks again Denis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.2.2 HTTP 500 Internal Server Error
Unless you are willing to spend a little bit of time reconfiguring Tomcat, and maybe modify your install scripts, you can stick to Tomcat 3.2.x (currently 3.2.4). So you can upgrade from 3.2.2 to 3.2.4 without any worries. Just make sure you keep a copy of your webapps and your server.xml file. If you want to move to Tomcat 4.0.x, this will require a bit of configuration and deployement, so it's up to you. You should not have to change your servlets code however, even not have to recompile it, so it's a smooth transition. I actually spent more time reading Tomcat 4.0 docs than actually installing and migrating my 3.2 webapps. However, I have ran into a slight problem Our include statements @include were a bit messy... althought Tomcat 3.2 was happy with the mess, Tomcat 4.0 is stricter and we had to change our includes (actually clean them) to have our webapps 100% functionalbut this is only because we did things wrong (I think...) and that 3.2 was accepting the wronginess of our code Hope this helps Denis - Original Message - From: Pieters, Marina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Pieters, Marina [EMAIL PROTECTED] Sent: Monday, December 10, 2001 04:51 PM Subject: Tomcat 3.2.2 HTTP 500 Internal Server Error Our company has a web application created by Java servlets; and this application runs on the Apache/Tomcat server (Sun). Since July 2001, the server was down with the HTTP 500 error message about 12 times. Each time, we have to restart Tomcat; but lately, this problem occurs more frequently. Our version of Tomcat is 3.2.2. We have been told that there might be a bug in that version. We are planning to upgrade to the latest version 4.0.x. Where can we find the information about how to upgrade to the new version? Do we need to recompile the code? Is it the right decision to upgrade to an other version? or is there better solution to avoid this problem? Thanks in advance. Marina -- 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]
Me and include directives....
Hi all I already have asked for some directions on how to use the include action and the include directive and had very nice answers... but I might have burned too much neurons on that and I'm still missing some point... ...and...I experience some unexpected behaviour using the %@ include file=blah.jsp % The quick ref on JSP I have (http://java.sun.com/products/jsp/pdf/card12.pdf) tells me that include uses a relative URL as the file parameter. However, using relative URLs does not seem correct and I experience differences while using Resin or Tomcat 3.2.x vs Tomcat 4.0... When using Tomcat 4.0 or Resin, my relative URLs generally don't work the same way as for Tomcat 3.2 : (say I have begin.jsp in my webapp root/common/begin.jsp) In Resin and Tomcat 4.0, %@ include file=../common/begin.jsp %) produces a (404-Not Found) by the JSP engine. However, this works perfectly with Tomcat 3.2 Now, %@ include file=/common/begin.jsp % works like a charm for Resin, Tomcat 3.2 and Tomcat 4.0.. ...and that's where I get confusedwhich version am I suppose to use ? According to my quick ref card, I should be using relative URLs, and I'm experiencing the exact contrary when I'm not using Tomcat 3.2... I'm trying to use absolute URLs (because I want things to work with Tomcat 4.0 !) and make this a rule of thumb, but I'm not sure I've taken the good decision. So, any definitive directions would help me getting out of the darkness... Many thanks for your help ! Denis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Last attempt before I heave sun box out of the window!
Have you set the trusted flag to true for your context in server.xml ? That might do the job... - Original Message - From: Cross Fire Labs B.A. Lambrechts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 10:27 AM Subject: Last attempt before I heave sun box out of the window! Ok - No more apache/tomcat errors - through hokey measures - things seem to be quiet on that front - got no answers to any of those questions.. I have a JDBCRealm configured into the Context, Host and Engine levels in my server.xml I have the security constraints set and the login authentication set to BASIC I verify all of this with debug set at every level to 99. Still can't get login dialog box to come up. WHAT IS GOING ON? Beth Anne Lambrechts Cross Fire Labs, Inc. e-mail: [EMAIL PROTECTED] Phone/Fax: 703-724-9210 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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: jsp precompilation
You might want to look at a mixture between JSPC (Tomcat) and Ant I'm searching a script ( bash-unix and/or bat-windows ) You should then use Ant and create Ant tasks that you need (if you need to write some...) that would : - generate java files from jsp - compile generated java files use JSPC (why not within Ant ? I don't remember if JSPC has a task on its own but you can write one if it does not, or use a simple shell-command task) - compile servlet java files Use Ant and the JDK you're working with - create the .war Definitely, you should use Ant ;-) http://jakarta.apache.org/ant Cheers Denis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help : Use Oracle 8i JDBC driver
Aside from the fact that my ears are ringing because you're shouting, I do not agree with the recommendations you provide... Moreover, the question was aimed to Tomcat 3.2.3 Crippling the CLASSPATH with custom entries, as well as filling the JRE/lib/ext directory does not sounds like a good idea. It does not help when it is time to write install scripts and gather all the librairies you are using to bundle an application, or a web-application, and to deploy it. The JDBC drivers, as all Jar files you are using (remember that ZIP files can be renamed to JAR ! and you need to do this), should definitely sit in the WEB-INF/lib directory, unless you want to share it among all web-apps, in which case, the best place is probably TOMCAT_HOME/lib. Tomcat 4.x has a better model for handling Jars and stuff, but as we're dealing with Tomca 3.2.x, that's probably how you should do it You can customize Tomcat 3.2.x startup scripts and modify the internal classpath, but you should avoid setting anything in your environment variable Anyway, check the archives, this topic has already been discussed a lot I think Cheers Denis - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 12:17 PM Subject: Re: Help : Use Oracle 8i JDBC driver --- Mike [EMAIL PROTECTED] wrote: Hi everyone. I have some newbie questions. I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT I would like to know how should I specify JDBC drivers (classpath, their location). DOWNLOAD CLASSES111.ZIP OR CLASSES12.ZIP FROM ORACLE AND YOU CAN STORED IT ANYWHERE IN YOUR MACHINE AND SPECIFY IT IN YOUR CLASS PATH (EX: C:\FOLDER1\FOLDER2\CLASSES111.ZIP) OR YOU CAN STORE IT UNDER TOMCAT AT JRE\LIB\EXT (THE RIGHT PLACE FOR EXTERNAL CLASSES). NOTE THAT THIS LAST APPROACH IS GOOD, AND IT IS A MUST WITH TOMCAT 4 THAT DOES NOT RECOGNIZES THE CLASSPATH. I read also that Oracle JDBC drivers need to use versions of JDK = 1.1.1 or our server is 1.3.1 Is this absolutely necessary? NO THAT'S NOT TRUE I USE JDK 1.3.1 AND BOTH (CLAZZES111.ZIP AND CLASSES12.ZIP) WORKS FINE. Thanks a lot. U R WELCOME --- Mike [EMAIL PROTECTED] wrote: Hi everyone. I have some newbie questions. I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT I would like to know how should I specify JDBC drivers (classpath, their location). I read also that Oracle JDBC drivers need to use versions of JDK = 1.1.1 or our server is 1.3.1 Is this absolutely necessary? Thanks a lot. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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: How to prevent access to the content of a folder?
Set the suppress=true ! false value in server.xml.. It should do the job for Tomcat 3.2.x - Original Message - From: August Detlefsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 03, 2001 03:55 PM Subject: Re: How to prevent access to the content of a folder? Simple solution: Put an index.html file in your images directory -it will be displayed instead of the directory listing. More complex solution: In your httpd.conf file look for the Directory section (there may be more than 1). You will probably find a line like this: Options Indexes FollowSymLinks MultiViews Remove 'Indexes' from the options list (save, restart Apache) and directory indexes should be disabled. -August --- Pedro F Gaspar [EMAIL PROTECTED] wrote: Hi. Imagine I have a webapp, say app1, under %TOMCAT_HOME%\webapps, and under app1 I have a directory named 'images' where I put all the images my pages need. If I direct the browser to http://localhost:8080/app1/images I'll have access to the contents of this directory. Is there a way to prevent this from happenning? I've tried to put the images directory under 'web-inf' but then I couldn't reference the images files inside the servlets anymore. Thanks in advance. Pedro *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- 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: Need help on Session's null pointer exception
Hi You are simply trying to set a null value in a session, which is forbidden.something like session.setAttribute(HelloWorld, null); I'm not sure this behaviour is specified in JSP specs though it's more because a Hashtable is used as the Map to store key=value session attributes within Tomcat. I run a servlet on Tomcat3.3 and got the following error: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.tomcat.core.ServerSession.setAttribute(Unknown = Source) Can anyone kindly tell me what is wrong with my setting? I changed the expiration time for session in server.xml and I am sure the SessionIdGenerator is set too. Bill -- 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: Known Memory clean-up issues?
Hi all Where would you recommend to use System.gc() in the context of JSP pages ? I guess it would be useless to intercept every single request and hint the system for garbage collection on each request ? (Now I quote) Also, before an OutOfMemory is thrown, the Garbage collector is guarenteed to run, meaning that you really are using all of your memory. I would look at what you are doing in your code - I have servlets that run for weeks without eating up any significant portion of memory I do have many times OutOfMemory exceptions thrown, although we're not doing *that* much It happens quite randomly so it's very difficult to isolate the problem. Moreover, it even happens when fetching HTML pages from Tomcat, without using much JSP... I'd like to find a place to catch that error to take action (like restarting Tomcat) but the only way we have found is to monitor the server and automatically restart it when it fails to respond. Any guidance to solve the problem would be appreciated ;-) Thanks Denis Balazuc - Original Message - From: Yoav Shapira [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 03:07 PM Subject: Re: Known Memory clean-up issues? Howdy, Any harm in forcing garbage collection to run? You cannot force garbage collection to run, only suggest it to the JVM via methods like System.gc(). If you're having difficulty tracking down memory usage, try a profiler like OptimizeIt that has entire memory trees. In addition, you can use parameters like hprof and verbosegc on the java command line to assist you in monitoring garbage collection. Yoav Shapira -- 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: Where to place JDBC drivers? How? SOLUTION FOUND!
If you have only one web-app that references this driver, you should put it in WEB-INF/lib. This allows for better maintenance and management of your libraries and dependencies. To reference/load the driver classname, you could use a parameter entry in the web.xml file... You could even have a startup servlet to load the driver in DriverManager and/or have it available through some lookup system such as a JNDI service. I think this is cleaner than having it in Tomcat/common/lib UNLESS you want those drivers to be available for all web-apps you create. - Original Message - From: Mike Kelley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 02:02 PM Subject: RE: Where to place JDBC drivers? How? SOLUTION FOUND! (for my tower of cards at least) I'm new to all this and this is probably not the best solution BUT Placing my new JDBC.jar driver files within the Tomcat 4.0/common/lib/ folder got things to work . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating Tomcat with Apache on NT
Alan Scott wrote: Not to ask a dumb question. It's only a dumb in that, as far as I can tell, you haven't bothered to try and find any of this information first. How do I integrate both these products on NT? I assume there are some settings I need to apply to one or the other. Is there a reference on anyone have some helpful hints so I can test this out. Even if I didn't already know about Tomcat, entering tomcat apache nt at Google gives you http://jakarta.apache.org/tomcat/tomcat-3.2-doc/ as the second hit, and from there you get to lots of documents about Tomcat on NT, and some specifically about hooking it up to Apache. Read the doc, give it a try... and *then* if you get stuck, we'll see you back here grin. dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How To Unload A TomCat Servlet To Reload A New Instance?
Gary Fix wrote: Now my question is, once I have loaded a Tomcat servlet, is there a way to unload it to get an updated version loaded, without having to shutdown the entire Tomcat? Yes, see the documentation for server.xml: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Search for reload. dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat dies with Signal 11
Daren Desjardins wrote: We are running our webapp on Tomcat 3.2.2 and have been experiencing a Signal 11 Stack Overflow error occasionaly. It occured on two machines [...] Server Specs: - JVM Params: -server -XX:NewSize=128m -XX:MaxNewSize=512m -Xms512m -Xmx1792m -XX:SurvivorRatio=8 -verbose:gc -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol Tomcat error: An irrecoverable stack overflow has occurred. Unexpected Signal : 11 occurred at PC=0xeb0707f4 Sounds *sort of* like Java bug http://developer.java.sun.com/developer/bugParade/bugs/4395735.html , although whether or not that's actually one bug or several bugs with similar symptoms is anyone's guess. Can you try running without -server? Some people have reported that helps. We had a similar error but it has not appeared in weeks... we stopped using -server, but we also made a lot of other changes as well. At the time that we were getting that, we had deadlock memory leak bugs as well. Don't know if that helps you at all. dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: Java program interferring with Tomcat
Ralph Einfeldt wrote: Sounds like a deadlock on the database. To verify that have a look at the server manager to see if there are locks. I agree with Ralph, that the problem is probably in your SQL access. Do *both* processes hang (e.g. Tomcat the scheduled job) or only Tomcat? I would also look at a thread dump to see what thread is locked where. Go to the window in which Tomcat is running and do a Control-Break. This is usually easier if you've started Tomcat with run, not start. dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: Java program interferring with Tomcat
David Frankson wrote: Only Tomcat hangs, the other program continues on. I thought a database deadlock only happens when both threads are trying to write and holding a lock on each other's data? The external java process is read-only. Hmm. That's why I asked. Sounds like maybe the db deadlock idea is not the right track. How do you do a thread-dump on when you are running Tomcat as a service on Win2k? Yikes! Good question. For testing, would it be difficult to run your Tomcat from a command prompt instead? On Unix you get the thread dump by sending a signal to the JVM, which would be nice in this case... hmm... dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Java program interferring with Tomcat
It happens to me, but in reverse order - I think it is related to the JDK/JRE itself, not to Tomcat. I use the same environment (win2k, jdk or jre 1.3.1). When Tomcat runs, and I launch the install shield for any installation from Sun (Java related of course), the installation programs sits there and does nothing - yet it's still alive Stopping Tomcat suddenly wakes up the install program and everything's fine I have noticed this strange behaviour a couple of times already and really wonder why this happen. I thought it has something to do with Win2K and Install-Shield (something like a registry key lookup that takes forever to complete), but it's apparently not the case... As this does not happen with other install-shield based program, I think there's something wrong in the JRE Regards Denis - Original Message - From: David Frankson [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Monday, November 19, 2001 12:17 PM Subject: Java program interferring with Tomcat I have a server running Tomcat 4.0 on Win2k with the Sun VM JRE 1.3.1. At 11am each day I have a commandline Java program scheduled to run using Window's scheduler. When this program runs, Tomcat becomes unresponsive. The process appears to still be running, but I need to restart it to get it to continue serving pages. There are no errors in any logs. The only shared resource between the two programs is SQL Server. There are two processes running, so both programs should be in seperate VMs. Any ideas? Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Including Tomcat in stand-alone app
Simon McClenahan wrote: From what I understand it is possible to run the Tomcat servlet implementation without running a web server like Apache httpd. I am writing an application that receives SOAP messages via HTTP, and I would like to use the servlet API, but not run anything as heavyweight as a web server. What SOAP implementation are you using, or is it your own? Many implementations (Apache SOAP, for example), include infrastructure for setting up a SOAP server, so you don't really need to layer Tomcat on top of that. See http://xml.apache.org/soap/features.html or http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.html dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Fail to bring up Tomcat 3.3 for windows 2000
Ai Zhang wrote: I follow your suggestion, here is the error I get. Do you have any idea about this error? D:\Web\Tomcat\jakarta-tomcat-3.3\bintomcat run Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/sta rtup/Main Try setting your default to D:\Web\Tomcat\jakarta-tomcat-3.3 and then saying: bin\tomcat run The tomcat.bat file (at least in my experience) assumes your TOMCAT_HOME is your current working directory, if it's not already defined. See the comments in the tomcat.bat file for details. dwh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat for Large Team Size
We use exactly the same environment. However, we found this approach not very satisfactory, as running Tomcat AND a Java IDE and other dev tools on the same machine eats up resources and our weak PCs sometimes slow down to a nearly-unusable state I am thinking at moving to a centralized Tomcat server with multiple instances but, we're using Tomcat 3.2 and this schema is best with Tomcat 4... Regards Denis - Original Message - From: Jim Urban [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 08:46 AM Subject: RE: Tomcat for Large Team Size I manage a team 7 server side Java developers. Each member runs a copy of Tomcat on their PC. Each PC is configured the same. We have a standard directory structure and use Ant to do our builds. We use SourceSafe for source management. Our Ant build.xml uses the VSSGET option of Ant to fetch the latest version of each file prior to compiling (the VSSGET will not over write a write able file). We also use VSSGET to fetch all the supporting files too (images, HTML, XSL, etc). All files, including the build.xml are maintained in VSS. We have a team server which also runs Tomcat. Each night at midnight the build is run on the server and Tomcat is restarted. We've been doing this for almost two years with no problems. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Where to put .properties so web app finds it
We use property files to configure our framework when it gets loaded by Tomcat through the WAR files. The most convenient place we've found for those files is under WEB-INF/classes as it is the root of the classpath of your WAR app and you can retrieve your file using ClassLoader.getResource(property.properties) without having to parse or create any URL or the like... So, it seems a convenient place to do so. You could as well have an entry in web.xml telling your framework where the property files are located, but you will have to find a mean to retrieve this setting. It is not so good if your framework is not servlet-oriented (in this case, you don't have direct access to ServletConfig, where the setting will be located). You can also use a -D on the Tomcat command line (by using TOMCAT_OPTS in Tomcat's startup scripts) but this is the worst scenario as you have to modify a file that does belong to Tomcat and not to your App. Hope this helps. Denis - Original Message - From: MacDonald, Todd [EMAIL PROTECTED] To: Tomcat-User (E-mail) [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 5:59 PM Subject: Where to put .properties so web app finds it I've got a .properties file for settings in the web app that might be configured differently depending on which server the .war might be dropped. It obviously doesn't belong in the .war itself. Where is the recommended place to put such configuration files in Tomcat 4 so that the app will find it? I'm trying hard not to modify the default configuration of T4 much until I know more about it. -T -- 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]
Tomcat /Apache Security Exception
Hello all, I've configured two machines, one with Apache and the other one with Tomcat and the application I want to access to. But when I'm trying to access to the servlet, I 've the following error. Does anybody has an idea ? Thanks for any help Denis access: access allowed (java.lang.RuntimePermission accessDeclaredMembers) access: access allowed (java.lang.RuntimePermission accessDeclaredMembers) access: access allowed (java.util.PropertyPermission line.separator read) HTTPGateway Exception: An exception occured while processing the request. wt.util.WTRemoteException: Unable to invoke remote method; nested exception is: java.rmi.ServerRuntimeException: Server exception; nested exception is: java.lang.SecurityException: access denied java.lang.SecurityException: access denied at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:752) at wt.httpgw.HTTPGateway.processRequest(HTTPGateway.java:259) at wt.httpgw.HTTPGatewayServlet.service(HTTPGatewayServlet.java:201) at wt.httpgw.HTTPAuthGatewayServlet.service(HTTPAuthGatewayServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-10-22 04:38:38 - Ctx( /Windchill ): 500 R( /Windchill + /servlet/WindchillAuthGW + null) No detailed message access: access allowed (java.util.PropertyPermission line.separator read) access: access allowed (java.util.PropertyPermission line.separator read) access: access allowed (java.util.PropertyPermission line.separator read)
Sybase TDSTunnelServlet performance.
I am trying to use the Sybase TDS tunnel servlet provided in jConnect5_2 and I have installed it into the Jakarta-tomcat webapps directory, but I am getting very poor performance compared to the jserv method. Can anyone help me to improve the performance in Jakarta-tomcat container? Is there some configuration or environment variable that I need to set or to make some buffer larger, or anything in that regard? Sincerely, Denis M. Putnam mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] winmail.dat
Re: The Problem Posted Again....
Ron Nicoletti Jr. wrote: I've completed my installation of jakarta-tomcat-3.2.3 on windows 2000 running IIS, and ISA Server. The positives ... Tomcat starts and creates log files IIS is showing a green up arrow on isapi_redirect.dll The Negatives ... When I run a test on the link http://www.mktginc.com/examples/jsp/index.html my tomcat log displays the following: [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 errno=61 is connection refused. Sounds like IIS is trying to talk to Tomcat on a different port than tomcat is listening on? Are you sure Tomcat is coming up and staying up? Check server.xml to see what port Tomcat is listening on for the ajp protocol (by default it's 8007 for ajp12) and check workers.properties to make sure it's the same there. I'm not familiar with what other configurations are necessary for IIS. dwh
Re: How to declare Output as Image?
Andrej Rosenheinrich wrote: Hello, i have a servlet, getting an BufferedImage, that shall be displayed in my webpage. for doing this I use the following code: ServletOutputStream sos = response.getOutputStream(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos); encoder.encode(image); I guess, I somehow have to tell the servlet/outputstream??? that the upcoming data is an image. right? how can i do this in a servlet? any hints? You have to tell the client what the content-type of the response is, so add something like: response.setContentType(image/jpeg); Then when the browser gets the response, it looks at the header and says oh, it's image data and knows to render it accordingly. dwh
Re: using a central repository for servlets
Joao Carlos wrote: I simply want to migrate to tomcat using this kind of configuration. Many servlets have links to others servlets (written in code) using /servlets/any_servlet, so that's impossible to me to create a context and access the servlets using /context/servlet Is there any way to create a central repository that can be accessed by /servlets and only this? Is the web-inf directory mandatory for using servlets? You don't say what version of Tomcat you're using, but in the 3.2.x versions, at least, this is still supported. Take a look in your server.xml at the entry for the RequestInterceptor that uses the class org.apache.tomcat.request.InvokerInterceptor. dwh
Re: Multiple Tomcat Instances
Abhijat Thakur wrote: I need to run multiple instances of Tomcat on Apache. As mentioned in documentation i have the two server.xml files specifying two different ports. Tomcat starts fine with the two server.xml files. I might be wrong when it comes to changes in Apache configuration that need to be done when multiple instances of tomcat need to be run.In Apache changes need to be made to mod_jk.conf.auto (since this is included in apaches httpd.conf) Don't use the auto-generated config file; use static ones instead. Then Tomcat won't overwrite your changes. I frequently start with the auto-gen'd file, copy it to mod_jk.conf, and then I can tweak it as necessary. In your case, you might have mod_jk.conf.tomcat1 and mod_jk.conf.tomcat2, and include both of those in httpd.conf (instead of mod_jk.conf.auto). dwh
Re: optimal SUN JVM config
[EMAIL PROTECTED] wrote: I know this question is a bit general. but I am very interested in which Sun Hotspot jvm options you are using to start up tomcat. (like -server -Xincgc ...) And what impact they had/have on performance. I am trying to tune garbage collection and performance and am a bit lost ;) Except for -Xms and -Xmx, my recommendation is that twiddling with JVM command-line parameters should be the *last* thing you try. (Assuming that you have access to the source code of your servlet classes, of course.) I would set -Xmx as high as reasonable for your physical memory configuration. And definitely use -server. Other than that, IMHO you're going to get a *lot* more improvement by focusing on your code, and many JVM command-line parameters will in fact hurt performance unless you really know what you're doing. What problems are you encountering? Is your servlet just slow, or does it run out of memory? If the former, you really need to get one of the optimizing tools available (several have free evaluation periods) or you can use -Xrunhprof and crawl through the profiler output yourself (I'm getting very good at that grin). If it runs out of memory, same approach, actually. Either a profiling tool or -Xrunhprof will let you identify where your memory consumption is going. We have a servlet application that was running out of memory, which we addressed by using soft references to let the GC reclaim objects that we were willing to recreate if necessary. Also, keep in mind Hotspot usually gets better the longer it runs; don't time the first few requests you make from it... A colleague actually recently asked about documentation about soft references and GC in general; this is what I sent him: http://www.artima.com/insidejvm/ed2/ch09GarbageCollection01.html This is really good. Skip forward to part 14 and the following parts (although the whole chapter is pretty good). http://developer.java.sun.com/developer/technicalArticles/ALT/RefObj/ Also pretty good. Some interesting papers about GC, GC algorithms, HotSpot performance: http://java.sun.com/docs/hotspot/gc/index.html http://java.sun.com/docs/hotspot/PerformanceFAQ.html http://java.sun.com/products/hotspot/2.0/docs.html http://developer.java.sun.com/developer/technicalArticles/Networking/HotSpot/ dwh
Re: does tomcat have the cajones?
alex reuter wrote: Hello Everyone, I have a general question about tomcat's cajones. Er... I think you mean cojones. A cajon is a kind of percussion instrument. But we know what you mean grin... Okay, back on topic.
Re: No one answering my question (security realted problem)
Sukhwinder Singh wrote: Hello, I have downloaded tomcat version 3.2.3 source code and compiled it on my windows 95 machine with Sun JDk 1.3.1. I also had to download JSSE because there was no option to compile without ssl support. ... Is there any option to compile tomcat without ssl support? It's unclear to me why you're recompiling tomcat. Why not just use a binary distribution? I've never compiled it from source... dwh
Re: Tomcat Shirts?
Well, if someone has a logo, someone could set up a store at www.cafepress.com and sell lots of stuff with Tomcat on it. Either no profit (sure, cafepress gets some) or I suppose some small money back to Apache. Does the Apache Foundation have a policy on this? Anyway, see http://www.cafepress.com/cp/info/help/products.aspx and http://www.cafepress.com/cp/info/help/images.aspx. dwh Rob S. wrote: Oh man, i'd eat up some Tomcat shirts. I wonder if I we'd be able to use the TC logo the Pier made? You can get Java stuff from http://java.sun.com/. I think it's under java wear and books.
[OT] Re: Tomcat Shirts?
Fine, be a technology bigot grin. There's a couple of other web sites that offer similar services. I just happen to know about cafepress. dwh James, Stuart wrote: .aspx, sound's like a Mickey mouse website.
Re: I do not want to use 'webapps'
Yup, just set up a new context in server.xml: Context path=/mysandbox docBase=C:/Sandbox/development /Context Which can then be accessed with the url http://localhost:8080/mysandbox (using the standalone http connector). Note the use of forward slashes, not backward, even though you're on Windows... dwh Claes Holmerson wrote: Hello! I am trying to set up Tomcat to work in the environment where we have been developing another application. In this environment we do not have a webapps directory. The output path for JBuilder is C:\sandbox\development, and this is also were the classpath points to when we test our builds.
Re: Netbeans to Tomcat
Uh... none? Seriously, I do all my servlet development in Netbeans and test deploy on Tomcat. Since we're not in serious deployment yet I don't bother with packaging classes up into jars and all that. On my Win2k box, my servlet environment is set up thusly (extraneous stuff omitted): d:\servlets\ WEB-INF\ web.xml classes\ net\ haskinferguson\ MyNiftyServlet.java MyNiftyServlet.class I mount d:\servlets\WEB-INF\classes as a directory in NetBeans, edit away, compile, and then the new classes are immediately available in Tomcat (well, they would be if I had reloadable=true in my server.xml, but I don't, because that makes things slow). Obviously, I have a context set up in server.xml which points to the above. dwh Mihai Gheorghiu wrote: What steps do I need to take in order to have my work in Netbeans installed properly under Tomcat? Thank you all.
Re: Free hosting of Servlet/Jsp ?
A couple of sites are listed at http://directory.google.com/Top/Computers/Programming/Languages/Java/Server-Side/Servlets/Hosting/Free/ (although at least one is a free-for-2-months only...) dwh From: Sheila Ratnam [EMAIL PROTECTED] Hi all, Is there a free-hosting site where I can put up a small website using servlets / JSP ?.. to get the real world learning experience?
Re: Q: How to use mod_rewrite with mod_jk?
It does appear that you have everything set up properly. I'm unable to duplicate the behavior you're seeing, but the environment I have to test it is Solaris, Apache 1.3.19, Tomcat 3.2.1. I wonder if it's a bug just with directory listing? Can you get to servlets or JSP pages via the rewrite rule? What happens when you do the rewritten url with a trailing slash (e.g. http://localhost/rewrite/examples/)? There's been some discussion in the mailing list about handling of trailing slashes, and I seem to recall there's some issues with that. Apologies that I couldn't be more help... dwh amduser amduser wrote: [...] The rewrite log says ][rid#8650b0/initial] (3) applying pattern '^/rewrite/examples(.*)' to uri '/rewrite/examples' 127.0.0.1 - - [21/Aug/2001:00:05:25 -0400] [foo.lan/sid#7a60f0][rid#8650b0/initial] (2) rewrite /rewrite/examples - /webapps/examples 127.0.0.1 - - [21/Aug/2001:00:05:25 -0400] [foo.lan/sid#7a60f0][rid#8650b0/initial] (2) forcing '/webapps/examples' to get passed through to next API URI-to-filename handler * Response to http://localhost/webapps/examples: ... correct directory listing ... * Response to http://localhost/rewrite/examples: Not Found (404) Original request: /rewrite/examples Not found request: /rewrite/examples [...etc...]
Re: how to automatically load the servlet
1) Read the FAQ: http://jakarta.apache.org/site/faqs.html 2) Where you will discover: http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/43/question_id/230 dwh Rajesh wrote: Hi, How to load the servlet when tomcat3.2.1 starts can anyone help me Rajesh
Re: How do I make Tomcat include needed jars for my servlet?
For Tomcat 3.2.x, just modify your tomcat.bat file to set up the classpath as you need it. I assume something similar can be done for TC4. dwh Ju Yan Jery Qin wrote: Hi all, I have read this topics but it still can not resolve my problem. Your suggestion is to copy application related jar files into %YourWebAppPath%/WEB-INFO/lib dirctory. But my application is under development, so whenever I regenerated jar files for my web app, I have to copy them to that directory again. If under UNIX, you can use symbolic links, but I use Windows 2000 as my server. So my question is: is there any way to define CLASSPATH variable for my web application independently so that I don't need to copy them again and again. In fact, in my case, I have two web application which are derived from the same base but should be installed independently. So these two web application have many classes with the same package and name. And these classes spreaded in two directory d:\vendor\webapp1 and d:\vendor\webapp2 but not in jar file. So I really need a way to define CLASSPATH in application level instead of copy tons of variable classes into d:\vendor\webapp1\WEB-INFO\classes and d:\vendor\webapp2\WEB-INFO\classes again and again.
Re: Tomcat on Windows vs. Unix
Ditto. Development is on Win 2000, deployment on Solaris. No issues. dwh Jim Urban wrote: We do all our application (servlets only) development on Win (NT) and have deployed to Win 2K, Solaris and AIX. We have used Oracle, MS-SQL and MySQL for databases. We have had no problems with this approach. Now compare this to our old C++ platform and
Re: Q: How to use mod_rewrite with mod_jk?
Hmm. Works fine for us (Tomcat 3.2.x, Apache 1.3.19, Solaris, jdk 1.3.1). Given that you're tried the ordering of the AddModule lines (don't know if LoadModule needs to be in order too--wouldn't think so) and you have the PT flag, I guess I would recommend turning mod_rewrite logging up to full and make sure that the final rewritten URL from mod_rewrite is what you expect it to be. Actually, now that I read your message more closely, I'm not sure I understand the problem. It sounds like the requests *are* getting to Tomcat but they aren't in the form you expect when they get there? Or are the requests not getting to Tomcat at all? Perhaps some examples and some RewriteRule snippets would help. dwh amduser amduser wrote: Q: How to use mod_rewrite with mod_jk? I am trying to get mod_rewrite to work with mod_jk, but am not having any luck. I've tried placing the AddModule line for mod_jk both before and after the AddModule line for mod_rewrite. Using the PT flag on rewrite rules doesn't help either. The same rewrite rules work perfectly with Caucho Resin's mod_caucho. It seems as though Tomcat is passed only the original URL and not the rewritten URL. I have searched the archives and the net but have found nothing that solves this problem. Windows: tomcat 3.2.3; mod_jk.dll 2001-07-17; apache 1.3.20; sun jdk 1.3.0; windows 2000 sp2 Linux: tomcat 3.2.3; mod_jk-noeapi.so 2001-07-20; apache 1.3.20; ibm jdk 1.3.0; linux 2.2.13 __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: URL mapping: /appname/stuff/login.jsp -- /appname/login.jsp ?
You're 'locked in' to the structure you describe only if you use the default webapp context. Instead, create your own context(s). Create a new context in $TOMCAT_HOME/conf/server.xml: Context path=/Appname docBase=/usr/appname ...other attributes omitted... /Context and then at /usr/appname you would have a hierarchy like this: /usr/appname login.jsp WEB-INF/ web.xml classes/ ...etc... Then to get to login.jsp the url would be http://[hostname]/Appname/login.jsp, as you want. See the servlet spec documents (I know, can be hard to read), the application development manual at http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html (although as it says itself, it's somewhat out of date). dwh mailtracker wrote: --- Tomcat 3.2.x Apache 1.3.20 Solaris 2.8 (aka 8) Sun JDK1.3.1 We are moving a large, servlet-like Java thing toward compliance with the Servlet spec version 2.2. One issue, considered by some to be a real problem, is that in the migration our URL has changed from .../appname/login.jsp to ../appname/stuff/login.jsp We're looking for the magic Tomcat and Apache directives that will allow a web client to type in http://[hostname]/appname/login.jsp;, as they have in past versions, and receive in response .../tomcat/webapps/appname/stuff/login.jsp --- (now saying the same thing in another way...) So we're locked into this structure: tomcat/.. ../webapps/appname/ ../.../.../[directory]/ ../.../.../.../ ../.../.../stuff/ (includes index.htm, login.jsp, and so on) ../.../.../WEB-INF/ ../.../.../.../lib/ Tomcat's default behaviour is to serve this web application as: http://[hostname]:8080/appname/stuff/login.jsp We'd like for Tomcat and Apache, when the two are hooked together, to serve the content as: http://[hostname]/appname/login.jsp --- any suggestions appreciated!
Re: REMOTE_HOST not showing up in Tomcat3.2
It's a known bug. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=208. dwh -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2 Hello, Is there something I have to configure in mod_jk to get the remote host information to resolve. Its apparently available in Apache but seems to not show up in Tomcat when I do request.getRemoteHost(). How, is this setup / configured?
Re: Version
$10K? Geez, I'm in the wrong business... Someone may have a better way to check the Tomcat version, but for my version at least (3.2.1) the quickest way seems to be to look in the docs/readme file under the Tomcat home directory. Right at the top it says the version. None of the startup messages in the logfiles seem to indicate the version. That might be a Nice To Have. Also, because of the way the distributions are packaged, all of our Tomcat installations include the version in the path, e.g.: /usr/local/jakarta-tomcat-3.2.1/... dwh Barnabas Yohannes wrote: Folks, How do I know what version of tomcat I have on my apache server? This dude who installed tomcat for us, I think, he installed only the beta release of tomcat. Now, he is asking $10,000 to fix it. Oh holly cow! was my bosses reaction.:) I used the command: openssl version -a But it only gave me the ssl version. Any help will be appreciated!
Re: Version
Back to what I said earlier... since you found the Tomcat home directory, look in the doc subdirectory for the readme file. That has the Tomcat version in it. Or at least mine does... Barnabas Yohannes wrote: Rob, Obviously, you and I need to learn a little more before we can open our own little yahoo shop. I found out that in tomcat, it is named LICENSE. lol! I'm just kidding dude! That help was very useful and more than $10 worth even though the name was LICENSE. Now in the LICENSE of my tomcat, it is displayed:
Re: Version
Marc Saegesser wrote: You can always use telnet to open up a connection to the server and do a GET / command. The HTTP response will contain the Tomcat version number. [...] Feel free to send me $10,000 anytime you like. I agree. I think Marc gets the $10K. :-) Telnetting in is the most reliable method... (Actually, I think $10K was for upgrading it to a more current Tomcat...)
Re: Internal Server Error on first couple requests
What exactly do you mean by 'startup'? If you're using ajp, you must start Apache and Tomcat together, because of the persistent connections. That is, if you shut down Tomcat, you have to shut down Apache also, and vice-versa. This is documented... Or do you mean to say that when you start both of them up like this, you get Internal Server Errors on the first few requests? If so, does it matter how long after startup you try this? I certainly find if I try to access Apache/Tomcat before Tomcat has finished loading, I can sometimes get that error. dwh Mike Tinnes wrote: We're using Tomcat 3.2.2 with Apache 1.3.20 and are experiencing problems with jsp's not loading correctly on startup. The first couple requests return back an 'Internal Server Error' from Apache. After a couple more hits it seems to come back. I've read where this may be due to ajp connector sockets not being shutdown correctly, and if tomcat is killed and immediately restarted the connector is not immediately able to communicate. Has anyone else delt with this issue, and if so any remedies?
Re: Internal Server Error on first couple requests
You're right, it looks like that's only true for ajp13 and only with Tomcats prior to 3.3. See http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s10, 4th item. dwh Dmitri Colebatch wrote: is this true? where is it documented - I've never had to restart apache when restarting tomcat...
Re: Jakarta crashes after 900+ simultaneous connection
I would definitely upgrade your JVM to the most current version (I'm at 1.3.1-b24, but that's on Solaris and Win2k). I had segment violation crashes related to networking in earlier Java 2 versions, although I don't know that they were exactly this problem. I don't know much about Linux but I would make sure there aren't any patches you need there. We also had to make some Solaris patches. Just my 2 bits... dwh Santosh Pasi wrote: Java is 1.2.2
Re: [MOD_REWRITE] Why...
We found that we had to do 2 things: 1) Make sure that mod_jk was loaded into Apache *before* mod_rewrite, which meant moving the loading of mod_jk from mod_jk.conf to Apache's httpd.conf, and we listed it in the LoadModule and AddModule lists *before* mod_rewrite. That ensured that mod_rewrite got to the URL before mod_jk did. I'm now less convinced this is absolutely necessary--the next item may be more important. 2) Put the [PT] (passthrough) flag on all RewriteRule lines that were rewriting URLs to go to Tomcat. Also, one gotcha we hit was using the same pathname for both the incoming URLs and for the Tomcat context, e.g. http://ourhost/ContestSignup for the URL and /ContestSignup for the context path. It's better (maybe required) to use a different name for the context path, like /ContestSignupServlet. dwh Francis Pallini wrote: Hi, It sounds like you are a little sarcastic ;=) Regards, Francis Pallini At 11:25 AM 8/9/01 +0200, you wrote: Can anyone tell me why the when using the mod_rewrite module, Tomcat can't/don't seem to retrieve the rewritten url and args? As I am responsible of the migration from JServ to Tomcat, I've to write a documentation that explain this point... Loïc Lefèvre
Re: Problem in Intigration Apache Tomcat
Chill out, Pier. I suspect the initial poster was not a native English speaker, so the lack of politeness was accidental, I think... That being said, I agree that there's a huge number of people who post to this list (and many other lists, unfortunately) who seem to turn to NGs and mailing lists as assistance of first resort, instead of last. That also being said, I think most of us would agree that the Tomcat docs leave something to be desired. I'm a native English speaker, a seasoned developer, a former writer, and even I found there was a pretty steep learning curve. I truly wish I had the time to do some work on the doc, but... dwh Pier P. Fumagalli wrote: Maybe a please would be appreciated... We're not paid to solve your problems. Then you might want to read the documentation before coming out with such a question... Ever heard of Apache modules such as mod_jserv, mod_webapp or mod_jk??? It's all in the docs... Pier
Re: [MOD_REWRITE] Why...
Uh... the solution is the 2 items in my response (load mod_jk before mod_rewrite, put [PT] on RewriteRules). dwh Loïc Lefèvre wrote: Indeed, phew I finally found someone with the same hemm...problem ;) Did you find a solution? Did you try to patch Tomcat? ;)
Re: Configure to use mod_jk
Tomcat-apache.conf is not used when you're using the jk connectors. Use mod_jk.conf instead (if mod_jk.conf is not there, look for mod_jk.conf-auto as a starting point). dwh Mike Givens wrote: How do I get the tomcat-apache.conf file to load the mod_jk module instead of the mod_jserv module? I'm running tomcat3.2.3 and Apache 1.3.12 on Solaris.
Re: Using Servlet in different path then /examples/servlets/
Yuval wrote: How can I run servlet on my web server on different path than /examples/servlets/ I tried to define: Context path=/ docBase=C:/InetPub/wwwroot crossContext=false debug=0 reloadable=true /Context and its not working. In what way is it not working? What are you trying (e.g. what path)? Are you going against the Tomcat HTTP listener directly (by default on port 8080)? Do you get an error message in response, or in logs? You do have a WEB-INF/web.xml under C:/InetPub/wwwroot, don't you? dwh
Re: Where are the topic archives (TOMCAT 4 b6)
See http://jakarta.apache.org/site/mail2.html for links to archives. Note that I find this one the easiest to use: http://marc.theaimsgroup.com/ , poor color choices notwithstanding. dwh Curtis Dougherty wrote: I'm looking for the discussion archives - particularly TOMCAT 4 b6 topics... Can someone send me the link... Thanks in advance.. cd
ADD_SSL_INFO in mod_jk.c, and ajp13 performance in general.
Perhaps this is a better question for tomcat-dev, but in mod_jk.c there's a comment that says: /* * If you are not using SSL, comment out the following * line. It will make apache run faster. */ #define ADD_SSL_INFO I can find no reference to ADD_SSL_INFO to any other Tomcat or Apache (1.3.x) source code. Does commenting out this line have any effect? As you can guess, I'm dealing with the same issue that many people are--performance when testing directly against Tomcat's HttpConnectionHandler is great, but when doing the same test through Apache/jk/ajp13 the maximum page rate is substantially limited. There's lots of dribs and drabs in the email archive about this, but if anyone has some concise recommendations on how to improve Apache/jk/ajp13/Tomcat performance, I would certainly appreciate it. It *appears* the bottleneck is on the Apache side, but I haven't demonstrated this conclusively yet. Thanks, dwh
Re: Tomcat+Apache
both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Directory Listing
check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 17:51 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Re: Tomcat+Apache
in tomcat.conf At 12:16 19/07/01 -0300, you wrote: but if tomcat-apache is a generated file, where should I use the right parameters in order to generate this file correctly. I don´t understand this point yet !!! Sorry by my stupid questions ok :) [] Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:13 PM Subject: Re: Tomcat+Apache not really tomcat.conf is the based configuration file (contains modjk or modjserv,ifModule directives..) and tomcat-apache.conf is the generated file when you start tomcat with both of them it works for more have a look at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Denis At 11:06 19/07/01 -0300, you wrote: h but if u compare the 2 files ... they are different, aren´t they ? [] Daniel - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 10:56 AM Subject: Re: Tomcat+Apache both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Directory Listing
when you execute http://localhost/cnpi if cnpi is your app you must have a index.html or a index.jsp in conf files : in tomcat.conf add Alias /cnpi/usr/website/webapps/cnpi Directory /usr/website/webapps/cnpi /Directory Location /myApp/WEB-INF/ AllowOverride None deny from all /Location in server.xml uncomment 8080 use ajpv12 for ex add in server.xml Context path=/cnpi docBase=webapps/cnpi crossContext=falsedebug=0 reloadable=true /Context stop tomcat stop apache start tomcat and start apache see error.log access.log tomcat.log good luck denis At 12:20 19/07/01 -0300, you wrote: yes i´m using 8080 but ´my app dir is mapped at Apache, and I don´t need to use :8080 but it´s allowing directory listing ! is it possible to avoid that ? regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:20 PM Subject: Re: Directory Listing check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Starting tomcat
I installed Tomcat 3.2.2 on win2000 with jdk 1.3.1. When I start it I get next message: Files\Apache was unexpected at this time. How to correct this? Apache is shuted down. Get free email and a permanent address at http://www.netaddress.com/?N=1
unsubcribe
unsubcribe tomcat-user
working directory getting too big
can anyone tell me if there is a way to manage the working directory, (where tomcat places the JSP compiled files .java, .class) my application automatically creates new JSP who get compiled and their files get put in the working directory. THEREFORE IT WILL GROW INDEFINITLY. What i am looking for is a way to delete automatically the JSP files in that directory after they are no longer needed.can tomcat do this? Or have them stored in a cache instead and setting a max size where the first in is the first out . Or something at the OS level. Any help, advice or directing me in the right path will be greatly appreciated. thanks in advance.
RE: installing tomcat 3.2 on windows 98
Hi, you should remove any settings of CLASSPATH in tomcat.bat and set it in autoexec.bat. In tomcat.bat find label :startServer and replace with excisting code :startServer echo Starting Tomcat in new window start java %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto finish has to work. Bye. -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 2:20 PM To: [EMAIL PROTECTED] Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
admin default password ?
Hi, what default password do I have to use to login to the admin context ? regards, Denis
javax.servlet problem
Thank you for your help It seems it is not a typo problem(it is the mistake I made at previous message without a ";") The compiler cannot recognize the second statement "import javax.servlet.*" I cannot compile the java program with the program header start with import java.io.*; import javax.servlet.*; import javax.servlet.http.*; during the compilation, it stops with error at the above statement. I have make sure the classes are set under the correct path. Thanks!
import javax.servlet compile error
Hi all I cannot compile the java program with the program header start with import java.io.* import javax.servlet.*; import javax.servlet.http.*; during the compilation, it stops with error at the above statement. I have make sure the classes are set under the correct path. Thanks!