RE: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk
I looked at your site for answers to my problem - which is: I have Tomcat on a seperate machine from apache so I cannot implement the listeners as you describe because I don't have Apache2 on the machine with tomcat on it. I have the mod_jk running but it spews a bunch of information to the console, and I want to capture it in a log. I would like to capture it to /dev/null but I would settle for a log file. Does Tomcat Listener actually need the same copy of the modjk_so as apache or will any copy do? -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 10:33 AM To: Tomcat Users List Subject: Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk Be careful in sending to this list. There were multiple messages of the same post. Answers within. On Thu, 30 Oct 2003, Joaquin Corchero wrote: Hi everyone I hope someone can help me After having a look to your url. I've to say that I think I'm closer to a solution, but I haven't arrived yet. I haven't achieved yet to make apache and tomcat work together. I followed the steps to setup apache nonssl, tomcat and mod_jk because I had java already installed and I work with mysql and I think I don't need any of the other packages that you mention in the url. After following your instructions I found two steps a bit estrange that I don't understand: 1) Directly below this line in /usr/local/tomcat/WEB-INF/server.xml Host name=localhost debug=0 appBase=webapps Add this line Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / Do you mean that I need to create a folder called WEB-INF and introduce a copy of server.xml? No, that was typo. Funny you mention it, I changed it yesterday on the site: Proper location: /usr/local/tomcat/conf/server.xml 2) In the same paragraph you have this: Create file /usr/local/tomcat/workers.properties with these contents: # Setting Tomcat Java Home workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java/java ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13..host=localhost:443 worker.ajp13.type=ajp13 But the default location for the workers file (or the location that everybody uses) is /usr/local/tomcat/conf/jk/workers.properties. Do you mean that I need to create another workers .properties? You're right, it should be /usr/local/tomcat/conf/jk/workers.properties. Anyway is what I created the new file and I copied the same content in the other workers but I'm not sure if the line worker.ajp13..host=localhost:443 should be worker.ajp13..host=localhost:80 because I'm not using SSL. That line is unncessary with talking to apache. It should read like the following: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I'll make these changes today on my site. Sorry for the confusion. Check John Turner's site if you want for double-checking, which there is a link on my site to. Good luck, Oscar Attached you will find my httpd.conf, server.xml and workers.properties. Thank you for your help. Joaquin Talego - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 4:15 PM Subject: Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk Does Apache launches and serves up plain html files? If so, most likely it's the mapping done in httpd.conf and/or the auto-generated modjk.conf file. I have examples on how to do it in httpd.conf for virtual hosting here: http://daydream.stanford.edu/tomcat/install_web_services.html It may help you in seeing what gets configured where. Oscar On Wed, 29 Oct 2003, Joaquin Corchero wrote: Hi! I'm new in tomcat and I have a problem (very big for me) so I hope someone will be able to help me. My problem is that after setting everything up following the instructions from http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html, the apache server doesn't execute the jsp files. I didn't get any error during the installations, so I think everything is working properly I don't understand what's the problem. Thank you Joaquin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't run servlets
Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app 5. Tried to run the servlet form http://localhost:8080/test/servlet/abcd Error displayed: The requested resource (/test/servlet/abcd) is not available. Is there anything which I have missed or done something wrong ? Please help me. Thank you OS: XP Professional Tomcat version: 4.1.27 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting tomcat to listen on port 80
For 1), actually, last time I checked, the 'tomcat.sh' script in commons-daemon was still configured for TC 4.1.x ;-). There is a note in the docs telling you how to modify it to work with TC 5. The commons-daemon 'jsvc' program that Yoav is refering to in 1) below works perfectly fine with TC 4.1.x (since that's the version I'm using it for :). Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, You shouldn't run tomcat, or any java program, or any server program open to the outside world, as root. However, only root can bind port 80 on unix. So you have some options: 1. Use tomcat 5.x which can run as a non-root user and still bind to port 80. 2. Use Apache httpd in front of tomcat, apache runs on port 80, tomcat on another port, and apache directs requests for servlets/jsps to tomcat. 3. Use some unix redirections e.g. ipchains to redirect port 80 requests to 8080, where tomcat is running as non-root. 4. Some other options are available, but those are probably the best. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Oh, I don't know how to thank you!!! That's it! It finally works Now should we be using port 80 and running as root or should we better use port redirection: /etc/sysconfig/ipchains -I input --proto TCP --dport 80 -j REDIRECT 8080 -I input --proto TCP --dport 443 -j REDIRECT 8443 Thanks for your help. N.K. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:48 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Howdy, Your 8005 error is because you started tomcat before, and shut it down inappropriately, or not at all, so it's still listening on port 8005. 8005 is the default tomcat shutdown port. Shut down the first tomcat properly and completely. Then you'll be able to start on port 80 (and 8005 -- a server shutdown port is always required in addition to the connector port). Yoav Shapira Millennium ChemInformatics -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended
Re: Can't run servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing strong authentication with Tomcat 4.0.6 standalone web server
As much as Tim is trying to help, the real answer is that at the moment only TC 5 supports configuring the cipher-suite (except that it should be technically possible to do in 4.1.29 using JMX). There is a chance that the TC 5 configuration code will be back-ported to a future version of 4.1.x. deric stroud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to configure SSL on a standalone Tomcat webserver 4.0.6. and I can't quite work out how and where to configure the server to allow the use of strong authentication only (1024) during cipher suite negotiation. Does someone what lines to add to server.xml file or otherwise? Thanks! Deric _ Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps réel avec MSN Messenger! C'est gratuit! http://ifrance.com/_reloc/m _ Envie de discuter en live avec vos amis ? Télécharger MSN Messenger http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : memory-leaks in servlets, tool for tracing ?
When does a class reload occur ? When u update a JSP ? When u update a class ? When u update a lib ? When u do reload in the manager webapps ? = yes :) Anything else ? -Message d'origine- De : Christopher Schultz [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 novembre 2003 23:31 À : Tomcat Users List Objet : Re: RE : memory-leaks in servlets, tool for tracing ? Laurent, What about classes with static method and/or static attributes ? Are they deleted from the old webapp ? I don't believe that the VM ever releases resources taken up by Class objects (I think this includes static resources for a class). There used to be a VM option, -noclassgc, that was often used so that instance-less Classes wouldn't get GC'd. Almost everyone who ran Java apps turned that option on. I'm not even sure if that option is still available. They may have simply eliminated the GC'ing of Class objects altogether. I know that in my stock tc 4.1.27 on Sun's 1.4.2 VM, that after a re-load, all the old Class objects stick around. It's quite disconcerting because the heap grows by around 600 classes every time a context-reload occurs. The solution, of course, is not to enable context-reloading on production :) -chris - 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: Re: Can't run servlets
Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - 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: Which is the winner----Singleton Class or Base Servlet????
I totally agree with Justin. One object instantiation does not take more than a few milliseconds. This is not a performance issue. Object instantiation becomes an issue only when a great number of objects are constantly being created. This is the case of, for example, JDBC connections or sockets in your server (that is why pooling is the best strategy for them), but not of a singleton. As for your performance tunning, it seems to me that you have taken good decissions: using oracle connection pooling, and using a native server for your video clips. Maybe you could switch from IIS to Apache. Independently of religious ideas, Apache has a very good performance, many experts recommend it over IIS due to important security bugs in IIS, and it can run on other platforms, so you could install the server on a Linux box. I do not want to begin an OS war discussion, just pointing that you could reduce costs, as Linux is free ;-) Regards, Rodrigo Ruiz Justin Ruthenbeck wrote: At 05:07 PM 11/5/2003, you wrote: In addition to what others have said, why don't you ask your highly knowledgeable friend for proof of what he's claiming? Anyway his answer to this question is,-- using base servlet does not create a separate object instance as it is done when using a singleton class.That way u use one object less from JVM point of view.However this answer did not solve my quest. Really? That's the reason? Ignore it. Choosing to implement something in a base class or in a singleton is a decision based on your app's architecture -- choose whichever is more clear and/or more maintainable for you. There may be performance issues involved, but that would have to be discussed with specific examples ... in any case, this is not one of them. justin - 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: Re: Can't run servlets
Holger Klawitter, Servlet mapping is not madatory.. - Basu. - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:52 PM Subject: Re: Re: Can't run servlets Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Can't run servlets
did u try running the examples ?? - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:52 PM Subject: Re: Re: Can't run servlets Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 09:48 schrieb Basavaraju P. Banakar: Servlet mapping is not madatory.. Well, not from the viewpoint of the DTD, but if you dont use the invoker [Jay indicates by mentioning serlvet sepcifications], you'll need one (Otherwise I'd really like to know why I have to use them with my Tomcat 4.1.24 installation ;-) But if servlet mappings are still not enough, Jay has to check the errorlogs of his server $TOMCAT_HOME/logs, there are a lot of possible other errors. His servlet might have thrown an exception, some xml file might be malformed (this would be my next guess). Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qhCr1Xdt0HKSwgYRAgkQAJ4ko9IJsGBFZbI/YlIREOxqigZOqACfRq2s yGRgQKyOGSNfEMPFx2n8op4= =AXDS -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logger for context
Hello I could use some help, this is what I did. I created a new logger for my webapp 'ic' in the administration tool The webapp still functions normally but when I try to look at it in the administration tool, I get the following error message: type Status report message Error retrieving attribute debug description The server encountered an internal error (Error retrieving attribute debug) that prevented it from fulfilling this request. These are the first few lines of the error message in catalina.out: 2003-11-06 09:08:32 action: Select event on Catalina:j2eeType=WebModule,name=//localhost/ic,J2EEApplication=none,J2EEServer=none 2003-11-06 09:08:32 action: Error retrieving attribute debug javax.management.InstanceNotFoundException: Catalina:type=Loader,path=/ic,host=localhost at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1011) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:630) Could somebody please tell me how to fix this? Thanks a lot Fabienne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logger II
Hi again Sorry, I found it. I just had to add a context in the server.xml. Somehow I thought that the admin tool would do it by itself but it didn't. Thanks, Fabienne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Directory Symbolic link between 2 webapps ??
Hi, i have 2 webapps, webapp1 webapp2. In webapp1, i have a directory img/. I want the same directory in webapp2 , so i made a symbolic link like this : ln -s /home/server/webapp1/img img When i try to acess http://webapp2/img , i have a 404 error. Why ? Is it a security problem ? How can i do this ? Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring tomcat web server
letterHi, I'm quite newbie in tomcat configuration ! I would like to add a DNS that throw on a directory. I think that i have to work with connector (Coyote HTTP/1.1), but i have no idea of what file to change and no example. Is someone have a file or a example ? my version is : Apache Tomcat/4.1.29 Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
specifying web app classpath in server xml?
Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7)
RE: specifying web app classpath in server xml?
I don't know what system you are using and how you are working with the other team. I would share the shared directory (via NFS on UNIX). François. Hi, but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Thanks for the reply. You mean its possible to map several directories to one (the lib folder) in unix? We are using windows 2000 machines however, no can do :( -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:37 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? I don't know what system you are using and how you are working with the other team. I would share the shared directory (via NFS on UNIX). François. Hi, but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
No, I mean that shared/lib is empty, so, I don't know w2k well but I think you could call it a vdir pointing to the other team libs. -Message d'origine- De : Anton Modaresi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 novembre 2003 11:40 À : 'Tomcat Users List' Objet : RE: specifying web app classpath in server xml? Thanks for the reply. You mean its possible to map several directories to one (the lib folder) in unix? We are using windows 2000 machines however, no can do :( -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:37 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? I don't know what system you are using and how you are working with the other team. I would share the shared directory (via NFS on UNIX). François. Hi, but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. - 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]
JSP1.2 (XML) probleme with syntaxe
I tryied to find answers form forum and within the archive but I never had answer so here is my probleme : I am trying to do a developpement in JSP1.2 (XML) instead of JSP1.1 using tag %=% and %% instead of %=..% et %..% I would like to change the style of div with an iteration: Mycode is the following jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 xmlns:tiles=/WEB-INF/struts-tiles.tld xmlns:bean=/WEB-INF/struts-bean.tld xmlns:html=/WEB-INF/struts-html.tld xmlns:logic=/WEB-INF/struts-logic.tld jsp:scriptlet java.util.List l = com.imko.schemnet.anomalie.db.AnomaliePeer.doSelectAllOrdered(); //java.util.List l = new java.util.Vector(); pageContext.setAttribute(lstAnomalie,l); boolean grey = true; String classUsed=anomalieGrey; /jsp:scriptlet div class=anomalieGen jsp:expression classUsed /jsp:expression logic:iterate id=ano name=lstAnomalie div class=%=classUsed%!-- the probleme lay here -- bean:define id=cat name=ano property=idCategorie/ jsp:scriptlet if(grey){ classUsed=\anomalieGrey\; grey = false; }else{ grey = true; classUsed=\anomalieWhite\; } /jsp:scriptlet ... /div /logic:iterate /div /jsp:root Reference (http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html) says to remplace %=% par %=% . but it only work with taglig html:img class=%=classUsed% works but div class=%=classUsed%-- does not. Those are my tries : div class=%=classUsed%-- The value of attribute class must not contain the '' character.' div class=%=classUsed% -- Open quote is expected for attribute class|.' -- here might be a solution My only solution so far woulf be to create my own taglib. But it don't seams right. -- Charles-Alexandre SABOURDIN - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How could I solve this error
I tried to run my first servlet and got this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:666) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:666) java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Exception
Hi! I'm using Tomcat 4.1.29 on WinXP and JDK 1.4.2_02. I've created a keystore for the SSL with keytool: keytool -import -alias root -keystore tomcatStore -trustcacerts -file CA.crt keytool -import -alias tomcat -keystore tomcatStore -trustcacerts -file SERVER.crt CA.crt was also added to cacerts in jre/lib/security as an trusted certificate. Now when I run tomcat I get: javax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. Anyone can give me some idea on what is going on ? Best regards, Kovi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie help! - BufferedFile(new File(test.txt).getAbsolutePath())?
Hi all, try { BufferedReader br = new BufferedReader(new FileReader(new File(temp.txt).getAbsolutePath())); String temp; while((temp = br.readLine()) != null) { out.println(temp); } } catch(Exception e) {out.println(h1ERROR/h1 + e.toString());} the br field now has a file using this path c:\winnt\system32\test.txt? The txt file and .jsp file are in C:\Program Files\Apache Group\Tomcat 4.0\webapps\ROOT\testing How can I tell the jsp (or tomcat) to look in the same directory before trying what I assume is the PATH environment variable? thanks for all your help peeps. Chris. NOTE: The information in this email is confidential. If you are not the intended recipient, you must not read, use or disseminate this information. Although this email and any attachments are believed to be free of any virus, or any other defect which affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by London City Airport for any loss or damage rising in any way from receipt or use thereof. The contents of this message including any attachments does not necessarily reflect the view of London City Airport, unless expressly stated to the contrary the message is the work of a sender acting as an individual. www.londoncityairport.com This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com
Re: JSP1.2 (XML) probleme with syntaxe
Quoting Charles-Alexandre Sabourdin [EMAIL PROTECTED]: I have gone quickly through it :( and I am not confortable with the new notation you mention but I hope their might be a simpler solution then building a tag library ;) I tryied to find answers form forum and within the archive but I never had answer so here is my probleme : I am trying to do a developpement in JSP1.2 (XML) instead of JSP1.1 using tag %=% and %% instead of %=..% et %..% I would like to change the style of div with an iteration: Mycode is the following jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 xmlns:tiles=/WEB-INF/struts-tiles.tld xmlns:bean=/WEB-INF/struts-bean.tld xmlns:html=/WEB-INF/struts-html.tld xmlns:logic=/WEB-INF/struts-logic.tld jsp:scriptlet java.util.List l = com.imko.schemnet.anomalie.db.AnomaliePeer.doSelectAllOrdered(); //java.util.List l = new java.util.Vector(); pageContext.setAttribute(lstAnomalie,l); boolean grey = true; String classUsed=anomalieGrey; /jsp:scriptlet div class=anomalieGen jsp:expression classUsed /jsp:expression logic:iterate id=ano name=lstAnomalie div class=%=classUsed%!-- the probleme lay here -- bean:define id=cat name=ano property=idCategorie/ jsp:scriptlet if(grey){ classUsed=\anomalieGrey\; grey = false; }else{ grey = true; classUsed=\anomalieWhite\; } /jsp:scriptlet ... /div /logic:iterate /div /jsp:root Reference (http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html) says to remplace %=% par %=% . but it only work with taglig html:img class=%=classUsed% works but Hereabove you are in a taglib attribute while hereafter you deal with plain text html markup. div class=%=classUsed%-- does not. So you might simply do something like div class='bean:write name=%=classUsed% /' By the way I guess by class attribute in html:img tag you meant styleClass ? My two cents, Patrick Those are my tries : div class=%=classUsed%-- The value of attribute class must not contain the '' character.' div class=%=classUsed% -- Open quote is expected for attribute class|.' -- here might be a solution My only solution so far woulf be to create my own taglib. But it don't seams right. -- Charles-Alexandre SABOURDIN - - 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: JNDIRealm...more
getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I don't, but I guess that is why we have web application developers on staff. :-) Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:00 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once they've authenticated? robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to
mozilla nightly build and tomcat form-based authentication
Is anybody else out there using a Mozilla nightly build? Seems they've introduced a bug since the last major release (1.5) that stops me logging in using form-based authentication. It would cool if anybody else affected here would vote for the bug on bugzilla: http://bugzilla.mozilla.org/show_bug.cgi?id=223891 Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet invoker
Hello folks, does anyone knows how can i get the Invoker URI inside a servlet? Regards, Edson
RE: specifying web app classpath in server xml?
thanks for telling me about the shared/lib folder. I dont know how to make virtual folders either. You can share a folder, but you cant link it in an already existent folder tree as far as I know. -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:53 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? No, I mean that shared/lib is empty, so, I don't know w2k well but I think you could call it a vdir pointing to the other team libs. -Message d'origine- De : Anton Modaresi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 novembre 2003 11:40 À : 'Tomcat Users List' Objet : RE: specifying web app classpath in server xml? Thanks for the reply. You mean its possible to map several directories to one (the lib folder) in unix? We are using windows 2000 machines however, no can do :( -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:37 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? I don't know what system you are using and how you are working with the other team. I would share the shared directory (via NFS on UNIX). François. Hi, but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. - 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: How could I solve this error
Javier wrote: I tried to run my first servlet and got this error: Hi Javier, snip trace root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:666) java.lang.Thread.run(Unknown Source) humm sounds strangewhat is the exact version of tomcat you use ? have you changed something in the scripts launching tomcat ? did you change packaging of tomcat ? or removed any library ? (.jar files) Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP1.2 (XML) probleme with syntaxe
Charles-Alexandre Sabourdin wrote: I tryied to find answers form forum and within the archive but I never had answer so here is my probleme : I am trying to do a developpement in JSP1.2 (XML) instead of JSP1.1 using tag %=% and %% instead of %=..% et %..% I would like to change the style of div with an iteration: Mycode is the following jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 xmlns:tiles=/WEB-INF/struts-tiles.tld xmlns:bean=/WEB-INF/struts-bean.tld xmlns:html=/WEB-INF/struts-html.tld xmlns:logic=/WEB-INF/struts-logic.tld jsp:scriptlet java.util.List l = com.imko.schemnet.anomalie.db.AnomaliePeer.doSelectAllOrdered(); //java.util.List l = new java.util.Vector(); pageContext.setAttribute(lstAnomalie,l); boolean grey = true; String classUsed=anomalieGrey; /jsp:scriptlet div class=anomalieGen jsp:expression classUsed /jsp:expression logic:iterate id=ano name=lstAnomalie div class=%=classUsed%!-- the probleme lay here -- bean:define id=cat name=ano property=idCategorie/ jsp:scriptlet if(grey){ classUsed=\anomalieGrey\; grey = false; }else{ grey = true; classUsed=\anomalieWhite\; } /jsp:scriptlet ... /div /logic:iterate /div /jsp:root Reference (http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html) says to remplace %=% par %=% . but it only work with taglig html:img class=%=classUsed% works but div class=%=classUsed%-- does not. Yes. This is right. %=% expressions can be used only in attributes in custom tags, not html tags. I solve the same problem with following (may be little ugly) expression: ![CDATA[div class=]]jsp:expressionclassUsed/jsp:expression![CDATA[]] div tag body ![CDATA[/div]] Or create yor own taglib :) best regards, Konstantin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuring new context
Hello i am trying to cofiguring one new context using tomcat for this pourpose i make this: Host name=localhost debug=0 appBase=webapps/ROOT unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path= docBase= reloadable=true crossContext=true /Context Context path=/webos docBase=webapps/elmio debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_webos_log. suffix=.txt timestamp=true/ /Context /Host but when in my browser i put the url: http://localhost:8080/webos the tomcat says me: HTTP Status 404 - /webos type Status report message /webos description The requested resource (/webos) is not available. Apache Tomcat/4.1.29 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dbcp pool size
hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/parameter /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re[2]: How could I solve this error
On 06/11/2003 at 13:29 jerome moliere wrote: humm sounds strangewhat is the exact version of tomcat you use ? Tomcat 5.0.14 (windows) I've a tried a more simple servlet and it worked well. The servlet that gave me the error was using Velocity... I'll try to ask in Velocity mail list Thanks jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem of authentication with tomcat/IIS on win NT4
Hi, I installed jakarta-tomcat-4.0.6 on WIN NT4 with IIS 4. I've following the manual to make tomcat and IIS to work together (with the isapi filter). My application works like I want except that authentification doesn't work. In IIS, I've enabled WIN NT authentication (basic authentication and WIN auth.) for jakarta and baseope (name of my application) virtual directory but when I look the request in my application, the REMOTE USER field is null ! This application worked very well on this same system with tomcat 4.0.1. Moreover I installed this application on WIN 2000 and it works well. Regards, Robert Jacolin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Chunked data transfer
Hello people, I have a question concerning chunked data transfer. Tomcat doesn't seem to be posting the size of the chunk and an extra CR/LF's? The user in this message : http://mikal.org/interests/java/tomcat/archive/view?mesg=54749 Seems to have it but I don't seem to be able to receive them. As you can see in my example output am I setting the headers as required (response.setHeader( Transfer-Encoding, chunked);) Example output : HTTP/1.1 200 OK Set-Cookie: JSESSIONID=C07F14B096FFF0F437E5D27EEC264371; Path=/test Transfer-Encoding: chunked Content-Type: text/html;charset=ISO-8859-1 Date: Thu, 06 Nov 2003 13:05:32 GMT Server: Apache Coyote/1.0 Connection: close test Pin : 109brChipknip : 49brLogrecords fetched : 2672br brProcessing time : 27019 milliseconds. Thanks for any help! Ikke
Multiple webapps talking to same DB
Version of Tomcat - 4.1.24 OS - WinXP (development workstation) DB - MySQL 4.0.13 I currently have a single webapp (test1) that can connect to the database and perform DB operations just fine. This uses JSP, Servlets and JDBC. What I want to do is have other webapps connect to the same database. Here is what I did: 1. I copied my existing webapp, tomcat_home\webapps\test1 and created tomcat_home\webapps\test2. 2. I restarted tomcat and when invoking the test2 webapp, I get the following error: java.sql.SQLException: Cannot load JDBC driver class 'null' This error happens when I call the getConnection() method on the DataSource object. I believe I don't have the correct configuration in the server.xml for the webapp, test2. I tried several different ways to try and get this to work, but those have failed so far. So, when making a straight copy of one webapp like I did above, what would need to change in the server.xml (in the MySQL section) to get this to work? Or, would the culprit be some other configuration? Thanks for any help on this, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple webapps talking to same DB
If you want to create a default database for all web-apps ( i don´t known if you want the same database´s user also ), you should add a JNDI datasource in GlobalNamingResources, try to use tomcat´s manager. Remeber, you must put your JDBC driver in common/lib also, because tomcat need it to create the datasource, but in your case, maybe you did try a simple connection and forgot to put JDBC driver in shared/lib or WEB-INF/lib. -- De: [EMAIL PROTECTED]:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 6 de novembro de 2003 10:22 Para: [EMAIL PROTECTED] Assunto: Multiple webapps talking to same DB Version of Tomcat - 4.1.24 OS - WinXP (development workstation) DB - MySQL 4.0.13 I currently have a single webapp (test1) that can connect to the database and perform DB operations just fine. This uses JSP, Servlets and JDBC. What I want to do is have other webapps connect to the same database. Here is what I did: 1. I copied my existing webapp, tomcat_home\webapps\test1 and created tomcat_home\webapps\test2. 2. I restarted tomcat and when invoking the test2 webapp, I get the following error: java.sql.SQLException: Cannot load JDBC driver class 'null' This error happens when I call the getConnection() method on the DataSource object. I believe I don't have the correct configuration in the server.xml for the webapp, test2. I tried several different ways to try and get this to work, but those have failed so far. So, when making a straight copy of one webapp like I did above, what would need to change in the server.xml (in the MySQL section) to get this to work? Or, would the culprit be some other configuration? Thanks for any help on this, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preconfigured Apache + Tomcat 4.1.27 + mod_jk
Hi, I have linux with Apache running -preconfigured with applications running in /var/www... also i have tomcat 4.1.27 running on 8080 port with jsp application. I went through http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html but dont no how to do this in case of preconfigured apache ? where should install the mod_jk ? please help me. _ Contact brides grooms FREE! Only on www.shaadi.com. http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Admin Application
Howdy, Your points are good. The manager app is designed to run under a host, so you need one per host. It would be a welcome patch if you made it able to handle multiple hosts. The manager servlet is privileged, so its context must have the privileged attribute, as you know by now. I thought the Admin webapp let you specify that attribute? I'm pretty sure it does in tomcat5. Finally, the admin webapp doesn't have functionality to stop/start/reload contexts, as that functionality is already in the manager webapp. One could make an argument about how the two really should be one webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:04 PM To: [EMAIL PROTECTED] Subject: Admin Application I created a new virtual host using the Admin Application, and attempted to deploy the Manager application using the interface. Initial attempts gave this message: java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassL o ader.java:891) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassL o ader.java:756) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato r Base.java:594) After some fooling around, I found that the issue was that the context need the privileged attribute set to true. I looked, but I don't understand how to use the Admin application to set this attribute for a context. More to the point, is it possible for the manager application to work across multiple virtual hosts? It seems like quite a waste to have to configure the manager application for each virtual host? I guess another, perhaps better question is why does the Admin application not have controls to stop, start, and re-load contexts? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ant deploy
Howdy, You want to use the install task instead of deploy most likely. Needless to say, the host name should be a valid one that you can ping/lookup ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:47 AM To: [EMAIL PROTECTED] Subject: ant deploy Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuring new context
Howdy, You should start by simply putting the webapp in the webapps directory and let tomcat auto-deploy it. Don't have any server.xml entries for it yet. Make sure it works fine this way. Then add a Context entry only in server.xml, not another host or logger. Restart tomcat, make sure your webapp still works with the new path. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:49 AM To: [EMAIL PROTECTED] Subject: configuring new context Hello i am trying to cofiguring one new context using tomcat for this pourpose i make this: Host name=localhost debug=0 appBase=webapps/ROOT unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path= docBase= reloadable=true crossContext=true /Context Context path=/webos docBase=webapps/elmio debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_webos_log. suffix=.txt timestamp=true/ /Context /Host but when in my browser i put the url: http://localhost:8080/webos the tomcat says me: HTTP Status 404 - /webos --- - type Status report message /webos description The requested resource (/webos) is not available. --- - Apache Tomcat/4.1.29 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring tomcat web server
Howdy, I would like to add a DNS that throw on a directory. What does this mean? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dbcp pool size
Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issues | Suggestion any?
Howdy, #You're putting too many things in one message. ;) Can't help that...;), in fact I would like to add some more things here You could help it by starting multiple threads of questions instead of one. I bet you'd get more responses ;) Yeah right but there is a catch here. Because we are using the dynamic scheme the connections can go beyond the 100 connections which is the The dynamic scheme is evil ;) Try fixed-wait. Why I thought that it was waiting for closing the logical connections was because the thread dump had some pointers and this time I am enclosing those snapshots. Thread-360 prio=5 tid=0x00ac4f50 nid=0xc99 waiting for monitor entry [b108..b1081998] at oracle.jdbc.pool.OracleConnectionEventListener.connectionClosed(OracleC o nnectionEventListener.java:125) - waiting to lock 0xd4d2c820 (a I see what you mean. Looks like a problem with the Oracle pool. Since I avoid the oracle pooling implementation if possible, I can't help you much there. Not an easy fix, there are many java classes and this will take a lot of time. We want to keep this thing as a long term plan under application improvement heading. Well, it's your application and your plan ;) But to keep a memory leak fix under long term planning is a fairly atrocious management choice IMHO. No, this will have negative impact on the application because in the past its was observed under such conditions of low memory, the GC activity stops (increased pause time) the application and there is no OK. So you know it's thrashing if you only give it 256MB, and yet don't want it to take 1GB. Have you tried values in the middle, e.g. 512MB max heap? rule. Problem is that there is high thread count when there is authorised content is downloaded. These downloads are of the size of 1-5 MB. Has these issues been solved in tomcat 4.0 or higher? I will check it otherwise. (Hell lot of things to do!!!) High thread count is not a bad thing necessarily. You can control the number of request processing threads tomcat spawns via the Connector configuration in server.xml. There are no known issues with large downloads in tomcat 4.x. 2 - 12 tomcat having only one shared code base which is mounted on an NFS (this is too much, one might say). I just want to know if all the error logs (Error logger thread exact) are also written to the same NFS part this will call for high I/O contention (right???) because the This is bad for performance. Install tomcat locally on the server, keep the logs locally. You can have another program periodically transfer the logs to a central location. I am really impressed that you have given me some response...and expect more...haven't heard much from anybody else from the group. That's because you're asking for too much at once. People tend to not response to long complicated messages with many questions. I am personally interested in this situation because I've had large-scale application problems with oracle connection pooling and garbage collection. Last but not least needed to know, if we can have some support contract from apache group to support our application. Is that possible? Not from the ASF directly, no. But there are companies and individuals out there who'd help you for pay. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logger for context
Howdy, What tomcat version is this, and can you post the server.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: fabienne hadek [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 4:29 AM To: [EMAIL PROTECTED] Subject: logger for context Hello I could use some help, this is what I did. I created a new logger for my webapp 'ic' in the administration tool The webapp still functions normally but when I try to look at it in the administration tool, I get the following error message: type Status report message Error retrieving attribute debug description The server encountered an internal error (Error retrieving attribute debug) that prevented it from fulfilling this request. These are the first few lines of the error message in catalina.out: 2003-11-06 09:08:32 action: Select event on Catalina:j2eeType=WebModule,name=//localhost/ic,J2EEApplication=none,J2 EESe rver=none 2003-11-06 09:08:32 action: Error retrieving attribute debug javax.management.InstanceNotFoundException: Catalina:type=Loader,path=/ic,host=localhost at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultM Bean ServerInterceptor.java:1011) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(Defa ultM BeanServerInterceptor.java:630) Could somebody please tell me how to fix this? Thanks a lot Fabienne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm...more
getRemoteUser() will give you the username of the user logged in. This is going to be the name that they typed in when they got authenticated, not their DN. Justin -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 6:58 AM To: Tomcat Users List Subject: RE: JNDIRealm...more getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I don't, but I guess that is why we have web application developers on staff. :-) Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:00 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once they've authenticated? robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and
RE: Newbie help! - BufferedFile(new File(test.txt).getAbsolutePath())?
Howdy, Don't even go down this path. Are you reading or writing to disk? If you're reading, use the ServletContext#getResource or ClassLoader#getResource approach, rather than the File approach. If you're writing, the servlet specification only lets you write to one place by default, the context tempdir. This is a File available as a servlet context attribute named javax.servlet.context.tempdir. If you want to write elsewhere, designate the destination as a context or servlet parameter, or maybe as an env-entry-ref. Do not use the current working directory or path, which is what you're doing with the code below, as the effects will vary from system to system. Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Milner [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 6:45 AM To: Tomcat Users List Subject: Newbie help! - BufferedFile(new File(test.txt).getAbsolutePath())? Hi all, try { BufferedReader br = new BufferedReader(new FileReader(new File(temp.txt).getAbsolutePath())); String temp; while((temp = br.readLine()) != null) { out.println(temp); } } catch(Exception e) {out.println(h1ERROR/h1 + e.toString());} the br field now has a file using this path c:\winnt\system32\test.txt? The txt file and .jsp file are in C:\Program Files\Apache Group\Tomcat 4.0\webapps\ROOT\testing How can I tell the jsp (or tomcat) to look in the same directory before trying what I assume is the PATH environment variable? thanks for all your help peeps. Chris. NOTE: The information in this email is confidential. If you are not the intended recipient, you must not read, use or disseminate this information. Although this email and any attachments are believed to be free of any virus, or any other defect which affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by London City Airport for any loss or damage rising in any way from receipt or use thereof. The contents of this message including any attachments does not necessarily reflect the view of London City Airport, unless expressly stated to the contrary the message is the work of a sender acting as an individual. www.londoncityairport.com This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm...more
I can use that. Thanks. Robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:58 AM To: Tomcat Users List Subject: RE: JNDIRealm...more getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I don't, but I guess that is why we have web application developers on staff. :-) Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:00 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once they've authenticated? robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I
RE: RE : memory-leaks in servlets, tool for tracing ?
Howdy, context-reload occurs. The solution, of course, is not to enable context-reloading on production :) This is very good advice. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: specifying web app classpath in server xml? Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I solve this error
Error snippet: root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet I think I remember this happening to me when I saved my servlet as one name, but inside the servlet, the class name was something else. robyne -Original Message- From: Javier [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:26 AM To: Tomcat Users List Subject: How could I solve this error I tried to run my first servlet and got this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .ja va:666) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .ja va:666) java.lang.Thread.run(Unknown Source) - 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: How could I solve this error
Ps. I also tried to invoke it under the name it was saved under rob -Original Message- From: Robyne Vaughn Sent: Thursday, November 06, 2003 8:18 AM To: Tomcat Users List Subject: RE: How could I solve this error Error snippet: root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet I think I remember this happening to me when I saved my servlet as one name, but inside the servlet, the class name was something else. robyne -Original Message- From: Javier [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:26 AM To: Tomcat Users List Subject: How could I solve this error I tried to run my first servlet and got this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .ja va:666) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .ja va:666) java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I solve this error
Howdy, This error happens when the HttpServlet class that was on the classpath with the error-throwing servlet was compiled is not present at runtime. The person may have installed tomcat improperly, accidentally removed $CATALINA_HOME/common/lib/servlet.jar, or added an older version of servlet.jar to his WEB-INF/lib directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:18 AM To: Tomcat Users List Subject: RE: How could I solve this error Error snippet: root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet I think I remember this happening to me when I saved my servlet as one name, but inside the servlet, the class name was something else. robyne -Original Message- From: Javier [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:26 AM To: Tomcat Users List Subject: How could I solve this error I tried to run my first servlet and got this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 8 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 8 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process C onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 8 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l .ja va:666) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r .ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r .ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl a ssL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade r .ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r .ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r .ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 8 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 8 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process C onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 8 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l .ja va:666) java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting tomcat to listen on port 80
On Wed, 5 Nov 2003, V.Karthik Kumar wrote: There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. Well, on Unixes ports under 1000 (or 1024?) are usually restricted to root. While most daemons are designed to be started by root but to run as some artificial user, tomcat as java application is not easy to set up this way. To me, putting a rough world proof proxy between tomcat and the world seems a good idea anyway for production systems. Although squid is the best known proxy, we and others use apache's proxy functions, e.g. ... ProxyPass/someapp/ http://localhost:8081/someapp/ ProxyPassReverse /someapp/ http://localhost:8081/someapp/ ... in the server configuration or a virtual host section of apache's configuration makes apache a perfect proxy for a Tomcat running with Coyote HTTP/1.1 connector. Besides not having to fight with the configuration and disadvantages of mod_jk/mod_wepapp, on can even use Apache to deliver static parts of the app, e.g. using this block: ProxyPass/someapp/Servlet http://localhost:8081/someapp/Servlet ProxyPassReverse /someapp/Servlet http://localhost:8081/someapp/Servlet Alias/someapp//somewhere/webapps/someapp/ This allows one to use all of Apache nice features, e.g. all those .htaccess things. To safely avoid access to the WEB-INF subdirectory, this is a good idea when using the above suggestion: DirectoryMatch WEB-INF Order allow,deny Deny from all /DirectoryMatch Using Apache/Tomcat this way, we reduced the open files, sockets and the processes on our production server by over 70 percent! (We are looking forward to Tomcat 5's progress concering threads and open files ;-) kr Christoph Lechleitner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: charset problems coming up during runtime
On Wed, 5 Nov 2003, Adam Hardy wrote: - it lies with the character set interpretation in the HTML output from the database and files - which files? I'm not familiar with file reading or whether you have to specify a character set. Because of the timing aspect (next paragraph), I am sure it's nothing to do with settings concerning files or databases. - it occurs after random time intervals after starting tomcat. It doesn't ever go away again does it? Exaclty. Although I could imagine an event not being exactly random might switch the behaviour. - the problem is overcome currently by restarting tomcat. This narrows it down to Java or Tomcat basically. So you can forget the OS or the database. Yes, exactly my thought. - you manually encode umlauted letters into HTML code. I presume you have a filter with a big switch case construct that parses your output strings. Perhaps you should log the output of the ASCII value of the umlauted letters, to see what you are really getting instead of what you should be getting. Good idea, i will write a test app which replaces unknwon characters with something like '_'+ASCII code+'_' instead of a space._ What I have forgotten to test out so far is, if all applications share the problem once it started. But I believe so. Where does the filter operate in your app? Obviously you have already fetched your output string from either JDBC or from a file at the point when you apply the filter. It is unlikely that both JDBC and the file-reading processes always go wrong simulataneously. That is the case though? Yes. The operation goes like this: Read text files ... StringBuffer sb=new StringBuffer(); BufferedReader reader=new BufferedReader(new FileReader(pathToFile)); String nextLine=reader.readLine(); while (nextLine != null) { sb.append(nextLine).append(\n); nextLine=reader.readLine(); } ... or database queries ... String = resulset.getString(colname); ... then put it through a loop including ... switch (string.charAt(i)) { ... 'ä' : stringbuffer.append('auml;'); break; ... default: stringbuffer.append(string.charAt(i)); } ... finally print like this writer=new PrintWriter(resp.getOutputStream()); writer.write(string); The point the problem occurs (or at least shows up) is that the switch statement walks the default branch for e.g. 'ä'. So far thanks for the clearer formulation of the problem ;- kr Christoph Lechleitner Geschäftsführung und Technik IBCL - Informatik-Büro Dipl.-Ing. C. Lechleitner Defreggerstr. 24, A-6020 Innsbruck, http://www.ibcl.at/ Tel.: +43 512 390717, Fax: +43 512 390787, Mobil: +43 699 12353479 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ISAPI_REDIRECT.DLL Windows Server 2003
Is there a new version of ISAPI_REDIRECT.DLL for use with Windows Server 2003? I have set up Tomcat to work with IIS on several different servers in the past (mostly Win2K machines), but I am having a great deal of trouble getting it to work on Windows Server 2003. Keep getting page not found errors. Screenshots of the problem can be found at http://www.teamadapt.com/bcu/tomcatscreenshots.doc. I'd appreciate any help you could offer. Chris Freeborn Adapt, LLC 773-634-2046 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Setting up Tomcat 4.1.29 + Apache 2.0.47 + mod_jk2-2.0.43 on W2000
---BeginMessage--- Good morning. I'm Spanish and my English is very bad but I try it. My S.O. is Windows 2000. I have installed Apache 2.0.47 and is running, I have installed Tomcat 4.1.29 and is running, I have downloaded mod_jk2- 2.0.43 (the connector for Apache and Tomcat, I think so). I have copied mod_jk2-2.0.43.dll inside {Apache directory}/modules I don't know how to continue on. I just want a simple configuration of httpd.conf, jk2.properties and workers2.properties; I think these are the basic and necesary configuration files By the way, the configuration file workers2.properties doesn't exist in /conf, I must make it? Thank you very much and regards. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
beg a help
Hello My name is Shi,I am a user of Tomcat. Thanks for your Tomcat,It is very helpful for me! Would you mind answer me a question? I want to konw what the position of Tomcat5.0.6 is? Is it alpha?Beta?or stable? Wait for your anwser! Thank you very much! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI_REDIRECT.DLL Windows Server 2003
That seems to be a common problem, people have had mixed results getting that combo to work. I'm going to take a wild guess and say it's IIS 6.0? Justin -Original Message- From: Chris Freeborn [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:46 PM To: '[EMAIL PROTECTED]' Subject: ISAPI_REDIRECT.DLL Windows Server 2003 Is there a new version of ISAPI_REDIRECT.DLL for use with Windows Server 2003? I have set up Tomcat to work with IIS on several different servers in the past (mostly Win2K machines), but I am having a great deal of trouble getting it to work on Windows Server 2003. Keep getting page not found errors. Screenshots of the problem can be found at http://www.teamadapt.com/bcu/tomcatscreenshots.doc. I'd appreciate any help you could offer. Chris Freeborn Adapt, LLC 773-634-2046 - 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: Multiple webapps talking to same DB
Thanks for the tips. Actually, I added another context (context) to the tomcat_home \conf\server.xml, which specifies the database parameters and I'm good to go. Didn't help that I was also working with the wrong server.xml file. Edson Alves Pereira [EMAIL PROTECTED]To: 'Tomcat Users List' [EMAIL PROTECTED] ano.com.br cc: Subject: RE: Multiple webapps talking to same DB 11/06/2003 11:32 AM Please respond to Tomcat Users List If you want to create a default database for all web-apps ( i don´t known if you want the same database´s user also ), you should add a JNDI datasource in GlobalNamingResources, try to use tomcat´s manager. Remeber, you must put your JDBC driver in common/lib also, because tomcat need it to create the datasource, but in your case, maybe you did try a simple connection and forgot to put JDBC driver in shared/lib or WEB-INF/lib. -- De: [EMAIL PROTECTED]:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: quinta-feira, 6 de novembro de 2003 10:22 Para:[EMAIL PROTECTED] Assunto: Multiple webapps talking to same DB Version of Tomcat - 4.1.24 OS - WinXP (development workstation) DB - MySQL 4.0.13 I currently have a single webapp (test1) that can connect to the database and perform DB operations just fine. This uses JSP, Servlets and JDBC. What I want to do is have other webapps connect to the same database. Here is what I did: 1. I copied my existing webapp, tomcat_home\webapps\test1 and created tomcat_home\webapps\test2. 2. I restarted tomcat and when invoking the test2 webapp, I get the following error: java.sql.SQLException: Cannot load JDBC driver class 'null' This error happens when I call the getConnection() method on the DataSource object. I believe I don't have the correct configuration in the server.xml for the webapp, test2. I tried several different ways to try and get this to work, but those have failed so far. So, when making a straight copy of one webapp like I did above, what would need to change in the server.xml (in the MySQL section) to get this to work? Or, would the culprit be some other configuration? Thanks for any help on this, Kevin - 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]
Bugbear.B virus warnings
Is anyone else getting virus alerts for messages coming from this list? My virus scanner, F-Prot, is throwing an alert for the W32/[EMAIL PROTECTED]. ~ Ubqtous ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beg a help
Howdy, 5.0.6 is alpha. 5.0.14 is beta and close to stable. There is no stable/final tomcat 5.x available yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: g.Ishi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:20 AM To: [EMAIL PROTECTED] Subject: beg a help Hello My name is Shi,I am a user of Tomcat. Thanks for your Tomcat,It is very helpful for me! Would you mind answer me a question? I want to konw what the position of Tomcat5.0.6 is? Is it alpha?Beta?or stable? Wait for your anwser! Thank you very much! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I solve this error
I believe the presence of sun.misc.Launcher$AppClassLoader.loadClass in the stack suggests that your servlet is being found by the classpath classloader. The javax.servlet.http.HttpServlet class is found in the common/lib classloader, thanks to the servlet.jar located in the common/lib directory. In the classloader hierarchy created by Tomcat, the common/lib classloader is a child of the classpath classloader. For the classpath classloader, it only sees classes in its parent classloaders, not its child classloaders. As a result, the javax.servlet.http.HttpServlet class is *not* visible to the classpath classloader. Hence the NoClassDefFoundError exception. Make sure your servlet class is only found in WEB-INF/classes or a jar in WEB-INF/lib, and not on Tomcat's CLASSPATH. HTH Cheers, Larry -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:21 AM To: Tomcat Users List Subject: RE: How could I solve this error Howdy, This error happens when the HttpServlet class that was on the classpath with the error-throwing servlet was compiled is not present at runtime. The person may have installed tomcat improperly, accidentally removed $CATALINA_HOME/common/lib/servlet.jar, or added an older version of servlet.jar to his WEB-INF/lib directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:18 AM To: Tomcat Users List Subject: RE: How could I solve this error Error snippet: root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet I think I remember this happening to me when I saved my servlet as one name, but inside the servlet, the class name was something else. robyne -Original Message- From: Javier [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:26 AM To: Tomcat Users List Subject: How could I solve this error I tried to run my first servlet and got this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor tValve.jav a :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal ve.java:57 8 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter .java:209) org.apache.coyote.http11.Http11Processor.process(Http11Proces sor.java:7 8 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandl er.process C onn ection(Http11Protocol.java:549) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpo int.java:5 8 9) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPoo l .ja va:666) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.defineClass(Unknown Source) java.net.URLClassLoader.access$100(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp ClassLoade r .ja va:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp ClassLoade r .ja va:1212) java.lang.ClassLoader.loadClassInternal(Unknown Source) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unknown Source) org.apache.catalina.loader.WebappClassLoader.findClassInterna l(WebappCl a ssL oader.java:1652) org.apache.catalina.loader.WebappClassLoader.findClass(Webapp ClassLoade r .ja va:883) org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp ClassLoade r .ja va:1332) org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp ClassLoade r .ja va:1212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor tValve.jav a :16 4) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal ve.java:57 8 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter .java:209) org.apache.coyote.http11.Http11Processor.process(Http11Proces sor.java:7 8 1) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandl er.process C onn ection(Http11Protocol.java:549)
Tomcat SSL ... more
Is there a way to use SSL in tomcat without having to type the password to your keystore in plaintext in the server.conf file? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 -- Newbie Question
Hi: I am fairly new to installing and configuring Tomcat. But, 4.1 version seemed easy enough. Thanks. Now, I am not an expert on java or web apps, but, here's my problem. I have a webapp test. I want to deploy it under Tomcat 4.1. I create the war file with the web.xml under WEB-INF dir and all the exploded classes under WEB-INF/classes etc. I copied the war file to webapps dir under tomcat and restarted Tomcat. My jsp page pulls up fine, but, the servlet is not being recognized. Somehow, it seems to me that the web.xml is not being loaded and Tomcat is yelling at me saying that it cannot find the context. So, 1) Why are my servlets not loaded from web.xml? I was expecting to see all my servlets and the context in some log file, but, I don't see it. 2) Why is my welcome-file-list file (index.jsp) not loaded at context? It shows me a dir listing and I physically type in the contextpath/index.jsp ... The same war file works fine under jboss ... but, I would like to deploy it under Tomcat ... Any help would be appreciated .. Thanks -- Gopal -- --- G. Gopalakrishnan | Life is not measured by the Ext - 76967 | number of breaths we take, Phone: (303) - 272 - 6967 | but by the moments that [EMAIL PROTECTED] | take our breath away. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat
I've been using IDEA for the past 6 months or so, and I really like it. It makes it pretty easy to have multiple versions of Tomcat to debug with. The setup is straightforward, and I just like the IDE in general. It also makes refactoring SO easy. Before IDEA, I was using Jbuilder, and had good experiences with it as well. But with Jbuilder, it was the little details that pissed me off. Limited refactoring facilities, and for some reason the scroll wheel on my mouse wouldn't work (I know that is nitpicky as hell, but it bugged me ;-). Haven't used Eclipse, but I hear good things. I believe it is based on IBM's Websphere Studio, so if you think you may have to do battle with Websphere, it couldn't hurt to know the IDE. Nathan McMinn Application Developer NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com -Original Message- From: Don Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 9:44 AM To: Tomcat Users List Subject: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat Has anyone compared Eclipse vs. IDEA plus others as far as Tomcat integration and overall JSP web app development/debugging? Don Jones Madison WI, USA -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 9:38 AM To: Tomcat Users List Cc: Subject: Re: best way to debug JSP's ??? The very best thing to do with JSPs is never put any Java code into them. If you can avoid that, and always use taglibs or other JSP directives, etc. then you'll be much better off. I second the use of tag libraries. Also, with a decent IDE (such as Eclipse) you can refactor the code in your tab libraries without breaking your JSPs. Harry Mantheakis London - 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: RE : RE : memory-leaks in servlets, tool for tracing ?
Laurent, When does a class reload occur ? I was talking about a context re-load, which dumps everything in the context and re-starts it in a new ClassLoader. When u update a JSP ? Yes, the class gets re-loaded, but not the whole context. This is much less of a problem. When u update a class ? Sometimes is depende on the class you update. If you update a servlet that's mapped in web.xml, then Tomcat will definately re-load the context. Sometimes it seems like if I update a bean class that Tomcat doesn't re-load. I don't know it's checking technique. When u update a lib ? I don't think it re-loads the context for a lib update. When u do reload in the manager webapps ? = yes :) Of course! It will also re-load if web.xml changes, and I've seen it re-load sometimes if anything directly in the WEB-INF directory changes (i.e. I have struts-config.xml in my current application, and if I change that, sometimes it reloads). -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat SSL ... more
Hart, Justin wrote: Is there a way to use SSL in tomcat without having to type the password to your keystore in plaintext in the server.conf file? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] you could write a C program to prompt for the password, and then use the Invocation API to lunch an embedded version of tomcat, whereby passing the password to the java class. This way, the password does not appear on the process list either. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie help! - BufferedFile(new File(test.txt).getAbsolutePath())?
simply replace new File(temp.txt) with... new File(context.getRealPath(temp.txt)) However, note that this may return null in the case that the webapp is being served directly from a .war file and not from a directory. A better strategy is loading the resource as an InputStream... context.getResourceAsStream(temp.txt) You can wrap that in an InputStreamReader and none of the rest of your code will change and it will always work as long as temp.txt is located in the root of your webapp whether it is in a directory or a .war file. Jake At 11:44 AM 11/6/2003 +, you wrote: Hi all, try { BufferedReader br = new BufferedReader(new FileReader(new File(temp.txt).getAbsolutePath())); String temp;while((temp = br.readLine()) != null) { out.println(temp); } } catch(Exception e) {out.println(h1ERROR/h1 + e.toString());} the br field now has a file using this path c:\winnt\system32\test.txt? The txt file and .jsp file are in C:\Program Files\Apache Group\Tomcat 4.0\webapps\ROOT\testing How can I tell the jsp (or tomcat) to look in the same directory before trying what I assume is the PATH environment variable? thanks for all your help peeps. Chris. NOTE: The information in this email is confidential. If you are not the intended recipient, you must not read, use or disseminate this information. Although this email and any attachments are believed to be free of any virus, or any other defect which affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by London City Airport for any loss or damage rising in any way from receipt or use thereof. The contents of this message including any attachments does not necessarily reflect the view of London City Airport, unless expressly stated to the contrary the message is the work of a sender acting as an individual. www.londoncityairport.com This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : RE: dbcp pool size
Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
RE: Tomcat 4.1 -- Newbie Question
Howdy, If your war file worked under JBoss, it should work in tomcat. What errors does your log contain? Yoav Shapira Millennium ChemInformatics -Original Message- From: Gopalakrishnan Govindakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 -- Newbie Question Hi: I am fairly new to installing and configuring Tomcat. But, 4.1 version seemed easy enough. Thanks. Now, I am not an expert on java or web apps, but, here's my problem. I have a webapp test. I want to deploy it under Tomcat 4.1. I create the war file with the web.xml under WEB-INF dir and all the exploded classes under WEB-INF/classes etc. I copied the war file to webapps dir under tomcat and restarted Tomcat. My jsp page pulls up fine, but, the servlet is not being recognized. Somehow, it seems to me that the web.xml is not being loaded and Tomcat is yelling at me saying that it cannot find the context. So, 1) Why are my servlets not loaded from web.xml? I was expecting to see all my servlets and the context in some log file, but, I don't see it. 2) Why is my welcome-file-list file (index.jsp) not loaded at context? It shows me a dir listing and I physically type in the contextpath/index.jsp ... The same war file works fine under jboss ... but, I would like to deploy it under Tomcat ... Any help would be appreciated .. Thanks -- Gopal -- --- G. Gopalakrishnan | Life is not measured by the Ext - 76967 | number of breaths we take, Phone: (303) - 272 - 6967 | but by the moments that [EMAIL PROTECTED] | take our breath away. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : RE: dbcp pool size
Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat
I use both Eclipse and IDEA, and I like both of them. Very often, to compare one tool against another tool is like arguing whether Ford F150 is better than Chevy Silverado, everyone has his/her own opinion. They all have their upsides and downsides. Therefore, it usually boiled down to simply a matter of taste. Eclipse by default does not do much for you. You need to install plugins to realize its power. MyEclipse Enterprise Workbench is a great J2EE plugin for Eclipse. It works with JBoss and Tomcat. It does exploded deployment, and it supports source-level JSP debugging on Tomcat5. The upcoming new release also supports UML. Hope this helps. - Original Message - From: Nathan Mcminn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 08:57 AM Subject: RE: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat I've been using IDEA for the past 6 months or so, and I really like it. It makes it pretty easy to have multiple versions of Tomcat to debug with. The setup is straightforward, and I just like the IDE in general. It also makes refactoring SO easy. Before IDEA, I was using Jbuilder, and had good experiences with it as well. But with Jbuilder, it was the little details that pissed me off. Limited refactoring facilities, and for some reason the scroll wheel on my mouse wouldn't work (I know that is nitpicky as hell, but it bugged me ;-). Haven't used Eclipse, but I hear good things. I believe it is based on IBM's Websphere Studio, so if you think you may have to do battle with Websphere, it couldn't hurt to know the IDE. Nathan McMinn Application Developer NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com -Original Message- From: Don Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 9:44 AM To: Tomcat Users List Subject: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat Has anyone compared Eclipse vs. IDEA plus others as far as Tomcat integration and overall JSP web app development/debugging? Don Jones Madison WI, USA -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 9:38 AM To: Tomcat Users List Cc: Subject: Re: best way to debug JSP's ??? The very best thing to do with JSPs is never put any Java code into them. If you can avoid that, and always use taglibs or other JSP directives, etc. then you'll be much better off. I second the use of tag libraries. Also, with a decent IDE (such as Eclipse) you can refactor the code in your tab libraries without breaking your JSPs. Harry Mantheakis London - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 -- Newbie Question
Nothing, nada, zip, zilch ... in the log files ... I was expecting to see all my servlets defined in web.xml in the log file as being loaded, but, nothing. Here's the flow of my app: 1) index.jsp ( form ... login with user id and password). Error happens saying that /loginservlet is not found. 2) sends request to loginservlet (defined in web.xml as /loginservlet). 3) servlet forwards to valid application menu options. Does the above help? I have tried to deploy by different methods, but same result. -- Gopal Shapira, Yoav wrote: Howdy, If your war file worked under JBoss, it should work in tomcat. What errors does your log contain? Yoav Shapira Millennium ChemInformatics -Original Message- From: Gopalakrishnan Govindakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 -- Newbie Question Hi: I am fairly new to installing and configuring Tomcat. But, 4.1 version seemed easy enough. Thanks. Now, I am not an expert on java or web apps, but, here's my problem. I have a webapp test. I want to deploy it under Tomcat 4.1. I create the war file with the web.xml under WEB-INF dir and all the exploded classes under WEB-INF/classes etc. I copied the war file to webapps dir under tomcat and restarted Tomcat. My jsp page pulls up fine, but, the servlet is not being recognized. Somehow, it seems to me that the web.xml is not being loaded and Tomcat is yelling at me saying that it cannot find the context. So, 1) Why are my servlets not loaded from web.xml? I was expecting to see all my servlets and the context in some log file, but, I don't see it. 2) Why is my welcome-file-list file (index.jsp) not loaded at context? It shows me a dir listing and I physically type in the contextpath/index.jsp ... The same war file works fine under jboss ... but, I would like to deploy it under Tomcat ... Any help would be appreciated .. Thanks -- Gopal -- --- G. Gopalakrishnan | Life is not measured by the Ext - 76967 | number of breaths we take, Phone: (303) - 272 - 6967 | but by the moments that [EMAIL PROTECTED] | take our breath away. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- G. Gopalakrishnan | Life is not measured by the Ext - 76967 | number of breaths we take, Phone: (303) - 272 - 6967 | but by the moments that [EMAIL PROTECTED] | take our breath away. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing DataSourceRealm MBean definition
All, When going through the pain of setting up a DataSourceRealm and associated configuration, I found that I had to create my own MBean definition in the mbeans-descriptors.xml file. That was in version 4.1.27. Today, I upgraded to 4.1.29 and had to go through the same procedure. So, that leads me to ask two questions: 1. Am I really going something wrong? I would imagine that Tomcat, which ships with the DataSourceRealm class, would contain the correct MBean definition. 2. If I'm not screwing anything up, then why doesn't Tomcat ship with the correct MBean definition for DataSourceRealms? I happen to be using the 'LE' version of Tomcat, if that changes anything. Thanks, -chris ps. I also noticed that the 'LE' version does not come with commons-dbcp and commons-pool libraries. I thought the 'LE' version was only trimmed-down for JDK 1.4 users because it did not include an XML parser -- which is included with the JDK, now. What gives? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2_init() Can't find child xxxx in none of the 1024 scorebo ard slots
I have similar problem upgrading to 4.1.29. I figured out it is connector 4.1.29 that causes the problem. So I use tomcat 4.1.29 + connector 4.1.24. -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 6:04 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml Context = localhost When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote: I'm having the same problems, Tony. I got mod_jk2 compiled and
Tomcat 5; jsp:getProperty tags no longer print empty strings for null values.
I don't know if this is part of the new servlet spec or an oversite in Tomcat 5x. We just switched development from Tomcat 4.1x to 5.0.14. In version 4x if we used the jsp:getProperty tag to print a string value from a bean, and the current value was null, an empty string was printed to the page. After switching to version 5x, null values actually print out the string null. Is this the expected behavior? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : RE: dbcp pool size
Noop. Below is my config in context.xml. Try to use dbcp and pool version 1.1 Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@your.com:1521:SID/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter namemaxWait/name value15000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter !-- sleeps 5 minutes -- parameter nametimeBetweenEvictionRunsMillis/name value30/value /parameter parameter namenumTestsPerEvictionRun/name value1/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter /ResourceParams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 10:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be
Tomcat 4.1 -- mod_rewrite / mod_jk problem
Hello, I use Apache 2.0 and Tomcat 4.1.18 together to serve jsp pages and servlets (using mod_jk). Everything seems to work fine except one thing. When mod_rewrite try to apply a pattern matching over a location mounted by JkMount, it fails because the URI used is only the filename (excluding the path information). Example: .conf : Alias /xxx /opt/jakarta/tomcat/webapps/xxx JkMount /xxx/secure/*.jsp ajp13 JkMount /xxx/*.jsp ajp13 Location /xxx/ #AllowOverride None RewriteEngine on RewriteCond %{SERVER_PORT} !=443 RewriteRule ^.*/xxx/secure(.*)$ https://%{SERVER_NAME}/xxx/secure$1 [R,L] /Location rewrite log : -- [per-dir /xxx/] applying pattern '^.*/xxx/secure(.*)$' to uri 'page.jsp' [per-dir /xxx/] pass through page.jsp Rewrite works fine if I omit the JkMount directives. Any help is welcome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 losing session (may be related to Win XP)
Have you tried to append jsessionid? -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 9:32 PM To: Tomcat Users List Subject: RE: Tomcat 4 losing session (may be related to Win XP) At 04:14 PM 11/5/2003, you wrote: I've been pulling hair out for several days with what turns out to be the same problem, except it's occurring on a Windows 2000 Server running IIS 5.0 and Tomcat 4.1.24. The logs show that the first request to a servlet done via POST gets a different session id than the follow-on request via GET to the same servlet, same URL. The same app works fine on another Win2K server running Apache. The one that doesn't work is behind a proxy server doing proxypassdir's to map a URL to an internal IP. Could this be the problem, or is it an IIS thing? If you really want to see what's happening, put your own proxy between the client and the first server on your backend (I use zproxy -- google for it) to look at the http messages going back and forth. Check the response that you're getting from Tomcat and note the JSESSIONID provided after the first call. See what JSESSIONID the client machine sends back. You can put the same proxy (or any http-level sniffer) between any of the servers and see who's passing what. If you've established that Tomcat is receiving two different sessionId values, then you can be sure there's a mixup somewhere else (and the more hands you've got in the cookie jar, the more chances someone else is screwing things up). Wendell Holmes justin -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 4:25 PM To: Tomcat Users List Subject: Re: Tomcat 4 losing session (may be related to Win XP) Are the sessions the same between the two calls? That is, when you call HttpSession#getId() for each of them do you get the same id back? justin At 02:27 PM 11/5/2003, you wrote: Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upload Problem!!!
Hello, I have a web application that allows users to upload files on to the server. The problem is when a user uploads a file and closes the browser before the file finished uploading the java process immediately starts to jump past 50% cpu usage. And after a while eventually crashes completely with 'out of memory errors'. We are using JSP Smart Upload. I was wondering if there is a timeout or other parameter I can set to end the processes to bring java back down. Thanks
Re: Missing DataSourceRealm MBean definition
At 10:46 AM 11/6/2003 -0500, you wrote: ps. I also noticed that the 'LE' version does not come with commons-dbcp and commons-pool libraries. I thought the 'LE' version was only trimmed-down for JDK 1.4 users because it did not include an XML parser -- which is included with the JDK, now. What gives? Tomcat5 no longer provides a separate LE version. You can take that as a hint not to use the LE version in Tomcat4.1.x. It causes nothing but confusion. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: How could I solve this error
On 06/11/2003 at 9:20 Shapira, Yoav wrote: Howdy, This error happens when the HttpServlet class that was on the classpath with the error-throwing servlet was compiled is not present at runtime. The person may have installed tomcat improperly, accidentally removed $CATALINA_HOME/common/lib/servlet.jar, or added an older version of servlet.jar to his WEB-INF/lib directory. I've a question: everybody mention a servlet.jar file...but I only have a file called servlet-api.jar... It's the same file that everybody mention ??? jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI_REDIRECT.DLL Windows Server 2003
Try this. Tomcat 4.1.29, II6 and Windows 2003 Mini-HowTo By Jason Dravet, [EMAIL PROTECTED] Version 1.0 November 4 2003 This document describes how to install and configure tomcat and IIS to wrok together on windows 2003 server. __ Table of Contents 1. Introduction 2. Installation of tomcat 3. Configuration of IIS __ 1. Introduction These are the steps I took to get these three products to work together. I have seen several sets of instructions on how get these three products to work together, but they all seemed to be lacking some bits of information. So I decided to write this howto and bring all of the parts together in one document. I would like to thank Adam Krouskop for the help he gave me in figuring out my context problem. 2. Installation of Tomcat 1. Download JSDK 1.4.2_02. This version fixes a problem with tomcat letting people see the source code by changing the case of the jsp file. Install it to directory that does NOT have spaces in it. 2. Download the JK 1.2 connector from http://jakarta.apache.org/site/binindex.cgi. The latest version as of this writing is 1.2.5. The filename is isapi_redirect_1.2.5.dll Once downloaded rename the file to isapi_redirect.dll 3. Download tomcat. The latest version at this time is 4.1.29. I recommend downloading the jakarta-tomcat-4.1.29-LE-jdk14.exe file. This file will install tomcat as a service for you and it is smaller to download than the zip version. 4. Run the tomcat installer. Install to a directory without spaces or periods. If you installed the JSDK before tomcat then tomcat should pick up on where the JSDK is located. If you have multiple JSDK versions installed the tomcat installer will let you pick which one you want to use. 5. Copy the isapi_redirect.dll file into the bin folder under the tomcat installation location. 6. You need to install some registry keys. Copy the following lines to a tomcat.reg file. Change the log_file, worker_file, and worker_mount_file keys to reflect your tomcat installation location. Then double-click on the tomcat.reg file and say yes. __ Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=d:\\tomcat41\\logs\\iis_redirect.log log_level=error worker_file=d:\\tomcat41\\conf\\workers.properties worker_mount_file=d:\\tomcat41\\conf\\uriworkermap.properties __ 7. Reboot so the registry changes can take effect. 3. Configuration of IIS 1. Start IIS Manger. Right click on the website that you want to use tomcat, click on new and then click on virtual directory. Type in Jakarta for the alias. Click Next. Click on the browse button. Browse to the bin directory under your tomcat installation location. Click OK. Click Next. Put a check in the checkbox next to Execute (such as ISAPI applications or CGI). Click on Next then click finish. 2. Right click on the website you want to use tomcat and go to properties. Click on the ISAPI Filters tab. Click on Add. Type in Jakarta for the filter name and browse to the isapi_redirect.dll. Click OK. 3. Click on the Home directory tab. Click on the configuration button. Click on add. For the executable setting again browse to the isapi_redirect.dll location. For the extension type in jsp and click OK. Click on OK to close the application configuration window. Click on OK to close the website properties. 4. Right click on Web Service Extensions. Click on Add a new Web server extension. Type in Jakarta (or whatever you want) for the extension name. Click on the add button. Browse to the isapi_redirect.dll location. Click on OK to close the add file window. On the New Web Service Extension window you should see the isapi_redirect.dll location. Put a check in the checkbox next to Set extension status to Allowed. Click on OK to close the window 5. Set the permissions on the tomcat installation location so that everyone has read rights. 6. Copy the following into a uriworkermap.properties file and put it in the conf folder under your tomcat installation location. __ # # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /*.jsp=ajp13 # /examples=$(default.worker) # /examples/*=$(default.worker) __ The /*jsp=ajp13 tells tomcat to serve only pages that end in
Re: Missing DataSourceRealm MBean definition
Jacob, ps. I also noticed that the 'LE' version does not come with commons-dbcp and commons-pool libraries. I thought the 'LE' version was only trimmed-down for JDK 1.4 users because it did not include an XML parser -- which is included with the JDK, now. What gives? Tomcat5 no longer provides a separate LE version. You can take that as a hint not to use the LE version in Tomcat4.1.x. It causes nothing but confusion. I disagree. The 'LE' version actually has less confusion because there aren't fighting XML parsers involved. I don't know why Tomcat 5.x doesn't have an 'LE' version. I couldn't find any official word that LE versions caused confusion and have been elimintated :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: How could I solve this error
In Tomcat 4 and earlier, there is servlet.jar, which contains both servlet and JSP classes. In Tomcat 5, the servlet and JSP classes have been split into servlet-api.jar and jsp-api.jar. Cheers, Larry -Original Message- From: Javier [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:01 AM To: Tomcat Users List Subject: Re[2]: How could I solve this error On 06/11/2003 at 9:20 Shapira, Yoav wrote: Howdy, This error happens when the HttpServlet class that was on the classpath with the error-throwing servlet was compiled is not present at runtime. The person may have installed tomcat improperly, accidentally removed $CATALINA_HOME/common/lib/servlet.jar, or added an older version of servlet.jar to his WEB-INF/lib directory. I've a question: everybody mention a servlet.jar file...but I only have a file called servlet-api.jar... It's the same file that everybody mention ??? jl - 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: Réf. : RE: dbcp pool size
Howdy, And you're saying the pool obeys your maxActive directive without a factory? What happens when you request the 21st connection when there are already 20 active? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:52 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size Noop. Below is my config in context.xml. Try to use dbcp and pool version 1.1 Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@your.com:1521:SID/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter namemaxWait/name value15000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter !-- sleeps 5 minutes -- parameter nametimeBetweenEvictionRunsMillis/name value30/value /parameter parameter namenumTestsPerEvictionRun/name value1/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter /ResourceParams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 10:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this
Microsoft Certificate Services
Hey, I'm trying to import certificates from Microsoft Certificate Services into my keystore for use with SSL in tomcat (what a mouthful). Having problems, keytool says that the certs are not in x.509 format, but I selected DER (x.509) from Microsoft Certificate Services. Is there a known problem with doing this? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : RE: dbcp pool size
I use tomcat, so there is a default factory class defined, BasicDataSourceFactory? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 11:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, And you're saying the pool obeys your maxActive directive without a factory? What happens when you request the 21st connection when there are already 20 active? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:52 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size Noop. Below is my config in context.xml. Try to use dbcp and pool version 1.1 Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@your.com:1521:SID/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter namemaxWait/name value15000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter !-- sleeps 5 minutes -- parameter nametimeBetweenEvictionRunsMillis/name value30/value /parameter parameter namenumTestsPerEvictionRun/name value1/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter /ResourceParams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 10:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The
RE: Tomcat 4 losing session (may be related to Win XP)
How would I do that? Add to the query string? And how can I change to a new thread for this to not hijack Andrew's question, as this seems to be getting away from his problem? Wendell -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:55 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4 losing session (may be related to Win XP) Have you tried to append jsessionid? -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 9:32 PM To: Tomcat Users List Subject: RE: Tomcat 4 losing session (may be related to Win XP) At 04:14 PM 11/5/2003, you wrote: I've been pulling hair out for several days with what turns out to be the same problem, except it's occurring on a Windows 2000 Server running IIS 5.0 and Tomcat 4.1.24. The logs show that the first request to a servlet done via POST gets a different session id than the follow-on request via GET to the same servlet, same URL. The same app works fine on another Win2K server running Apache. The one that doesn't work is behind a proxy server doing proxypassdir's to map a URL to an internal IP. Could this be the problem, or is it an IIS thing? If you really want to see what's happening, put your own proxy between the client and the first server on your backend (I use zproxy -- google for it) to look at the http messages going back and forth. Check the response that you're getting from Tomcat and note the JSESSIONID provided after the first call. See what JSESSIONID the client machine sends back. You can put the same proxy (or any http-level sniffer) between any of the servers and see who's passing what. If you've established that Tomcat is receiving two different sessionId values, then you can be sure there's a mixup somewhere else (and the more hands you've got in the cookie jar, the more chances someone else is screwing things up). Wendell Holmes justin -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 4:25 PM To: Tomcat Users List Subject: Re: Tomcat 4 losing session (may be related to Win XP) Are the sessions the same between the two calls? That is, when you call HttpSession#getId() for each of them do you get the same id back? justin At 02:27 PM 11/5/2003, you wrote: Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jndi problem
Hi All!! Am I missing something here? I have successfully(???) configured a connection pool, which I can use when accessing my app via port 8080. However, when I try to do the same using apache/mod_webapp, I am unable to get a connection. Is this a problem with mod_webapp, or do I simply need to relocate my resource in server.xml (it is currently at the context level) Thanks for any pointers/advice! Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : RE: dbcp pool size
Howdy, Um, no there isn't such a default factory defined, and you didn't answer my questions ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:40 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size I use tomcat, so there is a default factory class defined, BasicDataSourceFactory? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 11:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, And you're saying the pool obeys your maxActive directive without a factory? What happens when you request the 21st connection when there are already 20 active? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:52 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size Noop. Below is my config in context.xml. Try to use dbcp and pool version 1.1 Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@your.com:1521:SID/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter namemaxWait/name value15000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter !-- sleeps 5 minutes -- parameter nametimeBetweenEvictionRunsMillis/name value30/value /parameter parameter namenumTestsPerEvictionRun/name value1/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter /ResourceParams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 10:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mail/value/para mete r /ResourceParams I don't know why, but the pool size is always increasing. I've tried the maxActive parameter unsucessfully. I've search the list before posting this question. But I've found no cure to my problem. Any help to detect what's missing in my config would be greetly appreciated. Meissa Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr L'integrite de ce message n'etant pas assuree
Re: Missing DataSourceRealm MBean definition
At 11:09 AM 11/6/2003 -0500, you wrote: Jacob, ps. I also noticed that the 'LE' version does not come with commons-dbcp and commons-pool libraries. I thought the 'LE' version was only trimmed-down for JDK 1.4 users because it did not include an XML parser -- which is included with the JDK, now. What gives? Tomcat5 no longer provides a separate LE version. You can take that as a hint not to use the LE version in Tomcat4.1.x. It causes nothing but confusion. I disagree. The 'LE' version actually has less confusion because there aren't fighting XML parsers involved. I don't know why Tomcat 5.x doesn't have an 'LE' version. I couldn't find any official word that LE versions caused confusion and have been elimintated :) -chris Search the archives. There has been plenty of discussion on this. The docs mention that the LE version leaves out what the JDK already has. However, other stuff such as dbcp and other jars are removed as well. This is not documented well (if at all) and has been, in my experience on the list, the cause of endless confusion. If all you are concerned about is the XML stuff, just delete everything in the common/endorsed directory and you are good to go. However, I wouldn't do this as crimson isn't exactly up to date, the dom apis aren't standard (taken from an unofficial version of the spec), and I would make sure to put xalan.jar in there to override the old buggy version that comes with the JDK. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : RE: dbcp pool size
Agree. There isn't a default factory class because the class IS BasicDataSourceFactory if you look at the tomcat code (correct me if I am wrong). From my numerous failures in pool implementation, I found that the problem can be solved by proper config of dbcp and pool. I suggest Meissa post question to commons user list. One of the developers of dbcp Dirk is very helpful. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 11:58 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Um, no there isn't such a default factory defined, and you didn't answer my questions ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:40 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size I use tomcat, so there is a default factory class defined, BasicDataSourceFactory? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 11:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, And you're saying the pool obeys your maxActive directive without a factory? What happens when you request the 21st connection when there are already 20 active? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:52 AM To: 'Tomcat Users List' Subject: RE: Réf. : RE: dbcp pool size Noop. Below is my config in context.xml. Try to use dbcp and pool version 1.1 Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@your.com:1521:SID/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter namemaxWait/name value15000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter !-- sleeps 5 minutes -- parameter nametimeBetweenEvictionRunsMillis/name value30/value /parameter parameter namenumTestsPerEvictionRun/name value1/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter /ResourceParams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 10:21 AM To: Tomcat Users List Subject: RE: Réf. : RE: dbcp pool size Howdy, Yup. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:20 AM To: Tomcat Users List Subject: Réf. : RE: dbcp pool size Do you think a factory name is mandatory? Meissa Sakho NATEXIS ASSET MANAGEMENT Direction de l'organisation Tel. : 01 58 19 45 71 http://www.assetmanagement.natexis.fr Shapira, Yoav [EMAIL PROTECTED] 06/11/2003 14:56 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: dbcp pool size Howdy, Perhaps a factory class name in your resource params? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: dbcp pool size hi all, I have configured my dbcp connection pool like the fragment below. Resource name=jdbc/recProduit auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/recProduit parameternameusername/namevaluemailer/value/parameter parameternamepassword/namevaluemail2002/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name
how to get WebClassLoader Classpath ?
Hi, I need to get the classpath used by classloader of my web app... System properties don't help me, as there are not used by WebClassLoader of tomcat... How can I get it ? Any idea Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat doesn't explode war file when context is declared in server.xml
Hi, I've added my context in server.xml: Context path=/tao docBase=tao debug=5 privileged=false ... But tomcat does not find and explode the tao.war in the webapps directory. So I need to set the docBase to tao.war which is not the required setup. Any hints? Thanks, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to get WebClassLoader Classpath ?
Howdy, Assuming you mean beyond the classpath documented in the Classloder HOW-TO, you'd have to write some tomcat specific code. In your webapp, you would do: import org.apache.catalina.Loader; ... ClassLoader cl = this.getClass().getClassLoader(); Loader catalinaLoader = (Loader) cl; String[] repositories = catalinaLoader.findRepositories(); But why do you want to do this? Yoav Shapira Millennium ChemInformatics -Original Message- From: mourad jaber [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:25 PM To: Tomcat Users List Subject: how to get WebClassLoader Classpath ? Hi, I need to get the classpath used by classloader of my web app... System properties don't help me, as there are not used by WebClassLoader of tomcat... How can I get it ? Any idea Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat doesn't explode war file when context is declared in server.xml
I you define a context yourself, at least in Tomcat-4.x.x, you will have to explode the .war file yourself before the server starts if you want to point to the tao directory. In Tomcat5, you can point to tao.war and it will explode it anyway and run out of the directory, which is exactly what you want. Note that if this is all you have defined for your context, don't define a context at all. Just drop the .war file into webapps and Tomcat (4.x.xx and 5.x.xx) will explode it and run from the directory. Jake At 06:37 PM 11/6/2003 +0100, you wrote: Hi, I've added my context in server.xml: Context path=/tao docBase=tao debug=5 privileged=false ... But tomcat does not find and explode the tao.war in the webapps directory. So I need to set the docBase to tao.war which is not the required setup. Any hints? Thanks, Morten - 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]
JNDI Resource: Cannot create JDBC driver of class '' for connect URL 'null'
Hi All, I simply followed the sample provided by Tomcat documentation (4.1.29) about JNDI Resource (DBCP) and MySQL but received the following error: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver However MySQL and JDBC driver settings seems correct as a connection like: (...) sql:setDataSource var=conn dataSource=jdbc:mysql://localhost/test,com.mysql.jdbc.Driver,bruno,password / (...) works very fine. Thanks for any clue, explanation or working configuration files. My config is: Tomcat 4.1.29 MySQL v4.0.14 JDBC driver: mysql-connector-java-3.0.9-stable: Thanks. Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting cookie paths
On Mon, 3 Nov 2003, Bill Barker wrote: You could try using a browser like Netscape 7/Mozilla that allows you to view the information about your cookies. This will tell you what the browser thinks that the path is. As both Tim and I have pointed out, the browser won't return the 'path' information with the cookie, so it is not possible to check the path on the returned cookie. Well, after telling Opera to drop all old cookies (in order to do a clean test of viewing information about cookies) things started working. Bleh. I don't think it was just Opera weirdness -- I'm pretty sure I tested on Mozilla too -- but I probably should have tried cleaning out cookies on the browser end, instead of telling to server to tell the browser to drop old cookies, earlier. Thanks for your patience. Jessica - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]