Re: Is deployOnStartup broken?
Erwin Hogeweg wrote: Hi, I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16 server, but the war file does not expand when Tomcat is restarted. I have set the host variable deployOnStartup to true, but even though the war file has a newer timestamp that the deployed folder the file is not re-deployed. That sounds like normal behaviour to me. If updating a WAR whilst Tomcat is not running, I would expect to have to remove the old WAR and old expanded directory. I would also clean out the work directory just to be on the safe side. The file IS redeployed when I 'touch' the war file while Tomcat is running, or when the expanded folder does not exist. Again, I am pretty sure that is what was intended. The catalina.out log file shows Deploying MyWar.war, but nothing really happens. Is there any specific debug logging that I can enable which shows me what is going on? http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?revision=675650view=markup is the source that is handles deployments. The WAR unpacking is handled by ContextConfig in the same package. Some additional logging is available if you turn up logging for these classes. Add: org.apache.catalina.startup.HostConfig=FINE org.apache.catalina.startup.ContextConfig=FINE to your logging.properties Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Logging and URL rewrite
Mohit Anchlia wrote: Is it possible to rewrite URL in tomcat like apache web server. I need to convert abc.com/A to abc.com/B. http://tuckey.org/urlrewrite/ Also catalina.out is just writing infomation at level INFO. I changed the level to ALL in logging.properties but still I don't see DEBUG logs. Is there a way to debug this problem? Tomcat version? Exactly what did you change? http://tomcat.apache.org/tomcat-6.0-doc/logging.html should tell you everything you need to know. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
Sorry, forgot to translate a couple of lines of the stack trace: 2008-09-29 17:57:12 StandardWrapperValve[action]: Excepción de reserva de espacio para servlet action means 2008-09-29 17:57:12 StandardWrapperValve[action]: Exception in memory space reserve for servlet action javax.servlet.ServletException: Servlet.init() para servlet action lanzó excepción means javax.servlet.ServletException: Servlet.init() for servlet action threw exception HIH, JON HAITZ David Smith escribió: Tomcat maintains log files in it's logs directory. All the log files are just plain old text files, typically with timestamps. Just take a read through it for the moment in time when your webapp is deployed and see if there are any error messages. Because you work on a Windows environment, you may have to make a copy of the log file before opening it for reading. Either that or stop Tomcat and then read the file. --David Jon Haitz Legarreta Gorroño wrote: Sorry for my ignorance, but what do you mena by the log files for messages that occur when your webapp starts? Where can I look for them? Thanks for your patience and support, JON HAITZ David Smith escribió: Have you looked at any of the log files for messages that occur when you webapp starts? --David Jon Haitz Legarreta Gorroño wrote: Hi there, thanks for the suggestion David. I am pretty new to all these Web technologies, so I hope I understood well your mail. 1. I've got two versions of the StrutsPageLifecycleFactory and DefaultStrutsPageLifeCycleFactory classes: the first ones located in the folder C:\Program Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions and the other ones in C:\Program Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle (I work under XP and my IDE is Oracle JDeveloper 10g version 10.1.3.0.4) On my previous mail I had a look at the first ones, so therefore, and a you suggested, I was not looking at the one being used when the stack trace is being produced, which is the one contained in the second path. The method yielding the problem is the following one: private static PageLifecycleFactory getDefaultInstance() { if (defaultInstance == null) { defaultInstance = new DefaultStrutsPageLifecycleFactory(); } return defaultInstance; } And line 68 is where the new defaulsInstance is created: defaultInstance = new DefaultStrutsPageLifecycleFactory(); 2. As for the question whether they exist only once in Tomcat, in my Tomcat folder (C:\Tomcat\common\lib), none of them exists; the jars I've got are: ant ant-launcher commons-collentions-3.1 commons-colletions-dbcp-1.2.1 commons-el commons-pool-1.2 jasper-compiler jasper-runtime jasp-api naming-common naming-factory naming-java naming-resources servelt-api tools And C:\Tomcat\common\classes is empty. In the WEB-INF\classes folder of my project, the above-mentioned classes (StrutsPageLifecycleFactory and DefaultStrutsPageLifeCycleFactory) do not exist. In the WEB-INF\lib folder of my project, the jars I've got are: adf-controller commons-beanutils commons-collections commons-digester commons-fileupload commons-lang commons-logging commons-validator DBF_JDBC30 jakarta-oro jmf log4j-1.2.15 mediaplayer mysql-connector-java-3.1.10-bin struts I've found that if I remove the library ADF Controller Runtime from the project properties (the WEB-INF\lib folder has no longer adf-controller), the Web page shows HTTP Status 404: The servelt Action is not available And the localhostlog of Tomcat shows 2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet action is not available in this moment So, due to my lack of expertise, to be sincere, I don't know whether I am giving the right clues. Sorry in that case. And I don't know where the problem may come from. I would appreciate any help. Thanks, JON HAITZ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jon Haitz Legarreta Gorroño Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator VICOMTech - Visual Interaction and Communication Technologies Center Mikeletegi Pasealekua, 57 - Parque Tecnológico E-20009 Donostia - San Sebastián, Spain Tel: +[34] 943 30 92 30 Fax: +[34] 943 30 93 93 e-mail: [EMAIL PROTECTED] http://www.vicomtech.org *** member of INI-GraphicsNet http://www.inigraphics.net *** member of IK4 Research Alliance http://www.ik4.es - VICOMTech is an ISO 9001:2000 certified
Re: Is deployOnStartup broken?
Mark Thomas wrote: Erwin Hogeweg wrote: Hi, I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16 server, but the war file does not expand when Tomcat is restarted. I have set the host variable deployOnStartup to true, but even though the war file has a newer timestamp that the deployed folder the file is not re-deployed. That sounds like normal behaviour to me. If updating a WAR whilst Tomcat is not running, I would expect to have to remove the old WAR and old expanded directory. I would also clean out the work directory just to be on the safe side. The file IS redeployed when I 'touch' the war file while Tomcat is running, or when the expanded folder does not exist. Again, I am pretty sure that is what was intended. The catalina.out log file shows Deploying MyWar.war, but nothing really happens. Is there any specific debug logging that I can enable which shows me what is going on? http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?revision=675650view=markup is the source that is handles deployments. The WAR unpacking is handled by ContextConfig in the same package. Some additional logging is available if you turn up logging for these classes. Add: org.apache.catalina.startup.HostConfig=FINE org.apache.catalina.startup.ContextConfig=FINE to your logging.properties Mark Translation : ;-) Tomcat does not remember the age of war files, between a stop and a start. (In fact, Tomcat probably does not remember anything between a stop and a start). If you stop Tomcat, then replace just the war file, then restart Tomcat, Tomcat looks at the *deployed* application, sees it's still there, and does not check the war file. (And apparently in that case, it does not compare the age of the deployed application files with the war timestamp)(and probably rightly so, because that might be expensive) If you stop Tomcat, then replace the war file and delete the deployed application, then restart Tomcat, Tomcat looks at the *deployed* application, sees it's not there, and thus deploys the war file. As long as you do not stop Tomcat, it remembers the timestamp of the war file. If you do not stop Tomcat and replace the war file, Tomcat notices that its timestamp has changed, and redeploys it, overwriting the previously-deployed version. (or more probably it first stops and deletes the previous application entirely, before re-deploying the war file). (All the above assuming deployOnStartup=true and autoDeploy=true) Correct, Mark ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache/modjk behaviour during shutdown
Hi I am trying to understand the behavior of our application stack during an apache shutdown. This question might not a 100% to this list but is a good place to start. I am trying to understand what the behaviour would be when I shutdown an apache that is connected via modjk to a cluster of tomcats. I was under the impression that when apache is orderly shutdown it will finish processing existing requests not excepting new ones and exit when having done so. Would the same hold true for requests that is currently being processed by the tomcat. Would apache wait for the tomcat threads send via modjk to complete before terminating them? My initial observations has been that this is not the case but I will have to do more detailed analysis to be sure whether this is true or not. Regards __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Is deployOnStartup broken?
André Warnier wrote: Mark Thomas wrote: Erwin Hogeweg wrote: Hi, I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16 server, but the war file does not expand when Tomcat is restarted. I have set the host variable deployOnStartup to true, but even though the war file has a newer timestamp that the deployed folder the file is not re-deployed. That sounds like normal behaviour to me. If updating a WAR whilst Tomcat is not running, I would expect to have to remove the old WAR and old expanded directory. I would also clean out the work directory just to be on the safe side. The file IS redeployed when I 'touch' the war file while Tomcat is running, or when the expanded folder does not exist. Again, I am pretty sure that is what was intended. The catalina.out log file shows Deploying MyWar.war, but nothing really happens. Is there any specific debug logging that I can enable which shows me what is going on? http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?revision=675650view=markup is the source that is handles deployments. The WAR unpacking is handled by ContextConfig in the same package. Some additional logging is available if you turn up logging for these classes. Add: org.apache.catalina.startup.HostConfig=FINE org.apache.catalina.startup.ContextConfig=FINE to your logging.properties Mark Translation : ;-) Tomcat does not remember the age of war files, between a stop and a start. (In fact, Tomcat probably does not remember anything between a stop and a start). It will remember sessions, if the Manager is configured to persist them and it won't re-compile JSPs that have previously been compiled but that is about it. snip/ (All the above assuming deployOnStartup=true and autoDeploy=true) Correct, Mark ? I haven't double checked the code to confirm but that is what I would expect to see. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache/modjk behaviour during shutdown
[EMAIL PROTECTED] wrote: I was under the impression that when apache is orderly shutdown it will finish processing existing requests not excepting new ones and exit when having done so. This is correct. Would the same hold true for requests that is currently being processed by the tomcat. Would apache wait for the tomcat threads send via modjk to complete before terminating them? Nope. mod_jk has no clue about Tomcat's threads. Httpd will unload (any) mod_jk module when the current request(s) is finished (even adding Connection: close to the outgoing headers). If the requests are taking too much time they are forcibly closed then, so the presumption that the current requests will be handled is only true for 'normal' requests. Regards -- ^(TM) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem in running Jconsole remotely --Connection refused
Guys, I am facing problem in running Jconsole remotely . In my machine from where I am running Jconsole I have jdk1.6...I am trying to connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 1,5) ...I have a batch file with the following contents : When I execute the batch file Tomcat is starting okay. But when I am trying to run Jconsole to connect to the Tomcat , I am always getting a connection refused error. I think I have set up the parameters correctly here ? Apart from this all the .bat files that comses bundled with Tomcat6.0.18 are kept same. I can ping the server from my machine without any problem . set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05 set JAVA_OPTS=-Xms1024m -Xmx1024m set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18 CD bin startup BTW there is no problem in connecting locally ...But I don't want that because I want to monitor TOmcat while a load test is on . So resources should be used sparingly in the server . Please suggest the way to generate any extra debug info that I can get to see why this connection refused error is happening . Regards, Subhrajyoti Mobile: +919830079545 Mail: [EMAIL PROTECTED] Web: www.labware.com LabWare LIMS Solutions - Results Count
Tomcat migration from T5 to T5.5 mail
Hello, I'm migrating a Tomcat Cluster, when I thought everything was working fine, session cluster, balancing,etc, I noticed that the mails were not send by the java aplication. I installed the library mail.jar and activation.jar and configured the web.xml and the context.xml as the Official Tomcat notes say. The aplication has not changed and can't change, and it works perfect in the old installed Tomcat 5. The error that I get when the application tries to send the mail is: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:760) at javax.mail.Session.getTransport(Session.java:685) at javax.mail.Session.getTransport(Session.java:628) ... # More errors lije that I have read in some forums that the problem could be that Tomcat is loading that libraries 2 times. I have checked everything and the only folder they are is $CATALINA_HOME/common/lib and they're not in any other place like $CATALINA_HOME/shared/lib or $CATALINA_HOME/webapps/myapplication/* Anyone has any idea why I have this error? Thank you very much -- View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19739822.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem in running Jconsole remotely --Connection refused
[EMAIL PROTECTED] wrote: Guys, I am facing problem in running Jconsole remotely . In my machine from where I am running Jconsole I have jdk1.6...I am trying to connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 1,5) ...I have a batch file with the following contents : When I execute the batch file Tomcat is starting okay. But when I am trying to run Jconsole to connect to the Tomcat , I am always getting a connection refused error. I think I have set up the parameters correctly here ? Apart from this all the .bat files that comses bundled with Tomcat6.0.18 are kept same. I can ping the server from my machine without any problem . set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05 set JAVA_OPTS=-Xms1024m -Xmx1024m set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18 CD bin startup BTW there is no problem in connecting locally ...But I don't want that because I want to monitor TOmcat while a load test is on . So resources should be used sparingly in the server . Please suggest the way to generate any extra debug info that I can get to see why this connection refused error is happening . Have a look at this thread: http://markmail.org/message/r4lwb4ipa6ssaawy The second port is probably blocked by a firewall. The Listener I refer to is now in svn. See: http://svn.apache.org/viewvc?rev=699523view=rev Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat outputs php to stderr
Thank you so far, I will definitely look into Quercus. Still, I would like to understand why output is sent to stderr and if it can be solved (I recall running PHP and tomcat in the past) without problems On Tue, Sep 30, 2008 at 12:04 AM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Serge Fonville [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, September 29, 2008 6:00 PM Subject: Tomcat outputs php to stderr Hi, I am developing a ticket system which should use servlets to connect to the various resources. Currently I am a php developer and busy to learn JSP/TLD/Servlets I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the production server will be running either Gentoo or CentOS). Installation went fine, no errors. just one thing I couldn't resolve. All output generated by php goes directly to the stderr log file instead of the browser (JSP and servlets work fine) I used http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/ and http://wiki.apache.org/tomcat/UsingPhp to configure the two. I started reading about listeners, log4j and servlet mappings. This seemed over the top to me, so I decided to just ask the question here. Any help is greatly appreciated Dont do it this way... run PHP on Apache httpd... its the PHP container... and do your servlet stuff in TC... its a good servlet container. Then put Apache httpd in front of TC... read up on the JK connector... and then to the browser its *one system* Thats how they do it ;) If you insist on wanting the Java PHP layer... Resin is probably the best... they not calling into a PHP engine, they rewrote it in Java... whether they up to date with all modules is the question? Anyway... just trying to show you that you dont have to change a thing... join em ;) Have fun.. --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
I've written this step by step recipe, tested with my tomcat 5.5. You could follow up these instructions and mail sending should work. http://haveacafe.wordpress.com/2008/09/26/113/ Otherwise, can you post your context.xml ? Btw, according SUN's informations, activation.jar is part of the jdk 6, so if you have a recent java version, you don't need it anymore (tomcat doc should be updated). javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:760) It doesn't sound like having double library. Are you sure your smtp mail server is correctly configured ? (test it whith a commadline using sendmail or whatever). -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse *** http://haveacafe.wordpress.com/ Ce message a ete envoye par le serveur IMP de l'EMA. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
AlexM3 wrote: Hello, I'm migrating a Tomcat Cluster, when I thought everything was working fine, session cluster, balancing,etc, I noticed that the mails were not send by the java aplication. I installed the library mail.jar and activation.jar and configured the web.xml and the context.xml as the Official Tomcat notes say. The aplication has not changed and can't change, and it works perfect in the old installed Tomcat 5. The error that I get when the application tries to send the mail is: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:760) at javax.mail.Session.getTransport(Session.java:685) at javax.mail.Session.getTransport(Session.java:628) ... # More errors lije that I have read in some forums that the problem could be that Tomcat is loading that libraries 2 times. I have checked everything and the only folder they are is $CATALINA_HOME/common/lib and they're not in any other place like $CATALINA_HOME/shared/lib or $CATALINA_HOME/webapps/myapplication/* Anyone has any idea why I have this error? The configuration of resources changed significantly between 5.0.x and 5.5.x. Are you using the 5.5.x version? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XP/Vista/Office 2007/IE Compatibility Question
Martin, 3) If the software is not independent of Office 2007, is it compatible with it? If not, what is the compatible version and what are the costs involved in upgrading? MGthe way TC handles Microsoft Compound Documents such as XLS and DOC files are thru POI Apache interface MGhttp://www.apachenews.org/archives/001180.html MGThis common POI interface allows access to HSSF (binary file format, .xls) and XSSF (ooxml file format, .xlsx) MGi think its safe to assume POI access to legacy .doc Documents and .xls Spreadsheets is assumed MGin other words read access to POI docs is almost assured..write capability is another matter There is NOT as much support as you say - please read the note more carefully. The Apache POI project is working on OOXML and this support is limited and in Beta form - POI 3.5 Beta 3 was released just this Sunday. (Announcement attached below.) Support for .doc files is nowhere near as robust as .xls, If you have questions about POI you can send an email to [EMAIL PROTECTED] Regards, Dave From the Apache POI Team: The POI team is pleased to announce the availability of Apache POI 3.5 beta 3, our latest beta including OOXML (Office Open XML) support. Apache POI is well-known in the Java field as a library for reading and writing OLE2 office file formats, such as Excel, PowerPoint, Visio and Word. With POI 3.5, it also support the new OOXML formats introduced in Office 2007. See http://poi.apache.org/ for more details Release Highlights: POI-SS - Java API To Access Microsoft Excel Format Files * This common interface allows access to HSSF (binary file format, .xls) and XSSF (ooxml file format, .xlsx) in the same way * Very similar to HSSF usermodel, allowing easy translation of old code support to the new format * All of HSSF should support this interface * Partial implementation of XSSF for this interface POI-XSSF - Java API To Access Microsoft Excel 2007 OOXML Format Files * partial implementation of high level interface * text extraction supported * low level, low memory parsing supported POI-XSLF - Java API To Access Microsoft PowerPoint 2007 OOXML Format Files * text extraction supported POI-XWPF - Java API To Access Microsoft Word 2007 OOXML File Formats * text extraction supported In addition, all fixes from the forthcoming 3.2 release (svn trunk) are included. This includes a large number of formula fixes and improvements, and initial Publisher file format support. For full changelog details, and documentation, please see /docs/ in the distribution. The documentation on the website reflects the state of work on POI 3.2. The source and binaries can be downloaded from your local mirror: http://www.apache.org/dyn/closer.cgi/poi/dev/ The release is also available from the central Maven repository under Group ID org.apache.poi and Version 3.5-beta3. Note that the ooxml support is not available via Maven, as the dependencies are not packaged. For the Apache POI Team Nick Burch
Re: Tomcat migration from T5 to T5.5 mail
Hello, Firt of all thanks for your fast answer. - My Java versión is jdk1.5.0_06, it's the same that is using the old Tomcat 5 and it works. Anyway I've tried to remove aplication.jar and an error asks for him. - I've tested my linux system mail function and it works, the aplication deployed in Tomcat 5 works too. - My context.xml is: ?xml version=1.0 encoding=UTF-8? !-- The contents of this file will be loaded for each web application -- Context Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ /Context - What i've done to configure the mail is the same as your guide Albretch says: 1. Copy mail.jar and activation.jar to $CATALINA_HOME/common/lib 2. Edit context.xml and add the ressource mail/Session: Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ 3. Edit web.xml and add the resource-ref: resource-ref description Resource reference to a factory for javax.mail.Session instances that may be used for sending electronic mail messages, preconfigured to connect to the appropriate SMTP server. /description res-ref-name mail/Session /res-ref-name res-type javax.mail.Session /res-type res-auth Container /res-auth /resource-ref 4. The code is written and tested. Any idea? -- View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19740598.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem in running Jconsole remotely --Connection refused
Have a look at this thread: http://markmail.org/message/r4lwb4ipa6ssaawy The second port is probably blocked by a firewall. I am not a system guy and have no idea about firewalls..It is a default Windows 2003 Server set up .So I am assuming that whatever is there is there by default and no further tweaking to the server was done . So do you think the default configuration can block the dynamically alloted port ? The Listener I refer to is now in svn. See: http://svn.apache.org/viewvc?rev=699523view=rev So how woud I make it to work with the existing tomcat 6.0.18 ? How long would I have to wait to get it out of the box ( ie 6.0.19+)? Regards, Subhrajyoti Mobile: +919830079545 Mail: [EMAIL PROTECTED] Web: www.labware.com LabWare LIMS Solutions - Results Count Mark Thomas [EMAIL PROTECTED] 09/30/2008 04:34 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: problem in running Jconsole remotely --Connection refused [EMAIL PROTECTED] wrote: Guys, I am facing problem in running Jconsole remotely . In my machine from where I am running Jconsole I have jdk1.6...I am trying to connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 1,5) ...I have a batch file with the following contents : When I execute the batch file Tomcat is starting okay. But when I am trying to run Jconsole to connect to the Tomcat , I am always getting a connection refused error. I think I have set up the parameters correctly here ? Apart from this all the .bat files that comses bundled with Tomcat6.0.18 are kept same. I can ping the server from my machine without any problem . set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05 set JAVA_OPTS=-Xms1024m -Xmx1024m set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18 CD bin startup BTW there is no problem in connecting locally ...But I don't want that because I want to monitor TOmcat while a load test is on . So resources should be used sparingly in the server . Please suggest the way to generate any extra debug info that I can get to see why this connection refused error is happening . Have a look at this thread: http://markmail.org/message/r4lwb4ipa6ssaawy The second port is probably blocked by a firewall. The Listener I refer to is now in svn. See: http://svn.apache.org/viewvc?rev=699523view=rev Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem in running Jconsole remotely --Connection refused
[EMAIL PROTECTED] wrote: Have a look at this thread: http://markmail.org/message/r4lwb4ipa6ssaawy The second port is probably blocked by a firewall. I am not a system guy and have no idea about firewalls..It is a default Windows 2003 Server set up .So I am assuming that whatever is there is there by default and no further tweaking to the server was done . So do you think the default configuration can block the dynamically alloted port ? No idea. Use netstat to find out what port it is using and then talk to your network support folks. The Listener I refer to is now in svn. See: http://svn.apache.org/viewvc?rev=699523view=rev So how woud I make it to work with the existing tomcat 6.0.18 ? In theory, if you download and compile trunk, you should be able to add the three new files (2 class files and one properties file) for the listener to $CATALINA_HOME/lib/org/apache/catalina/mbeans How long would I have to wait to get it out of the box ( ie 6.0.19+)? I need to propose it for 6.0.19 and then it needs 3 more +1 votes than -1 votes before it gets added. There also needs to be a 6.0.19 release for which there are no plans at present. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
AlexM3 wrote: Hello, Firt of all thanks for your fast answer. - My Java versión is jdk1.5.0_06, it's the same that is using the old Tomcat 5 and it works. Anyway I've tried to remove aplication.jar and an error asks for him. You'll need that file, it is only included in 1.6 JDKs Any idea? Your configuration all looks good. Which version of Tomcat are you running? Are you sure there isn't another copy of mail.jar hanging around? What happens if you remove the one you are using? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Data Truncated when proxied from Apache
Hi, I have an application which parses XML. It sits behind an Apache Httpd 2.2 server using mod_proxy_ajp. I am finding that if I POST more than about 1600 chars, the POST gets truncated, and I get an XML parse error. Httpd logs show: [Tue Sep 30 19:40:27 2008] [debug] mod_proxy_ajp.c(206): proxy: got 1380 bytes of data And: [Tue Sep 30 19:40:27 2008] [debug] ajp_header.c(284): ajp_marshal_into_msgb: Header[3] [Content-Length] = [1615] Checking back over my logs, proxy has never got more than 1614 bytes of data. Does anyone have any idea what is cutting this off? I am imagining there may be a setting somewhere which says: Don't pass more than $value bytes of data. S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
Any idea? Your configuration all looks good. Which version of Tomcat are you running? Are you sure there isn't another copy of mail.jar hanging around? What happens if you remove the one you are using? Mark It sounds right, Mark. Although i have said that it wasn't double mail.jar error, it could be that. I experienced putting twice the mail.jar in the server commoon lib and in the webapp libs, and it gives a class cast exception. But having more than one mail library available for mail package can produce this NoSuchProviderException:smtp so. http://forums.sun.com/thread.jspa?messageID=4111277 http://confluence.atlassian.com/display/DOC/Cannot+send+email+due+to+'javax.mail.NoSuchProviderException'+SMTP+error Check also for commons-email-1.0.jar... -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse 30035 Nîmes Cedex 1 - France -- http://haveacafe.wordpress.com Ce message a ete envoye par le serveur IMP de l'EMA. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache/modjk behaviour during shutdown
Would the same hold true for requests that is currently being processed by the tomcat. Would apache wait for the tomcat threads send via modjk to complete before terminating them? Nope. mod_jk has no clue about Tomcat's threads. Httpd will unload (any) mod_jk module when the current request(s) is finished (even adding Connection: close to the outgoing headers). If the requests are taking too much time they are forcibly closed then, so the presumption that the current requests will be handled is only true for 'normal' requests. Regards Thanks Mladen, Is too much time a configurable parameter and what constitutes a normal request. Our application can take anything from 250ms to 2seconds to return an reply. I am guessing that requests that takes 2 seconds will probably be orphaned when the apache_httpd server is shutdown because they take to longer. Regards __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache/modjk behaviour during shutdown
[EMAIL PROTECTED] wrote: Is too much time a configurable parameter and what constitutes a normal request. Our application can take anything from 250ms to 2seconds to return an reply. I am guessing that requests that takes 2 seconds will probably be orphaned when the apache_httpd server is shutdown because they take to longer. Well since you didn't specify which httpd you are running on, I presume it's some unix flavor and 2.2.x. In that case you can use GracefulShutDownTimeout directive to tune how much to wait for that. For windows this is 30 seconds hard-coded value, so the two second requests should be fine in your case. Regards -- ^(TM) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem in running Jconsole remotely --Connection refused
No idea. Use netstat to find out what port it is using and then talk to your network support folks. When the Tomcat server has started with the JMX agent attched to the JVM( Which I suppose it does) , I did a netstat at the server machine and nowhere I saw any entries with the port that I mentioned during startup of the JVM( with the -Dcom.sun.management.jmxremote.port=)...Should I netstat at the client machine also ( where Jconsole is running)after staring Jconsole? Regards, Subhrajyoti Mobile: +919830079545 Mail: [EMAIL PROTECTED] Web: www.labware.com LabWare LIMS Solutions - Results Count Mark Thomas [EMAIL PROTECTED] 09/30/2008 06:12 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: problem in running Jconsole remotely --Connection refused [EMAIL PROTECTED] wrote: Have a look at this thread: http://markmail.org/message/r4lwb4ipa6ssaawy The second port is probably blocked by a firewall. I am not a system guy and have no idea about firewalls..It is a default Windows 2003 Server set up .So I am assuming that whatever is there is there by default and no further tweaking to the server was done . So do you think the default configuration can block the dynamically alloted port ? No idea. Use netstat to find out what port it is using and then talk to your network support folks. The Listener I refer to is now in svn. See: http://svn.apache.org/viewvc?rev=699523view=rev So how woud I make it to work with the existing tomcat 6.0.18 ? In theory, if you download and compile trunk, you should be able to add the three new files (2 class files and one properties file) for the listener to $CATALINA_HOME/lib/org/apache/catalina/mbeans How long would I have to wait to get it out of the box ( ie 6.0.19+)? I need to propose it for 6.0.19 and then it needs 3 more +1 votes than -1 votes before it gets added. There also needs to be a 6.0.19 release for which there are no plans at present. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
Hello, Here is the result of a find in the tomcat5.5 directory # find /usr/local/tomcat5.5_svh/ -name *mail* /usr/local/tomcat5.5_svh/common/lib/mail.jar # Is there any path that Tomcat could be loading? If I move mail.jar out of $CATALINA_HOME it says the same: javax.mail.NoSuchProviderException: No provider for smtp at javax.mail.Session.getProvider(Session.java:433) at javax.mail.Session.getTransport(Session.java:627) ... If I move mail.jar out of $CATALINA_HOME it says: javax.servlet.ServletException: javax/activation/DataSource org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) ... -- View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19743187.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat error
I have installed tomcat and works localhost:8080 I have the redirector for IIS and it does not seem to do it. The tomcat errors are as follows: [174 javajni.c] [error] The specified module could not be found. [[994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll [1269 prunsrv.c] [error] ServiceStart returned 1 [174 javajni.c] [error] The specified module could not be found. [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll [1269 prunsrv.c] [error] ServiceStart returned 1 Can someone help me please?
Re: Tomcat Logging and URL rewrite
Tomcat version is 5.5 and I changed org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to ALL On Tue, Sep 30, 2008 at 1:52 AM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: Is it possible to rewrite URL in tomcat like apache web server. I need to convert abc.com/A to abc.com/B. http://tuckey.org/urlrewrite/ Also catalina.out is just writing infomation at level INFO. I changed the level to ALL in logging.properties but still I don't see DEBUG logs. Is there a way to debug this problem? Tomcat version? Exactly what did you change? http://tomcat.apache.org/tomcat-6.0-doc/logging.html should tell you everything you need to know. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat error
I have installed tomcat and works localhost:8080 I have the redirector for IIS and it does not seem to do it. The tomcat errors are as follows: [174 javajni.c] [error] The specified module could not be found. [[994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll [1269 prunsrv.c] [error] ServiceStart returned 1 [174 javajni.c] [error] The specified module could not be found. [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll [1269 prunsrv.c] [error] ServiceStart returned 1 Can someone help me please?
Re: Tomcat migration from T5 to T5.5 mail
Sorry the second error was obviosly without activation.jar, no mail.jar again. AlexM3 wrote: Hello, Here is the result of a find in the tomcat5.5 directory # find /usr/local/tomcat5.5_svh/ -name *mail* /usr/local/tomcat5.5_svh/common/lib/mail.jar # Is there any path that Tomcat could be loading? If I move mail.jar out of $CATALINA_HOME it says the same: javax.mail.NoSuchProviderException: No provider for smtp at javax.mail.Session.getProvider(Session.java:433) at javax.mail.Session.getTransport(Session.java:627) ... If I move mail.jar out of $CATALINA_HOME it says: javax.servlet.ServletException: javax/activation/DataSource org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) ... -- View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19744101.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
- Original Message - From: AlexM3 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, September 30, 2008 12:53 PM Subject: Tomcat migration from T5 to T5.5 mail Hello, I'm migrating a Tomcat Cluster, when I thought everything was working fine, session cluster, balancing,etc, I noticed that the mails were not send by the java aplication. I installed the library mail.jar and activation.jar and configured the web.xml and the context.xml as the Official Tomcat notes say. The aplication has not changed and can't change, and it works perfect in the old installed Tomcat 5. The error that I get when the application tries to send the mail is: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:760) at javax.mail.Session.getTransport(Session.java:685) at javax.mail.Session.getTransport(Session.java:628) ... # More errors lije that I have read in some forums that the problem could be that Tomcat is loading that libraries 2 times. I have checked everything and the only folder they are is $CATALINA_HOME/common/lib and they're not in any other place like $CATALINA_HOME/shared/lib or $CATALINA_HOME/webapps/myapplication/* Anyone has any idea why I have this error? Thank you very much Hi Alex, dont know but I think you should go get the new activation and mail jars and try them... just a hunch that if all else is the same, the libs are now old... Those Provider classes are properties inside mail.jar... maybe they have changed... dont know, but worth a try... Just for Info I dont use the JNDI and have no problems on any JRE or any Tomcat... so if you get really desperado I dump the Mail and Act jars into the web app... and getting a session looks like this... try{ java.util.Properties properties = System.getProperties(); properties.put(mail.smtp.host, smtpHost); session = Session.getInstance(properties,null); } catch(Exception e) { //Oops } It seems not to care if Sun changes its mind... Have Fun --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat migration from T5 to T5.5 mail
Quoting AlexM3 [EMAIL PROTECTED]: Hello, Here is the result of a find in the tomcat5.5 directory # find /usr/local/tomcat5.5_svh/ -name *mail* /usr/local/tomcat5.5_svh/common/lib/mail.jar # Is there any path that Tomcat could be loading? Check for smtp.jar too (i don't know if you use it). Other path are your own classpath and environment variable such as PATH, etc... tomcat startup is echoing the path looked at when you call startup.sh. If I move mail.jar out of $CATALINA_HOME it says the same: javax.mail.NoSuchProviderException: No provider for smtp at javax.mail.Session.getProvider(Session.java:433) at javax.mail.Session.getTransport(Session.java:627) ... You said : It works before, and code has and won't be changed, but are you trying using the same javamail API version as in you previous working configuration ? Moreover,i suggest you to call session.setDebug(true) on you session object, so that you will have more verbose debugging output! You wil be able to trace mail.jar initialisation. ref: http://java.sun.com/products/javamail/FAQ.html#debug -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse 30035 Nîmes Cedex 1 - France -- http://haveacafe.wordpress.com Ce message a ete envoye par le serveur IMP de l'EMA. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Logging and URL rewrite
Mohit Anchlia wrote: Tomcat version is 5.5 and I changed That helps a little, but there are 28 different Tomcat 5.5 versions. http://tomcat.apache.org/tomcat-5.5-doc/logging.html should help org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to ALL That won't show you any internal Tomcat logging. Mark On Tue, Sep 30, 2008 at 1:52 AM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: Is it possible to rewrite URL in tomcat like apache web server. I need to convert abc.com/A to abc.com/B. http://tuckey.org/urlrewrite/ Also catalina.out is just writing infomation at level INFO. I changed the level to ALL in logging.properties but still I don't see DEBUG logs. Is there a way to debug this problem? Tomcat version? Exactly what did you change? http://tomcat.apache.org/tomcat-6.0-doc/logging.html should tell you everything you need to know. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirector
Tomcat redirector for iss not working I can http://localhost:8080/app/servlet but not http://localhost/app/servlet -- error page could not be found I have no errors in the event viewer or tomcat logs Thanks Frank
Re: Tomcat migration from T5 to T5.5 mail
Hi, Just a thought, but you might want to check the permissions on the jar files. I've gotten errors like that when I lacked permission to read. Regards, Dave On Sep 30, 2008, at 6:54 AM, AlexM3 wrote: Hello, Firt of all thanks for your fast answer. - My Java versión is jdk1.5.0_06, it's the same that is using the old Tomcat 5 and it works. Anyway I've tried to remove aplication.jar and an error asks for him. - I've tested my linux system mail function and it works, the aplication deployed in Tomcat 5 works too. - My context.xml is: ?xml version=1.0 encoding=UTF-8? !-- The contents of this file will be loaded for each web application -- Context Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ /Context - What i've done to configure the mail is the same as your guide Albretch says: 1. Copy mail.jar and activation.jar to $CATALINA_HOME/common/lib 2. Edit context.xml and add the ressource mail/Session: Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ 3. Edit web.xml and add the resource-ref: resource-ref description Resource reference to a factory for javax.mail.Session instances that may be used for sending electronic mail messages, preconfigured to connect to the appropriate SMTP server. /description res-ref-name mail/Session /res-ref-name res-type javax.mail.Session /res-type res-auth Container /res-auth /resource-ref 4. The code is written and tested. Any idea? -- View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19740598.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Logging and URL rewrite
That's just for the logging from my application. On Tue, Sep 30, 2008 at 8:57 AM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: Tomcat version is 5.5 and I changed That helps a little, but there are 28 different Tomcat 5.5 versions. http://tomcat.apache.org/tomcat-5.5-doc/logging.html should help org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to ALL That won't show you any internal Tomcat logging. Mark On Tue, Sep 30, 2008 at 1:52 AM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: Is it possible to rewrite URL in tomcat like apache web server. I need to convert abc.com/A to abc.com/B. http://tuckey.org/urlrewrite/ Also catalina.out is just writing infomation at level INFO. I changed the level to ALL in logging.properties but still I don't see DEBUG logs. Is there a way to debug this problem? Tomcat version? Exactly what did you change? http://tomcat.apache.org/tomcat-6.0-doc/logging.html should tell you everything you need to know. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Time Zones on one Tomcat instance?
We currently have two webapps located on a single instance of Tomcat 5.5.25 for one of our International customers. The host OS is set as GMT, and they are happy about this as users access the site from all over the world. However, they want us to host another webapp specifically for French users, and they want this to show French time. Is there any way we can serve mutliple webapps from a single Tomcat instance, with mutliple timezones? Thanks in advance. John - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirector
Frank Uccello wrote: Tomcat redirector for iss not working That is quite unlikely, because there must be at least 10,000 installations out there where it is working. I can http://localhost:8080/app/servlet but not http://localhost/app/servlet -- error page could not be found So, the problem is probably (certainly ?) with your installation or your configuration. I am not saying this to nag you, it's just logical from your description above. I have no errors in the event viewer I am no expert on the IIS/AJP redirector setup, but which errors did you expect to see there ? Does the documentation of the IIS/AJP redirector mention anything about a separate logfile for the redirector, that you can set up somewhere ? or tomcat logs That would be normal, if IIS is not redirecting these links to Tomcat, Tomcat would never see these request, so it would not log anything about them. A good point to start : In the Tomcat server.xml file, there is a Connector tag that corresponds to the port to which the IIS/AJP redirector is supposed to talk to (and probably it says port=8009). In Windows, there exists a netstat program that shows all the open and listening ports on your system. If in a command window, you enter netstat -an, in the output do you see any mention of the port number that is indicated in the Connector tag of Tomcat ? If there is, then the next step would be to verify, in the configuration of the IIS/AJP redirector, if the port to which it talks to Tomcat corresponds, and if the host to which it talks to Tomcat is localhost or 127.0.0.1. I'm sorry if I can not be more specific, but I don't have an IIS running here. I do have an Apache+Tomcat running under Windows though. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Time Zones on one Tomcat instance?
From: John Gardner [mailto:[EMAIL PROTECTED] Subject: Multiple Time Zones on one Tomcat instance? Is there any way we can serve mutliple webapps from a single Tomcat instance, with mutliple timezones? Tomcat itself doesn't care about time zones, and a single JVM instance will only use one time zone at a time (no pun intended). You could run two instances of Tomcat, one for the French, and one for the less picky rest of the world. Other than that, you'd have to make the adjustments in the webapp itself to be cognizant of each client's time preference. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat outputs php to stderr
- Original Message - From: Serge Fonville [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, September 30, 2008 1:08 PM Subject: Re: Tomcat outputs php to stderr Thank you so far, I will definitely look into Quercus. Still, I would like to understand why output is sent to stderr and if it can be solved (I recall running PHP and tomcat in the past) without problems You probably in the wrong mailing list... should be asking the guys that made this third party stuff... But I had a little look look and I cant event find the PECL servlet in the current PHP stuff... This custom servlet, is calling JNI, thats talking to PHP... and it seems PHP has no interest, Tomcat guys are into servlets, so I'd say its broken... unless you backup to an earlier era... My guess, the JNI is failing... the stream is getting dumped to standard err... I found this page, where some guy has tried to fix it on his lonesome... http://chen-lahav-software-thoughts.blogspot.com/ Good luck... looks like no one cares (; --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat outputs php to stderr
- Original Message - From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, September 30, 2008 6:56 PM Subject: Re: Tomcat outputs php to stderr - Original Message - From: Serge Fonville [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, September 30, 2008 1:08 PM Subject: Re: Tomcat outputs php to stderr Thank you so far, I will definitely look into Quercus. You know... I hope TC is watching whats happening here... there is zero support for PHP in tomcat and its understandable because sticking in behind a Java layer just doesnt make sense to me... but it seems that it did work onece upon a time... This is what I'm thinking and I dont think it would be very difficult fo guru's like Mladen Turk to do... Tomcat has the option of running on APR (Apache Run Time)... how difficult would it be to add as an option... the Apache PHP engine as a layer on that. So Tomcat and PHP are seperate... its just a convenience thing... got a few PHP pages no problem... use Tomcats APR-PHP Why not... else Resin is onto a good thing ;) Serge is right if he's now a little pissed off... even if thats not TC fault... I think --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Url rewrite
I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat enables setlocal on Windows_NT and will not see setenv variables
Okay, I feel silly now. I jus realized that XP returns Windows_NT from the OS variable. And my Tomcat install works fine in XP. So it's apparently something besides the setlocal. Which leaves me back at square one. :( Any suggestions? On Tue, Sep 30, 2008 at 1:10 PM, Bai Shen [EMAIL PROTECTED] wrote: I use setenv.bat to point tomcat to my JRE and set some other options. However, when running on an OS that returns Windows_NT from the OS environment variable, Tomcat sets all of the batch files to setlocal. Therefore, when setclasspath.bat is run, it doesn't see any of the variables that were set by setenv.bat Now I know I could set them globally for the machine or user, but I'd rather not do that. I also don't want to edit the tomcat bat files to turn off the setlocal commands. Speaking of which, does anyone know what the reasoning behind the setlocal is in the first place? Any advice would be appreciated. TIA. Bai Shen
Re: Url rewrite
Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping If you uncomment the init-param items above, youll get debug output. And of course you'll need a file urlrewrite.xml in your WEB-INF to express the rules you want. One of my projects has rules that look like this: rule from^/ContactUs$/from to type=forward/ContactUs.do/to /rule outbound-rule from^/ContactUs.do$/from to/ContactUs/to /outbound-rule My own experience is that tuckey rewrite is very fast. --Ken On Sep 30, 2008, at 1:35 PM, Mohit Anchlia wrote: I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat stops with error after calling setclasspath.bat
Okay, if I keep this up I'll be able to fit both feet in my mouth. Apparently setclasspath.bat does see the variables set in setenv.bat It was my troubleshooting method that was faulty. Basically, the problem boils down to the fact that right after setclasspath.bat is call, there's the following line in catalina.bat if errorlevel 1 goto end That's the last line I see before everthing stops. I had assumed there was a problem with the setclasspath.bat file, but the last line from that is goto end, which AFAIK, skips over the exit /b 1 So for some reason, on Windows 2000 and 2003 Server only, Tomcat won't start. I get no error at all. I had to remove the echo off statements to see that it was stopping after setclasspath.bat Hopefully this will be the last of me sticking my foot in my mouth. :) On Tue, Sep 30, 2008 at 1:37 PM, Bai Shen [EMAIL PROTECTED] wrote: Okay, I feel silly now. I jus realized that XP returns Windows_NT from the OS variable. And my Tomcat install works fine in XP. So it's apparently something besides the setlocal. Which leaves me back at square one. :( Any suggestions? On Tue, Sep 30, 2008 at 1:10 PM, Bai Shen [EMAIL PROTECTED] wrote: I use setenv.bat to point tomcat to my JRE and set some other options. However, when running on an OS that returns Windows_NT from the OS environment variable, Tomcat sets all of the batch files to setlocal. Therefore, when setclasspath.bat is run, it doesn't see any of the variables that were set by setenv.bat Now I know I could set them globally for the machine or user, but I'd rather not do that. I also don't want to edit the tomcat bat files to turn off the setlocal commands. Speaking of which, does anyone know what the reasoning behind the setlocal is in the first place? Any advice would be appreciated. TIA. Bai Shen
Re: redirector
Frank Uccello wrote: Tomcat redirector for iss not working I can http://localhost:8080/app/servlet but not http://localhost/app/servlet -- error page could not be found I have no errors in the event viewer or tomcat logs Is /app included in the uriworkermap.properties. Also in the redirector directory, there should be a logs sub directory. Anything written there? Also with version IIS and Windows? -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement for Cloud Computing http://www.ngasi.com NEW! FREE Developer account for Hosted version on Amazon EC2 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Url rewrite
I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. Also, is adding just rule not enough? Why do we also need to add a filter. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen [EMAIL PROTECTED] wrote: Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping If you uncomment the init-param items above, youll get debug output. And of course you'll need a file urlrewrite.xml in your WEB-INF to express the rules you want. One of my projects has rules that look like this: rule from^/ContactUs$/from to type=forward/ContactUs.do/to /rule outbound-rule from^/ContactUs.do$/from to/ContactUs/to /outbound-rule My own experience is that tuckey rewrite is very fast. --Ken On Sep 30, 2008, at 1:35 PM, Mohit Anchlia wrote: I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Url rewrite
Below... On Sep 30, 2008, at 1:58 PM, Mohit Anchlia wrote: I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. request abc.com/a doesn't get to B.war BECAUSE it is changed to abc.com/b. Also, is adding just rule not enough? Why do we also need to add a filter. You need the filter to apply the rule to the incoming request to convert as you desire. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen [EMAIL PROTECTED] wrote: Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping If you uncomment the init-param items above, youll get debug output. And of course you'll need a file urlrewrite.xml in your WEB-INF to express the rules you want. One of my projects has rules that look like this: rule from^/ContactUs$/from to type=forward/ContactUs.do/to /rule outbound-rule from^/ContactUs.do$/from to/ContactUs/to /outbound-rule My own experience is that tuckey rewrite is very fast. --Ken On Sep 30, 2008, at 1:35 PM, Mohit Anchlia wrote: I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Time Zones on one Tomcat instance?
I am pretty sure there are jsp features to do this but if not it would be quite simple to create a new tag that checks the locale of the request and adjust the time returned to reflect the locale. Then just use that tag anywhere the time is needed. 2008/9/30 Caldarale, Charles R [EMAIL PROTECTED] From: John Gardner [mailto:[EMAIL PROTECTED] Subject: Multiple Time Zones on one Tomcat instance? Is there any way we can serve mutliple webapps from a single Tomcat instance, with mutliple timezones? Tomcat itself doesn't care about time zones, and a single JVM instance will only use one time zone at a time (no pun intended). You could run two instances of Tomcat, one for the French, and one for the less picky rest of the world. Other than that, you'd have to make the adjustments in the webapp itself to be cognizant of each client's time preference. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat getting insufficient POST data
I have an application that parses xml. I send it xml using another little app, which makes an http post. The averge size of a post is about 3000 characters. Here is the significant information: * I have a system which is being replaced, which consists of RHEL3, httpd 2.0, mod_jk and Tomcat 6.0.16 * I have a new system, to replace the old one, which consists of 3 x Tomcat 6.0.16 machines, to be load balanced. Testing: * Submitting straight to one of the new tomcat 6.0.16 machines, over http, works without fail - the XML is parsed. * Submitting to the old system (httpd 2.0 using mod_jk, with tomcat 6.0.16 on the same box) works fine. * Submitting to a separate machine, running httpd 2.2, and using mod_proxy_ajp to proxy to tomcat 6.0.16 only works if the POST is smaller than about 1600 bytes, otherwise the data appears to be unterminated to the app. Tcpdump shows where the data continues into a second packet, and this is exactly where the app says the xml is unterminated. * Submitting to a separate machine using nginx or httpd, and proxying via http to a tomcat machinen works fine, only the very first time after a tomcat restart. Thereafter it fails, in the same way - complaining about unterminated XML. As soon as Tomcat is restarted, the very next one works, and then fails again thereafter. Can anyone see a pattern here? I can't see a way through any more, and it's looking like we can't find any way to load-balance, or even simply proxy to Tomcat reliably. I'm at my wit's end... so any help would be most gratefully received. S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: XP/Vista/Office 2007/IE Compatibility Question
Hi Good afternoon. My company, Centocor, is in the process of upgrading its operating System from Windows 2000 to XP/Vista and its Office 2000 to Office 2007. They have installed on, I'm not sure how many, some computers Apache Tomcat, version 5.5. Please answer the following questions at your earliest convenience: 1) Is the software compatible with XP? If not, what is the compatible version and what are the costs involved in upgrading? 2) Is the software compatible with Vista? If not, what is the compatible version and what are the costs involved in upgrading? 3) If the software is not independent of Office 2007, is it compatible with it? If not, what is the compatible version and what are the costs involved in upgrading? 4) If the software is not independent of IE, what versions of it are compatible? Basically I get the idea, you have no idea what tomcat is all aboout. Check out it's homepage first. Upgrading has no costs except for you to learn how to. Most web applications are compatible with every version of tomcat, but that depends on your webapps. You need to check those. Tomcat itself only depends on the JVM, which is already available for any windows. Tomcat's service helper may need adjustments, I don't know. You not going to have any problems with the above... except that Vista is alergic to a hell of a lot of good stuff... if you can, try stay on XP... nothing to do with Tomcat... Vista sucks... This is off-topic and this list is not a good place to discuss about advantages or disadvantages of vista. However I want to note, that there are people, who prefer vista over xp, like me. (I agree, the windows explorer made a little step back, but overall it's IMHO better.) http://www.iexbeta.com/wiki/index.php/Windows_Vista_RC_1_Software_Compatibil ity_List Did you note the RC_1 in the url? Vista is at SP1 and things are different now. Also I want to note, that every decent program I use, worked on vista flawlessly since RC1... Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: Url rewrite
So does it mean even if the URL is abc/a it will still be routed to the abc/b servlet even though Urlrewrite.xml rule is inside B.war. I am confused in the sense that for tomcat to know if it has to route that request to abc/b wouldn't the URLrewrite need to occur somewhere outside of B.war? On Tue, Sep 30, 2008 at 11:07 AM, Ken Bowen [EMAIL PROTECTED] wrote: Below... On Sep 30, 2008, at 1:58 PM, Mohit Anchlia wrote: I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. request abc.com/a doesn't get to B.war BECAUSE it is changed to abc.com/b. Also, is adding just rule not enough? Why do we also need to add a filter. You need the filter to apply the rule to the incoming request to convert as you desire. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen [EMAIL PROTECTED] wrote: Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping If you uncomment the init-param items above, youll get debug output. And of course you'll need a file urlrewrite.xml in your WEB-INF to express the rules you want. One of my projects has rules that look like this: rule from^/ContactUs$/from to type=forward/ContactUs.do/to /rule outbound-rule from^/ContactUs.do$/from to/ContactUs/to /outbound-rule My own experience is that tuckey rewrite is very fast. --Ken On Sep 30, 2008, at 1:35 PM, Mohit Anchlia wrote: I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat getting insufficient POST data
On Tue, Sep 30, 2008 at 8:12 PM, Stephen Nelson-Smith [EMAIL PROTECTED] wrote: Testing: * Submitting straight to one of the new tomcat 6.0.16 machines, over http, works without fail - the XML is parsed. Ok so now it transpires that actually direct http to Tomcat never worked more than once, after a tomcat restart either. So the only thing that works is the mod_jk setup. This makes me very suspicious - why would it work only once? Can I cluster with mod_jk and apache 2.2? S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
Hi The method yielding the problem is the following one: private static PageLifecycleFactory getDefaultInstance() { if (defaultInstance == null) { defaultInstance = new DefaultStrutsPageLifecycleFactory(); } return defaultInstance; } Make that function *synchronized* ! Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: Tomcat getting insufficient POST data
Stephen Nelson-Smith wrote: On Tue, Sep 30, 2008 at 8:12 PM, Stephen Nelson-Smith [EMAIL PROTECTED] wrote: Testing: * Submitting straight to one of the new tomcat 6.0.16 machines, over http, works without fail - the XML is parsed. Ok so now it transpires that actually direct http to Tomcat never worked more than once, after a tomcat restart either. So the only thing that works is the mod_jk setup. This makes me very suspicious - why would it work only once? Can I cluster with mod_jk and apache 2.2? Absolutely. Have you checked that the request is valid. For example, does the content length header agree with what you are sending? I would use mod_proxy_http rather than mod_jk and then dig out wireshark to see exactly what is going on. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Tomcat core team and community for your work on Tomcat ! Mobicents Sip Servlets version 0.6, Sip Servlets 1.1 (JSR 289) certified, released !!
We are happy to announce the public availability of Mobicents Sip Servlets v0.6 ! Mobicents Sip Servlets extends Tomcat to provide converged SIP capabilities as defined per Sip Servlets 1.1 specification. The Mobicents Team (http://www.mobicents.org) would like to give special thanks to the Tomcat people that build the Tomcat container on which this work has been made possible. This release features the first open source containers certified for Sip Servlets 1.1 (JSR 289) compliance !!! Both containers Tomcat and JBoss passed the TCK tests : See our TCK Jboss results : http://hudson.jboss.org/hudson/job/MobicentsSipServletsReleaseTest/76/testReport See our TCK Tomcat results : http://hudson.jboss.org/hudson/job/MobicentsSipServletsTomcatReleaseTest/13/testReport What is included in this release: - * Mobicents SIP Servlets (JSR 289) certified containers (Sip Servlets working on top of Tomcat and JBoss) * Management Console * Educational converged example : Click To Call * Mobicents Media Server 1.0.0-BETA4 (Only for the JBoss distro) * The Mobicents SIP load Balancer: http://www.mobicents.org/load-balancer.html (Only JBoss distro) * The server/all profile configured for clustering in JBoss with predeployed simple-sip-servlet-distributable application to test clustering and mid call failover (Only JBoss distro) Project site : --- Mobicents Sip Servlets homepage : http://www.mobicents.org/products_sip_servlets.html Where to download from? --- The distribution can be found on sourceforget.net : https://sourceforge.net/project/showfiles.php?group_id=102670package_id=262024release_id=629778 SVN tag: * SVN checkout http://mobicents.googlecode.com/svn/tags/sip-servlets/release-0.6 * SVN browsing http://code.google.com/p/mobicents/source/browse/tags/sip-servlets/release-0.6 Source repositories: --- * SVN checkout http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets * SVN browsing http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-servlets How to get started: --- You'll find online instructions at You can also check out the user guide http://hudson.jboss.org/hudson/job/MobicentsDocumentation/lastSuccessfulBuild/artifact/html_single/index.html#chapter-Mobicents_SIP_Servlets_Server or http://www.mobicents.org/installation.html on how to get the server running. Once the server is running, you'll find online instructions at http://www.mobicents.org/examples.html to try out the examples. Alternatively, there is a README file in the top directory of both zip files. container-SIP-SERVLETS-README.txt Roadmap - To check our progress and know what lies ahead for the Mobicents Sip Servlets project now that it has been certified, please check out http://www.mobicents.org/roadmap.html Looking forward to your feedback: - please feel free to post a mail on the mailing list of Mobicents public google group [EMAIL PROTECTED] or post an issue on google code http://code.google.com/p/mobicents/issues/list. Mobicents Sip Servlets Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamically adding a resource to a context
Hi all, I'm honestly not positive that what I want to do is a good idea but the basic concept is that I want to dynamically add a Resource (a JNDI JDBC DataSource) to a Context. The idea is that I will be dynamically creating databases for new users and want to have a database connection pool for each user. I've been able to simply hand modify ${catalina.home}/conf/Catalina/localhost/contextname.xml and seen that I can now access the new DataSource. What I'm looking for is a programmatic way to do the same thing, short of parsing and rewriting the XML myself. I've dug though the MBean classes and am honestly a bit confused. Is there something that I'm missing? This is Tomcat 6.0.18 under Linux and/or Windows. Thanks for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Url rewrite
Yes. I assumed you were putting the rewrite in A.war. On Sep 30, 2008, at 3:41 PM, Mohit Anchlia wrote: So does it mean even if the URL is abc/a it will still be routed to the abc/b servlet even though Urlrewrite.xml rule is inside B.war. I am confused in the sense that for tomcat to know if it has to route that request to abc/b wouldn't the URLrewrite need to occur somewhere outside of B.war? On Tue, Sep 30, 2008 at 11:07 AM, Ken Bowen [EMAIL PROTECTED] wrote: Below... On Sep 30, 2008, at 1:58 PM, Mohit Anchlia wrote: I think I don't really understand how it works. So if my request abc.com/a doesn't even get to B.war i.e abc.com/b then how would having filters in web.xml help. request abc.com/a doesn't get to B.war BECAUSE it is changed to abc.com/b. Also, is adding just rule not enough? Why do we also need to add a filter. You need the filter to apply the rule to the incoming request to convert as you desire. On Tue, Sep 30, 2008 at 10:48 AM, Ken Bowen [EMAIL PROTECTED] wrote: Something like the following might be helpful for your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping If you uncomment the init-param items above, youll get debug output. And of course you'll need a file urlrewrite.xml in your WEB-INF to express the rules you want. One of my projects has rules that look like this: rule from^/ContactUs$/from to type=forward/ContactUs.do/to /rule outbound-rule from^/ContactUs.do$/from to/ContactUs/to /outbound-rule My own experience is that tuckey rewrite is very fast. --Ken On Sep 30, 2008, at 1:35 PM, Mohit Anchlia wrote: I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by this user group. So as I understand I need to do the following: 1. In my servlet B.war file I need to edit web.xml and add the following at the top: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter- class /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern /filter-mapping 2. Redploy My question is if I put it in B.war in web.xml then how will this work because abc.com/A will not be routed to B servlet. Since it will not be routed then how and where will the translation occur? Is there any performance overhead of using UrlRewrite? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Url rewrite
Ken Bowen wrote: Yes. I assumed you were putting the rewrite in A.war. Since A.war probably doesn't exist, you should put it in ROOT.war which handles all requests that don't match any other context. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cross Context Session in Tomact
Hi, I know this problem was raised million times but so far I haven't found any good solution for that. Basically the problem is: how can webAppA share the session object with webAppB. Both apps are deployed within the same instance of Tomact. A simple example of how I want it to work is: http://localhost/webappa/setSessionAttr.jsp - sets session attr to value http://localhost/webappa/getSessionAttr.jsp - gets session attr ... and the attribute is set to value I played with crossContext param, I played with SSO, I played with Clustering ... still haven't got what I want. The only solutions I can think of are: 1. Implement custom SessionManager that stores/reads session objects in some common repository e.g.: shared library (common classloader) 2. implement some listeners for all applications that will notify each other when session is created/destroyed or attrs set/unset Any other ideas? Thanks Maciek
Re: Url rewrite
But if I do it in ROOT.war then how would it be forwarded to B.war? On Tue, Sep 30, 2008 at 1:52 PM, Mark Thomas [EMAIL PROTECTED] wrote: Ken Bowen wrote: Yes. I assumed you were putting the rewrite in A.war. Since A.war probably doesn't exist, you should put it in ROOT.war which handles all requests that don't match any other context. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Url rewrite
Mohit Anchlia wrote: But if I do it in ROOT.war then how would it be forwarded to B.war? Can you make B.war ROOT.war? If not, this isn't going to work and you are going to have to use a redirect. Mark On Tue, Sep 30, 2008 at 1:52 PM, Mark Thomas [EMAIL PROTECTED] wrote: Ken Bowen wrote: Yes. I assumed you were putting the rewrite in A.war. Since A.war probably doesn't exist, you should put it in ROOT.war which handles all requests that don't match any other context. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK and IIS - troubles?
Dear all, I am experiencing a weird problem happening between IIS and Tomcat: it seems that the JK connector is hanging IIS. A badly behaving Tomcat app is filling up AJP connections due to some DB connection problems. Nothing strange so far, we had these kinds of problems already, but this time this is causing IIS to hang. Simply restarting the failing app's Tomcat instance causes IIS to start again like it was simply frozen. Instead, restarting IIS makes obviously the whole site restart, except for the failing application. I struggled with this problem for the past months on two servers, and just configured an additional IIS on our dedicated Tomcat machine with the same results. Configuration is as follows: IIS 5 JK 1.2.26 (/maybe some other 1.2.2x version but cannot be sure) Tomcat 5.5.9 / 5.5.27 JDK 1.5.0_12 / 1.5.0_16 / 1.6.0_07 About 40 workers and Tomcats Since we use Tomcat since version 3 and Jk since before year 2k - sorry Linux guys - on Windows platforms without a single serious problem, I am a bit sorry not to be able to solve this one by myself now. Clearly the application needs patching, and the affected Tomcat is restarting hourly now, but to me the JK connector should be fixed if it is causing this problem. Kindly let me know what should I provide in order to investigate about this. Thank you in advance, Br1 -- View this message in context: http://www.nabble.com/JK-and-IIS---troubles--tp19750760p19750760.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication behaviour
Hello, I'm writing an http client application. When on the server Tomcat is configured to require an authentication (basic) my client raise a strange error. If authentication is disabled then it works fine. I analyzed the communication using WireShark and I noticed a strange behaviour. The server answers with 401 before it has received the whole content send from client. In fact it seems that the answer become right after the server has received the http header. Is this behaviour intentional? If yes, why? The Tomcat version is 5.5.26 Bye, Maurizio. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication behaviour
From: Maurizio Lotauro [mailto:[EMAIL PROTECTED] Subject: Authentication behaviour The server answers with 401 before it has received the whole content send from client. In fact it seems that the answer become right after the server has received the http header. Looks proper to me for basic authentication. As soon as the reference to the protected resource is recognized, the 401 is sent; it's up to the client to resend all the input with the user credentials on the next request. Read the HTTP Authentication RFC: http://tools.ietf.org/html/rfc2617 For synopses, try these: http://en.wikipedia.org/wiki/Basic_access_authentication http://en.wikipedia.org/wiki/Digest_access_authentication If you're using form-based authentication, then the server captures any POST data submitted with the request, and uses that following successful authentication. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is deployOnStartup broken?
Thanks guys. That is not what I understand when I read the manual, but I guess it is what it is :-) Erwin On Sep 30, 2008, at 6:40 AM, Mark Thomas wrote: André Warnier wrote: Mark Thomas wrote: Erwin Hogeweg wrote: Hi, I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16 server, but the war file does not expand when Tomcat is restarted. I have set the host variable deployOnStartup to true, but even though the war file has a newer timestamp that the deployed folder the file is not re-deployed. That sounds like normal behaviour to me. If updating a WAR whilst Tomcat is not running, I would expect to have to remove the old WAR and old expanded directory. I would also clean out the work directory just to be on the safe side. The file IS redeployed when I 'touch' the war file while Tomcat is running, or when the expanded folder does not exist. Again, I am pretty sure that is what was intended. The catalina.out log file shows Deploying MyWar.war, but nothing really happens. Is there any specific debug logging that I can enable which shows me what is going on? http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?revision=675650view=markup is the source that is handles deployments. The WAR unpacking is handled by ContextConfig in the same package. Some additional logging is available if you turn up logging for these classes. Add: org.apache.catalina.startup.HostConfig=FINE org.apache.catalina.startup.ContextConfig=FINE to your logging.properties Mark Translation : ;-) Tomcat does not remember the age of war files, between a stop and a start. (In fact, Tomcat probably does not remember anything between a stop and a start). It will remember sessions, if the Manager is configured to persist them and it won't re-compile JSPs that have previously been compiled but that is about it. snip/ (All the above assuming deployOnStartup=true and autoDeploy=true) Correct, Mark ? I haven't double checked the code to confirm but that is what I would expect to see. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat outputs php to stderr
How did you install your PHP 5.2.6? Following the instructions from that blog.taragana.com page that you mentioned, I should have found php5servlet.dll and phpsrvlt.jar in pecl-5.2.6-Win32.zip. Those files were there in 5.0.2, but they are absent in 5.2.6. Also, I cannot find the sources for the servlet in the official 5.0.2 sources .tar.gz file, but some are available here: http://cvsweb.php.net/viewvc.cgi/pecl/servlet/ Thus far: 1. How you installed them? Maybe there is some version mismatch. 2. Maybe there is some reason why those files are no more bundled with 5.2.6. 3. If those are the sources - The servlet calls into native servlet.c, and the rest is php-specific. From the sources (servlet.java, rev.1.21): 1. The code is experimental / alpha, so you should be prepared. 2. The servlet seems to be not thread-safe. It stores request, response in its local fields. IIRC, implements javax.servlet.SingleThreadModel must be added to such a servlet to avoid concurrent calls (as mentioned in SRV.2.2 chapter of the Java Servlets spec 2.5) . Another way would be to mark the service() method of the servlet as synchronized one. It is hard to believe, that no one noticed these issues, but maybe those are wrong sources, or I am missing something, or nobody is using them and thus no one cares. All that is OK for experimental code. 3. The writing of result is done in method servlet.write(String), try { response.getWriter().print(data); } catch (IOException e) { e.printStackTrace(System.err); } If you are seeing the output text (as you mentioned), and not exceptions and their stack traces, then maybe php just does not call this method and writes all output to the stderr handle? If so, then may be there were some changes in the bridge / sapi of PHP, and the code / binaries are not compatible... All the above was just out of my curiosity, trying to find the sources... Best regards, Konstantin Kolinko 2008/9/30 Serge Fonville [EMAIL PROTECTED]: Thank you so far, I will definitely look into Quercus. Still, I would like to understand why output is sent to stderr and if it can be solved (I recall running PHP and tomcat in the past) without problems On Tue, Sep 30, 2008 at 12:04 AM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Serge Fonville [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, September 29, 2008 6:00 PM Subject: Tomcat outputs php to stderr Hi, I am developing a ticket system which should use servlets to connect to the various resources. Currently I am a php developer and busy to learn JSP/TLD/Servlets I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the production server will be running either Gentoo or CentOS). Installation went fine, no errors. just one thing I couldn't resolve. All output generated by php goes directly to the stderr log file instead of the browser (JSP and servlets work fine) I used http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/ and http://wiki.apache.org/tomcat/UsingPhp to configure the two. I started reading about listeners, log4j and servlet mappings. This seemed over the top to me, so I decided to just ask the question here. Any help is greatly appreciated Dont do it this way... run PHP on Apache httpd... its the PHP container... and do your servlet stuff in TC... its a good servlet container. Then put Apache httpd in front of TC... read up on the JK connector... and then to the browser its *one system* Thats how they do it ;) If you insist on wanting the Java PHP layer... Resin is probably the best... they not calling into a PHP engine, they rewrote it in Java... whether they up to date with all modules is the question? Anyway... just trying to show you that you dont have to change a thing... join em ;) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat stops with error after calling setclasspath.bat
2008/9/30 Bai Shen [EMAIL PROTECTED]: Okay, if I keep this up I'll be able to fit both feet in my mouth. Apparently setclasspath.bat does see the variables set in setenv.bat It was my troubleshooting method that was faulty. Basically, the problem boils down to the fact that right after setclasspath.bat is call, there's the following line in catalina.bat if errorlevel 1 goto end That's the last line I see before everthing stops. I had assumed there was a problem with the setclasspath.bat file, but the last line from that is goto end, which AFAIK, skips over the exit /b 1 So for some reason, on Windows 2000 and 2003 Server only, Tomcat won't start. I get no error at all. I had to remove the echo off statements to see that it was stopping after setclasspath.bat Hopefully this will be the last of me sticking my foot in my mouth. :) On Tue, Sep 30, 2008 at 1:37 PM, Bai Shen [EMAIL PROTECTED] wrote: Okay, I feel silly now. I jus realized that XP returns Windows_NT from the OS variable. And my Tomcat install works fine in XP. So it's apparently something besides the setlocal. Which leaves me back at square one. :( Any suggestions? On Tue, Sep 30, 2008 at 1:10 PM, Bai Shen [EMAIL PROTECTED] wrote: I use setenv.bat to point tomcat to my JRE and set some other options. However, when running on an OS that returns Windows_NT from the OS environment variable, Tomcat sets all of the batch files to setlocal. Therefore, when setclasspath.bat is run, it doesn't see any of the variables that were set by setenv.bat Now I know I could set them globally for the machine or user, but I'd rather not do that. I also don't want to edit the tomcat bat files to turn off the setlocal commands. Speaking of which, does anyone know what the reasoning behind the setlocal is in the first place? Any advice would be appreciated. TIA. You should mention what tomcat version you are trying to use. If it is not the latest one, try *.bat files from the latest version. I reckon that I once stumbled into misbehaving bat files, that were also complaining about some wrong goto. I fixed them in couple of minutes by adding some blank lines or removing trailing spaces -- I do not remember how exactly, and what were those files, and I do not see any remnants lying around. I suggest you to set echo on in all those bat files and capture their output in a file. Maybe there are some oddities there, like too many quotes, backslashes, expanded variables. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Time Zones on one Tomcat instance?
Caldarale, Charles R wrote: From: John Gardner [mailto:[EMAIL PROTECTED] Subject: Multiple Time Zones on one Tomcat instance? Is there any way we can serve mutliple webapps from a single Tomcat instance, with mutliple timezones? Tomcat itself doesn't care about time zones, and a single JVM instance will only use one time zone at a time (no pun intended). You could run two instances of Tomcat, one for the French, and one for the less picky rest of the world. Other than that, you'd have to make the adjustments in the webapp itself to be cognizant of each client's time preference. Thanks Charles So, using two instances of Tomcat on a single host OS would also involve installing two JVMs and each Tomcat instance using a different JVM? Would this be easy to do? I was always under the impression that you could only ever have one Tomcat running per machine at any one time due to the CATALINA_HOME env variable getting confused as to which instance of Tomcat it is actually using? Thanks John - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Time Zones on one Tomcat instance?
John5342 wrote: I am pretty sure there are jsp features to do this but if not it would be quite simple to create a new tag that checks the locale of the request and adjust the time returned to reflect the locale. Then just use that tag anywhere the time is needed. Thanks John It's what I suspected... the app developers should be coping with it, so I'll pass it back to them. Cheers John - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamically adding a resource to a context
- Original Message - From: Scott Dunbar [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, September 30, 2008 10:22 PM Subject: Dynamically adding a resource to a context Hi all, I'm honestly not positive that what I want to do is a good idea but the basic concept is that I want to dynamically add a Resource (a JNDI JDBC DataSource) to a Context. The idea is that I will be dynamically creating databases for new users and want to have a database connection pool for each user. I've been able to simply hand modify ${catalina.home}/conf/Catalina/localhost/contextname.xml and seen that I can now access the new DataSource. What I'm looking for is a programmatic way to do the same thing, short of parsing and rewriting the XML myself. I've dug though the MBean classes and am honestly a bit confused. Is there something that I'm missing? This is Tomcat 6.0.18 under Linux and/or Windows. Thanks for any help. Scott, dont think so, I think the pools are created either as Tomcat starts or as the servlets starts... I suppose you could write your own JNDI dB pool class as decribed here... http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html By definition, if you giving each user their own dB... a single connection, its going to be some kind of user pool, not a connection pool... Unusual I must say... possibly a user table in a dB is a better way to go... but its your app. ... this is what you need to know... The INIT function in a servlet runs once when it starts... and its quite easy and possible to use a dB pool without using JNDI... ie many people use their own, or a third party dB pool and usually then dont use JNDI because it becomes a self contained war... especially in cases where there is an embedded dB... In your case you would set up your user pool in INIT... use normal JDBC... and use it in the servlet. Then run it against the logged in user or alternatively store connections as session cookies will then also need a listener... It really depends on how hot your JDBC is ;) these pools are pretty smart things... and make suer you understand that a servlet is multi threaded... Good Luck... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]