test
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context removal order
Hi all, I am wondering whether is it possible to specify the order in which each of my webapps get removed when tomcat i shutting down. The reason for this is to ensure a clean resources release. Thanks a lot. Regards, Chin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hangs after a few days!
David Rees schrieb: On Tue, October 7, 2003 1at 1:59 am, Volker sent the following Following problem can be recognized even if the tomcat process is not in sbwait mode: 1) Sending a -QUIT signal to the tomcat process does not stop the process. A -QUIT will not shut down Tomcat, but cause the JVM to dump a stack trace to stdout of all threads. This will be useful when the process hangs up. If the process is not responding to the -QUIT command, the JVM has hung up or you have a lot of threads stuck in a tight loop! Hi Dave, I run the jvm in green mode (recommended by John from Volano for Blackdown Java under FreeBSD!). So the problem should not derive from too many threads! Sending the QUIT-signal does not show any result because stdout is the terminal and that one does not print out anything when I send a -QUIT. It is important to emphasize that the process does not show any reaction related to a -QUIT even when tomcat is running correctly. My original problem is that tomcat hangs up after a while (in that case nothing can be done with signals etc.). But what I wanted to explain in my last posting: Even when tomcat is running correctly (handling the servlet requests) you cannot stop it with shutdown.sh or -QUIT. Shutdown.sh only makes the CPU% increase over 90% and nothing does work anymore. But the tomcat process still is in memory. Only a kill -9 helps. 2) Using shutdown.sh and -QUIT show up the same result: tomcat process still stays in memory but suddenly the CPU value increases about over 90%. Only a kill -9 stops the process! With tomcat 3.x I did not have such a problem and I could shutdown tomcat without any problems. Without knowing if and where Tomcat is hung up by reviewing the stack dump, we won't be able to get much further. Like mentioned above: -QUIT does NOT produce any stack dump on the stdout! Thanks Volker -Dave - 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 hangs after a few days!
On Wed, October 8, 2003 1at 2:07 am, Volker sent the following David Rees schrieb: On Tue, October 7, 2003 1at 1:59 am, Volker sent the following Following problem can be recognized even if the tomcat process is not in sbwait mode: 1) Sending a -QUIT signal to the tomcat process does not stop the process. A -QUIT will not shut down Tomcat, but cause the JVM to dump a stack trace to stdout of all threads. This will be useful when the process hangs up. If the process is not responding to the -QUIT command, the JVM has hung up or you have a lot of threads stuck in a tight loop! I run the jvm in green mode (recommended by John from Volano for Blackdown Java under FreeBSD!). So the problem should not derive from too many threads! You can suffer from scheduler starvation if you get too many threads running in a tight loop! (I know, it's happenned to me with a green JVM!) Symptoms will be 100% CPU, and the JVM will not respond except to the kill signal. Sending the QUIT-signal does not show any result because stdout is the terminal and that one does not print out anything when I send a -QUIT. It is important to emphasize that the process does not show any reaction related to a -QUIT even when tomcat is running correctly. My original problem is that tomcat hangs up after a while (in that case nothing can be done with signals etc.). But what I wanted to explain in my last posting: Even when tomcat is running correctly (handling the servlet requests) you cannot stop it with shutdown.sh or -QUIT. Shutdown.sh only makes the CPU% increase over 90% and nothing does work anymore. But the tomcat process still is in memory. Only a kill -9 helps. It's been a while since I've used Blackdown's JVM, but if we can't get a stack trace from it when Tomcat is hung up (looks like it's easy for you to reproduce by simply trying to shutdown), it will be difficult to figure out what's going on. Like mentioned above: -QUIT does NOT produce any stack dump on the stdout! On all Sun JVMs (IBM, too?), sending the JVM the QUIT signal will result in a stack trace like the one described here: http://developer.java.sun.com/developer/technicalArticles/Programming/Stacktrace/ It is the easiest way for us to remote debug an issue like this. BTW, does this hang occur with a stock tomcat with only the default webapps running (IE, no changes to the shipped configuration?) -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include statement in servlets
Have a look at the javadocs for javax.servlet.RequestDispatcher. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html Or you could look in tomcat's work directory for the java source code generated by jasper from a jsp file. HTH, Jon zeallousbigpond.net.au wrote: How do you include a normal jsp or html page in a servlet?... in JSP...to include a page you do: %@ include file=dfaf.jsp % is there a similar way for servlets?? Anson - 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]
New to Tomcat
Hi, I'm very new here. I have 1 question. I have downloaded Tomcat 4.1.27 from http://mirror.leafbug.org/apache-dist/jakarta/tomcat-4/binaries/jakarta-tomcat-4.1.27.exe. I have downloaded and installed j2sdk1.4.2. I have tried to start Tomcat and successfully get the http://localhost:8080/index.jsp. Unfortunately I cannot find any class folder in my TOMCAT_HOME\webapps\ROOT\WEB-INF\ directory. Is it normal?? Can I simply create my own 'classes' folder under this directory or do I need to configure something else when I create the 'classes'? For your information, I have set the environment variable for PATH=C:\j2sdk1.4.2\bin;C:\j2sdk1.4.2 TOMCAT_HOME, JAVA_HOME and CATALINA HOME - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
RE: New to Tomcat
you should read this : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html It explains how to create your own web app with Tomcat. Arnaud. -Message d'origine- De : Khairuddin Md Saad [mailto:[EMAIL PROTECTED] Envoye : mercredi 8 octobre 2003 12:17 A : [EMAIL PROTECTED] Objet : New to Tomcat Hi, I'm very new here. I have 1 question. I have downloaded Tomcat 4.1.27 from http://mirror.leafbug.org/apache-dist/jakarta/tomcat-4/binarie s/jakarta-tomcat-4.1.27.exe. I have downloaded and installed j2sdk1.4.2. I have tried to start Tomcat and successfully get the http://localhost:8080/index.jsp. Unfortunately I cannot find any class folder in my TOMCAT_HOME\webapps\ROOT\WEB-INF\ directory. Is it normal?? Can I simply create my own 'classes' folder under this directory or do I need to configure something else when I create the 'classes'? For your information, I have set the environment variable for PATH=C:\j2sdk1.4.2\bin;C:\j2sdk1.4.2 TOMCAT_HOME, JAVA_HOME and CATALINA HOME - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache - Tomcat - DataSource
I've configured my Tomcat to use OracleConnectionPoolDataSource. It works perfectly. But when I try to access through Apache (SSL), it always gives me a BasicDataSource class, and then I get a Class Cast Exception. Any ideas why this happens? Thanks a lot, Sincerely, John. -- Joo Augusto Charnet Computer Engineer - e-Softcomex Team Phone/Fax: 55 19 3739-9200 E-mail: [EMAIL PROTECTED] R. Conceicao, 233 - Cj, 609 - Centro 13010-050 - Campinas - SP - Brazil inline: e:\\Assinatura Digital\\Softway.gif
RE: Context removal order
Howdy, Nope, and they should be independent of each other. Yoav Shapira Millennium ChemInformatics -Original Message- From: Chin Ling Jia [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 3:06 AM To: [EMAIL PROTECTED] Subject: Context removal order Hi all, I am wondering whether is it possible to specify the order in which each of my webapps get removed when tomcat i shutting down. The reason for this is to ensure a clean resources release. Thanks a lot. Regards, Chin - 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: Help :- Filters .
Howdy, Of the three options I'd suggest, valves would be least preferred by me as they're tomcat-specific: 1. Copy the filter classes and declaration into each webapp where you need it. 2. Copy the filter classes to $CATALINA_HOME/common/lib or commons/classes, put the filter declaration in $CATALINA_HOME/conf/web.xml. Check your logs for errors if this is what you've already done and it doesn't work. 3. Valves. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 1:38 AM To: Tomcat Users List Subject: Re: Help :- Filters . Thanks a lot Jacob. I'll take a look at the docs right away. --Steve --- Jacob Kjome [EMAIL PROTECTED] wrote: You might want to look into Tomcat-specific Valve's. Valve's are essentially filters, but act at the level of Tomcat instead of at the level of each webapp and can be more powerful than filters. The Tomcat docs describe existing valves. I'd just take a look at one of those valves to get an idea of how to write your own... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html Jake At 10:45 PM 10/3/2003 -0700, you wrote: I have configured a filter to do some preService processing (i,e, before the request is passed onto the webapp). I, initially, configured it for a single webapp (modified the relevant web.xml) and it worked fine. Now, I want to configure it such that ALL webapps use this filter. I tried to declare the filter in %tomcat_home%\conf\web.xml, but this doesn't seem to work. Pls help me. How do I go about setting this filter so that all webapps use it. (without modifying the web.xml for each and every webapp). Tahnk you very much. --Steve. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - 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] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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: How to pass context FileLogger to another class?
Howdy, You can't, by design of the servlet specification (separation of concerns). You can achieve this in a round-about way by using system.out from your class and adding swallowOutput=true to your context definition in server.xml. Or you can use a real logging framework. Yoav Shapira Millennium ChemInformatics -Original Message- From: Donaldson, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 6:24 PM To: Tomcat Users List Subject: How to pass context FileLogger to another class? Hi Jakartites and Jakartettes, I would like Myclass to be able to log to the same file as MyServlet.Log(); My Servlet instantiates a class called Myclass. I want to pass to Myclass the Filelogger that is defined in the context / section of $CATALINA_HOME/conf/server.xml (eg. w/in MyServlet Me = new Myclass(); Me.setFileLogger( unknown beasty from MyServlet should go here ); How do I get a reference to the same FileLogger that MyServlet.Log(logstring, verbositylevel) uses? Here is my current context / section: Context path= docBase=PVCalc swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=PVCalc. suffix=.log timestamp=true directory=logs verbosity=3/ /Context The best I can figure out so far is to modify the server.xml to read: Context path= docBase=PVCalc swallowOutput=false Logger className=org.apache.catalina.logger.FileLogger prefix=PVCalc. suffix=.log timestamp=true directory=logs verbosity=3/ Parameter name=MyLoggerprefix value=PVCalc. / Parameter name=MyLoggersuffix value=.log / /Context And then declare a FileLogger w/in MyServlet that (I hope) will actually match the one that MyServlet.Log() uses w/ the above context params. This is a little sloppy I think since the context params have to match the Logger / param. It would be easier if I could just get the reference from MyServlet w/out declaring org.apache.catalina.logger.FileLogger MyLogger = new org.apache.catalina.logger.FileLogger(); Also I'm not sure this will actually work. Doesn't the logfile that MyServlet.Log(logstring) uses change w/ time? I think I've read that the file name changes w/ each new day?? If so I'm not even sure declaring a FileLogger that matches w/ the standard log will even work. So does anyone know how to get a reference to the standard logger that MyServlet.Log() uses so that I can pass it to other classes? Thanks in advance, -John Donaldson [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: Is this still an issue with 4.1.24 ?
Howdy, I agree with Senor Eggers, and I wouldn't call this an issue in the bug sense of the word ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark Eggers [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:26 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Is this still an issue with 4.1.24 ? Yes, it is best to use the appropriate mapping in your application's web.xml. /mde/ just my two cents . . . . --- Mark W. Webb [EMAIL PROTECTED] wrote: I came across this article and wondered if this is an issue with 4.1.24. Thanks for any thoughts on this issue. http://www.fawcette.com/javapro/2002_11/online/servletsjsp_bkurniawan_1 1_08 _02/default_pf.aspx __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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: log4j log file path in Tomcat
Howdy, By appropriately configuring log4j instead of relying on the current working directory for the file location. Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: log4j log file path in Tomcat Hi I'm using log4j in my web app, which is deployed in Tomcat. By default, log4j generates the log file user's directory i.e., C:\Documents and Settings\drathi\Start Menu\Programs\Apache Tomcat 4.1. How can I make log4j to generate this log file at some other place? thanks, Naresh 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: Objects in session lost when using mutiple servers
Howdy, You know, a debugger would let you walk through step by step and see what's happening to your session and its attributes. If you can't do that for whatever reason, you could add a logging statement before every attribute modification your code does to the session. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilian Zurita [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 7:54 PM To: Tomcat Users List Subject: Objects in session lost when using mutiple servers I'm having the following problem: Quick explanation: I'm losing objects stored in session. Long explanation (inside parenthesis, an explanation for whomever know struts): I have a servlet (a struts action, really) that stores an object (an ActionForm) in session, then redirects to a JSP page. The page display perfectly the information of the object, then I submit a form in that page that contains information to be changed in the object (submit the ActionForm), the object is further processed (in another action) and then again redirected to the same JSP page THEN the page does not displays the information correctly, because the object (the form) is not in the session, somehow. Now, this happens only when I'm running 2 tomcat servers at the same time: I have a tomcat running in the x address with just one application, and another tomcat running in the y address with other (completely different) set of applications. I already check all the ports, (for the connectors and the server) the directories (in the catalina.sh script), and they are all different for each server. I'm thinking the problem HAVE to be when the server access the disk (the servers are on different virtual machines!!!), but I'm really out of ideas. Thank you in advance for your ideas, Wilian Z. P.S. : English is a second language for me, so, excuse my mistakes if any, and if something is not clear, I'll be glad to further explain it to anyonethank you again!! - 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: Restart automatically Tomcat
Howdy, I would also add that the stable version of tomcat 5 is likely to include this. We have to modify common daemon first, but that's in the works. Yoav Shapira Millennium ChemInformatics -Original Message- From: Slimane Amar [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:31 AM To: tomcat-user Subject: Restart automatically Tomcat Hi all, I'm using Tomcat 4.1.24 et i want after it fails it restarts automatically to have a high availability. Is it possible with only Tomcat ? Thanks -- Slimane AMAR Mail: [EMAIL PROTECTED] GENIGRAPHURL : http://www.genigraph.fr 104, rue Castagnary Tel : +33 01 45 33 64 63 F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63 -- - 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: Strange exceptions ...
Howdy, Most likely cause is user making a request to the server and then closing their browser before the request is complete. As you can see, these are INFO (not ERROR or even WARN) message. They can be removed by modifying the logging configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Aleksandr Shneyderman [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 7:46 PM To: Tomcat User List Subject: Strange exceptions ... We are getting some really strange exceptions like the ones below. can someone explain what they mean and how do I fix it? I am getting them in my logs and I am not sure if they are affecting the users, since they do not complain for some reason, but my gut feeling is that there are problems, I just can not catch them We are using Apache SSL fornt and Tomcat 4.1.27 on the back, all on solaris 2.8 jvm sun 1.4.1 INFO: server has been restarted or reset this connection Oct 6, 2003 7:12:51 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:32 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:42 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:56 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:25:45 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java :562 ) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja v a:619) at java.lang.Thread.run(Thread.java:536) - 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 hangs after a few days!
Howdy, Threads like these are exasperating ;) It almost definitely is a JVM/threading problem. You've already gone into a far less common configuration than most on this list by using Blackdown and green mode. If you do this, you risk not being able to get much support. I, and I imagine many others, read your original question a few days ago, said in my head Blackdown -- don't know/don't care and deleted it. I suggest you ask John from Volano what's wrong, or alternatively at least try switching to a more common JVM and isolate the problem and benefit from advice such as that Senor Rees has been trying to give you... Yoav Shapira Millennium ChemInformatics -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 3:51 AM To: Tomcat Users List Subject: Re: Tomcat hangs after a few days! On Wed, October 8, 2003 1at 2:07 am, Volker sent the following David Rees schrieb: On Tue, October 7, 2003 1at 1:59 am, Volker sent the following Following problem can be recognized even if the tomcat process is not in sbwait mode: 1) Sending a -QUIT signal to the tomcat process does not stop the process. A -QUIT will not shut down Tomcat, but cause the JVM to dump a stack trace to stdout of all threads. This will be useful when the process hangs up. If the process is not responding to the -QUIT command, the JVM has hung up or you have a lot of threads stuck in a tight loop! I run the jvm in green mode (recommended by John from Volano for Blackdown Java under FreeBSD!). So the problem should not derive from too many threads! You can suffer from scheduler starvation if you get too many threads running in a tight loop! (I know, it's happenned to me with a green JVM!) Symptoms will be 100% CPU, and the JVM will not respond except to the kill signal. Sending the QUIT-signal does not show any result because stdout is the terminal and that one does not print out anything when I send a -QUIT. It is important to emphasize that the process does not show any reaction related to a -QUIT even when tomcat is running correctly. My original problem is that tomcat hangs up after a while (in that case nothing can be done with signals etc.). But what I wanted to explain in my last posting: Even when tomcat is running correctly (handling the servlet requests) you cannot stop it with shutdown.sh or -QUIT. Shutdown.sh only makes the CPU% increase over 90% and nothing does work anymore. But the tomcat process still is in memory. Only a kill -9 helps. It's been a while since I've used Blackdown's JVM, but if we can't get a stack trace from it when Tomcat is hung up (looks like it's easy for you to reproduce by simply trying to shutdown), it will be difficult to figure out what's going on. Like mentioned above: -QUIT does NOT produce any stack dump on the stdout! On all Sun JVMs (IBM, too?), sending the JVM the QUIT signal will result in a stack trace like the one described here: http://developer.java.sun.com/developer/technicalArticles/Programming/S tack trace/ It is the easiest way for us to remote debug an issue like this. BTW, does this hang occur with a stock tomcat with only the default webapps running (IE, no changes to the shipped configuration?) -Dave - 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 logs
Howdy, I would say it depends on your configuration ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 3:14 PM To: Tomcat Users List Subject: Re: Tomcat logs false. catalina.out also catches System.out, System.err. -Tim Mike Millson wrote: Is the following statement true or false? Tomcat only logs to catalina.out when the startup and shutdown scripts are run (i.e. when tomcat starts or stops). - 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 performance issues with W2k - SP4
Howdy, Ask Microsoft. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 8:37 AM To: 'Tomcat Users List' Subject: RE: Tomcat performance issues with W2k - SP4 Tomcat isn't the only application. IIS suffers as well. Are you using Server or Advanced Server? There are some major problems with Advanced Server after installing the patch. I think you should ask MS about this. Also check with your VM manufacturer. We have some ISAPI applications that run in IIS that have suffered as well. We are working with MS currently to try and figure this out. Wade -Original Message- From: Benito Garcia [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 8:03 AM To: Subject: Tomcat performance issues with W2k - SP4 Hello. I have Tomcat 4.0.4 in a Windows 2000 SP3 ( and a Oracle DataBase ) working fine and with good performance. When installing the Service Pack 4 in the Windows 2000, all continue working OK, but wit a great loss of performance. If I uninstall the SP4, the performance remains degraded. I need re-install Windows 2000 - SP3 in order to get good performance again. I'm a little bit confused... Tanks in advance. Benito. - 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: Tomcat Server Not Running
Howdy, The window closing is normally. If you want it to stay, use catalina.bar run instead of catalina.bat start. Check your logs for errors. No one can help with the meager information you've provided... Yoav Shapira Millennium ChemInformatics -Original Message- From: rajesh kannan krishnamoorthy [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 11:21 PM To: [EMAIL PROTECTED] Subject: Tomcat Server Not Running Hi, I installed Tomcat Server.I config also JAVA_HOME and CATALINA_HOME. I run the startup.bat file the new window opened after few seconds the new window closed.I don't know, when I mistake the config file.The server was not working properly I check all files.I am waiting for your hopeful reply. Thanks and Regards K RAJESH KANNAN __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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: Tomcat, Jonas and Valves.
Howdy, What seems to be happening with the Valve? (And should I just throw away my hopes of getting people to write portable applications? Is the appeal of container-specific features really that great? Ignore these questions, I'm just asking myself ;)) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:34 AM To: Tomcat Users List Subject: Tomcat, Jonas and Valves. I have implemented a Valve, and configured it in %tomcat_home%\conf\server.xml . When I run catalina start, this valve work perfectly. I have integrated tomcat and jonas, since Jonas is my preferred ejb-container. But, when i use jonas start, my valve doesn't seem to be functioning. I even configured server.xml in %jonas_base%\conf, but to no avail. If anyone has any idea how to go about this, I'd be grateful to hear from you. --Steve __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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: Tomcat4x slowing down?
Howdy, Probably memory leaks somewhere, gradually hogging the heap up to the point it's nearly full, forcing full GCs every time you refresh. Under development, I like to restart tomcat frequently. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 2:09 PM To: Tomcat Users List Subject: Tomcat4x slowing down? after using development server for a month or two, constantly refreshing .jsp pages under development, Tomcat starts taking 2-5 minutes to dish out pages from non-root web app. anyone have any idea why this might happen? -paul lomack java jdk 1.4 jakarta-tomcat-4.1.27-LE-jdk14.exe apache_2.0.47-win32-x86-no_ssl.msi jk2 connector win2k 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: Unable to run Tomcat 5.0.12
Howdy, I'm running 5.0.11 and 5.0.12 (and now testing 5.0.13) on JDK 1.4.2 without a problem. The JWSDP v1.2 contains tomcat 5.0.2 or 5.0.3, and old version. Make sure you have no conflicts in the configuration between the JWSDP tomcat instance and your standalone tomcat instance: ports, server.xml, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 1:37 PM To: 'Tomcat Users List' Subject: RE: Unable to run Tomcat 5.0.12 Were you running Tomcat 5.0.11 on jdk 1.4.2? I had an issue with tomcat on that VM and switched to 1.4.1_2 -Original Message- From: John Bell [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 9:44 AM To: Tomcat Users List Subject: Re: Unable to run Tomcat 5.0.12 I have installed Tomcat 5.0.12 on Win 2000 using j2sdk1.4.2_01 but it will not run. Should I be havving a problem? Toncat 5.0.11 was fine. - Original Message - From: Wade Chandler [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, October 06, 2003 2:19 PM Subject: RE: Unable to access JSP page on local host One thing copy a web.xml file from one of the examples and use that. Reason being validation and DTD tags. I had a problem similar to that once. -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 8:58 AM To: Tomcat Users List Subject: Re: Unable to access JSP page on local host Try not to install Tomcat in the Program Files path. The path to Tomcat installation SHOULD NOT have any space in between. By the way, have you already checked if the installation of Tomcat was indeed successful by bringing up the Tomcat page with http://localhost:your_port_number ? If you are simply accessing a JSP page under catalina_home/your project, you don't have to use the deployment descriptor (i.e. web.xml). Hope this helps. - Original Message - From: anunay ashish [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 06:37 AM Subject: Unable to access JSP page on local host Hi, I am using TOMCAT to host JSP pages. The directory structure is: C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system The page that I want to access is pageFormat.jsp inside Tracking_system through the url: http://localhost:8080/Tracking_system/pageFormat.jsp The web.xml file inside WEB-INF is containing only the following tag: web-app /web-app I am not able to access the page. Sometimes I am able to and sometimes I am not with the error description coming as: The requested resource (/Tracking_system/pageFormat.jsp) is not available. In fact /Tracking_system is also not shown as a directory. Where am I doing wrong? What is the problem? Regards, Anunay Ashish. - 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] - 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]
errorpage
hey If i've defined an error page on my web.xml, and than some page threw an exception, the tomcat is supposed to go to my errorpage. but - how can i get the exception inside that errorpage? i want to print the error-message from it to the screen. thanks yair
RE: Strange exceptions ...
Actually I figured out what is happening and why the error is there. It was something along the lines that you described except user does not stop anything but for some reason images do not get served correctly. I am not sure why. I read somewhere on either this list or the struts list that for some unknown reasons in exactly the configuration that we have (ApacheSSL-Tomcat) the images do not get served correctly (between the mod_jk and coyote I guess), and I noticed that they get cut off or do not get to the client, when I get the info message. The broken pipe happens inconsistently, so I can not make much sence of it, but I suspect it has something to do with the sme problem It is no bigy for now since the refresh or consequent requests do serve the images correctly and once it is there browser does cache it, but I would like to solve it one day, any ideas of where to start my complains or maybe it has been alread y solved and I am just wasting my breath here ... Thanks, Alex. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 8:00 AM To: Tomcat Users List Subject: RE: Strange exceptions ... Howdy, Most likely cause is user making a request to the server and then closing their browser before the request is complete. As you can see, these are INFO (not ERROR or even WARN) message. They can be removed by modifying the logging configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Aleksandr Shneyderman [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 7:46 PM To: Tomcat User List Subject: Strange exceptions ... We are getting some really strange exceptions like the ones below. can someone explain what they mean and how do I fix it? I am getting them in my logs and I am not sure if they are affecting the users, since they do not complain for some reason, but my gut feeling is that there are problems, I just can not catch them We are using Apache SSL fornt and Tomcat 4.1.27 on the back, all on solaris 2.8 jvm sun 1.4.1 INFO: server has been restarted or reset this connection Oct 6, 2003 7:12:51 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:32 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:42 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:16:56 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Oct 6, 2003 7:25:45 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java :562 ) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja v a:619) at java.lang.Thread.run(Thread.java:536) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: errorpage
Howdy, RTFM -- Servlet Specification. The container will set some the error information as attributes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Yair Ben-meir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:29 AM To: [EMAIL PROTECTED] Subject: errorpage hey If i've defined an error page on my web.xml, and than some page threw an exception, the tomcat is supposed to go to my errorpage. but - how can i get the exception inside that errorpage? i want to print the error-message from it to the screen. thanks yair 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: Strange exceptions ...
Howdy, I guess), and I noticed that they get cut off or do not get to the client, when I get the info message. The broken pipe happens inconsistently, so I can not make much sence of it, but I suspect it has something to do with the sme problem It is no bigy for now since the refresh or consequent requests do serve the images correctly and once it is there browser does cache it, but I would like to solve it one day, any ideas of where to start my complains or maybe it has been alread y solved and I am just wasting my breath here ... Maybe play with the request timeouts on the tomcat and mod_jk side to prevent broken pipes. Other than that, I don't know since I've never actually had this error happen. 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: errorpage
Section SRV 9.9 of the Servlet Specification has all the info you need. Available here: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ HTH, Jon Yair Ben-meir wrote: hey If i've defined an error page on my web.xml, and than some page threw an exception, the tomcat is supposed to go to my errorpage. but - how can i get the exception inside that errorpage? i want to print the error-message from it to the screen. thanks yair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaMail doesn't work
Use $CATALINA_HOME/common/lib/mail.jar and activation.jar -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: October 7, 2003 7:29 PM To: Tomcat Users List Subject: RE: JavaMail doesn't work I ran into this problem and I think it was related to having installed multiple versions of Sun's JSDK on the Win2K machine in question. I resolved it by removing all installations of Java and Tomcat and then reinstalling. Not sure what the underlying problem was. My solution was probably overkill, but it worked :) -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 8:39 AM To: Tomcat Users List Subject: JavaMail doesn't work Dear all, I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the SendMailServlet that ships with it. The servlet worked fine on win2000 and it gave the following message on winXP:java.lang.NoClassDefFoundError: javax/mail/Message I guess this is because somehow Tomcat can't find the class. (This is wierd since I do not have the problem on win2000). So I downloaded the JavaMail and copied the mail.jar and activation.jar to $CATALINA_HOME/server/lib. But the problem was still there. Any suggestions? Thanks! - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Unavailable Exception
Hello everybody, I have a problem with the 'unavailableException'. All Exceptions seem to work perfectly except when I throw a new UnavailableException. I found on the archives this topic (exactly my problem), but no solution were given. It was 1 year ago. Did anyone find a solution to this problem? Thanks Kenny Louveaux PS: I throw my exception in the doGet method, not in the init. - List: tomcat-user Subject: Tomcat4 and UnavailableException From: Dominique Deleris dominique.deleris () bluewin ! ch Date: 2002-08-05 19:27:17 Hello, list... I try to handle UnavailableException with a error-page tag in my web.xml: error-page exception-typejavax.servlet.UnavailableException/exception-type location/html/unavailable.html/location /error-page As far as I know, it should work. However, Tomcat always treat this exception internally, displaying its own error page. When I raise another type of exception in the code (e.g. ServletException...) it will be handled correctly. Only UnavailableException does not work... Any idea ? -- Dominique Deleris - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2 connector config to connect to multiple tomcat-jboss instances
Boulatian, Misak wrote: Hi Jeromy, Hi misak, I am sorry. I thought my attachments made to the list. Here I am including them directly here. Please look at it and let me know if I have done anything wrong. When I point my browser to the link: http://[web-server-ip]/test1 it works. When I point my browser to the link: http://[web-server-ip]/test2 I get the following tomcat blue screen: HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. And mapping error config logs go to the jboss's first instance's server.log. in fact what is your aim ? do you want to be able to switch from T1 to T2 or T3 for one request to the next one ? because this is what i suggested while deploying a load balancer Do you your 3 instances behave exctly from the same manner or do you want to deploy different web-apps on these 3 tomcat instances ? Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, Jonas and Valves.
Jonas probably starts Tomcat using the Embedded interface, and do not use the server.xml file. That's why it doesn't work. With Tomcta 5 it will be easy for you to add your valve using JMX. -- Jeanfrancois Shapira, Yoav wrote: Howdy, What seems to be happening with the Valve? (And should I just throw away my hopes of getting people to write portable applications? Is the appeal of container-specific features really that great? Ignore these questions, I'm just asking myself ;)) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:34 AM To: Tomcat Users List Subject: Tomcat, Jonas and Valves. I have implemented a Valve, and configured it in %tomcat_home%\conf\server.xml . When I run catalina start, this valve work perfectly. I have integrated tomcat and jonas, since Jonas is my preferred ejb-container. But, when i use jonas start, my valve doesn't seem to be functioning. I even configured server.xml in %jonas_base%\conf, but to no avail. If anyone has any idea how to go about this, I'd be grateful to hear from you. --Steve __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using 2 IP Address in one tomcat
Hi All, I am using tomcat 4.1.24 Standalone on linux red hat machine. J2EE architecture. I have two applications to launch in same machine tomcat (one instance). How do I do the following configuration in server.xml? Example: 1) I have people hitting using www.domain1.com (IP Address:000.00.00.0) to the folder1 under tomcat web-apps directory. 2) I have people hitting using www.domain2.com (IP Address:111.11.11.1) to the folder2 under tomcat web-apps directory. I wanted to put IP Address instead of www.domain1.com in the host tag. How can I achieve above in tomcat, any code help would be appreciated. Thanks - Srini. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2 connector config to connect to multiple tomcat-jboss instances
in fact what is your aim ? do you want to be able to switch from T1 to T2 or T3 for one request to the next one ? because this is what i suggested while deploying a load balancer Do you your 3 instances behave exctly from the same manner or do you want to deploy different web-apps on these 3 tomcat instances ? Jerome Hi Jerome, I do not need to load-balance between the three. My aim is to deploy three completely separate web apps on these three jboss-tomcat bundles. Thanks, Misak _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.12, Windows, and file pathnames
Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Tomcat's localhost_log reports the following exception: 2003-10-08 10:46:43 Admin: Error in class vqwiki.servlets.AdministrationServlet vqwiki.servlets.WikiServletException: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Type: -1, C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) at vqwiki.servlets.AdministrationServlet.doPost(AdministrationServlet.java: 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:359) at vqwiki.servlets.VQWikiServlet.dispatch(VQWikiServlet.java:39) at vqwiki.servlets.WikiServlet.doPost(WikiServlet.java:375) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:67 0) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:517) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57 5) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:666) at java.lang.Thread.run(Unknown Source) Does Tomcat not like Windows pathnames? Is it choking on the spaces? Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Tomcat 5.0.12, Windows, and file pathnames
Howdy, At the filesystem level, file names are not URL-encoded, so a space is not the same as %20. The calling app should URL-decode file names in this instance before asking for the file. Yoav Shapira Millennium ChemInformatics -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 11:01 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.12, Windows, and file pathnames Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\ w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Tomcat's localhost_log reports the following exception: 2003-10-08 10:46:43 Admin: Error in class vqwiki.servlets.AdministrationServlet vqwiki.servlets.WikiServletException: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Type: -1, C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) at vqwiki.servlets.AdministrationServlet.doPost(AdministrationServlet.java : 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat c her.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati o nDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis p atcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa t cher.java:359) at vqwiki.servlets.VQWikiServlet.dispatch(VQWikiServlet.java:39) at vqwiki.servlets.WikiServlet.doPost(WikiServlet.java:375) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo n textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:149) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 8 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve . java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6 7 0) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process C onnection(Http11Protocol.java:517) at
how to config Tomcat 4.1.27 multiple instances using JavaService
I need some specific configuration info to setup Tomcat such that I have multiple services (using JavaService), and each service runs only 1 webapp. I have viewed many posts on this topic and tried many different things. I have 3 webapps under Tomcat, call them A, B, C. Currently, all 3 webapps I run locally must start and stop using the same service. In addition, my 3 webapps all dump the system.outs and system.errs to the same file. Here is some setup info: Windows XP Pro IIS 5.1 Tomcat 4.1.27 using isapi_redirect.dll I'd like to have 3 services for Tomcat. One would run webapp A, and send system.outs and system.errs to folder A, the second would run webapp B, and send system.outs and system.errs to folder B, etc. Here is an exerpt from conf\server-timetrack.xml. I define one of my three webapps, the context name Timetrack10, and send the access and tomcat logs to a specified folder. Context path=/Timetrack10 docBase=Timetrack10 debug=0 reloadable=true Valve className=org.apache.catalina.valves.AccessLogValve directory=C:\tomcat4\webapps\Timetrack10\logs prefix=timetrack_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=C:\tomcat4\webapps\Timetrack10\logs prefix=timetrack_log. suffix=.txt timestamp=true/ /Context Here is a sample of the batch file I use to create the service. I am trying to use separate server.xml files currently (note using server-timetrack.xml above). When I run this service, it runs all of my webapps, even though it points to server-timetrack.xml, and that file only contains the Timetrack10 context. JavaService.exe -install Timetrack c:\jdk14\jre\bin\client\jvm.dll -Xmx256m -Xms100m -Xss64k -Djava.class.path=c:\tomcat4\bin\bootstrap.jar;c:\tomcat4\common\lib\servlet .jar;c:\jdk14\lib\tools.jar -Dcatalina.home=c:\tomcat4 -start org.apache.catalina.startup.Bootstrap -params -config c:\tomcat4\conf\server-timetrack.xml start -stop org.apache.catalina.startup.Bootstrap -params stop -out c:\tomcat4\webapps\timetrack10\logs\stdout.txt -err c:\tomcat4\webapps\timetrack10\logs\stderr.txt What am I doing wrong? How can I make 3 services to run the 3 webapps? I need to know what goes in the server.xml, and what goes into the creation of the service, and if there are any other configuration items that I am missing. Eric
Re: Tomcat 5.0.12, Windows, and file pathnames
Not sure of the exact problem or why 5.0.9 works but 5.0.12 doesn't. However, I would recommend that you not install Tomcat to a path containing spaces. You are just asking for trouble. Also, why are resources in the classpath being modified? If you want to modify resources, you should have those resources under WEB-INF/wikifiles or something like that, not WEB-INF/classes. Better yet, define an context param which the deployer can override in a context configuration file which points to location outside the webapp to write files to. Doing this will keep you in-line with the servlet-spec and best practices. Jake At 11:00 AM 10/8/2003 -0400, you wrote: Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Tomcat's localhost_log reports the following exception: 2003-10-08 10:46:43 Admin: Error in class vqwiki.servlets.AdministrationServlet vqwiki.servlets.WikiServletException: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Type: -1, C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) at vqwiki.servlets.AdministrationServlet.doPost(AdministrationServlet.java: 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:359) at vqwiki.servlets.VQWikiServlet.dispatch(VQWikiServlet.java:39) at vqwiki.servlets.WikiServlet.doPost(WikiServlet.java:375) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 63) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at
UserDatabase
Is there an easy way to administer the tomcat-users.xml file? I need to give a superuser access to add/delete users, but don't want to give access to the admin application. Any suggestions? Cheers, Duncan, Decker Telecom Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk Worker Not Found - help?
Must be a configuration problem, but I don't see it. Have set up Tomcat and Apache with mod_jk, using John Turner's excellent documentation. Both servers work, but can't execute sample jsp's from Apache (get 500 Server error). Have turned on JkLogLevel to debug, and looking at mod_jk.log, see the last message in log is from jk_worker.c, saying ...did not found worker (sic). The prior log message says it's looking for a worker named ajp13. My workers.properties file defines the worker named ajp13... I get no errors at startup, so I'm presuming that the file is found and is correct, syntax wise. This must be something stupid, or simple (or both)... Can anyone suggest what to look for? Thanks. -don p.s. using Win2kProfessional, Tomcat 4.1.27, Apache 2.0.47, mod_jk_2.0.43 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I configure multiple tomcat instances in workers2.properties file (separate web apps)
Hi all, I need to configure multiple tomcat instances in workers2.properties file running completely separate web apps. No matter what I do it doesn't work. Can I even do this? I specify multiple channel sockets but all requests go to the first one only. I appreciate the response. Here is my simple workers2.properties file (APP_SERVER_IP is an entry in /etc/hosts file). # In production uncomment it out [logger.apache2] level=DEBUG [shm] file=${serverRoot}/logs/shm.file size=1048576 ### # # jk status # ### [status:status] info=Status group, displays runtime information [uri:/jkstatus/*] group=status:status ### # # Setup volts # ### [channel.socket:APP_SERVER_IP:8109] [channel.socket:APP_SERVER_IP:8009] _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
tomcat versions
Hi What are stable versions of Tomcat 4.1.x? Are these versions backword/forward compatible? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0.6 / jdk 1.3.1
Hi, I'm using Apache-Tomcat/4.0.6 with jdk 1.3.1 and I want to add Java API for XML Parser ( JAXP 1.2). My question is where should I add the * .jar files jaxp-api.jar xalan.jar dom.jar sax.jar xercesImpl.jar xsltc.jar and which are the changes needed to make this work? Best regards Corina This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI: LDAP Protocol Error (Microsoft LDAP)
Hi all, I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. If it is not so, do you advise me any solution to manage autenticating these webapps via JNDI-Microsoft Site Server?. Maybe develop a special Realm?. Regards, Davi Leal 2003-10-07 17:42:54 JNDIRealm[Standalone]: Connecting to URL ldap://host:1003 2003-10-07 17:42:54 JNDIRealm[Standalone]: lookupUser(p2796) 2003-10-07 17:42:54 JNDIRealm[Standalone]: dn=cn=p2796,ou=Members,o=org 2003-10-07 17:42:54 JNDIRealm[Standalone]: validating credentials by binding as the user 2003-10-07 17:42:54 JNDIRealm[Standalone]: binding as cn=p2796,ou=Members,o=org 2003-10-07 17:42:54 JNDIRealm[Standalone]: Exception to try authentication javax.naming.CommunicationException: [LDAP: error code 2 - Protocol Error]; remaining name '' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2965) at ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk feature question
Hi all, I don't know if mod_jk supports this. I usually integrate Tomcat and Apache by mapping *.jsp and /servlet/ to Tomcat and leaving everything else to Apache. But there is a situation where I need to let Tomcat server everything BUT images ( *.gif and *.jpg ). How can I do this with mod_jk ? If it's not possible to do with mod_jk, is it possible to do in another way (like mod_rewrite maybe ? ) Thanks Renato. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat versions
Howdy, The latest stable version is 4.1.27. That's the one you should use unless you have some extraordinary reason not to. Other stable versions on the 4.1 branch include 4.1.24, 4.1.18, and 4.1.12. As for backword/forward compatible -- you'll have to be more specific in your definition of compatability. You will be able to drop a servlet-specification compliant WAR between all those versions. The further your app is from the spec, the further it is from being self-container and portable, the more trouble you're going to have, but then again, you've dug your own grave already in that case. Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 8:39 AM To: [EMAIL PROTECTED] Subject: tomcat versions Hi What are stable versions of Tomcat 4.1.x? Are these versions backword/forward compatible? thanks, Naresh 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 do i handle session-timeout in an acceptable manner?
Shapira, Yoav schrieb: I have implemented this workaround: As for this workaround, why wouldn't it work with future tomcat versions? There's nothing tomcat-specific in it, much less tomcat 4.1.x-specific. Yoav Shapira A different servlet engine could use a POST instead of a GET to continue processing after form based login. Then my solution would not work. Hayo Schmidt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.12, Windows, and file pathnames
Derek Mahar wrote: Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) The only way you can get a properly URL encoded URL is when you call getResource on the classloader. If you do a diff, you'll see there's no relevant changes that have been made to the classloader between 5.0.9 and 5.0.12. The most likely cause is that you don't have spaces in your Tomcat path on Linux, but you do on Windows. Note: The URL encoding of those paths is a feature which could be removed (it is supposed to fix problems with RMI). -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MultipartRequest class with Tomcat 3.2.1
Hi, I have a problem using the com.oreilly.servlet.MultipartRequest class by Jason Hunter (documentation at http://www.servlets.com/cos/index.html) with Tomcat 3.2.1 and Apache 1.3.20. The configuration I'm using is the following: - RedHat 7.3 - JDK 1.4.1_01 - Apache 1.3.20 - Tomcat 3.2.1 - Servlet 2.3 I'm using JK for integrating Apache with Tomcat, with the ajp13 protocol. Every other feature of my web application works fine, it hangs only when trying to upload a file using the MultipartRequest class mentioned above. The problem arises when constructing the MultipartRequest object: mreq=new MultipartRequest([HttpServletRequest],[path],[max_size]); It gives no Exception, it just hangs with no further messages. Consider that the same web application, with exactly the same configuration but Resin 2.0.4 instead of Tomcat 3.2.1, works perfectly. I tried to use a newer version of Tomcat, but I can't get Tomcat 4.x and Apache 1.3.20 to work together. If the problem can be solved using a more recent version of Tomcat, can someone please tell me where I can find a decent explanation of how to make it work with Apache? The documentation from the Jakarta-Apache site is very confusing, according to me... Thank you in advance :-) -- Fausto Zorzi NetiX s.r.l. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Active Directory
Hi All, I've been trying for several weeks to compile information on Tomcat and Active Directory through LDAP. I can't quite get all the information I need and I am hoping someone has a link to what needs to be done. I want to use the Realms in Tomcat but I can't seem to connect properly. For some reason it seems to keep trying to connect to localhost even though its not specified. Also, does SSL NEED to be implemented in order to get this to work? I will be doing AD connectivity through LAN only. Thanks. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i handle session-timeout in an acceptable manner?
-Original Message- From: Hayo Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 11:07 AM To: Tomcat Users List Subject: Re: How do i handle session-timeout in an acceptable manner? Shapira, Yoav schrieb: I have implemented this workaround: As for this workaround, why wouldn't it work with future tomcat versions? There's nothing tomcat-specific in it, much less tomcat 4.1.x-specific. Yoav Shapira A different servlet engine could use a POST instead of a GET to continue processing after form based login. Then my solution would not work. But wasn't that your original problem? If a different servlet engine uses POST, then all is good, your application will not fail, because the container-managed AUTH does not inappropriately GET the page. Containers that POST will follow the 'happy path' coded in your doPost() methods. When you use a container that GETs, like Tomcat, then your workaround will work for those containers. Hayo Schmidt - 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]
EL not working.
Has anyone been able to use the Expression Lanugage in Tomcat 5.x? I tried to use code from the example pages, but I just get the expression returned and not evaluated. Anyone with any ideas, thanks ahead of time. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Active Directory / 2003
BTW: I am using 4.1.27 on Windows 2000 and we're trying to connect to a Windows 2003 AD. Has this changed at all? here is the error trace: Catalina.start: LifecycleException: Exception opening directory server connecti on: javax.naming.CommunicationException: localhost:389 [Root exception is java. net.ConnectException: Connection refused: connect] LifecycleException: Exception opening directory server connection: javax.namin g.CommunicationException: localhost:389 [Root exception is java.net.ConnectExcep tion: Connection refused: connect] It keeps saying localhost:389 and I clearly don't have it in the Realm. Here is my setup. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=cn=TomcatRole,dc=vo,dc=net connectionPassword=*** connectionURL=ldap://orlmsdc001:389; digest=MD5 roleBase=dc=roles,dc=vo,dc=net roleName=cn roleSearch=(uniqueMember={0}) roleSubtree=True userPassword=*** userPattern=cn={0},dc=vacationsonly,dc=net / --- Matt Fury [EMAIL PROTECTED] wrote: Hi All, I've been trying for several weeks to compile information on Tomcat and Active Directory through LDAP. I can't quite get all the information I need and I am hoping someone has a link to what needs to be done. I want to use the Realms in Tomcat but I can't seem to connect properly. For some reason it seems to keep trying to connect to localhost even though its not specified. Also, does SSL NEED to be implemented in order to get this to work? I will be doing AD connectivity through LAN only. Thanks. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)
Hi all, It seems like mod_jk2 is a buggy connector. There is no way to set up more than one instance of tomcat. It can connect on any port other than 8009 but it is a first-come first-served basis (whichever port comes first). I need a response from mod_jk2 developers themselves. Should I go back to mod_jk or there is a way of doing this simple thing??? Thanks, Misak _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI: LDAP Protocol Error (Microsoft LDAP)
David Diaz wrote: Hi all, hi david, I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). :( As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) If it is not so, do you advise me any solution to manage autenticating these webapps via JNDI-Microsoft Site Server?. Maybe develop a special Realm?. humm I think you may investigate any other class used in your factory I think that the ContextFactory class is not the right one ... I think you use the one for the Netscape Directory Server HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)
Boulatian, Misak wrote: Hi all, It seems like mod_jk2 is a buggy connector. There is no way to set up more than one instance of tomcat. It can connect on any port other than 8009 but it is a first-come first-served basis (whichever port comes first). I need a response from mod_jk2 developers themselves. Should I go back to mod_jk or there is a way of doing this simple thing??? take it easy man :) small question : what about using different virtual hosts in your apache config, then from these contexts , using different config files for mod_jk which will be very simple (you have already validated one of your tomcat instances) my 2 cents Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Active Directory / 2003
Two guesses: * Did you try using the IP-address instead or use the FQDN for connectionURL, maybe there's something wrong w/ DNS? * Try w/o MD5 and see if it works then. roleSubtree=True typo - or shouldn't this be true I guess you already found the documentation here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm HTH, Yann BTW: I am using 4.1.27 on Windows 2000 and we're trying to connect to a Windows 2003 AD. Has this changed at all? here is the error trace: Catalina.start: LifecycleException: Exception opening directory server connecti on: javax.naming.CommunicationException: localhost:389 [Root exception is java. net.ConnectException: Connection refused: connect] LifecycleException: Exception opening directory server connection: javax.namin g.CommunicationException: localhost:389 [Root exception is java.net.ConnectExcep tion: Connection refused: connect] It keeps saying localhost:389 and I clearly don't have it in the Realm. Here is my setup. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=cn=TomcatRole,dc=vo,dc=net connectionPassword=*** connectionURL=ldap://orlmsdc001:389; digest=MD5 roleBase=dc=roles,dc=vo,dc=net roleName=cn roleSearch=(uniqueMember={0}) roleSubtree=True userPassword=*** userPattern=cn={0},dc=vacationsonly,dc=net / --- Matt Fury [EMAIL PROTECTED] wrote: Hi All, I've been trying for several weeks to compile information on Tomcat and Active Directory through LDAP. I can't quite get all the information I need and I am hoping someone has a link to what needs to be done. I want to use the Realms in Tomcat but I can't seem to connect properly. For some reason it seems to keep trying to connect to localhost even though its not specified. Also, does SSL NEED to be implemented in order to get this to work? I will be doing AD connectivity through LAN only. Thanks. -Matt - 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 and Active Directory / 2003
Hey Thanks for the reply. Tried all those to no avail. :-/ I did see the Tomcat realm how-to but I was wondering if there were issues because it is Micro$oft we're trying to connect to and its 2003. Who knows, their standard ldap may not be standard. -Matt --- Yann Cébron [EMAIL PROTECTED] wrote: Two guesses: * Did you try using the IP-address instead or use the FQDN for connectionURL, maybe there's something wrong w/ DNS? * Try w/o MD5 and see if it works then. roleSubtree=True typo - or shouldn't this be true I guess you already found the documentation here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm HTH, Yann BTW: I am using 4.1.27 on Windows 2000 and we're trying to connect to a Windows 2003 AD. Has this changed at all? here is the error trace: Catalina.start: LifecycleException: Exception opening directory server connecti on: javax.naming.CommunicationException: localhost:389 [Root exception is java. net.ConnectException: Connection refused: connect] LifecycleException: Exception opening directory server connection: javax.namin g.CommunicationException: localhost:389 [Root exception is java.net.ConnectExcep tion: Connection refused: connect] It keeps saying localhost:389 and I clearly don't have it in the Realm. Here is my setup. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=cn=TomcatRole,dc=vo,dc=net connectionPassword=*** connectionURL=ldap://orlmsdc001:389; digest=MD5 roleBase=dc=roles,dc=vo,dc=net roleName=cn roleSearch=(uniqueMember={0}) roleSubtree=True userPassword=*** userPattern=cn={0},dc=vacationsonly,dc=net / --- Matt Fury [EMAIL PROTECTED] wrote: Hi All, I've been trying for several weeks to compile information on Tomcat and Active Directory through LDAP. I can't quite get all the information I need and I am hoping someone has a link to what needs to be done. I want to use the Realms in Tomcat but I can't seem to connect properly. For some reason it seems to keep trying to connect to localhost even though its not specified. Also, does SSL NEED to be implemented in order to get this to work? I will be doing AD connectivity through LAN only. Thanks. -Matt - 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: EL not working.
What do you mean by not working? It's like saying Tomcat 5 is not working and you want help :-) Please add example/config/more info about what you are trying to do. Look at the jsp-eamples also. The EL the is working! -- Jeanfrancois Wade Chandler wrote: Has anyone been able to use the Expression Lanugage in Tomcat 5.x? I tried to use code from the example pages, but I just get the expression returned and not evaluated. Anyone with any ideas, thanks ahead of time. Wade - 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 can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)
take it easy man :) small question : what about using different virtual hosts in your apache config, then from these contexts , using different config files for mod_jk which will be very simple (you have already validated one of your tomcat instances) my 2 cents Jerome Hi Jerome, Thanks for trying to help me. I have been working on this for several days and I was too upset. Can you please tell me how can I specify different workers2.properties file for each instance since workers2.properties file must be in apache/conf? In the site http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ there is nothing about this. Thanks, Misak _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaMail doesn't work
Thanks for all the replies! Placing the mail.jar and activation.jar under $CATALINA_HOME/common/lib/ solves this problem. But I still don't understand the cause of the problem Also what is the searching order of tomcat when it looks for a java class? Phillip Qin [EMAIL PROTECTED] wrote: Use $CATALINA_HOME/common/lib/mail.jar and activation.jar -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: October 7, 2003 7:29 PM To: Tomcat Users List Subject: RE: JavaMail doesn't work I ran into this problem and I think it was related to having installed multiple versions of Sun's JSDK on the Win2K machine in question. I resolved it by removing all installations of Java and Tomcat and then reinstalling. Not sure what the underlying problem was. My solution was probably overkill, but it worked :) -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 8:39 AM To: Tomcat Users List Subject: JavaMail doesn't work Dear all, I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the SendMailServlet that ships with it. The servlet worked fine on win2000 and it gave the following message on winXP:java.lang.NoClassDefFoundError: javax/mail/Message I guess this is because somehow Tomcat can't find the class. (This is wierd since I do not have the problem on win2000). So I downloaded the JavaMail and copied the mail.jar and activation.jar to $CATALINA_HOME/server/lib. But the problem was still there. Any suggestions? Thanks! - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
Install Tomcat 5.0.12 from Source Code
Hi, I am currently trying to install Tomcat 5.0.12 from the source tgz files. I followed the directions in the BUILDING.txt but I ran into the following error: BUILD FAILED file:/opt/tomcat5/src/jakarta-tomcat-5/build.xml:482: java.io.FileNotFoundException: /opt/tomcat5/src/jakarta-commons/daemon/build.xml (No such file or directory) Any assistance on how I can resolve this problem is greatly appreciated, Regards, ja.S.on Nhan Jason Dang IBM Storage System Technology [EMAIL PROTECTED] 1.408.256.7520 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Active Directory / 2003
This is my realm setup in my server.xml config Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://[domain controller]:389 userBase=OU=Users,OU=Shawmut,DC=[domain],DC=com userSearch=(sAMAccountName={0}) userRoleName=member roleBase=OU=Users,OU=Shawmut,DC=[domain],DC=com roleName=memberOf roleSearch=(memberOf=CN=tomcat,CN=Users,DC=shawmut,DC=com) connectionName=CN=Administrator,CN=Users,DC=shawmut,DC=com connectionPassword=[password] roleSubtree=true userSubtree=true/ hope this helps Russ -Original Message- From: Matt Fury [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 1:03 PM To: Tomcat Users List Subject: Re: Tomcat and Active Directory / 2003 Hey Thanks for the reply. Tried all those to no avail. :-/ I did see the Tomcat realm how-to but I was wondering if there were issues because it is Micro$oft we're trying to connect to and its 2003. Who knows, their standard ldap may not be standard. -Matt --- Yann Cébron [EMAIL PROTECTED] wrote: Two guesses: * Did you try using the IP-address instead or use the FQDN for connectionURL, maybe there's something wrong w/ DNS? * Try w/o MD5 and see if it works then. roleSubtree=True typo - or shouldn't this be true I guess you already found the documentation here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm HTH, Yann BTW: I am using 4.1.27 on Windows 2000 and we're trying to connect to a Windows 2003 AD. Has this changed at all? here is the error trace: Catalina.start: LifecycleException: Exception opening directory server connecti on: javax.naming.CommunicationException: localhost:389 [Root exception is java. net.ConnectException: Connection refused: connect] LifecycleException: Exception opening directory server connection: javax.namin g.CommunicationException: localhost:389 [Root exception is java.net.ConnectExcep tion: Connection refused: connect] It keeps saying localhost:389 and I clearly don't have it in the Realm. Here is my setup. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=cn=TomcatRole,dc=vo,dc=net connectionPassword=*** connectionURL=ldap://orlmsdc001:389; digest=MD5 roleBase=dc=roles,dc=vo,dc=net roleName=cn roleSearch=(uniqueMember={0}) roleSubtree=True userPassword=*** userPattern=cn={0},dc=vacationsonly,dc=net / --- Matt Fury [EMAIL PROTECTED] wrote: Hi All, I've been trying for several weeks to compile information on Tomcat and Active Directory through LDAP. I can't quite get all the information I need and I am hoping someone has a link to what needs to be done. I want to use the Realms in Tomcat but I can't seem to connect properly. For some reason it seems to keep trying to connect to localhost even though its not specified. Also, does SSL NEED to be implemented in order to get this to work? I will be doing AD connectivity through LAN only. Thanks. -Matt - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaMail doesn't work
read this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Also, every page under the 'configuration' and 'administrators' on the left hand side, is of interest to developers as well. -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:51 AM To: Tomcat Users List Subject: RE: JavaMail doesn't work Thanks for all the replies! Placing the mail.jar and activation.jar under $CATALINA_HOME/common/lib/ solves this problem. But I still don't understand the cause of the problem Also what is the searching order of tomcat when it looks for a java class? Phillip Qin [EMAIL PROTECTED] wrote: Use $CATALINA_HOME/common/lib/mail.jar and activation.jar -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: October 7, 2003 7:29 PM To: Tomcat Users List Subject: RE: JavaMail doesn't work I ran into this problem and I think it was related to having installed multiple versions of Sun's JSDK on the Win2K machine in question. I resolved it by removing all installations of Java and Tomcat and then reinstalling. Not sure what the underlying problem was. My solution was probably overkill, but it worked :) -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 8:39 AM To: Tomcat Users List Subject: JavaMail doesn't work Dear all, I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the SendMailServlet that ships with it. The servlet worked fine on win2000 and it gave the following message on winXP:java.lang.NoClassDefFoundError: javax/mail/Message I guess this is because somehow Tomcat can't find the class. (This is wierd since I do not have the problem on win2000). So I downloaded the JavaMail and copied the mail.jar and activation.jar to $CATALINA_HOME/server/lib. But the problem was still there. Any suggestions? Thanks! - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.12, Windows, and file pathnames
Yes, the Linux Tomcat installation has no spaces in its installation path (/usr/local/jakarta-tomcat-5.0.9), but the Windows Tomcat installation path does (C:\Program Files\Apache Software Foundation\Tomcat 5.0). Why cannot Tomcat on Windows handle these spaces? Is URL pathname encoding a Tomcat or Java feature? Wherever this feature exists, I hope it is soon eliminated or corrected. Thanks for your help, Derek -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: October 8, 2003 12:13 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.12, Windows, and file pathnames Derek Mahar wrote: Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0 \w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) The only way you can get a properly URL encoded URL is when you call getResource on the classloader. If you do a diff, you'll see there's no relevant changes that have been made to the classloader between 5.0.9 and 5.0.12. The most likely cause is that you don't have spaces in your Tomcat path on Linux, but you do on Windows. Note: The URL encoding of those paths is a feature which could be removed (it is supposed to fix problems with RMI). -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.12, Windows, and file pathnames
By default, the Tomcat 5 for Windows installation installs to C:\Program Files\Apache Software Foundation\Tomcat 5.0, so by default, the installation path includes spaces. Derek -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: October 8, 2003 11:16 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.12, Windows, and file pathnames Not sure of the exact problem or why 5.0.9 works but 5.0.12 doesn't. However, I would recommend that you not install Tomcat to a path containing spaces. You are just asking for trouble. Also, why are resources in the classpath being modified? If you want to modify resources, you should have those resources under WEB-INF/wikifiles or something like that, not WEB-INF/classes. Better yet, define an context param which the deployer can override in a context configuration file which points to location outside the webapp to write files to. Doing this will keep you in-line with the servlet-spec and best practices. Jake At 11:00 AM 10/8/2003 -0400, you wrote: Is it the responsibility of Tomcat, the application running on Tomcat, or Java to translate or resolve Windows file paths? If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and save its property file, even though this file exists and is both readable and writable. VQWiki generates the following report page: The error had the following message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\ w ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Tomcat's localhost_log reports the following exception: 2003-10-08 10:46:43 Admin: Error in class vqwiki.servlets.AdministrationServlet vqwiki.servlets.WikiServletException: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) Type: -1, C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\webapps\ v qwiki\WEB-INF\classes\vqwiki.properties (The system cannot find the path specified) at vqwiki.servlets.AdministrationServlet.doPost(AdministrationServlet.java : 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat c her.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati o nDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis p atcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa t cher.java:359) at vqwiki.servlets.VQWikiServlet.dispatch(VQWikiServlet.java:39) at vqwiki.servlets.WikiServlet.doPost(WikiServlet.java:375) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo n textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 63) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:149) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 8 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:149) at
Re: Tomcat 5.0.12, Windows, and file pathnames
Derek Mahar wrote: Yes, the Linux Tomcat installation has no spaces in its installation path (/usr/local/jakarta-tomcat-5.0.9), but the Windows Tomcat installation path does (C:\Program Files\Apache Software Foundation\Tomcat 5.0). Why cannot Tomcat on Windows handle these spaces? Is URL pathname encoding a Tomcat or Java feature? Wherever this feature exists, I hope it is soon eliminated or corrected. Well, the problem is the JDK doesn't handle properly URL encoding. So there are obscure bugs sometimes. With TC 5, the idea was to properly encode URLs returned by the classloader, since this is the correct way to do stuff (otherwise, they are just invalid URLs). -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is a good dev-enviroment for servlet/tomcat?
Hello. I am thinking of how I can improve my development enviroment when doing my webapps. Until now, I've used a handcrafted build.xml to make my webapp, and then the usual _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is a good dev-enviroment for servlet/tomcat?
That's a good question, and I'd like to add a question too. How do you setup a server so that if you had 3 developers...each one has their own instance of tomcat running at the same time?? Russ -Original Message- From: joe udder [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: What is a good dev-enviroment for servlet/tomcat? Hello. I am thinking of how I can improve my development enviroment when doing my webapps. Until now, I've used a handcrafted build.xml to make my webapp, and then the usual _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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]
Installing Tomcat 5.0.12 from Source Error
Hi, Actually, i fixed the other problem but then i ran into this problem. Does anyone know why there's a problem with the jakarta-tomcat-connectors? See build error below. build-main: [echo] - Java-utils - [echo] -- puretls.present = ${puretls.present} [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar [echo] -- commons-logging = true [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar [echo] -- modeler = true /usr/share/java/commons-modeler-1.1 /commons-modeler.jar [echo] -- JDK14 = true [javac] Compiling 72 source files to /opt/tomcat/src/jakarta-tomcat-5/build/classes [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:106: package com.sun.net.ssl.internal.ssl does not exist [javac] Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider()); [javac] ^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:122: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.KeyManagerFactory kmf = [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:123: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.KeyManagerFactory.getInstance(algorithm); [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:133: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.TrustManager[] tm = null; [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:136: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.TrustManagerFactory tmf = [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:137: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.TrustManagerFactory.getInstance(SunX509); [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:143: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.SSLContext context = [javac]^ [javac] /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:144: package com.sun.net.ssl does not exist [javac] com.sun.net.ssl.SSLContext.getInstance(protocol); [javac]^ [javac] Note: /opt/tomcat/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPool.java uses or overrides a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 8 errors BUILD FAILED file:/opt/tomcat/src/jakarta-tomcat-connectors/util/build.xml:67: Compile failed; see the compiler error output for details.y Any help is greatly appreciated, Regards, Jason Nhan Dang IBM Storage Systems Technology Institute phone: 1.408.256.7520 email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is a good dev-enviroment for servlet/tomcat?
Hello. I was thinking about methods to improve my so called development enviroment, and I am curious to learn how others do when they work. Until now I use a handcrafted build.xml which by using ant builds the jars, classes, creates WEB-INF and all that stuff. Later I use the normal catalina-scripts to launch and shutdown tomcat4. While it works, it is a slow and ineffective process I guess. I was looking at NetBeans, which seem to have very good support for Tomcat4. I did have some problems with the IDE as it wants things structured one way and I want it another, but I think that is just me being weird ;-) So far it seems good though, but I am still curious on what kind of developmentmethods other people have. Thanks. .ju _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Custom Request Processor
Hi: I am trying to set up a test custom request processor for security checks. In addition I am using tiles for the view component. Here is the struts-config.xml: struts-config form-beans / global-forwardsforward name=ERROR path=/Error.jsp//global-forwards action-mappings action forward=test.defineBasic path=/basic / action type=tiles.Welcome path=/welcome forward name=success path=/simple.jsp redirect=false / /action /action-mappings !-- my controller that extends org.apache.struts.tiles.TilesRequestProcess -- controller processorClass=tiles.controller.LocalRequestProcessor locale=false nocache=true inputForward=true / plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml / /plug-in /struts-config In addition, the web.xml has the standard action servlet defined as Tomcat doesn't seem to like the Tiles servlet. servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class !--servlet-classorg.apache.struts.tiles.ActionComponentServlet/servl et-class-- init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /init-param init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param /servlet While the system operates, the custom request processor clearly isn't being invoked. Any ideas? What should I be extending to get the processPreprocessor? Thanks in advance, Bob Nicholls MIT Lincoln Laboratory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is a good dev-enviroment for servlet/tomcat?
IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. If each of them is working on individual project, each developer can has his/her own application directory in Tomcat. And if they are working as a team on one project, you can use a version control software like CVS to control it. Just make sure nobody modify any system file in Tomcat without consensus, and you will be fine. There is no need for multiple Tomcat within development. But you need a separate installation for the test server, and another installation for the production server. If you must have a separate instance for each developer, you can simply use different port number for each instance. Hope this helps. - Original Message - From: Pitre, Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 01:00 PM Subject: RE: What is a good dev-enviroment for servlet/tomcat? That's a good question, and I'd like to add a question too. How do you setup a server so that if you had 3 developers...each one has their own instance of tomcat running at the same time?? Russ -Original Message- From: joe udder [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: What is a good dev-enviroment for servlet/tomcat? Hello. I am thinking of how I can improve my development enviroment when doing my webapps. Until now, I've used a handcrafted build.xml to make my webapp, and then the usual _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: What is a good dev-enviroment for servlet/tomcat?
Howdy, IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. Why oh why do you think that?? 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: EL not working.
OK. What I have found to be the issue is that you have to define a context. If you don't for some reason that given directory can run jsp's and tag libraries fine, but the EL does not work in them. The setup I had was for a different host. So I had only defined my base context. Then I had a jsp directory which had not been defined to be in a context. This directory was sitting parallel to my ROOT directory so I have ROOT and jsp in the same directory. I guess the confusing part is the error messages. If tomcat would say. Context required to run JSP or servlets I think that would help some of the questions. Probably more informative error messages to match what the setup requires. Does this sound like a good idea? Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is a good dev-enviroment for servlet/tomcat?
Each developer needs their own tomcat on their desktop. There also needs to be a build/staging tomcat server where code to be released is built, packaged, and tested. --Angus -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 2:54 PM To: Tomcat Users List Subject: Re: What is a good dev-enviroment for servlet/tomcat? IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. If each of them is working on individual project, each developer can has his/her own application directory in Tomcat. And if they are working as a team on one project, you can use a version control software like CVS to control it. Just make sure nobody modify any system file in Tomcat without consensus, and you will be fine. There is no need for multiple Tomcat within development. But you need a separate installation for the test server, and another installation for the production server. If you must have a separate instance for each developer, you can simply use different port number for each instance. Hope this helps. - Original Message - From: Pitre, Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 01:00 PM Subject: RE: What is a good dev-enviroment for servlet/tomcat? That's a good question, and I'd like to add a question too. How do you setup a server so that if you had 3 developers...each one has their own instance of tomcat running at the same time?? Russ -Original Message- From: joe udder [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: What is a good dev-enviroment for servlet/tomcat? Hello. I am thinking of how I can improve my development enviroment when doing my webapps. Until now, I've used a handcrafted build.xml to make my webapp, and then the usual _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is a good dev-enviroment for servlet/tomcat?
Hi Joe, Download DevCentre www.likhasoftware.com. It will simplify some stuff for you. Bern - Original Message - From: joe udder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:57 AM Subject: What is a good dev-enviroment for servlet/tomcat? Hello. I am thinking of how I can improve my development enviroment when doing my webapps. Until now, I've used a handcrafted build.xml to make my webapp, and then the usual _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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 context read only ??.
Hi, I want to put an object into the JNDI context, but I get an exception that says the context is read only. Is there a way to make it writable? Context ctx = (Context) new InitialContext().lookup(java:comp/env); ctx = ctx.createSubcontext(glqso); ctx.bind(ResourceManager, _rm); thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with mod_jk and Apache SetHandler
Summary: I have a problem with Tomcat not being called from Apache when Apache has a SetHandler configured for a particular virtual host. For standalone JSP pages Tomcat is called and the JSP runs fine, but trying to access servlets gives me a 404 error. For instance, I get the error_log file shows: File does not exist: /var/tomcat4/webapps/cm/servlet/cm/welcome Details: Server OS: RH 7.3 Server Apache: 1.3.27 Tomcat Version: 4.1.24 Most of our new site is being done with Mason (PERL's version of JSP). However, my part of the site is based on Tomcat. All of my code worked fine on my development server, but when I migrated the code to our testing server the Mason code handler tried to handle the requests for my servlet. (e.g. the error_log showed: File does not exist: /home/httpd/redesign/cm/servlet/cm/welcome) The programmer who was writing the handler re-wrote the handler send an Apache::Declined for the /cm top level directory. This made Apache look for the servlet in another place. (e.g. the error_log showed: File does not exist: /var/tomcat4/webapps/cm/servlet/cm/welcome) This also made the the standalone JSP file start working. There must be a simple configuration problem somewhere, but I can't seem to find it. The http.conf file includes the following directives for the Mason handler: FilesMatch \.html*$|\.csv$|\.txt$|^[^.]*$ SetHandler perl-script PerlHandler Mason::Site::Redesign PerlLogHandler Mason::Site::Redesign-loghandler /FilesMatch I added the following to the .conf file (these config lines worked on my dev server): Alias /cm/ /var/tomcat4/webapps/cm/ Directory /var/tomcat4/webapps/cm Options FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory Location /cm/WEB-INF/* AllowOverride None Deny from all /Location Location /cm/META-INF/* AllowOverride None Deny from all /Location JkMount /cm/*.html ajp13 JkMount /cm/*.jsp ajp13 JkMount /cm/servlet/* ajp13 JkMount /cm/servlet/cm/* ajp13 What am I doing wrong? Thanks. -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overhead of having a WAR file in docPath
Hi, I'm curious what overhead there is in having a war file in the context docPath attribute, eg. Context path=/myapp docBase=/myapp.war .. /Context What's the overhead of this? Ideally, I'd be able to use Context path=/myapp docBase=myapp ... /Context But in this case, Tomcat (4.1.24) does not find and explode the WAR file - even though I have myapp.war and myapp.xml in the webapps/ dir, why? Thanks in advance, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overhead of having a WAR file in docPath
Howdy, You're doing too much I think ;) Do you have any custom things inside the Context element, e.g. a Logger/Valve? If not, you don't need a Context element in server.xml, so take it out and let tomcat discover the webapp. If you do have custom context configuration requirements, use either myapp.xml or a Context tag in server.xml, but not both: they're conflicting. If you don't have custom context configuration requirements, again, drop myapp.xml. I would start with just the .war file in webapps, no myapp.xml, nothing in server.xml, and see what happens. Does tomcat properly discover and deploy your webapp, or does it run into errors? Yoav Shapira Millennium ChemInformatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten Sent: Wednesday, October 08, 2003 3:23 PM To: [EMAIL PROTECTED] Subject: Overhead of having a WAR file in docPath Hi, I'm curious what overhead there is in having a war file in the context docPath attribute, eg. Context path=/myapp docBase=/myapp.war .. /Context What's the overhead of this? Ideally, I'd be able to use Context path=/myapp docBase=myapp ... /Context But in this case, Tomcat (4.1.24) does not find and explode the WAR file - even though I have myapp.war and myapp.xml in the webapps/ dir, why? Thanks in advance, Morten - 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: JNDI context read only ??.
Howdy, The environment context is read-only to apps. You can search the archives for more information as this question has been posted several times. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Remijan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 3:15 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: JNDI context read only ??. Hi, I want to put an object into the JNDI context, but I get an exception that says the context is read only. Is there a way to make it writable? Context ctx = (Context) new InitialContext().lookup(java:comp/env); ctx = ctx.createSubcontext(glqso); ctx.bind(ResourceManager, _rm); thanks, Mike - 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: Accessing Sessions in the container
Hi all, I have a valve defined in my server.xml. I am getting this error upon tomcat startup. Can anyone throw some light as to what I am doing wrong? Thanks ! Oct 8, 2003 3:39:50 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with MrkSessionValve at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.j ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean rLifecycleListener.java:721) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean rLifecycleListener.java:667) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean rLifecycleListener.java:860) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean rLifecycleListener.java:828) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean rLifecycleListener.java:372) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEv verLifecycleListener.java:226) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.j 3) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400 at org.apache.catalina.startup.Catalina.process(Catalina.java:180 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone Apache Tomcat/4.1.24 - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 1:37 PM Subject: RE: Accessing Sessions in the container Oops ! Here it is: 98:org.apache.catalina.HttpRequest req = (org.apache.catalina.HttpRequest)request; 99: System.out.println(after the catalina request); 100: StandardManager manager = (StandardManager)req.getContext().getManager(); 101: Session[] sessions = manager.findSessions(); 102: 103: for(int i=0; isessions.length;i++) 104: { 105: Session tempSession = sessions[i]; 106: writer.println(tempSession); 107: System.out.println(The Session Id is : +tempSession.getId()); 108: } Kailas Enterprise Web Infrastructure -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 4:34 PM To: Tomcat Users List Subject: Re: Accessing Sessions in the container show us line 98 in MyServlet.java:98, the error you are getting is NOT in the valve, Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 1:22 PM Subject: RE: Accessing Sessions in the container I am sorry. How do I get the 'real' stack trace? Thanks for being patient ! Kailas Enterprise Web Infrastructure -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:59 PM To: Tomcat Users List Subject: Re: Accessing Sessions in the container ok, get us the real stack trace, this one shows a classcast exception in your code, not in the valve MyServlet.java:98, hence you have not showed us this code before Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:54 PM Subject: RE: Accessing Sessions in the container Here is the error snippet: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.ClassCastException at org.apache.catalina.servlets.MyServlet.doGet(MyServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) . Thanks ! Kailas Enterprise Web Infrastructure -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, October
RE: mod_jk feature question
Renato, But there is a situation where I need to let Tomcat server everything BUT images ( *.gif and *.jpg ). How can I do this with mod_jk ? If it's not possible to do with mod_jk, is it possible to do in another way (like mod_rewrite maybe ? ) hava a look at mod_rewrite for Apache. There you can define Regexes in your httpd.conf regards, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is a good dev-enviroment for servlet/tomcat?
Just a precaution. We had run into problem before when different developers have different version of Tomcat with different configuration locally. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 01:55 PM Subject: RE: What is a good dev-enviroment for servlet/tomcat? Howdy, IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. Why oh why do you think that?? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
not getting a stacktrace on an exception
I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? 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]
Where does system.out go?
Hello, In a JSP page i'm doing some testing. I have System.out.println() statements in there temporarily. Anyone know where they go? I checked the Context's logger that they are not there. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overhead of having a WAR file in docPath
Hi, Thanks for the suggestions, but the problem is that I'm declaring 2 data sources for my context. Initally, I declared those in server.xml, but that failed and while browsing about in the archives for a solution, I saw that people recommended using a separate XML file in the webapps directory. If I place only the WAR file in the webapps/ dir, it gets expanded fine and works fine, except for the data sources. So I don't have anything in server.xml, only myapp.xml and myapp.war which I copy to webapps/, I start up Tomcat, and it doesn't find the application unless I set docPath to myapp.war, and even then, the WAR file does not get expanded. Thanks, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where does system.out go?
Try catalina.out also in the log directory. -Original Message- From: Michael Remijan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 4:13 PM To: Tomcat Users List Subject: Where does system.out go? Hello, In a JSP page i'm doing some testing. I have System.out.println() statements in there temporarily. Anyone know where they go? I checked the Context's logger that they are not there. Mike - 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: Virtual Host Alias Problem
Hi Lawence, Would you provide sample host tag or server.xml. I have similar issue here. I have 2 domains have different ip addresses with in the same tomcat to set up. will appreciate. Thanks - srini. -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 11:41 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Virtual Host Alias Problem Yes, I just duplicated the host entry and changed the second one from domain to ip. Now both work fine. There should be a better solution but I am happly with it. Wade Chandler [EMAIL PROTECTED] wrote:Yeah the ipaddress tag. Also, you'll notice that you'll have to create extra Host tags if you use anything other than www. As the prefix for your domain name. I have yet to figure that one out. But, am planning on looking at the Alias source code. Has anyone else had this type of a problem with Alias? Lawence you may need to make another host tag for this. This is the type of issue I have been having. I have a domain wade.internal.net and rh1.internal.net and these have to be setup as separate Host names to work. You may experience this with your ip addresses as well. Also, if you are using a different ip address and port other than than the standard one you will need to make sure you have your connectors setup correctly for that. Like 192.168.1.10:80 and 192.168.1.11:80 if on the same box needs to connectors one for each IP. Since they are the same port. -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 12:20 PM To: Tomcat Users List Subject: Virtual Host Alias Problem Dear all, I have a problem setting the name value for the virtual host entry. Suppose my domain name is my.company.net and the ip is 233.333.333.33. If I set the virtual host as my domain name, I can not access the website using the ip. And if I set it as the IP, I can not visit the website via the domain name. I am wondering if there is a way for me to set alias for the virtual host. Thanks in advance. - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where does system.out go?
Dude, you just hijacked my thread! Bad netiquette. Anyway, your System.out.println statements will go to the console, i.e. the command line window where you are running tomcat. If you have no command line window, they will probably get caught in a system.out or system.err file although I'm not sure where. HTH Adam On 10/08/2003 10:13 PM Michael Remijan wrote: Hello, In a JSP page i'm doing some testing. I have System.out.println() statements in there temporarily. Anyone know where they go? I checked the Context's logger that they are not there. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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]
Re: Where does system.out go?
I usually get system.out and/or system.err in the catalina.log file. Ben Ricker Wellinx.com On Wed, 2003-10-08 at 15:36, Adam Hardy wrote: Dude, you just hijacked my thread! Bad netiquette. Anyway, your System.out.println statements will go to the console, i.e. the command line window where you are running tomcat. If you have no command line window, they will probably get caught in a system.out or system.err file although I'm not sure where. HTH Adam On 10/08/2003 10:13 PM Michael Remijan wrote: Hello, In a JSP page i'm doing some testing. I have System.out.println() statements in there temporarily. Anyone know where they go? I checked the Context's logger that they are not there. Mike - 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]
Trying to get past java.net.ConnectException
Problem: Im trying to use an Applet to interact with my Tomcat code via sockets to transfer files. I get the following exception: java.net.ConnectException: Connection refused: connect and it points to a line in my code where I call URLConnection::getOutputStream(); All well and good. I can see where this needs to be protected. I STFW for information about setting tomcat security (since my books don't seem to cover it very well.. bad books I guess) and found this page: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.h tml Sounds like a good thing to try. My applet lives in ${catalina.home}/webapps/viewer so I added this line to my catalina.policy file: grant codebase file:{catalina.home}/webapps/viewer/- { permission java.security.AllPermission; }; and restarted the server with bin/startup.sh -security .. to no avail. The situation hasn't changed. is this the right approach? Am I barking up the wrong proverbial tree? (The applet in question is signed with a test cert - it makes it past client security and sees my local drive ok)
What LDAP servers does JNDI realm support? - (was: Re: JNDI: LDAP Protocol Error (Microsoft LDAP))
jerome moliere wrote: I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). :( As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) I have been told the LDAP protocol is no-100% a standard. That is to say, a lot of providers have realized different offers, which share only 90% of the specification (the core standard). Nowdays, it is said, the Netscape's one being the more recognised/compatible/ standard. So, my question is now: What LDAP products does the JNDI Tomcat realm support? If it is not so, do you advise me any solution to manage autenticating these webapps via JNDI-Microsoft Site Server?. Maybe develop a special Realm?. humm I think you may investigate any other class used in your factory I think that the ContextFactory class is not the right one ... I think you use the one for the Netscape Directory Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4.1, jk2, and apache 1.3
Hi. I am trying to get the mod_jk2 to load into apache 1.3 and I am slowly going insane. I have googled my way around the web and have seen lots of people ask the same type of question I am asking, but there are few good answers. (I feel a bit like that guy in the commercial that finished the internet.) I have in my httpd.conf file: LoadModule jk2_module libexec/mod_jk2.so Include tomcat/conf/auto/mod_jk.conf I have read that there is a way to get tomcat to produce its own mod_jk.conf-auto file, but I cannot find how to do it. I have looked at the jk2 docs a lot, but it seems that they are for a different (incompatible) version. The JkMount directives cannot be added manually either, since mod_jk2 doesn't seem to understand these. What magic do I need to do so that tomcat 4.1 can produce the jk2 config file automatically? Thanks, Mark - Nonviolence is the answer to the crucial political and moral questions of our time; the need for man to overcome oppression and violence without resorting to oppression and violence. -- Martin Luther King Jr. Mark Claassen Donnell Systems, Inc. 300 S. St. Louis Blvd. Ste. 203 South Bend, IN 46617 E-mail: mailto:[EMAIL PROTECTED] Voice: (574)232-3784 Fax: (574)232-4014 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is a good dev-enviroment for servlet/tomcat?
On Thu, 09 Oct 2003 07:54, epyonne wrote: IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. If each of them is working on individual project, each developer can has his/her own application directory in Tomcat. And if they are working as a team on one project, you can use a version control software like CVS to control it. Don't think I agree with this. We are always stopping and starting Tomcat in our environment. We have four developers, each with their own database and tomcat. We use CVS and do a intergration build every morning on all the development machines to ensure no check ins have broken anything. In terms of IDE - I have been using eclipse, other developers like jEdit, or even - god forbid - vim. We don't use netbeans as if forces you to use a odd directory structure. Our structure is something like /project /project/doc - documention /project/bin - classes /project/dist - for war file or jars /project/jsp - jsp's /project/model - business model /project/src - source code. Most tools can handle different paths for these things - probably netbeans can too - but we found netbeans rather slow. We use mainly lightweight tools. Also, idea deserves a mention, and although it costs it has some nice refactoring features. Sorry - don't want to start a general IDE flamewar, so this will be the last I say on this subject :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include statement in servlets
No. A servlet is a standard java class so you cannot perform a compile time code include. -Tim zeallousbigpond.net.au wrote: How do you include a normal jsp or html page in a servlet?... in JSP...to include a page you do: %@ include file=dfaf.jsp % is there a similar way for servlets?? Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UserDatabase
AFAIK, the admin app or manually editing the file are your only choices. A third alternative is to write a simple webapp that also edits tomcat-users.xml. -Tim Duncan Smith wrote: Is there an easy way to administer the tomcat-users.xml file? I need to give a superuser access to add/delete users, but don't want to give access to the admin application. Any suggestions? Cheers, Duncan, Decker Telecom Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EL not working.
Heh? -Tim Wade Chandler wrote: OK. What I have found to be the issue is that you have to define a context. If you don't for some reason that given directory can run jsp's and tag libraries fine, but the EL does not work in them. The setup I had was for a different host. So I had only defined my base context. Then I had a jsp directory which had not been defined to be in a context. This directory was sitting parallel to my ROOT directory so I have ROOT and jsp in the same directory. I guess the confusing part is the error messages. If tomcat would say. Context required to run JSP or servlets I think that would help some of the questions. Probably more informative error messages to match what the setup requires. Does this sound like a good idea? Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI context read only ??.
AFAIK, no. If you need to put stuff in the JNDI context, you can do that via this doc: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html -Tim Michael Remijan wrote: Hi, I want to put an object into the JNDI context, but I get an exception that says the context is read only. Is there a way to make it writable? Context ctx = (Context) new InitialContext().lookup(java:comp/env); ctx = ctx.createSubcontext(glqso); ctx.bind(ResourceManager, _rm); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]