Mathematical Editor for textarea in JSP page.
Hi all, in my application i have one textarea in which mathematical symbols like infinity, limit, proportional, not equal to, square root of, sum over … from … to … of, etc., needs to be used, is there any editor that can do above work and which can be embedded in JSP page. -GS- On 28/07/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 7/28/07, Girish Havaldar [EMAIL PROTECTED] wrote: the openWYSIYUG is working fine, in my application i have five textarea, i want to make use of only one editor tool bar, which will formate all textarea. i don't want to bind the editor to all 5 textarea separately, is there any way to accomplish this. I use tinyMCE like that for one app -- single editor instance, content from paragraphs is loaded into it onclick, save both rewrites the page and saves the change in the background. HTH, -- Hassan Schroeder [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] -- Regards Girish S.Havaldar
Re: Mathematical Editor for textarea in JSP page.
Hi Girish, The company I work for creates a product called EditLive! which can do this: http://www.ephox.com/products/editlive/ You can either use it's standard symbol support or the integrated MathML editor. There are a range of options to configure exactly what gets submitted back to the server. It is pretty easy to integrate either via JavaScript (recommended) or the provided taglib. Regards, Adrian Sutton http://www.symphonious.net On 06/08/2007, at 4:29 PM, Girish Havaldar wrote: Hi all, in my application i have one textarea in which mathematical symbols like infinity, limit, proportional, not equal to, square root of, sum over … from … to … of, etc., needs to be used, is there any editor that can do above work and which can be embedded in JSP page. -GS- - 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: Mathematical Editor for textarea in JSP page.
Hi Adrian Sutton, can i embed this editor into my JSP page, -GS- On 06/08/07, Adrian Sutton [EMAIL PROTECTED] wrote: Hi Girish, The company I work for creates a product called EditLive! which can do this: http://www.ephox.com/products/editlive/ You can either use it's standard symbol support or the integrated MathML editor. There are a range of options to configure exactly what gets submitted back to the server. It is pretty easy to integrate either via JavaScript (recommended) or the provided taglib. Regards, Adrian Sutton http://www.symphonious.net On 06/08/2007, at 4:29 PM, Girish Havaldar wrote: Hi all, in my application i have one textarea in which mathematical symbols like infinity, limit, proportional, not equal to, square root of, sum over … from … to … of, etc., needs to be used, is there any editor that can do above work and which can be embedded in JSP page. -GS- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar
AW: How to avoide delete context.xml - 6.0.14
Hi, I placed the context.xml into the META-INF, undeployed (delete of WAR,exploded,conf/.../context.xml ) the previous app and deployed again. The first time of deployment, it works fine (ant based file copy to webapps)! The second time the server seems to deploy but the context isn't to be started again... Hans. -Ursprüngliche Nachricht- Von: Hassan Schroeder [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 03. August 2007 18:20 An: Tomcat Users List Betreff: Re: How to avoide delete context.xml - 6.0.14 On 8/3/07, Mark H. Wood [EMAIL PROTECTED] wrote: After the copy, the previous installed /conf/Catalina/localhost/myapp.xml will be deleted by the server automatically. You won't have this problem if you use META-INF/context.xml for your context descriptor. -- Hassan Schroeder [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] Diese Nachricht ist ausschliesslich fuer den oben bezeichneten Adressaten bestimmt und enthaelt moeglicherweise vertrauliche Informationen. Sollten Sie nicht der oben bezeichnete Adressat sein oder diese Nachricht irrtuemlich erhalten haben, ersuchen wir Sie, diese Nachricht nicht weiterzugeben, zu kopieren oder im Vertrauen darauf zu handeln, sondern den Absender zu verstaendigen und diese Nachricht samt allfaelliger Anlagen sofort zu loeschen. Vielen Dank. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee, you should not disseminate, copy, or take any action in reliance on it. If you have received this message in error, please immediately notify the sender of this message and delete this message and any attachment. Thank you. - 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: How to avoide delete context.xml - 6.0.14
I want to add, that the context couldn't get started (only after 2nd deployment) although the server was restarted. Hans. -Ursprüngliche Nachricht- Von: Mader Hans-Dieter, J-I Gesendet: Montag, 06. August 2007 09:28 An: 'Tomcat Users List' Betreff: AW: How to avoide delete context.xml - 6.0.14 Hi, I placed the context.xml into the META-INF, undeployed (delete of WAR,exploded,conf/.../context.xml ) the previous app and deployed again. The first time of deployment, it works fine (ant based file copy to webapps)! The second time the server seems to deploy but the context isn't to be started again... Hans. -Ursprüngliche Nachricht- Von: Hassan Schroeder [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 03. August 2007 18:20 An: Tomcat Users List Betreff: Re: How to avoide delete context.xml - 6.0.14 On 8/3/07, Mark H. Wood [EMAIL PROTECTED] wrote: After the copy, the previous installed /conf/Catalina/localhost/myapp.xml will be deleted by the server automatically. You won't have this problem if you use META-INF/context.xml for your context descriptor. -- Hassan Schroeder [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] Diese Nachricht ist ausschliesslich fuer den oben bezeichneten Adressaten bestimmt und enthaelt moeglicherweise vertrauliche Informationen. Sollten Sie nicht der oben bezeichnete Adressat sein oder diese Nachricht irrtuemlich erhalten haben, ersuchen wir Sie, diese Nachricht nicht weiterzugeben, zu kopieren oder im Vertrauen darauf zu handeln, sondern den Absender zu verstaendigen und diese Nachricht samt allfaelliger Anlagen sofort zu loeschen. Vielen Dank. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee, you should not disseminate, copy, or take any action in reliance on it. If you have received this message in error, please immediately notify the sender of this message and delete this message and any attachment. Thank you. - 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 Installtion issue
On dim, 2007-08-05 at 17:12 +0530, Partha Goswami wrote: Hi, I am going to install/start Tomcat 6x version in solaris 10. Now, I did, # mkdir path of tomcat dir log # JAVA_HOME=/usrjava you may forget a / after usr and JAVA_HOME should point to the jre #export JAVA_HOME then # CATALINA_HOME=path of tomcat dir # export CATALINA_HOME then, # cd path of tomcat dir /bin #./startup.sh But I am getting follwing error The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program please help.. Thanks
Re: Tomcat Installtion issue
hi, It was typig mistake, here is the original, Sun Microsystems Inc. SunOS 5.10 Generic January 2005 You have mail. zone12$ su -zone12 Usage: su [-] [ username [ arg ... ] ] zone12$ su - zone12 Password: Sun Microsystems Inc. SunOS 5.10 Generic January 2005 zone12$ cd /home/jug-howrah zone12$ ls apache-tomcat-6.0.13 homes public_html cgi-bin logs zone12$ cd apache-tomcat-6.0.13 zone12$ cd bin zone12$ JAVA_HOME=/usr/java zone12$ export JAVA_HOME zone12$ ./startup.sh The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program zone12$ zone12$ ls bootstrap.jar jsvc.tar.gz tomcat-juli.jar catalina-tasks.xmlservice.bat tomcat-native.tar.gz catalina.bat setclasspath.bat tomcat6.exe catalina.sh setclasspath.sh tomcat6w.exe commons-daemon.jarshutdown.bat tool-wrapper.bat cpappend.bat shutdown.sh tool-wrapper.sh digest.batstartup.bat version.bat digest.sh startup.shversion.sh zone12$ CATALINA_HOME=/home/jug-howrah/ apache-tomcat-6.0.13 -bash: apache-tomcat-6.0.13: command not found zone12$ CATALINA_HOME=/home/jug-howrah/apache-tomcat-6.0.13 zone12$ export CATALINA_HOME zone12$ ./startup.sh The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program zone12$ On 8/6/07, reno [EMAIL PROTECTED] wrote: On dim, 2007-08-05 at 17:12 +0530, Partha Goswami wrote: Hi, I am going to install/start Tomcat 6x version in solaris 10. Now, I did, # mkdir path of tomcat dir log # JAVA_HOME=/usrjava you may forget a / after usr and JAVA_HOME should point to the jre #export JAVA_HOME then # CATALINA_HOME=path of tomcat dir # export CATALINA_HOME then, # cd path of tomcat dir /bin #./startup.sh But I am getting follwing error The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program please help.. Thanks -- Regards Partha Goswami Solaris/Open solaris User Group www.solaris-user-group.org
Tomcat as windows service
Could you tell me why I get following error when I try to start tomcat service using java options: -classpath C:\Program Files\Apache Group\Tomcat 5.5\bin\bootstrap.jar -Dcatalina.home=C:\Program Files\Apache Group\Tomcat 5.5 -Dcatalina.base=C:\Program Files\Apache Group\TOMCAT_UPG1 -Djava.endorsed.dirs=C:\Program Files\Apache Group\Tomcat 5.5\common\endorsed -Djava.io.tmpdir=C:\Program Files\Apache Group\TOMCAT_UPG1\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Group\TOMCAT_UPG1\conf\logging.properties [2007-08-06 11:03:15] [info] Running Service... [2007-08-06 11:03:15] [info] Starting service... [2007-08-06 11:03:15] [960 prunsrv.c] [error] Failed setting process executable [2007-08-06 11:03:15] [1179 prunsrv.c] [error] ServiceStart returned 2 [2007-08-06 11:03:15] [info] Run service finished. [2007-08-06 11:03:15] [info] Procrun finished. Thanks a lot
Re: Memory usage with multiple instances of tomcat
Thanks Chuck, I am using a 64-bit versions of the OS and JVM and I was confusing virtual memory with RAM. I have 8 GB of RAM and a 80 GB disc. The commands -Xms3g -Xmx3g will set the min/max heap to 3 GB,please how do I set the RAM for each instance of Tomcat5.5 to 2 GB Regards Peter From: Peter Sparkes [mailto:[EMAIL PROTECTED] Subject: Memory usage with multiple instances of tomcat 1. Does each tomcat instance use a separate 2 GB of memory, ie the 3 instance use 6 GB between them ? 2. or do they potentially share they same memory? Don't confuse virtual memory with RAM. The heap allocations are virtual, so there is no physical relationship with the amount of RAM you have. (There are performance considerations, of course, in that if you significantly oversubscribe RAM, you may suffer from excessive paging.) One thing you've failed to mention is whether you're using 32- or 64-bit versions of the OS and JVM. If 32-bit, then process virtual space is typically limited to 2 GB, and the heap, code, and supporting libraries must fit within that - you won't be able to allocate all 2 GB to the heap. If you're running a 64-bit environment, the sky's the limit (almost), and you could make each heap 256 GB, even with only 8 GB of RAM (not recommended, due to aforementioned paging concerns). Since each Tomcat runs as a separate process, there is no active sharing of either heap or code across instances. However, if you're running a client version of a current HotSpot JVM, there is some sharing of loaded classes in the PermGen (other than static fields), primarily to reduce startup time. You can see the shared amount in the Memory tab of JConsole. There is not currently any sharing in the server version of the HotSpot JVM. - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unsubscribe me please
Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699
Re: Error reported when starting app in cluster
Filip Hanik - Dev Lists wrote: Derek Alexander wrote: the same app would have to run on both instances, You mean this error is normal when starting the first server in a cluster? if it was the first server, it wouldn't request state from another, would it ?:) Indeed, using lsof and ps I found there was a 'ghost' tomcat instance running. Killed that and all is well. -- View this message in context: http://www.nabble.com/Error-reported-when-starting-app-in-cluster-tf4212847.html#a12016178 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]
Weird problem
Hi, I'm currently in desparate search for a problem I'm facing... I do have a struts-webapp running under Tomcat 4 without any problems. I started to port the application to Tomcat 5 which gives me problems. The app start ok and everything looks ok. But when I try to call one specific action, Tomcat gives me The requested resource (Invalid path was requested) is not available. The action is mapped to a JSP-file which in turn calls another action, which under tomcat 5 doesn't happen! action path=/toggleOverview type=org.apache.struts.actions.ForwardAction parameter=/jsp/components/ToggleOverviewMap.jsp/ action path=/refresh type=myClass.RefreshAction name=basicForm scope=request forward name=mainSuccess path=path/ /action In ToggleOverviewMap.jsp String url = refresh.do?caller= + caller + instanceNumber= +instNrStr; RequestDispatcher rd = request.getRequestDispatcher(url); rd.forward(request, response); The breakpoint on the execute-method in the Refresh-action is never reached, instead the above mentioned execption is raised. Does anyone have a clue on what the problem mght be? As I said, the app runs fine under tomcat 4 but doesn't work under tomcat 5 Any help is greatly appreciated. /Axel - 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: How to avoide delete context.xml - 6.0.14
On 8/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The first time of deployment, it works fine (ant based file copy to webapps)! The second time the server seems to deploy but the context isn't to be started again... Because? What's in your logs? -- Hassan Schroeder [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: APR Library with JBoss/Tomcat
From: Ron Wheeler [mailto:[EMAIL PROTECTED] Subject: Re: APR Library with JBoss/Tomcat The error message does not describe the problem appropriately and the documentation does not clearly link to this required library. It's not an error message - it's clearly labeled INFO. Nor is the library required; Tomcat functions quite happily without it. A cursory examination of Tomcat's APR documentation shows this: http://tomcat.apache.org/tomcat-6.0-doc/apr.html Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from _here_ as 32bit or AMD x86-64 binaries. No source download or building is required for Windows platforms. - 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: Memory usage with multiple instances of tomcat
From: Peter Sparkes [mailto:[EMAIL PROTECTED] Subject: Re: Memory usage with multiple instances of tomcat The commands -Xms3g -Xmx3g will set the min/max heap to 3 GB, please how do I set the RAM for each instance of Tomcat5.5 to 2 GB You can't set the amount of RAM for any process - the OS decides which processes get how much RAM out of the total available. Unfortunately, Linux isn't particularly good at optimizing paging, so you're best to keep the aggregate of virtual space allocations under the total RAM. With three instances of Tomcat running, each with 3 GB heaps, you run the risk of excessive paging if all the heaps get close to full at the same time. You might want to reduce the -Xms and -Xmx settings to something like 2512m. - 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: Quality check mod_jk 1.2.25-dev
So far, so good. +1 On Aug 3, 2007, at 2:40 AM, Rainer Jung wrote: Hi all, unfortunately we had to withdraw mod_jk 1.2.24. It had a serious regression bug. To ensure the quality of the new 1.2.25 we invite you to actively participate in testing. A code snapshot (revision 562250) is available at: http://people.apache.org/~rjung/mod_jk-dev/ It is in the same format as a release download, so easy to build. Under the same URL you can find the updated documentation. It would be really nice, if we could get some testing feedback from the community. Feel free to post any observations. Depending on your feedback we plan to tag the release next week. The most important changes after 1.2.24 are: - fix flushing regression bug - fix behaviour of fail_on_status - additional soft error mode for fail_on_status - bug fixes for nsapi plugin (see changelog) The full change log is available under: http://people.apache.org/~rjung/mod_jk-dev/docs/miscellaneous/ changelog.html Thanks for your valuable time! Regards, Rainer - 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: Quality check mod_jk 1.2.25-dev
If there will be no negative reports until tomorrow morning, I'll tag 1.2.25 around 8 a.m. GMT. Regards, Rainer Rainer Jung wrote: Hi all, unfortunately we had to withdraw mod_jk 1.2.24. It had a serious regression bug. To ensure the quality of the new 1.2.25 we invite you to actively participate in testing. A code snapshot (revision 562250) is available at: http://people.apache.org/~rjung/mod_jk-dev/ It is in the same format as a release download, so easy to build. Under the same URL you can find the updated documentation. It would be really nice, if we could get some testing feedback from the community. Feel free to post any observations. Depending on your feedback we plan to tag the release next week. The most important changes after 1.2.24 are: - fix flushing regression bug - fix behaviour of fail_on_status - additional soft error mode for fail_on_status - bug fixes for nsapi plugin (see changelog) The full change log is available under: http://people.apache.org/~rjung/mod_jk-dev/docs/miscellaneous/changelog.html Thanks for your valuable time! Regards, Rainer - 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: Optional authentication
Bill Barker wrote: You haven't missed anything. Tomcat simply doesn't try to authenticate a user if authentication isn't required. Simplest and most portable is to create a Filter that is configured as the first filter, and takes an auth-method init param to tell it what to use, and then wraps the request in a HttpServletWrapper that overrided getUserPrincipal before sending it on it's way. Other options include extending one or more of Tomcat's Authenticators, and configuring your app to use your Authenticator rather than Tomcat's. Thanks for your reply. It seems like a reasonable way to do it indeed. I'm also looking at using JGuard perhaps http://jguard.net/. Regards, Bruno. - 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: Can't find ServletContext.getContextPath()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aladdin, aladdin wrote: I have the following two lines of code in a context listener: ServletContext sc= e.getServletContext(); // e is a ServletContextEvent log.write(AppInitializer::ContextInitializer: context name=' + sc.getServletContextName() + '); log.write(AppInitializer::ContextInitializer: context path=' + sc.getContextPath() + '); When I try to compile this, I get: ./src/utils/AppInitializer.java:33: cannot find symbol symbol : method getContextPath() location: interface javax.servlet.ServletContext log.write(AppInitializer::ContextInitializer: context path=' + sc.getContextPath() + '); Why is it not finding the function (and only the function) ServletContext.getContextPath()? It's the first time I've used this function, but it is typed (I think; maybe I'm going crazy- too much programming, ya' know) exactly as it appears in the Sun J2EE documentation. Unless you can use a Servlet 2.5-spec container, I don't think you can do what you want to do. It looks like you want the webapp's context path for logging (i.e. the /myWebapp), but there's no access to it before the 2.5-spec (though I'm not sure why... it seems like a basic piece of information that should not require a request to fetch). Since it's just for logging, I'm sure that ServletContext.getServletContextName will meet your needs... you'll just have to set a display-name in your deployment descriptor (web.xml). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGtz9W9CaO5/Lv0PARAkxWAJ9DRdq76lfr4gYfIYAztbpBYnLsogCglpwW 0Xgz7oZskGKBNlSy+rVFO7Y= =zzkx -END PGP SIGNATURE- - 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: Installing Tomcat on Linux
| From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] | Sent: Thursday, 02 August, 2007 15:49 | | Here are some quotes from this person: | | I would never install open source from binaries on a machine I did not | want someone to break into. Cool, just get a copy of whatever tools he uses to scan the sources of the packages he installs. I mean, if he builds everything from source and only from sources he trusts, then he must have some kind of tools for detecting back doors and other exploits, right? Or at least buffer overflows or unsafe privilege changes, right? Right? Go ahead, ask him! - The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod jk selective forwarding performance problem
I am using Tomcat 5.5.23 with Apache 2.2.4 and mod_jk. The payments app uses Struts, Spring and Tiles. I'd like to have Apache serve the images, stylesheets and other static content that is referenced in the Struts jsps, but when I try to do that, if the page isn't cached in the browser, it comes up with no buttons (from the images/ directory) until I click the browser's Refresh icon; then it shows up again with all the buttons. The apache error log shows a File does not exist: message on the first try, e.g.: File does not exist: /usr/apache/httpd/htdocs/payments/images/Bttn_IAgree.gif;jsessionid=FA9B1578B6A813AAF2AB528C7DD398E4, referer: http://74.205.87.59/payments/welcome.do (we're using the IP address until we go into production, when we'll switch over the DNS for the domain name). I don't have any problems at all when everything for the /payments/ address goes to Tomcat. Here's the mod_jk section of httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/apache/httpd/conf/workers.properties JkShmFile /usr/apache/httpd/logs/mod_jk.shm JkLogFile /usr/apache/httpd/logs/mod_jk.log JkLogLevel warn JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /payments/* worker1 JkUnMount /payments/images/* worker1 JkUnMount /payments/html/* worker1 JkUnMount /payments/css/* worker1 I get the same results (no buttons the first time) when I leave out the JkUnMount lines and change the JkMount line to: JkMount/payments/*.do Does anyone know why Apache can't find the image files the first time, but does the second? Is this a page timeout thing? Thanks! Bill - 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 status
I've lot of tomcat installed in windows server. I want to know status of each one (ports configured, CATALINA_HOME, CATALINA_BASE, status, datasource, etc...). Exists some script (perl, JSP, etc) showing this data? Thanks a lot
Re: Unsubscribe me please
Yes, somebody can. In fact, that somebody is YOU! In every single email from this list there is a header telling you how to unsubscribe. Even better, when you go to the Tomcat home page, there is a link Mailing Lists, and it too tells you how to unsubscribe! Regards, Sebastiaan [EMAIL PROTECTED] wrote: Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699 - 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: Unsubscribe me please
Hi!, Send email to [EMAIL PROTECTED] with clear text in subject field. Att, Silvio Cesar L. dos Santos Analista de Redes Pleno DTI - Divisão de Tecnologia da Informação UNIGRANRIO - Universidade do Grande Rio +55 21 2672-7720 [EMAIL PROTECTED] http://www.unigranrio.edu.br Sebastiaan van Erk escreveu: Yes, somebody can. In fact, that somebody is YOU! In every single email from this list there is a header telling you how to unsubscribe. Even better, when you go to the Tomcat home page, there is a link Mailing Lists, and it too tells you how to unsubscribe! Regards, Sebastiaan [EMAIL PROTECTED] wrote: Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699 - 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]
Best practice application deployement
Hi A quick google showed that one could possibly use a maven plugin to automatically deploy war files or ant. If you have a fairly large infrastructure eg: 6 Apache clusters(two servers configured active/passive) each with about 10 Tomcats. How would you do the following: * Quickly deploy a new or updated war file * Take a tomcat out of the load balancing configuration on the apache to upgrade/downgrade it and adding it back in. Currenlty we have a script that sets the lbfactor to 0 and then deploys a new application. Currently when deploying a new set of war files we do the following in a script that runs for all our servers. rm -rf /home/admin/application-1.1.war rm -rf /usr/share/tomcat5/webapps/application-1.1.war sleep 20s /etc/init.d/tomcat5 stop rm -rf /usr/share/tomcat5/work/Catalina/localhost/application-1.1 rm -rf /usr/share/tomcat5/conf/Catalina/localhost/application-1.1.xml rm -rf /usr/share/tomcat5/webapps/application-1.1 cp /home/admin/application-1.1.war /usr/share/tomcat5/webapps /etc/init.d/tomcat5 start The idea of the script is to allow tomcat to undeploy the application and then delete the files anyway if it did or did not work. #The file name is the same as the old one to enable the context to stay the same. /etc/init.d/tomcat5 start I am almost certain there are better ways to do what we are doing and would appreciate any ideas. Regards __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Tomcat IIS Redirector Issues with SSL and Query Strings
We figured out what the problem was. IIS was not allowing any requests to go through if the file extension was .jsp with a query string parameter. We basically had to add the .jsp extension to the IIS configuration as a recognized file extension that would pass to the jakarta isap_redirector. It's working fine now. Thanks, Antonio On 8/3/07, Rainer Jung [EMAIL PROTECTED] wrote: To check the log: At which time did you send which request, and what was the result (OK, or what kind of problem)? And please give us your config (worker configuration, platform and web server versions, ...) Regards, Rainer Antonio Santana wrote: The main unique thing we have with IIS is a redirector on port 80 traffic so it is forced to 443 (SSL). Here is the log: - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Antonio Santana 214-403-5266 cell 817-741-5266 home 682-605-2423 office
cookies
Hi I am adding some additional functionality to something that someone did who has left the company. He was using Web Macros under tomcat (webapps/application/WEB-INFO: code, templates, etc). He has something called login.html which uses a login.java compiled program to set a cookie (response.addCookie( UserLevel, value) ) which adds a cookie called UserLevel with a value retrieved from logging in. His other java code does a request.getCookies() and goes through the cookies to find UserLevel from which he then gets the values. I am adding on in JSP (rather than web macros). I can't really rewrite what he did. I have the user go to his login page and login, and then type the url of my jsp (which is under the same application as the above, but under jsp). My code does the same thing, does getCookies[] and looks for UserLevel. Problem is, it does not find it. When I do the Edit-Preferences-Show Cookies, UserLevel is there with the correct value, but all my java jsp code can find is the session ID. Does anyone know what I am doing wrong, or how I can get the recently-added cookie? I am using firefox. Directories (under/root/tomcat/webapps/name_of_application): WEB-INF web information --Code Java code --Classes Compiled Java Code --templates web macros html html files jsp jsp files Thanks Tony
Re: Mod jk selective forwarding performance problem
On 8/6/07, Bill Bainbridge [EMAIL PROTECTED] wrote: File does not exist: /usr/apache/httpd/htdocs/payments/images/Bttn_IAgree.gif;jsessionid=FA9B1578B6A813AAF2AB528C7DD398E4 It appears that Apache httpd doesn't recognize the ';' separator and thinks the 'jessionid=' is part of the file name. Of course, if the end user has cookies enabled, that jsessionid in the URL goes away on the second access so it works. There may be a fix, or you could just not use httpd at all and save yourself the trouble. :-) FWIW, -- Hassan Schroeder [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: Memory usage with multiple instances of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, 1. Does each tomcat instance use a separate 2 GB of memory, ie the 3 instance use 6 GB between them ? Each instance gets a separate, 2GB heap space. 2. or do they potentially share they same memory? Since Java 1.5, shared archive capability is available on Sun's JVM. This basically means that the core JVM stuff can be memory-mapped and thus shared between processes, so you actually get a benefit when you run multiple simultaneous JVMs. See: http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#vm_classdatashare http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html These pages cover this capability if you re interested in reading all about it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt1nW9CaO5/Lv0PARAlFHAJ4q/MBMWrYMUBJTeu3/RPyzU1b1AQCfe8SJ AMWfHzrgP0dAKeifLPxQ4Bw= =5Dw/ -END PGP SIGNATURE- - 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: Suggestions for overlapping URI spaces
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: Enabling the RequestDumper to see if the browser is actually sending the path would help. Does the browser ever send the path? Using LiveHTTPHeaders, I observed the following: A = C08 B = 375 1. Visited the root-deployed application; server responds with credential challenge along with Set-Cookie header (cookie A). Successful login, including client-sent cookie (path=/). 2. Visited the /foo application by attempting to access restricted resource. cookie A was presented by the client; 302 redirect to login page, including Set-Cookie (cookie B) header (path=/foo). 3. /foo Login page requested by client, including Cookie header containing JSESSIONID=[B]; JSESSIONID=[A]. 4. Credentials submitted to /foo/j_security_check, including Cookie header containing B; A. No paths were ever sent by the client. Both applications appear to work in this scenario. App /foo continues to work. Perhaps due to the cookie ordering in the Cookie header. I'll clear the cookies repeat the process in the opposite ordering. B = E61 A = 858 0. Clear cookies from the entire site. 1. Attempt to access protected page in /foo; 302 response + Set-Cookie header (path=/foo) cookie B. 2. /foo login page requested by client, including correct Cookie header. 3. Successful login; cookie is sent with all appropriate requests. 4. Request protected page in root-deployed application; no cookie sent by client. Server responds with Set-Cookie header (path=/) and 200 response (no redirect for this app). This is Cookie A. 5. Submit login to /j_security_check; includes cookie A; successful login; cookie A is sent appropriately with all requests. 6. Re-load a protected page in /foo application; cookie header sent by client is in B; A order (same as last time). Perhaps Mozilla Firefox is smart enough to order the cookies by most-specific path. I happen to be using ff 2.0.0.6. I have actually observed the improper behavior described in my OP in the past, though I'm not sure if it was with ff 2.x or 1.5.x or even MSIE or something else. I will have to investigate them separately. ATM, Tomcat simply assumes that the browser sends the longest matching cookie (or at least sends the longest matching cookie first) and doesn't send back the path. If any significant browser is sending the path back, then Tomcat could also pick the longest path cookie as well. Is that accurate? I haven't gone into the code myself (heh it's tough to follow all the indirections in that stuff), but I wonder if TC actually tries multiple cookies if they are presented. Like I said, I obviously proved that access works appropriately in ff 2.0.0.6. Perhaps it is a browser issue. Too bas the testing process is so tedious :( 2. Change the session id cookie name in one of the apps (is this possible and/or recommended?) Not possible on TC without hacking the code. That's what I thought. It's odd that the servlet spec demands that the name of the cookie be JSESSIONID. I guess it's so that servlet containers can be swapped-out more easily since the name of the cookie won't change and disturb lb or other configuration, or filters and stuff that might stupidly hard-code the cookie name (maybe that's not so stupid...). 3. Use SSO -- except that I currently deploy these two applications in separate Tomcat instances. 4. Re-deploy the root webapp to /bar and forward / to /bar. The browser should reject the '/' cookie in this case, since the URL that it sees doesn't start with '/bar'. Of course. This is a sure-fire fix; it's just that it changes our URL space and we need to be sensitive to our customers who expect to find things under / instead of /bar. Thanks for your thoughts, Bill. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt1nu9CaO5/Lv0PARAkIgAJ40KCobl7lnTFE1rUs4t+SRMb+gLACfdDZD EeGpEkgwlm40vSO1sEPc3tg= =MhLD -END PGP SIGNATURE- - 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: Mod jk selective forwarding performance problem
Thanks Hassan, Cookies _are_ enabled. I'm not sure why it's sending the sessionid, but a few lines further down, I get File does not exist: /usr/apache/httpd/htdocs/payments/images/Blue _Bar_Back.gif, referer: http://74.205.87.59/payments/welcome.do The first three entries have a sessionid, and the rest don't. [EMAIL PROTECTED] 8/6/2007 11:13 AM On 8/6/07, Bill Bainbridge [EMAIL PROTECTED] wrote: File does not exist: /usr/apache/httpd/htdocs/payments/images/Bttn_IAgree.gif;jsessionid=FA9B1578B6A813AAF2AB528C7DD398E4 It appears that Apache httpd doesn't recognize the ';' separator and thinks the 'jessionid=' is part of the file name. Of course, if the end user has cookies enabled, that jsessionid in the URL goes away on the second access so it works. There may be a fix, or you could just not use httpd at all and save yourself the trouble. :-) - 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: Mod jk selective forwarding performance problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Bainbridge wrote: I'd like to have Apache serve the images, stylesheets and other static content that is referenced in the Struts jsps, but when I try to do that, if the page isn't cached in the browser, it comes up with no buttons (from the images/ directory) until I click the browser's Refresh icon; then it shows up again with all the buttons. This is because your application is (correctly) adding the URL-encoded jsessionid parameter to the URL. For some reason, the Apache httpd team doesn't want to follow the HTTP specification regarding this point and accept ; as a valid parameter delimiter (like ? and ). There are at least two ways to fix this: 1. Use mod_rewrite. The magic incantation I used to use was: RewriteRule /appName/(.*);jsessionid=[0-9A-Z]*(.*) \ /path/to/your/webapp/$1$2 [L] Note that the RewriteRule is all on one line of text; I used \ to separate them for readability. 2. Since you're using mod_jk, you can use: JkStripSession On This should strip session identifiers from URLs that /will not/ be sent to Tomcat. This is super helpful since working with mod_rewrite can be daunting, especially in complex configurations. You'll need mod_jk version 1.2.21 or later to use the feature. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt14S9CaO5/Lv0PARAg3cAJ9mcDKsIP7xdDvOgscfO53iGAwmoQCdFeoo ioq1AOUCLRLFqwRAPmxMaow= =pmSo -END PGP SIGNATURE- - 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: Best practice application deployement
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, [EMAIL PROTECTED] wrote: Currently when deploying a new set of war files we do the following in a script that runs for all our servers. rm -rf /home/admin/application-1.1.war rm -rf /usr/share/tomcat5/webapps/application-1.1.war sleep 20s /etc/init.d/tomcat5 stop Ouch. Why do you delete the application before you stop Tomcat? I would stop Tomcat and then delete the files. rm -rf /usr/share/tomcat5/work/Catalina/localhost/application-1.1 rm -rf /usr/share/tomcat5/conf/Catalina/localhost/application-1.1.xml rm -rf /usr/share/tomcat5/webapps/application-1.1 cp /home/admin/application-1.1.war /usr/share/tomcat5/webapps /etc/init.d/tomcat5 start How does this even work? The first line of the script deletes /home/admin/application-1.1.war and the second-to-last line tries to copy it back. Shouldn't the file not even exist? ant has an optional task to allow you to (re-)deploy WAR files to a running Tomcat instance. This capability is probably inherited by Maven, which is how you heard about it. Maven is not required, though, so if you aren't using Maven, you don't have to. Are your servers sharing any remote-mounted filesystems over NFS or anything like that? I believe that Tomcat expands deployed WAR files to its local work directory, so you could potentially share WAR files over a network-mounted disk. Then, simply replace the WAR file on the network and all 60 of your Tomcat instances will auto-re-deploy if configured to do so. (I wouldn't recommend this for production, but that's just my own personal bias). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt1909CaO5/Lv0PARAvBhAKC5BQ8zYYV5WXdIWtLYL1ohhpAASgCeJcWZ RkB09fp89Z94g2cQ4RzLkUI= =AzeT -END PGP SIGNATURE- - 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: Per Thread Class Loader... what do you think?
- Original Message - From: Leon Rosenberg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, August 05, 2007 12:38 PM Subject: Re: Per Thread Class Loader... what do you think? could you elaborate a bit more why do you need the classloader to be per thread? In case that you really really need your own classloader for _some_ objects, why don't you create a global classloader and load only those classes from it? why replace thread-classloader back and forth? I wish I could. I dont know how to create a global classloader that takes control away from TC's WebApp classloader. I'll try explain a little more This thing is an application server, I'm working on Rev3 of the thing and its working wonderfully but it certainly is one complex animal. When a remote Java Client (not browser driven) calls a class in the repository on the webapp, I do what you thinking (I think;) that is I start a Special ClassLoader it knows how to get the class from the repository private classpath, it creates an instance, and returns a proxy instance to the client. The Java Client then calls a function 'say' runTest(MyTest). the parameters are serialized, the proxy interface also transmitted. on http (binary) 'post'ed protocol. it arrives at the servlet the param is deserialized, the proxy interface deciphered... the instance looked up and invoked the return parameters serialized its returned over the wire... and the client feels like the java code is running right there on their machine... in another country. The parameters need not be primitive types on the client one can call runTest(ObjectOnServer)-(serialized etc)-Injected and run on server--- serialized back to client. and it feels like its all running at the client... etc etc. The Special ClassLoader that is allowing access to the repository of libraries on the server. is designed to be replaced. So for example, say you dump more classes onto the server (webapp) you can open the admin console and say, gimme a new Special ClassLoader, that will cause the system to load up the new classes for FRESH client requests, in the new class loader (using the fresh classes), and when the old clients are finished with their classes, the old classloader will free up and destroy itself. So its kinda cool because libraries can be changed, updated, added to the live server no restart of the server needed, and one never has old classes hanging around for all eternity. This also allows for clients to load up special singleton objects, which are actually normal classes, but they get their own class loader. This is where things like database pools hang out and other classloaders are free to come and go as demand dictates. Anyway hope that explains why I dont want classloaders to hang onto something. and thats where the issue comes in. When a client does this runTest(ObjectOnLocalClientMachine)..(it gets serialized to the server).Server picks up the interface says ah, this object does not exist on the server yet loads it with a Special ClassLoader inits it with the serialized parameters passes it into the class calling it it runs and returns to the client all is wonderfull EXCEPT. that thread is controlled by TC's WebApp class loader and when TC instances the class loaded from the Special Class loader for some reason that class in the special class loader will never ever release. I think its because TC's class loader is used to resolve something during the init maybe fetches OBJECT, or the serializer interface or something so TC's class loader is hanging onto something that it loaded, and my Special class loader is hanging onto the class and it wont let go I have a feeling TC's CL also wont let go I can NULL all instances force garbage collection... no way. So that screws my design up, because that hung class loader will never free and if its got 1000 old unused classes in it they will stay there indefinitely. As soon as I allow my Special Class Loader to control the thread ie do ALL the class loading... and anything else that happens during serialization and init'ing. it will free up when the references to that serialized object are killed or nulled. . its working very well much faster than soap will ever be but the solution to this class loader funny, certainly feels odd (see below). I agree... but the problem comes down to taking control away from TC's class loader if I could I would let TC's_CL do it but it doesnt know how to get the class its not in TC's classpath and if 2 class loaders work together one getting the class and the other instancing (resolving) they dont release. So... I have to steal control and the only way I know is to hijaak the thread. If I say run that code in the INIT of the servlet I cant
RE: Tomcat status
From: André Vila Cova [mailto:[EMAIL PROTECTED] Subject: Tomcat status I want to know status of each one (ports configured, CATALINA_HOME, CATALINA_BASE, status, datasource, etc...). Exists some script (perl, JSP, etc) showing this data? Don't know of anything that will monitor multiple Tomcat instances, other than perhaps JConsole, which comes with the 1.5 and 1.6 Sun JDKs. You can run Lambda Probe in each instance to get a good idea of what's going in the individual Tomcats. http://lambdaprobe.org - 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: cookies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, [EMAIL PROTECTED] wrote: He has something called login.html which uses a login.java compiled program to set a cookie (response.addCookie( UserLevel, value) ) which adds a cookie called UserLevel with a value retrieved from logging in. His other java code does a request.getCookies() and goes through the cookies to find UserLevel from which he then gets the values. That sounds pretty standard. You ought to be able to replicate this capability pretty easily. My code does the same thing, does getCookies[] and looks for UserLevel. Problem is, it does not find it. When I do the Edit-Preferences-Show Cookies, UserLevel is there with the correct value, but all my java jsp code can find is the session ID. Can you post your cookie finding code? Also, post the portion of your (new) code that /sets/ the cookie. Often, cookie-related issues are tied to incorrect setting of the path of the cookie. Also, are you using SSL at all? If so, please describe any changes from/to SSL requests during this process. Does anyone know what I am doing wrong, or how I can get the recently-added cookie? I am using firefox. Oh, good. There are several tools available for ff that are useful in this regard. LiveHTTPHeaders is an add-on that allows you to snoop the request and response headers of HTTP transactions. Once installed, you can just open a LiveHTTPHeaders window and then go through your login process. You can see the headers for all page requests until you clear the buffer, so you can verify that, at least, the cookies are being sent correctly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt2CH9CaO5/Lv0PARAo7YAJ92cq9fGzFhA4OBH1yJt19PKMHwGQCfecGy 85fW97ugj27ORccs95Rv5pM= =t321 -END PGP SIGNATURE- - 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: Mod jk selective forwarding performance problem
Chris, JkStripSession On solved the problem. It now works first time, everytime, and seems faster than sending everything to Tomcat. Thanks!! I'd like to have Apache serve the images, stylesheets and other static content that is referenced in the Struts jsps, but when I try to do that, if the page isn't cached in the browser, it comes up with no buttons (from the images/ directory) until I click the browser's Refresh icon; then it shows up again with all the buttons. This is because your application is (correctly) adding the URL-encoded jsessionid parameter to the URL. For some reason, the Apache httpd team doesn't want to follow the HTTP specification regarding this point and accept ; as a valid parameter delimiter (like ? and ). There are at least two ways to fix this: 1. Use mod_rewrite. The magic incantation I used to use was: RewriteRule /appName/(.*);jsessionid=[0-9A-Z]*(.*) \ /path/to/your/webapp/$1$2 [L] Note that the RewriteRule is all on one line of text; I used \ to separate them for readability. 2. Since you're using mod_jk, you can use: JkStripSession On This should strip session identifiers from URLs that /will not/ be sent to Tomcat. This is super helpful since working with mod_rewrite can be daunting, especially in complex configurations. You'll need mod_jk version 1.2.21 or later to use the feature. Hope that helps, - -chris - 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: cookies
I just did a responses to this and somehow it got lost ;-( Can you post your cookie finding code? Also, post the portion of your(new) code that /sets/ the cookie. Often, cookie-related issues are tiedto incorrect setting of the path of the cookie. Also, are you usingSSL at all? If so, please describe any changes from/to SSL requestsduring this process. Sure. My cookie-finding code is just basically this: int UserLevel = 4; Cookie cookies[] = request.getCookies(); if ( cookies != null ) { % Length: %=cookies.length%p % int co; Cookie oreo; for ( co = 0; co cookies.length; co++ ) { oreo = cookies[co]; % %=oreo.getName()% %=oreo.getValue()% % if ( oreo.getName().equals(UserLevel) ) { UserLevel = Integer.parseInt( oreo.getValue() ); } } } You can see I have a couple debug statements. Length is 1 and the only cookie is JSESSIONID 034B86006263B7E9E68EE7A660DC728E. Though I do see it in the catalina log and the edit-preferences (UserLevel 0). The cookie-setting is not mine, but rather the person who left. It is kind of complicated so I will just show the relative parts (you can ignore the else part). As I said it shows up in the log file and edit-preference if(err.errcode == 0){ Cookie cok = new Cookie(UserLevel,sUserLevel); System.out.println( Added COOKIE UserLevel: + sUserLevel ); response.addCookie(cok); response.sendRedirect(/dmaconf/html/dma_config.html); }else{ Cookie cok = new Cookie(UserLevel,); response.addCookie(cok); tmpl = wm.getTemplate(login.wm); err.errmsg += Please try again or contact the adminstrator.; c.put(errorcode, err.errcode); c.put(errormsg, err.errmsg); tmpl.write(out, c); out.flush(); } -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, August 6, 2007 01:55 PM To: 'Tomcat Users List' Subject: Re: cookies -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, [EMAIL PROTECTED] wrote: He has something called login.html which uses a login.java compiled program to set a cookie (response.addCookie( UserLevel, value) ) which adds a cookie called UserLevel with a value retrieved from logging in. His other java code does a request.getCookies() and goes through the cookies to find UserLevel from which he then gets the values. That sounds pretty standard. You ought to be able to replicate this capability pretty easily. My code does the same thing, does getCookies[] and looks for UserLevel. Problem is, it does not find it. When I do the Edit-Preferences-Show Cookies, UserLevel is there with the correct value, but all my java jsp code can find is the session ID. Can you post your cookie finding code? Also, post the portion of your (new) code that /sets/ the cookie. Often, cookie-related issues are tied to incorrect setting of the path of the cookie. Also, are you using SSL at all? If so, please describe any changes from/to SSL requests during this process. Does anyone know what I am doing wrong, or how I can get the recently-added cookie? I am using firefox. Oh, good. There are several tools available for ff that are useful in this regard. LiveHTTPHeaders is an add-on that allows you to snoop the request and response headers of HTTP transactions. Once installed, you can just open a LiveHTTPHeaders window and then go through your login process. You can see the headers for all page requests until you clear the buffer, so you can verify that, at least, the cookies are being sent correctly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt2CH9CaO5/Lv0PARAo7YAJ92cq9fGzFhA4OBH1yJt19PKMHwGQCfecGy 85fW97ugj27ORccs95Rv5pM= =t321 -END PGP SIGNATURE- - 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: Mod jk selective forwarding performance problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Bainbridge wrote: JkStripSession On solved the problem. It now works first time, every time, and seems faster than sending everything to Tomcat. Thanks!! If you are going to be using Apache httpd in front of Tomcat, then using JkStripSession will certainly speed things up relative to pushing everything through to Tomcat. There are lots of folks on the list who would tell you to ditch httpd, but I'm not one of 'em ;) Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt4bZ9CaO5/Lv0PARAjw6AJwIbBGQDDLIYpeAbLOGIO1XXOG92ACcCyRK HdTICxU/JVNk6xFyW6b9hX4= =sD91 -END PGP SIGNATURE- - 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: Mathematical Editor for textarea in JSP page.
can i embed this editor into my JSP page, Yes, either via javascript or the provided taglib. Regards, Adrian Sutton http://www.symphonious.net - 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: Mathematical Editor for textarea in JSP page.
Does HomeSite do it? If it's still around even? Maybe UltraEdit? -Original Message- From: Girish Havaldar [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 1:29 AM To: Tomcat Users List Subject: Mathematical Editor for textarea in JSP page. Hi all, in my application i have one textarea in which mathematical symbols like infinity, limit, proportional, not equal to, square root of, sum over … from … to … of, etc., needs to be used, is there any editor that can do above work and which can be embedded in JSP page. -GS- On 28/07/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 7/28/07, Girish Havaldar [EMAIL PROTECTED] wrote: the openWYSIYUG is working fine, in my application i have five textarea, i want to make use of only one editor tool bar, which will formate all textarea. i don't want to bind the editor to all 5 textarea separately, is there any way to accomplish this. I use tinyMCE like that for one app -- single editor instance, content from paragraphs is loaded into it onclick, save both rewrites the page and saves the change in the background. HTH, -- Hassan Schroeder [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] -- Regards Girish S.Havaldar - 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 and servlet the nightmare
Hello, it's a nightmare to use Tomacat for servlet. Now I've this file web.xml ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 !-- Introduction == -- !-- This document defines default values for *all* web applications -- !-- loaded into this instance of Tomcat. As each application is -- !-- deployed, this file is processed, followed by the-- !-- /WEB-INF/web.xml deployment descriptor from your own -- !-- applications.-- !-- -- !-- WARNING: Do not configure application-specific resources here! -- !-- They should go in the /WEB-INF/web.xml file in your application. -- !-- == Built In Servlet Definitions -- !-- The default servlet for all web applications, that serves static -- !-- resources. It processes all requests that are not mapped to other -- !-- servlets with servlet mappings (defined either here or in your own -- !-- web.xml file. This servlet supports the following initialization-- !-- parameters (default values are in square brackets): -- !-- -- !-- debug Debugging detail level for messages logged -- !-- by this servlet. [0] -- !-- -- !-- fileEncodingEncoding to be used to read static resources -- !-- [platform default] -- !-- -- !-- input Input buffer size (in bytes) when reading -- !-- resources to be served. [2048]-- !-- -- !-- listingsShould directory listings be produced if there -- !-- is no welcome file in this directory? [false] -- !-- WARNING: Listings for directories with many-- !-- entries can be slow and may consume-- !-- significant proportions of server resources. -- !-- -- !-- output Output buffer size (in bytes) when writing -- !-- resources to be served. [2048]-- !-- -- !-- readonlyIs this context read only, so HTTP -- !-- commands like PUT and DELETE are -- !-- rejected? [true] -- !-- -- !-- readmeFile File name to display with the directory-- !-- contents. [null] -- !-- -- !-- sendfileSizeIf the connector used supports sendfile, this -- !-- represents the minimal file size in KB for -- !-- which sendfile will be used. Use a negative-- !-- value to always disable sendfile. [48]-- !-- -- !-- For directory listing customization. Checks localXsltFile, then -- !-- globalXsltFile, then defaults to original behavior. -- !-- -- !-- localXsltFile Make directory listings an XML doc and -- !-- pass the result to this style sheet residing -- !-- in that directory. This overrides -- !-- globalXsltFile[null] -- !-- -- !-- globalXsltFile Site wide configuration version of -- !-- localXsltFile This argument is expected-- !-- to be a physical file. [null] -- !-- -- !-- -- servlet servlet-namedefault/servlet-name
Re: Tomcat and servlet the nightmare
On 8/6/07, Fabbris Pierluigi [EMAIL PROTECTED] wrote: Now I've this file Yikes! -- I have no idea what point you're trying to make with all of that, but ... I try to enter in the example page and the servlet is displayed white pages, and the servlet in my webapps displayed white page. Why? The servelet to try my webapps is the servlet for the example HelloWorldExample that before the modification of web-user and grant displayed correct content. So if it worked before, what were you trying to accomplish with the changes you made? And more importantly, what do your logs tell you about the problem? -- Hassan Schroeder [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: Mathematical Editor for textarea in JSP page.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Propes, Barry L wrote: Does HomeSite do it? If it's still around even? Maybe UltraEdit? Silly question: why not just use a plain-old textarea? That should be able to display all of the mathematical symbols mentioned , since they all have unicode characters associated with them. Infinity: 221e Limit:(pick any arrow) Proportional: 2243 Not equal:2260 Square root: 221a Summation:2211 See http://www.unicode.org/charts/symbols.html for more information. Now, if you need to graphically lay out these symnbols (for instance, you need your sigma to have stuff both above it and below it), you basically need an equation editor. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt5Eb9CaO5/Lv0PARArexAJ0f8XbtsJLqxkL/un/AwRY3GjgrBQCfS3HE T9e4kyOCQdDYbyLGBIHvkXE= =T62Z -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk seems to be giving up with no errors
I have a server setup with Apache 2.0.55 and Tomcat 5.0.28 I am trying to use mod_jk 1.2.14 to communicate between the two in my httpd.conf file I have the virtual host file setup as follows virtualhost *:80 servername www.blah.com jkmount /server1/* worker1 /virtualhost ... for each server then in my workers.properties file worker.list=worker1, worker2, worker3 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8001 ... with different ports for each worker then in my server.xml file in the tomcat conf I have connector port=8001 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / this all works fine until i start/stop tomcat and apache a few times, then suddenly tomcat stops getting forwarded requests. the mod_jk log has no errors in it, and tomcats catalina.out file is completely empty ( assuming I clear all logs after each restart ). I noticed that it seems to happen more often when I am restarting apache but nothing else. I used httpd -k stop to stop apache shutdown.sh to stop tomcat instances Is there a known bug? Something I am doing that could be causing a persistent problem? The only way I have to fix the problem is to reboot the computer. Any help is much appreciated. -Charlie
RE: Mathematical Editor for textarea in JSP page.
an equation editor, I believe is what he was looking for, correct? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 4:23 PM To: Tomcat Users List Subject: Re: Mathematical Editor for textarea in JSP page. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Propes, Barry L wrote: Does HomeSite do it? If it's still around even? Maybe UltraEdit? Silly question: why not just use a plain-old textarea? That should be able to display all of the mathematical symbols mentioned , since they all have unicode characters associated with them. Infinity: 221e Limit:(pick any arrow) Proportional: 2243 Not equal:2260 Square root: 221a Summation:2211 See http://www.unicode.org/charts/symbols.html for more information. Now, if you need to graphically lay out these symnbols (for instance, you need your sigma to have stuff both above it and below it), you basically need an equation editor. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt5Eb9CaO5/Lv0PARArexAJ0f8XbtsJLqxkL/un/AwRY3GjgrBQCfS3HE T9e4kyOCQdDYbyLGBIHvkXE= =T62Z -END PGP SIGNATURE- - 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: Weird problem
Leucht, Axel wrote: Hi, I'm currently in desparate search for a problem I'm facing... Please provide the context and host configuration for this web app. 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: Suggestions for overlapping URI spaces
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: Enabling the RequestDumper to see if the browser is actually sending the path would help. Does the browser ever send the path? I've never seen one that did, and since TC sends the Session cookie as version 0, most browsers would likely assume that TC doesn't understand version 1 cookies. Using LiveHTTPHeaders, I observed the following: A = C08 B = 375 1. Visited the root-deployed application; server responds with credential challenge along with Set-Cookie header (cookie A). Successful login, including client-sent cookie (path=/). 2. Visited the /foo application by attempting to access restricted resource. cookie A was presented by the client; 302 redirect to login page, including Set-Cookie (cookie B) header (path=/foo). 3. /foo Login page requested by client, including Cookie header containing JSESSIONID=[B]; JSESSIONID=[A]. 4. Credentials submitted to /foo/j_security_check, including Cookie header containing B; A. No paths were ever sent by the client. Both applications appear to work in this scenario. App /foo continues to work. Perhaps due to the cookie ordering in the Cookie header. I'll clear the cookies repeat the process in the opposite ordering. B = E61 A = 858 0. Clear cookies from the entire site. 1. Attempt to access protected page in /foo; 302 response + Set-Cookie header (path=/foo) cookie B. 2. /foo login page requested by client, including correct Cookie header. 3. Successful login; cookie is sent with all appropriate requests. 4. Request protected page in root-deployed application; no cookie sent by client. Server responds with Set-Cookie header (path=/) and 200 response (no redirect for this app). This is Cookie A. 5. Submit login to /j_security_check; includes cookie A; successful login; cookie A is sent appropriately with all requests. 6. Re-load a protected page in /foo application; cookie header sent by client is in B; A order (same as last time). Perhaps Mozilla Firefox is smart enough to order the cookies by most-specific path. I happen to be using ff 2.0.0.6. I have actually observed the improper behavior described in my OP in the past, though I'm not sure if it was with ff 2.x or 1.5.x or even MSIE or something else. I will have to investigate them separately. ATM, Tomcat simply assumes that the browser sends the longest matching cookie (or at least sends the longest matching cookie first) and doesn't send back the path. If any significant browser is sending the path back, then Tomcat could also pick the longest path cookie as well. Is that accurate? I haven't gone into the code myself (heh it's tough to follow all the indirections in that stuff), but I wonder if TC actually tries multiple cookies if they are presented. Like I said, I obviously proved that access works appropriately in ff 2.0.0.6. Perhaps it is a browser issue. Too bas the testing process is so tedious :( The session cookie stuff is only in CoyoteAdapter. It loops over the cookies, and sets the requestedSessionId on the Request to the first one that it finds (killing the one from ;jsessionid=, if sent). For any other JSESSIONID cookie that it finds, it checks request.isRequestedSessionIdValid, and if not, sets the value to this cookie. So assuming that the browser is sending longest-first, you could see what you claim if the /foo session timed out or was otherwise invalidated. 2. Change the session id cookie name in one of the apps (is this possible and/or recommended?) Not possible on TC without hacking the code. That's what I thought. It's odd that the servlet spec demands that the name of the cookie be JSESSIONID. I guess it's so that servlet containers can be swapped-out more easily since the name of the cookie won't change and disturb lb or other configuration, or filters and stuff that might stupidly hard-code the cookie name (maybe that's not so stupid...). 3. Use SSO -- except that I currently deploy these two applications in separate Tomcat instances. 4. Re-deploy the root webapp to /bar and forward / to /bar. The browser should reject the '/' cookie in this case, since the URL that it sees doesn't start with '/bar'. Of course. This is a sure-fire fix; it's just that it changes our URL space and we need to be sensitive to our customers who expect to find things under / instead of /bar. Thanks for your thoughts, Bill. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGt1nu9CaO5/Lv0PARAkIgAJ40KCobl7lnTFE1rUs4t+SRMb+gLACfdDZD EeGpEkgwlm40vSO1sEPc3tg= =MhLD -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To