Which Version Of Tomcat 5.5.23 to download
Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash
Re: Which Version Of Tomcat 5.5.23 to download
http://apache.cict.fr/tomcat/tomcat-5/v5.5.23/README.html Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash
Re: Which Version Of Tomcat 5.5.23 to download
Thanks a Lot , But i m unable to get that from which category Of binary distribution i.e. Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version, i have to download ... anyway thanks for the help On 4/18/07, reno [EMAIL PROTECTED] wrote: http://apache.cict.fr/tomcat/tomcat-5/v5.5.23/README.html Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash
Re: Cascading style sheets and tomcat
Yes, thing about servlet technology is that if you take your time to understand it, its very powerful on its own... but having said that, there is one thing you should read up on, that is the whole idea of MVC model with servlet technology. There is a guy called marty hall that wrote some More-Servlets-and-JSP articles... that is the best thing I ever read... just google. One of the mistakes I made and I think most people coming from ASP will do it, is try make the whole server in a JSP page if you do that you going to think its a crap technology, but as soon as you learn to use servlets and jsp together its a million times more powerful than ASP. Idea is simply that you put your logic in the servlet and use the JSP just to display info. The academics waffle on about seperation of client view and model, but at its core, thats all it is, and the pivotal tomcat function is something called getRequestDispatcher learn to use it. After that most of the frameworks just seem to hang bells and whistles on that idea, like persistance and dbPools which tomcat has anyway. Then what you will find is that, you can just extract a good idea from any framework... ok... steal them blind ha ha ;) And this is what I wanted to tell you its orgasmic stuff, and the reason I just luv tomcat... you will start using tomcat for EVERYTHING. For instance I wanted to write a database replication system, and I started looking at swing and then thought no I'll use tomcat... it runs any code, and I got a user interface in any browser... so I just use a little JSP to make the admin functions for the replicator... never going to be a web app as such See wot happens when you get into the MVC thing... magic. I now run all my apps in Tomcat. even the Swing apps it seems a long way from the web, until you see someone click on a web page, and a swing app starts that wasnt even on the machine its sitting in Tomcat in another office ha ha extreme MVC at work. In the end you wont even see Tomcat as a servlet web technology... its becomes the ONLY place to do JAVA its dead easy to deploy on, and it becomes your JAVA OS on any platform thats why you'll meet tomcat fans like me. Any job starts with yes... Tomcat ha ha - Original Message - From: David Kerber [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 18, 2007 1:56 AM Subject: Re: Cascading style sheets and tomcat I guess I'm glad I don't use any of that stuff, then ;-D I only have two different styles in my app: data-entry pages and report pages, so simple css will probably do just fine. Thanks! Johnny Kewl wrote: Hey... u going to confuse David... ;) Yes David Tomcat is one fancy machine and it also supports tag libs. These things are like html tags... just well formed xml. Struts, Spring and Sun (tomcat frameworks) all have tag libs for just about everything... So for example... one can (simplified) type html:form blah blah and tomcat will stick all the HTML that you would have to write for a form into your page for you.. and thats wot martin is showing you that you can also associate styles with these fancy things... and if there are errors you can even associate styles with that. BUT without the frameworks tomcat is very much plain old HTML... so you can use it either way In the new netbeans you can see where the whole tag thing is going in there you will find a visual web designer it feels like you using swing... just drag and drop, set properties, write a little event code etc If you look at the HTML (JSP) page it makes... its one complex combination of tag libs, script, CSS and everything else you can think of. Thing that is really important to understand is that all these frameworks are in competition with each other Struts competes with Spring who competes with Jboss who competes with Suns EJB servers its chaos. Now Java Server Faces is suns latest an greatest and you'll see its used in the Visual designer... and if I'm correct they seem to have left out struts... now I wonder why ;) EJB3 some say has stolen good ideas from Spring Resin have taken tomcat and reinvented protocols to make EJB better... It gives me a huge head-ache!... So... dont use any framework blindly I always try and imagine who is going to win, and its not always who is the best technology right now. One thing is for sure Basic Tomcat is a winner. after that, your guess is as good as mine. I still like doing it the hard way... HTML, CSS, and a little JSP... now and then a little XML and I steal like crazy from the frameworks ha ha. u c Tomcat is very very good ;) - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, April 17, 2007 10:51 PM Subject: Re: Cascading style
RE: Host-based access to web applications
Best thing to do is front apache http server listening on port 80 to forward request to tomcat using mod_jk. You can then use allow and deny in your web server (apache http server) to control the access for specific URLs . this far more easy to maintain :) Have a look at http://httpd.apache.org/docs/2.0/mod/core.html (allow from and deny from) And http://tomcat.apache.org/faq/connectors.html for mod_jk stuff ... Please do not use mod_jk2 If you want more info please let us know ... Regards Guru --- Gurumoorthy Raghupathy Email : [EMAIL PROTECTED] --- -Original Message- From: Tim Booth [mailto:[EMAIL PROTECTED] Sent: 17 April 2007 19:11 To: users@tomcat.apache.org Subject: Host-based access to web applications Dear All, I'm hoping someone on this list can help me out. I'm running Tomcat 5.5.20 on a staging server (192.171.160.186), which means that I want to be able to open some features to the world at large but restrict others to my own trusted machines for internal use. Specifically, my desired configuration is: 1) ROOT web application open to the world, so people can see my custom front page 2) /mibbi webapp open to the world, as this is the actual thing I'm developing and showing to beta testers 3) Everything else, including the /manager area and /exist (the XML database RPC interface) should be off limits to all but a set of explicitly listed IP addresses - ie. localhost and my own box, (192.171.160.155). Starting with a pretty-much default Tomcat installation, and based on the info in the Tomcat manual, I've added the following to the Host section in server.xml SNIP !-- Default rule - Restrict most services to trusted hosts: localhost and texugo -- Context path= Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1,192.171.160.155,192.171.160.186 deny=/ /Context !-- I want to allow public access to the front page on the site -- Context path=/ROOT Valve className=org.apache.catalina.valves.RemoteAddrValve allow=.* deny= / /Context !-- Allow MIBBI area access from anyone -- Context path=/mibbi Valve className=org.apache.catalina.valves.RemoteAddrValve allow=.* deny= / /Context SNIP With the above settings in place I try to access the server from another 'untrusted' machine (192.171.174.146) but I get the following results: http://192.171.160.186:8080/ - access denied (!) http://192.171.160.186:8080/manager/html - access granted (!) http://192.171.160.186:8080/exist - access granted (!) http://192.171.160.186:8080/mibbi - access granted So I have only succeeded in blocking access to the front page, which is one of the two areas I wanted to leave unblocked. I've tried several permutations on the above, but with no more joy. Can anyone suggest a correct configuration, or an alternative way of getting what I want? Many thanks in advance, TIM -- Tim Booth [EMAIL PROTECTED] NEBC at CEH Oxford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. - 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]
How to set Default WebApplication in tomcat 5.5?
Dear All, I m trying now with tomcat 5.5,i want to set a web application as default application ,suppose like if a user after starting tomcat ,if i will enter http://localhost:8080 then it will just forward to http://localhost:8080/* MyApplication http://localhost:8080/MyApplication*... Actually i hv to run an existing web application which is running well in tomcat 4.1 ..means in tomcat 4.1 i found this settings in Tomcat 4.1\conf\server.xml's host element Host name=localhost debug=0 appBase=webapps/MyApp unpackWARs=true autoDeploy=true nd when the users enters http://localhost:8080 it goes to http://localhost:8080/MyAppdirectly when i m doing same changes in server.xml of tomcat 5.5 server.xml its giving a Http 400 Bad Request error in the browser ..even the log files r not generated so it s is difficut ..as i hv to run the same application in tomcat5.5 Pliz help me
Re: Tomcat5 and Linux-HA
Part 2 of the first URL is configured using Windows not Linux so that doesn't help. The second URL is talking about a Intel Clustering solution which isn't related to using the Linux-HA (Open Source) method of clustering. I need to know if its possible to setup Apache2/Tomcat5 in a 2 node, Linux (SUSE Linux Enterprise SERVER (SLES10)), running Linux-HA (http://www.linux-ha.org). I already have Apache2 configured in the Cluster but cannot figure out the Tomcat5 piece. Additional Information: According to http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html; this would be a Horizontally Scaled cluster, that needs Fault Tolerance, no Load Balancing (the company has no extra hardware and low on money), and no Session State Persistence (not sure if thats possible if Load Balancing isn't enabled) Tim Finley Novell IT Services Novell Inc. [EMAIL PROTECTED] Phone #801-861-8106 On 4/17/2007 at 5:36 PM, in message [EMAIL PROTECTED], Martin Gainty [EMAIL PROTECTED] wrote: http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html If implementing on Intel processor I would read http://www.developers.net/intelisnshowcase/view/390 Has anyone implemented SUSE clustering? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Tim Finley [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, April 17, 2007 7:21 PM Subject: Tomcat5 and Linux-HA Is it possible to configure Tomcat5 in a Linux cluster (Linux-HA (Heartbeat 2). I want to configure it on SLES10. I have already checked the Tomcat FAQ at Tomcat.apache.org, the How to at that location, Googling it returns nothing on the subject. If a config/setup doc exists I cannot find it. Tim Finley Novell IT Services Novell Inc. [EMAIL PROTECTED] Phone #801-861-8106 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException after approx 3000 comet requests
Hi, I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a CometProcessor which handles a large number of requests in a very short time, and after about 3000 requests I consistently get the following two errors: Apr 18, 2007 12:09:19 PM org.apache.tomcat.util.net.NioEndpoint$Poller events SEVERE: java.lang.NullPointerException at org.apache.tomcat.util.net.NioEndpoint$PollerEvent.run(NioEndpoint.java:1005) at org.apache.tomcat.util.net.NioEndpoint$Poller.events(NioEndpoint.java:1109) at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1191) at java.lang.Thread.run(Thread.java:619) Exception in thread http-8080-43 java.lang.NullPointerException at org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1443) at java.lang.Thread.run(Thread.java:619) Does anybody know how these errors can occur? Can it be a programming error on my part (even though none of my code is in the stack traces). Any hints/suggestions are welcome. If more information is needed I am more than happy to provide it. Regards, Sebastiaan - 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: Host-based access to web applications
Hi Mark and Guru, Many thanks for both your replies. Mark Thomas [EMAIL PROTECTED] wrote: The allow and deny fields take regular expressions. '.' is reserved and needs to escaped. Take a look at the java.util.regex javadoc OK, I was going by the info found here: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Request%20Filters The documentation states that the filters are specified by regexes, but then goes on to give an example where a glob pattern is used. I'm familiar with regexes, and for these particular patterns I would expect the same result whether the periods were escaped or not. I just tried it and this is indeed the case, so I'm none the wiser. On Wed, 2007-04-18 at 09:56 +0100, Raghupathy, Gurumoorthy wrote: Best thing to do is front apache http server listening on port 80 to forward request to tomcat using mod_jk. A colleague suggested this solution already. He then proceeded to give two whole pages of instructions on how to set it up. I can see that it will work but it seems an incredibly complicated way to get a feature that I should be able to achieve with just a few lines in the Tomcat configuration file. You can then use allow and deny in your web server (apache http server) to control the access for specific URLs . this far more easy to maintain :) Far more easy to maintain than what? Either I can get the setup I need with a combination of directives in the Tomcat configuration, in which case I'm all done, or else I can't, in which case I have to maintain a separate Apache installation on my server. The latter certainly sounds like the bigger headache to me (and yes, I am familiar with running Apache). Have a look at http://httpd.apache.org/docs/2.0/mod/core.html (allow from and deny from) And http://tomcat.apache.org/faq/connectors.html for mod_jk stuff ... Please do not use mod_jk2 If you want more info please let us know ... I'd feel a lot more comfortable going the mod_jk route if somebody in the know could vouch for one of the following statements: a) The access policy you propose cannot be achieved within the Tomcat configuration, and a separate security manager is necessary - eg. Apache +mod_jk and/or b) Tomcat should not be used directly as a public web server, and it is advisable to run it behind an Apache instance (the FAQ referenced above is non-committal on this point, which is understandable but still leaves me none the wiser :-( ) If either of those is true then I can comfortably justify (to myself, my boss, and my network admin) the setup you suggest. If not, then I'm back to asking how access can be controlled from within Tomcat, as this still seems to me the simpler way. Many thanks again, TIM --- -Original Message- From: Tim Booth [mailto:[EMAIL PROTECTED] Sent: 17 April 2007 19:11 To: users@tomcat.apache.org Subject: Host-based access to web applications Dear All, I'm hoping someone on this list can help me out. I'm running Tomcat 5.5.20 on a staging server (192.171.160.186), which means that I want to be able to open some features to the world at large but restrict others to my own trusted machines for internal use. Specifically, my desired configuration is: 1) ROOT web application open to the world, so people can see my custom front page 2) /mibbi webapp open to the world, as this is the actual thing I'm developing and showing to beta testers 3) Everything else, including the /manager area and /exist (the XML database RPC interface) should be off limits to all but a set of explicitly listed IP addresses - ie. localhost and my own box, (192.171.160.155). Starting with a pretty-much default Tomcat installation, and based on the info in the Tomcat manual, I've added the following to the Host section in server.xml SNIP !-- Default rule - Restrict most services to trusted hosts: localhost and texugo -- Context path= Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1,192.171.160.155,192.171.160.186 deny=/ /Context !-- I want to allow public access to the front page on the site -- Context path=/ROOT Valve className=org.apache.catalina.valves.RemoteAddrValve allow=.* deny= / /Context !-- Allow MIBBI area access from anyone -- Context path=/mibbi Valve className=org.apache.catalina.valves.RemoteAddrValve allow=.* deny= / /Context SNIP With the above settings in place I try to access the server from another 'untrusted' machine (192.171.174.146) but I get the following results: http://192.171.160.186:8080/ - access denied (!) http://192.171.160.186:8080/manager/html - access granted (!) http://192.171.160.186:8080/exist - access granted (!) http://192.171.160.186:8080/mibbi - access granted So I have only
changing the name of tomcat homedir - impact?
I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - 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: changing the name of tomcat homedir - impact?
Hi! I suppose you have installed the Tomcat Service also and there is references in the registry to the Tomcat Path so a better choice is to uninstall Tomcat 6 and reinstall it in a proper directory without spaces. /Per Jonsson -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: den 18 april 2007 12:38 To: [EMAIL PROTECTED] Subject: changing the name of tomcat homedir - impact? I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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 set Default WebApplication in tomcat 5.5?
Avinash Kumar wrote: Dear All, I m trying now with tomcat 5.5,i want to set a web application as default application ,suppose like if a user after starting tomcat ,if i will enter http://localhost:8080 then it will just forward to http://localhost:8080/* MyApplication http://localhost:8080/MyApplication*... Actually i hv to run an existing web application which is running well in tomcat 4.1 ..means in tomcat 4.1 i found this settings in Tomcat 4.1\conf\server.xml's host element Host name=localhost debug=0 appBase=webapps/MyApp unpackWARs=true autoDeploy=true nd when the users enters http://localhost:8080 it goes to http://localhost:8080/MyAppdirectly This configuration is wrong and unsupported. It was luck that it ever worked. All you need to do is rename your MyApp directory to ROOT or MyApp.war to ROOT.war If a ROOT directory or ROOT.war already exist just rename them or delete them as appropriate. 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: Host-based access to web applications
Tim Booth wrote: Hi Mark and Guru, Many thanks for both your replies. Mark Thomas [EMAIL PROTECTED] wrote: The allow and deny fields take regular expressions. '.' is reserved and needs to escaped. Take a look at the java.util.regex javadoc OK, I was going by the info found here: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Request%20Filters That needs to be updated. snip / !-- Default rule - Restrict most services to trusted hosts: localhost and texugo -- Context path= Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1,192.171.160.155,192.171.160.186 deny=/ /Context !-- I want to allow public access to the front page on the site -- Context path=/ROOT Valve className=org.apache.catalina.valves.RemoteAddrValve allow=.* deny= / /Context This won't work. There is no context path /ROOT. The root webapp is referenced using a context path of . I have recently used the RemoteAddrValve to lock down a context to a couple of specific IPs and subnets and it works as expected. You don't need to configure an allow all rule since that happens by default. For the contexts you want to limit, add the appropriate RemoteAddrValve settings. HTH, 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: How to set Default WebApplication in tomcat 5.5?
Thanks , But the application must run with its name in the url bar of the browser ,so if it is renamed as Root then how can i access it nd it was runnig very well in tomcat 4.1 ,i can also send u the server.xml of tomcat 4.1 which allowed it to run directly... On 4/18/07, Mark Thomas [EMAIL PROTECTED] wrote: Avinash Kumar wrote: Dear All, I m trying now with tomcat 5.5,i want to set a web application as default application ,suppose like if a user after starting tomcat ,if i will enter http://localhost:8080 then it will just forward to http://localhost:8080/* MyApplication http://localhost:8080/MyApplication*... Actually i hv to run an existing web application which is running well in tomcat 4.1 ..means in tomcat 4.1 i found this settings in Tomcat 4.1\conf\server.xml's host element Host name=localhost debug=0 appBase=webapps/MyApp unpackWARs=true autoDeploy=true nd when the users enters http://localhost:8080 it goes to http://localhost:8080/MyAppdirectly This configuration is wrong and unsupported. It was luck that it ever worked. All you need to do is rename your MyApp directory to ROOT or MyApp.war to ROOT.war If a ROOT directory or ROOT.war already exist just rename them or delete them as appropriate. 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]
mod_jk JkStripSession for skiped files
Hello! Starting from version 1.2.21 of mod_jk I found there very interesting option: JkStripSession. BY reading it's description - I hoped it will help me to fix old problem, but - seems no -maybe somebody will able to explain me - that I'm doing wronge. So, I have followed part related to mod_jk in my apache 2.2.4 configuration: LoadModulejk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] VirtualHost xxx.yyy.zzz ServerName xxx.yyy.zzz JkStripSession On JkMount /* worker1 Alias /resources C:\tomcat5520\webapps\ROOT\resources SetEnvIf Request_URI /resources/* no-jk Directory C:\tomcat5520\webapps\ROOT Options Indexes FollowSymLinks Order allow,deny Allow from all /Directory /VirtualHost So, problem is - then I load page for first time, tomcat adds jsessionid for all links on the page - including for links to the images, stored in resources folder. Apache to not passed requests to /resources to tomcat - and handle it by itself - but, since jsessionid is added - it tried to find files with this jsessionid - and failed. I hoped new option JkSkipSession will help - but it still tried to find files with this jsessionid - maybe I configured something wrong? -- With Best Regards, Alexey Kakunin, EmDev Limited Professional Software Development: http://www.emdev.ru
Re: changing the name of tomcat homedir - impact?
Thanks. Yes, I noticed that too much is involved. I gave up. One can say at the DOS prompt: NET STOP tomcat6 tomcat6 -remove after that tomcat6 -install But beware you do that after you renamed the path. Oh, I got into a holy mess. And peeking and poking in the registry can make things worse. I indeed ended up in removing the software package and reinstalling it. Unfortunately I have to install my application also. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org On Wed, Apr 18, 2007 at 12:51:20PM +0200, Per Johnsson wrote: Hi! I suppose you have installed the Tomcat Service also and there is references in the registry to the Tomcat Path so a better choice is to uninstall Tomcat 6 and reinstall it in a proper directory without spaces. /Per Jonsson -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: den 18 april 2007 12:38 To: [EMAIL PROTECTED] Subject: changing the name of tomcat homedir - impact? I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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]
How to create a kind of alias in tomcat
Hello, I'd like to connect to my application at http://10.124.40.29:9090/ORGEWI/PLATFORM/FRENCH/EWICHART/JAVA/L1.html but users need to connect via http://10.124.40.29:9090/organigramme how to proceed ? fyi : Calendra / tomcat v4 many applications with context file ORGEWI.xml Tks, Malek
Re: mod_jk JkStripSession for skiped files
no-jk is a last minute exit from forwarding and comes after the usual forwarding/strip session handling. Try to use JkUnMount instead of no-jk. That should make your config work, including stripping sessions. Let us know, if that works. Regards, Rainer Alexey Kakunin wrote: Hello! Starting from version 1.2.21 of mod_jk I found there very interesting option: JkStripSession. BY reading it's description - I hoped it will help me to fix old problem, but - seems no -maybe somebody will able to explain me - that I'm doing wronge. So, I have followed part related to mod_jk in my apache 2.2.4 configuration: LoadModulejk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] VirtualHost xxx.yyy.zzz ServerName xxx.yyy.zzz JkStripSession On JkMount /* worker1 Alias /resources C:\tomcat5520\webapps\ROOT\resources SetEnvIf Request_URI /resources/* no-jk Directory C:\tomcat5520\webapps\ROOT Options Indexes FollowSymLinks Order allow,deny Allow from all /Directory /VirtualHost So, problem is - then I load page for first time, tomcat adds jsessionid for all links on the page - including for links to the images, stored in resources folder. Apache to not passed requests to /resources to tomcat - and handle it by itself - but, since jsessionid is added - it tried to find files with this jsessionid - and failed. I hoped new option JkSkipSession will help - but it still tried to find files with this jsessionid - maybe I configured something wrong? - 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 set Default WebApplication in tomcat 5.5?
Then you'll need to setup a very small ROOT webapp with a servlet that just forwards requests using a 300 series redirect. Simple and the web browser shows your webapp name as expected. --David Avinash Kumar wrote: Thanks , But the application must run with its name in the url bar of the browser ,so if it is renamed as Root then how can i access it nd it was runnig very well in tomcat 4.1 ,i can also send u the server.xml of tomcat 4.1 which allowed it to run directly... On 4/18/07, Mark Thomas [EMAIL PROTECTED] wrote: Avinash Kumar wrote: Dear All, I m trying now with tomcat 5.5,i want to set a web application as default application ,suppose like if a user after starting tomcat ,if i will enter http://localhost:8080 then it will just forward to http://localhost:8080/* MyApplication http://localhost:8080/MyApplication*... Actually i hv to run an existing web application which is running well in tomcat 4.1 ..means in tomcat 4.1 i found this settings in Tomcat 4.1\conf\server.xml's host element Host name=localhost debug=0 appBase=webapps/MyApp unpackWARs=true autoDeploy=true nd when the users enters http://localhost:8080 it goes to http://localhost:8080/MyAppdirectly This configuration is wrong and unsupported. It was luck that it ever worked. All you need to do is rename your MyApp directory to ROOT or MyApp.war to ROOT.war If a ROOT directory or ROOT.war already exist just rename them or delete them as appropriate. 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: Which Version Of Tomcat 5.5.23 to download
Core is the one most people will use. It's complete and runs stand-alone w/ jdk/jre 5. As to the others, I'm positive there's a FAQ page on this, but there are two that you may want in addition to Core: Administration Web application -- to add the /admin webapp. Some people find it useful, I'm not a fan. jdk1.4compatibility -- add on to Core, install ONLY if you are using tomcat with jdk/jre 1.4. --David Avinash Kumar wrote: Thanks a Lot , But i m unable to get that from which category Of binary distribution i.e. Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version, i have to download ... anyway thanks for the help On 4/18/07, reno [EMAIL PROTECTED] wrote: http://apache.cict.fr/tomcat/tomcat-5/v5.5.23/README.html Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any documentation/example about org.apache.catalina.Comet* ?
Hello, I saw that Tomcat proposes some interfaces to use Comet like Servlet from version 6.x. Even(t) if I get the main idea I was not able to reuse the pseudo code servlet ChatServlet provided on the following page: http://tomcat.apache.org/tomcat-6.0-doc/aio.html I would like to know if someone already used this techno successfully and could give me a link including a valid example or documentation on this topic. My main problem here is that I am never able to display anything in the web page while the connection is open... which is embarrassing in a Comet perspective :( Regards, -- Benjamin Larchevêque Ingénieur Etude Développement Team Trade Paris 43, rue Taitbout 75009 Paris +33 6 1955 6012 [EMAIL PROTECTED] http://www.linkedin.com/in/larcheveque - 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 JkStripSession for skiped files
Thank you, changing to JkUnmount helps! 2007/4/18, Rainer Jung [EMAIL PROTECTED]: no-jk is a last minute exit from forwarding and comes after the usual forwarding/strip session handling. Try to use JkUnMount instead of no-jk. That should make your config work, including stripping sessions. Let us know, if that works. Regards, Rainer Alexey Kakunin wrote: Hello! Starting from version 1.2.21 of mod_jk I found there very interesting option: JkStripSession. BY reading it's description - I hoped it will help me to fix old problem, but - seems no -maybe somebody will able to explain me - that I'm doing wronge. So, I have followed part related to mod_jk in my apache 2.2.4 configuration: LoadModulejk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] VirtualHost xxx.yyy.zzz ServerName xxx.yyy.zzz JkStripSession On JkMount /* worker1 Alias /resources C:\tomcat5520\webapps\ROOT\resources SetEnvIf Request_URI /resources/* no-jk Directory C:\tomcat5520\webapps\ROOT Options Indexes FollowSymLinks Order allow,deny Allow from all /Directory /VirtualHost So, problem is - then I load page for first time, tomcat adds jsessionid for all links on the page - including for links to the images, stored in resources folder. Apache to not passed requests to /resources to tomcat - and handle it by itself - but, since jsessionid is added - it tried to find files with this jsessionid - and failed. I hoped new option JkSkipSession will help - but it still tried to find files with this jsessionid - maybe I configured something wrong? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- With Best Regards, Alexey Kakunin, EmDev Limited Professional Software Development: http://www.emdev.ru
RE: Which Version Of Tomcat 5.5.23 to download
Use the Core .zip (it has the Catalina.bat file), then the Windows service installer (exe). If you are using jdk 1.4, download jdk 1.4 comp package. -Original Message- From: Avinash Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 1:35 AM To: Tomcat Users List Subject: Re: Which Version Of Tomcat 5.5.23 to download Thanks a Lot , But i m unable to get that from which category Of binary distribution i.e. Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version, i have to download ... anyway thanks for the help On 4/18/07, reno [EMAIL PROTECTED] wrote: http://apache.cict.fr/tomcat/tomcat-5/v5.5.23/README.html Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Location of APR Win32 binaries
Where can I find the binaries download of the Win32 APR? I can find the source on the APR page of the tomcat site, but not the binaries... Dave - 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: Which Version Of Tomcat 5.5.23 to download
Thanks *Jayson Enriquez Sir * nd Reno Sir Bye On 4/18/07, Jayson Enriquez [EMAIL PROTECTED] wrote: Use the Core .zip (it has the Catalina.bat file), then the Windows service installer (exe). If you are using jdk 1.4, download jdk 1.4 comp package. -Original Message- From: Avinash Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 1:35 AM To: Tomcat Users List Subject: Re: Which Version Of Tomcat 5.5.23 to download Thanks a Lot , But i m unable to get that from which category Of binary distribution i.e. Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version, i have to download ... anyway thanks for the help On 4/18/07, reno [EMAIL PROTECTED] wrote: http://apache.cict.fr/tomcat/tomcat-5/v5.5.23/README.html Hi Frends, I m downloading Tomcat 5.5.23 from http://tomcat.apache.org/download-55.cgi i m about to download it from the binary distribution but thier is many subcategory in binary distribution like Core,Depoyer,Embedded,Administration Web application,jdk1.4compatibility version...So please tell me from which category i have to dowmload ...i have windows xp operating system Thanks , Avinash - 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: Location of APR Win32 binaries
Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... Markus Schönhaber wrote: David Kerber wrote: Where can I find the binaries download of the Win32 APR? I can find the source on the APR page of the tomcat site, but not the binaries... http://tomcat.heanet.ie/native/ Regards mks - 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 set Default WebApplication in tomcat 5.5?
Hi, but While running the application in tomcat 4.1 i hv kept it in TOMCAT_HOME/webapps/myapplication ,i mean it is not under ROOT nd its running fine ...i hv even kept my application in TOMCAT_HOME/webapps/root in tomcat5.1 but its still not working... I hv attached the server.xml of tomcat 4.1 pls check the !-- Define the default virtual host -- section its working in tomcat4.1 . On 4/18/07, David Smith [EMAIL PROTECTED] wrote: Then you'll need to setup a very small ROOT webapp with a servlet that just forwards requests using a 300 series redirect. Simple and the web browser shows your webapp name as expected. --David Avinash Kumar wrote: Thanks , But the application must run with its name in the url bar of the browser ,so if it is renamed as Root then how can i access it nd it was runnig very well in tomcat 4.1 ,i can also send u the server.xml of tomcat 4.1 which allowed it to run directly... On 4/18/07, Mark Thomas [EMAIL PROTECTED] wrote: Avinash Kumar wrote: Dear All, I m trying now with tomcat 5.5,i want to set a web application as default application ,suppose like if a user after starting tomcat ,if i will enter http://localhost:8080 then it will just forward to http://localhost:8080/* MyApplication http://localhost:8080/MyApplication*... Actually i hv to run an existing web application which is running well in tomcat 4.1 ..means in tomcat 4.1 i found this settings in Tomcat 4.1\conf\server.xml's host element Host name=localhost debug=0 appBase=webapps/MyApp unpackWARs=true autoDeploy=true nd when the users enters http://localhost:8080 it goes to http://localhost:8080/MyAppdirectly This configuration is wrong and unsupported. It was luck that it ever worked. All you need to do is rename your MyApp directory to ROOT or MyApp.war to ROOT.war If a ROOT directory or ROOT.war already exist just rename them or delete them as appropriate. 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] !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle
RE: Location of APR Win32 binaries
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... The .dll for APR is included in the .exe download; no other pieces are required. - 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: changing the name of tomcat homedir - impact?
You can name it anything you want. I have never once installed tomcat under its default directory name and have never had any problems arise from the practice. -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 5:38 AM To: [EMAIL PROTECTED] Subject: changing the name of tomcat homedir - impact? I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - 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: Location of APR Win32 binaries
David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) To be honest, I don't remember where I got this information from. Maybe someone mentioned it on the users or the dev list. Or maybe I picked it up from the installer sources. Regards mks - 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: Location of APR Win32 binaries
Caldarale, Charles R wrote: The .dll for APR is included in the .exe download; no other pieces are required. Hm, IIRC it's not contained in the .exe but the installer downloads it during the install if you tell it to. Regards mks - 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: Location of APR Win32 binaries
Thanks, Chuck; Do I need to do something to tell it to be used? And if not, how can I verify that it is being used? I've checked in all my tomcat logs (catalina, localhost, etc), and nothing mentions it. Or does it only give a notice when it fails? Once again, I've checked the web site, and there is nothing that explains it at this level that I can find. Dave Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... The .dll for APR is included in the .exe download; no other pieces are required. - Chuck - 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: Location of APR Win32 binaries
Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Unfortunately, it 's a windows-based crystal ball, and it crashed the other day, and I haven't been able to get it to boot again... :-D Thanks, though! Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
linux / tomcat
Hi, I have a Java servlet running with Tomcat 5.5 under Linux Debian. I need to indicate tomcat where are located the other processes called by the Java servlet. For that, I must specify environment variables for the tomcat user (and not for root or any other user) and for my specific webapp. But I don't know in which configuration file I need to do that. Do you have any idea ? Many thanks, M
RE: linux / tomcat
Catalina.sh has those environment variables. -Original Message- From: Faillot [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:07 AM To: users@tomcat.apache.org Subject: linux / tomcat Hi, I have a Java servlet running with Tomcat 5.5 under Linux Debian. I need to indicate tomcat where are located the other processes called by the Java servlet. For that, I must specify environment variables for the tomcat user (and not for root or any other user) and for my specific webapp. But I don't know in which configuration file I need to do that. Do you have any idea ? Many thanks, M - 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: linux / tomcat
I am not root for the start and stop of the server... With cataline.sh, do you mean the launch/stop script of tomcat.? Because we try to add in this scipt environment variables and it doesn't work. Thanks, On Wed, 2007-04-18 at 09:09 -0500, Biernesser, Beth wrote: Catalina.sh has those environment variables. -Original Message- From: Faillot [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:07 AM To: users@tomcat.apache.org Subject: linux / tomcat Hi, I have a Java servlet running with Tomcat 5.5 under Linux Debian. I need to indicate tomcat where are located the other processes called by the Java servlet. For that, I must specify environment variables for the tomcat user (and not for root or any other user) and for my specific webapp. But I don't know in which configuration file I need to do that. Do you have any idea ? Many thanks, M -- Mathilde FAILLOT LEGOS - CTOH 14, Av Edouard Belin 31400 Toulouse Tel:05. 61. 33. 29. 90 Fax:05. 61. 25. 32. 05 Mail: [EMAIL PROTECTED]
Re: Tomcat5 and Linux-HA
On 4/18/07, Tim Finley [EMAIL PROTECTED] wrote: I need to know if its possible to setup Apache2/Tomcat5 in a 2 node, Linux (SUSE Linux Enterprise SERVER (SLES10)), running Linux-HA No experience with Linux-HA, but I've set up Tomcat clustering on RHES servers, using the standard Tomcat clustering -- ... no Load Balancing (the company has no extra hardware and low on money), and no Session State Persistence (not sure if thats possible if Load Balancing isn't enabled) If you're using Apache 2.2.x, you already have load balancing, gratis :-) http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html and the session persistence (replication) works fine. 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: Location of APR Win32 binaries
David Kerber wrote: Thanks, Chuck; Do I need to do something to tell it to be used? And if not, how can I verify that it is being used? I've checked in all my tomcat logs (catalina, localhost, etc), and nothing mentions it. Or does it only give a notice when it fails? Unless you commented the AprLifecycleListener in server.xml, catalina.out should contain an INFO message telling you that the native lib wasn't found (if in fact it wasn't found). Morover if APR wasn't found you should see something like ... org.apache.coyote.http11.Http11BaseProtocol init in catalina.out and something like ... org.apache.coyote.http11.Http11AprProtocol init if APR is used (notice the difference in the class names). At least current versions of Tomcat 6 even log some detailed info if APR is found and used. AFAIR on Windows it is enough to drop the tcnative.dll in Tomcat's bin directory - can't check that atm though. Anyway: putting it in a dir conrained in java.library.path should work. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Crystal balls (was: Re: Location of APR Win32 binaries)
David Kerber wrote: Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Unfortunately, it 's a windows-based crystal ball, and it crashed the other day, and I haven't been able to get it to boot again... :-D Hehe, make sure your crystal ball meets the Vista requirements for displaying Aero. It will stay opaque otherwise... Regards mks - 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 5.5.17 and IPv6 configuration
Hi all, thank you for your responce. But there is the problem tomcat 5.5.17 and IPV6 too. I installed Microsoft IPv6 on Win XP sp2 and then Tomcat 5.5.17. Now I can access to Tomcat page from OPERA with http://localhost:8080 and with http:/[::1]:8080. I have just tried from remote computer with http://[full_ipv6_address]:8080 and http://[full_ipv6_address%ID]:8080 but nothing! May You help me? Thanks. Saverio FERRARO _ Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! http://videovip.it.msn.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: Location of APR Win32 binaries
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Do I need to do something to tell it to be used? Yes: when you run the .exe installer, you'll get a Choose Components screen; the Tomcat box is gray, indicating that some pieces are not enabled. Open that up, and click the Native check box. As Markus pointed out, this initiates the download of the .dll, placing it in the bin directory. how can I verify that it is being used? By default, there's an INFO message displayed if APR can't be found, since there's a listener configured for it in server.xml. The absence of the INFO message indicates that APR is in use. - 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: Location of APR Win32 binaries
That's what I needed; thanks. I'm seeing this line in my logs: Apr 18, 2007 9:56:30 AM org.apache.coyote.http11.Http11AprProtocol start which from what you said means it's seeing the tcnative.dll. Thanks for all your help, Markus! Dave Markus Schönhaber wrote: David Kerber wrote: Thanks, Chuck; Do I need to do something to tell it to be used? And if not, how can I verify that it is being used? I've checked in all my tomcat logs (catalina, localhost, etc), and nothing mentions it. Or does it only give a notice when it fails? Unless you commented the AprLifecycleListener in server.xml, catalina.out should contain an INFO message telling you that the native lib wasn't found (if in fact it wasn't found). Morover if APR wasn't found you should see something like ... org.apache.coyote.http11.Http11BaseProtocol init in catalina.out and something like ... org.apache.coyote.http11.Http11AprProtocol init if APR is used (notice the difference in the class names). At least current versions of Tomcat 6 even log some detailed info if APR is found and used. AFAIR on Windows it is enough to drop the tcnative.dll in Tomcat's bin directory - can't check that atm though. Anyway: putting it in a dir conrained in java.library.path should work. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
404 and originally requested URL
Hi I am using Tomcat 5.5, having set it up so that any 404 error redirects to a 404.jsp I have written for custom handling. Now I need access to the originally requested URL (the one which couldn't be found). I couldn't find a way to do this. All info I can get is that the requested URL is now 404.jsp, which I am not interested in. Any help much appreciated. Thanks in advance, Guilhem - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hardware load balancer
Hi all, I have tomcat and the acegi framework working just fine processing http and https requests. However, we put a load balancer in front of the server under test, and it no longer works: 1) The request without the load balancer forwards to https://myserver.net/public/index.jsp , but with the web server it forwards to just https://myserver.net/ . It then gets into a redirect loop for about 10 times to / . What I think is happening is there is no http session, which acegi needs. 2) If I type https://myserver.net/public/index.jsp into the browser url , it also loops on public/index.jsp . Same affect, no http session. I posted the question to the acegi list, and the reply from one of the developers is the loadbalancer is probably acting like a reverse proxy and I need to configure tomcat to redirect the requests: http://forum.springframework.org/showthread.php?t=37553 The load balancer is a loadmaster LMI-1500, which the docs describe as: Putting a LoadMaster or a SSL-Master in front of these web servers and terminating the SSL session, thus sending the traffic as regular HTTP to the servers relieves the servers of the CPU-intensive cryptographic functions. Using a LoadMaster also allows the ability to do cookie persistence, since the LoadMaster will see the unencrypted traffic and will be able to make persistence decisions based on cookies. I'm trying to digest what all this means. Any help appreciated. Robert
RE: 404 and originally requested URL
did you check your logs? Did they tell you anything? -Original Message- From: Guilhem SEMPERE [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:00 AM To: users@tomcat.apache.org Subject: 404 and originally requested URL Hi I am using Tomcat 5.5, having set it up so that any 404 error redirects to a 404.jsp I have written for custom handling. Now I need access to the originally requested URL (the one which couldn't be found). I couldn't find a way to do this. All info I can get is that the requested URL is now 404.jsp, which I am not interested in. Any help much appreciated. Thanks in advance, Guilhem - 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: Location of APR Win32 binaries
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Do I need to do something to tell it to be used? Yes: when you run the .exe installer, you'll get a Choose Components screen; the Tomcat box is gray, indicating that some pieces are not enabled. Open that up, and click the Native check box. As Markus pointed out, this initiates the download of the .dll, placing it in the bin directory. That explains why it didn't work after my initial setup: this machine has no internet connectivity allowed; it's internal LAN only. I would think it would be appropriate for the installer to give me a notice if it was unable to download the tcnative.dll. I had to manually copy it over, and that's why I was asking where to find it and how to verify that it was working. Having it already in the install.exe would be even better, IMO. how can I verify that it is being used? By default, there's an INFO message displayed if APR can't be found, I saw that on my first startup, which is how I knew I needed to work on it. since there's a listener configured for it in server.xml. The absence of the INFO message indicates that APR is in use. That's what I wasn't sure about. Thanks for the explanation. - 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: 404 and originally requested URL
On 4/18/07, Guilhem SEMPERE [EMAIL PROTECTED] wrote: Now I need access to the originally requested URL (the one which couldn't be found). I couldn't find a way to do this. The Servlet Spec is your friend -- SRV 8.4.2, specifically :-) 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]
RE: Tomcat 5.5.17 and IPv6 configuration
I have just tried with firefox. it runs also with http://[full_local_ipv6_address]:8080 but not run on a remote computer as before. I think that it is a problem of windows ID!!! in windows xp when you have to ping a remote computer you have to run: ping ipv6_address%ID So also when you write the http url you have to insert: http://[full_remote_ipv6_address%ID]:8080. But when i insert this address in web browser, it tells me that it is'nt correct. help me. Saverio From: SAVERIO FERRARO [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: Tomcat 5.5.17 and IPv6 configuration Date: Wed, 18 Apr 2007 16:25:10 +0200 Hi all, thank you for your responce. But there is the problem tomcat 5.5.17 and IPV6 too. I installed Microsoft IPv6 on Win XP sp2 and then Tomcat 5.5.17. Now I can access to Tomcat page from OPERA with http://localhost:8080 and with http:/[::1]:8080. I have just tried from remote computer with http://[full_ipv6_address]:8080 and http://[full_ipv6_address%ID]:8080 but nothing! May You help me? Thanks. Saverio FERRARO _ Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! http://videovip.it.msn.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] _ Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! http://videovip.it.msn.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: How to create a kind of alias in tomcat
Thing about these questions is always depends on what you really after... One way would be browser redirection ie stick this in the header of the index file under organigramme meta http-equiv=refresh content=N; URL=other-web-address and the way I like but I always get too much hassel moans and groans... Is create a servlet and just map the urls that u want to recieve to it... then with a little code... dispatch the call to the required page... or just use the a tomcat redirect like this Check incoming URL and response.sendRedirect(newUrl); Or stick apache in front and use its Aliases or Virtual Hosting - Original Message - From: BENTOUHAMI MB Malek (DCL) [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, April 18, 2007 1:57 PM Subject: How to create a kind of alias in tomcat Hello, I'd like to connect to my application at http://10.124.40.29:9090/ORGEWI/PLATFORM/FRENCH/EWICHART/JAVA/L1.html but users need to connect via http://10.124.40.29:9090/organigramme how to proceed ? fyi : Calendra / tomcat v4 many applications with context file ORGEWI.xml Tks, Malek - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why the time is way off?
The time in my Java web applications is way off the mark. For example, the time on the log4j message file is Apr 18 13:44 when the time on the Linux box is Apr 17 21:44. The applications use the same time data of log4j. There is not such issue in the development Window box, but only on the deployment Linux box. The applications don't change the time setting, nor the time zone. I have to ask whether it is possible that TC can be configured with different time set as its underlaid OS or not. Is a way to find out the time setting in a TC? I don't have a control of TC on the deployment box, btw.Thanks,Vernon _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx
Re: 404 and originally requested URL
What does the referrer request header give you ? Propes, Barry L wrote: did you check your logs? Did they tell you anything? -Original Message- From: Guilhem SEMPERE [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:00 AM To: users@tomcat.apache.org Subject: 404 and originally requested URL Hi I am using Tomcat 5.5, having set it up so that any 404 error redirects to a 404.jsp I have written for custom handling. Now I need access to the originally requested URL (the one which couldn't be found). I couldn't find a way to do this. All info I can get is that the requested URL is now 404.jsp, which I am not interested in. Any help much appreciated. Thanks in advance, Guilhem - 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]
Jasper5 And Fedora Core 6, build-classpath problems
I am trying to use Jasper on Fedora Core 6 to precompile some of my jsp but I come across the following classpath builder errors when trying run the jasper script:- $ /usr/bin/jasper5.sh /usr/bin/build-classpath: error: Could not find jasper-compiler Java extension for this JVM /usr/bin/build-classpath: error: Could not find jasper-runtime Java extension for this JVM /usr/bin/build-classpath: error: Could not find jsp-2.0-api Java extension for this JVM /usr/bin/build-classpath: error: Could not find servlet-2.4-api Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found Usage: /usr/bin/jasper5.sh ( jspc ) Commands: jspc - Run the offline JSP compiler I looked in the script to see what jar files the classpath builder needed and compared that to similar looking jar files in /usr/share/java By creating links to the following files I get rid of the errors $ su - # cd /usr/share/java # ln -s jasper5-compiler.jar jasper-compiler.jar # ln -s jasper5-runtime.jar jasper-runtime.jar # ln -s tomcat5-jsp-2.0-api.jar jsp-2.0-api.jar # ln -s tomcat5-servlet-2.4-api.jar servlet-2.4-api.jar # exit $ /usr/bin/jasper5.sh Usage: /usr/bin/jasper5.sh ( jspc ) Commands: jspc - Run the offline JSP compiler So what I am wondering is have I missed off installing a compatibility package or is there a mistake in the jasper package that should either create these links or change the names required in the script? For reference the packages concerned are tomcat5-servlet-2.4-api-5.5.17-6jpp.2 tomcat5-jsp-2.0-api-5.5.17-6jpp.2 tomcat5-jasper-5.5.17-6jpp.2 Steve Hindmarch One IT - iBridge Development - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Apache Tomcat JK 1.2.22 Web Server Connector released
The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.22 of the Apache Tomcat Connectors. It contains connectors, which allow a web server such as Apache HTTPD, Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web application server. This version of mod_jk is principally a bug and security fix release. See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html for a complete list of changes. Source distribtions can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Binary distributions for a number of different operating systems and web servers can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Documentation for using JK with Tomcat 3.3, 4.1, 5.0 and 5.5 can be found at: http://tomcat.apache.org/connectors-doc/ Thank you, -- The Apache Tomcat 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]
Re: Location of APR Win32 binaries
Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Or you can read the documentation for a change ;) http://tomcat.apache.org/tomcat-6.0-doc/apr.html windows 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. /windows The *here* is link to: http://tomcat.heanet.ie/native/ Regards, Mladen. - 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: Location of APR Win32 binaries
Mladen Turk wrote: Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Or you can read the documentation for a change ;) http://tomcat.apache.org/tomcat-6.0-doc/apr.html windows 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. /windows The *here* is link to: http://tomcat.heanet.ie/native/ Regards, Mladen. I guess I'm just blind! I read that page at least 3 times, but never noticed that the here was a link. I guess I need to change my browser settings to make links stand out a bit more. Tks! - 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: changing the name of tomcat homedir - impact?
As many on this thread have suggested it is better to uninstall it with the uninstaller, when you first installed it as a Windows Service. I think I had problems when there was a blank space in the installation path, however I don't clearly remember what the problem was. I do know that Ant can have unexpected problems when there's a space in a path, and a while ago I used Ant to auto deploy to Tomcat, so installing Tomcat on a directory that didn't have spaces in it assured peace of mind. I also had problems (it must have been my mistake also, sorry I didn't note it down) with the Windows Service Installer, so I prefer to install from the zip distribution on the development environment. -Rashmi - 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: Why the time is way off?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vernon, Vernon _ wrote: The time in my Java web applications is way off the mark. For example, the time on the log4j message file is Apr 18 13:44 when the time on the Linux box is Apr 17 21:44. The (lack of) minute differential is an indication that when you run date from the command-line you are getting one timezone, and the JVM is using another one. Run date from the command line and see what timezone is displayed. For instance, when I run date with no arguments, I get this: Wed Apr 18 13:07:26 EDT 2007 So my timezone is EDT (UTC - 0400). Depending on your Linux distribution, you can change the timezone for the OS in different ways. I use Gentoo Linux which uses /etc/localtime as a symlink to the real timezone definition file located in the /usr/share/zoneinfo directory. The JVM lets you set the timezone of the JVM by using the user.timezone system property. You can also read that property to see what timezone is being used by the JVM. The applications don't change the time setting, nor the time zone. Your JVM may have a differently configured timezone or the config might be broken, causing it to default to UTC. I have to ask whether it is possible that TC can be configured with different time set as its underlaid OS or not. Absolutely... using the user.timezone system property. You can set this in your startup.sh file or probably using export JAVA_OPTS=-Duser.timezone=??? and then running startup.sh. Is a way to find out the time setting in a TC? System.err.println(new Date()) ought to print the timezone. I don't have a control of TC on the deployment box, btw. That could be a problem. I'm not sure if you can change the value of user.timezone at runtime. You can always try ;) If not, you will either have to get your system administrators to fix the TC timezone setting or just deal with the incorrect timezone. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGJlIO9CaO5/Lv0PARArvcAJ9WsVtypQ4/Lhl4mvBcyiloEkvVkACfQdZl qYxBO0ltOJyHkW94LRQownU= =Bbqj -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: 404 and originally requested URL
On 4/18/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 4/18/07, Guilhem SEMPERE [EMAIL PROTECTED] wrote: Now I need access to the originally requested URL (the one which couldn't be found). I couldn't find a way to do this. The Servlet Spec is your friend -- SRV 8.4.2, specifically :-) No, none of the methods listed under SRV 8.4.2 show the referring URL information, also the Referer header is null. Put these in 404.jsp %=request.getRequestURI()%br/ Shows the URL of the 404 page and not the page that sent it to the 404 page. %=request.getContextPath()%br/ %=request.getServletPath()%br/ %=request.getPathInfo()%br/ %=request.getQueryString()%br/ The referer header is null %=request.getHeader(referer)% Hmm... there really doesn't seem to be a way to get the URL of the page that caused the 404 error, inside the 404.jsp page --- probably possible with a Filter. Also AccessLogValve captures all URLs. -Rashmi - 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: Mixing Apache's mod_rewrite with mod_proxy
Hi Matt, See configuration below. I hope this helps you - Clay Test Cases for Requirement #1 http://www.domain.com/?v=1 - http://www.domain.com/1 http://www.domain.com/?v=2 - http://www.domain.com/2 Test Cases for Requirement #2 http://www.domain.com/?q=foov=1 - http://www.domain.com/1 http://www.domain.com/?v=1q=foo - http://www.domain.com/1 http://www.domain.com/?p=barv=1q=foo - http://www.domain.com/1 #mod_proxy_ajp, mod_proxy_balancer and mod_rewrite configuration #webapp1 or webapp2 are deployed RewriteCond%{QUERY_STRING} (.*)v=(1|2) RewriteRule ^(.*)$ /%2/? [L,R] #default to webapp1 for anything else RewriteCond%{QUERY_STRING} (.*)v=([^12]) RewriteRule ^(.*)$ /1/? [L,R] Proxy balancer://cluster BalancerMember ajp://localhost:8009 route=tomcat1 #BalancerMember ajp://localhost:8010 route=tomcat2 /Proxy Location /1 ProxyPass balancer://cluster/servlets-examples /Location Location /2 ProxyPass balancer://cluster/jsp-examples /Location -- View this message in context: http://www.nabble.com/Mixing-Apache%27s-mod_rewrite-with-mod_proxy-tf3587361.html#a10063037 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: 404 and originally requested URL
On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: The Servlet Spec is your friend -- SRV 8.4.2, specifically :-) No, none of the methods listed under SRV 8.4.2 show the referring URL information You misunderstand -- there is no reference to the referrer in the original posting, nor is it relevant. The page being requested that was *not found* and hence caused the /forward/ to the custom 404 page /is/ identified by the request attributes mentioned in SRV 8.4.2 -- javax.servlet.forward.request_uri and so on. -- 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: 404 and originally requested URL
Well, the wording in the servlet spec The values of these attributes must be equal to the return values of the... don't reflect what I see: I was thinking that request.getRequestURI returns the same results as request.getAttribute(javax.servlet.forward.request_uri) request.getRequestURI gives the URL of the 404 page but, request.getAttribute(javax.servlet.forward.request_uri) gives the URL of the invalid page that forwarded to the 404 page. Anyway, as you mentioned the OP should be able to get the forward URL from javax.servlet.forward.request_uri -Rashmi On 4/18/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: The Servlet Spec is your friend -- SRV 8.4.2, specifically :-) No, none of the methods listed under SRV 8.4.2 show the referring URL information You misunderstand -- there is no reference to the referrer in the original posting, nor is it relevant. The page being requested that was *not found* and hence caused the /forward/ to the custom 404 page /is/ identified by the request attributes mentioned in SRV 8.4.2 -- javax.servlet.forward.request_uri and so on. -- 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] - 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: Mixing Apache's mod_rewrite with mod_proxy
I got this working with mod_jk and the following configuration for mod_rewrite: RewriteEngine On # http://domain/?v=1 -- http://domain/app1/?v=1 RewriteCond %{QUERY_STRING} v=([^]+) RewriteRule ^(.*)$ /app%1/$1 [L] # http://domain -- http://domain/app (default ROOT in Tomcat) RewriteRule ^$ /app/ [L] My mod_jk configuration is: JkMount /app* loadbalancer I tried to use mod_proxy and mod_proxy_ajp, but for some reason (with Apache 2.2.4 on OS X), I couldn't get the following to work (from httpd.conf): Proxy balancer://cluster BalancerMember ajp://localhost:8009 route=tomcat1 BalancerMember ajp://localhost:8010 route=tomcat2 /Proxy Location ~ /app(.*) Order Allow,Deny Allow from all ProxyPass balancer://cluster stickysession=JSESSIONID ProxyPassReverse / /Location I tried LocationMatch as well, but no dice. Something about my configuration doesn't seem to allow Location|LocationMatch to read the regular expressions properly. The nice thing about using mod_proxy is I could use mod_proxy_html to rewrite all the outgoing links so they're the same as the incoming links (notice my mod_rewrite configuration does not do redirects). The problem I'm trying to solve now is how to round-robin between apps 1, 2 and 3. If there's a v parameter or v cookie, I want to disable round-robin-ing. But otherwise, I want to assign an app so all the A/B tests are used equally by anonymous users. Matt press wrote: Hi Matt, See configuration below. I hope this helps you - Clay Test Cases for Requirement #1 http://www.domain.com/?v=1- http://www.domain.com/1 http://www.domain.com/?v=2- http://www.domain.com/2 Test Cases for Requirement #2 http://www.domain.com/?q=foov=1 - http://www.domain.com/1 http://www.domain.com/?v=1q=foo - http://www.domain.com/1 http://www.domain.com/?p=barv=1q=foo - http://www.domain.com/1 #mod_proxy_ajp, mod_proxy_balancer and mod_rewrite configuration #webapp1 or webapp2 are deployed RewriteCond%{QUERY_STRING} (.*)v=(1|2) RewriteRule ^(.*)$ /%2/? [L,R] #default to webapp1 for anything else RewriteCond%{QUERY_STRING} (.*)v=([^12]) RewriteRule ^(.*)$ /1/? [L,R] Proxy balancer://cluster BalancerMember ajp://localhost:8009 route=tomcat1 #BalancerMember ajp://localhost:8010 route=tomcat2 /Proxy Location /1 ProxyPass balancer://cluster/servlets-examples /Location Location /2 ProxyPass balancer://cluster/jsp-examples /Location -- View this message in context: http://www.nabble.com/Mixing-Apache%27s-mod_rewrite-with-mod_proxy-tf3587361.html#a10063745 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: 404 and originally requested URL
On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: Well, the wording in the servlet spec The values of these attributes must be equal to the return values of the... don't reflect what I see: I was thinking that request.getRequestURI returns the same results as request.getAttribute(javax.servlet.forward.request_uri) Read the entire sentence: The values of these attributes must be equal to the return values of the HttpServletRequest methods getRequestURI, getContextPath, getServletPath, getPathInfo, getQueryString respectively, invoked on the request object passed to *the first servlet object in the call chain* that received the request from the client. The 404 page is *not* the first servlet object so obviously those values are not the same. 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]
Re: 404 and originally requested URL
Ok, now I get it. Sorry, it was my mistake for not reading the sentence carefully. -Rashmi On 4/18/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: Well, the wording in the servlet spec The values of these attributes must be equal to the return values of the... don't reflect what I see: I was thinking that request.getRequestURI returns the same results as request.getAttribute(javax.servlet.forward.request_uri) Read the entire sentence: The values of these attributes must be equal to the return values of the HttpServletRequest methods getRequestURI, getContextPath, getServletPath, getPathInfo, getQueryString respectively, invoked on the request object passed to *the first servlet object in the call chain* that received the request from the client. The 404 page is *not* the first servlet object so obviously those values are not the same. 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rendering php
I have installed Apache2.2 on my machine and got the It Works page when I type http://localhost in both windows and firefox. Also when I type http://localhost/ProjectFolder I can see all my php files listed in both windows and firefox. The difference is when I click on one of my webpages, I get the webpage rendered in windows, but in firefox I get the source code displayed. Is there a reason for this? I am trying to execute an xmlhttprequest on a php webpage, but I am getting access denied on this line http.open(GET, url, true); where url is http://localhost/ProjectFolder/file.php;. Can anyone help me with this? Richard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: rendering php
Have you asked on an Apache httpd support list? I don't see where tomcat is involved in your question. --David Richard Dunne wrote: I have installed Apache2.2 on my machine and got the It Works page when I type http://localhost in both windows and firefox. Also when I type http://localhost/ProjectFolder I can see all my php files listed in both windows and firefox. The difference is when I click on one of my webpages, I get the webpage rendered in windows, but in firefox I get the source code displayed. Is there a reason for this? I am trying to execute an xmlhttprequest on a php webpage, but I am getting access denied on this line http.open(GET, url, true); where url is http://localhost/ProjectFolder/file.php;. Can anyone help me with this? Richard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: rendering php
Hi Richard- what happens when you give god rights to everyone and everything for that folder? cwd ProjectFolder chmod +777 M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Richard Dunne [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, April 18, 2007 3:09 PM Subject: rendering php I have installed Apache2.2 on my machine and got the It Works page when I type http://localhost in both windows and firefox. Also when I type http://localhost/ProjectFolder I can see all my php files listed in both windows and firefox. The difference is when I click on one of my webpages, I get the webpage rendered in windows, but in firefox I get the source code displayed. Is there a reason for this? I am trying to execute an xmlhttprequest on a php webpage, but I am getting access denied on this line http.open(GET, url, true); where url is http://localhost/ProjectFolder/file.php;. Can anyone help me with this? Richard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
caching principals within Tomcat using Basic Auth and LDAP
Hello, I have a web app on Tomcat 5.5 where we're using Basic Auth as our authentication method. We recently did some load testing and noticed that every HTTPS request to one of the secure URLs was resulting in an LDAP auth check. This makes sense because in Basic Auth, the browser send the credentials with every request via the Authorization header. I would like Tomcat to cache the credentials for a period of time so that after successfully authenticating against LDAP, the server will not hit LDAP for that particular user for 5-10 minutes, to reduce load on the LDAP server and remove a system bottleneck. Note, the user observes this behavior already since the browser caches the credentials; the problem I'm trying to solve is excessive load on the LDAP server. I consulted the Tomcat 5.5 docs and read the following paragraph in the Realm HOWTO ( http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ): Once a user has been authenticated, the user (and his or her associated roles) are cached within Tomcat for the duration of the user's login. (For FORM-based authentication, that means until the session times out or is invalidated; for BASIC authentication, that means until the user closes their browser). So the docs indicate that Tomcat would automatically give me the behavior that I'm looking for (Tomcat caching the credentials) but my LDAP logs are telling a different story. I think the more accurate description is that the browser caches the credentials for the duration of the browser process, but Tomcat doesn't cache anything. So my question (after this long-winded exposition) is that it seems that Tomcat gives me nothing for caching Basic Auth'd users to reduce load on my LDAP server. Can anyone confirm or deny if this is true? Has anyone ever encountered a similar situation and found a workaround? My current best workaround idea is to install Apache HTTP server in front of Tomcat (which can do Basic Auth credential caching) and turn off Tomcat security, but this seems kludgy. Thanks in advance for any help. -- - Bill
Re: HTTP Status 503 - occurs once - only when i stop and start server
Hi there, Have you set-up your projects in a way that it overloads Tomcat? Or is there something in the code that needs optimization? It helps to check Tomcat's logs for any exceptions/ error messages that give additional clues. According the the RFC 2616 and the Servlet 2.4 spec: Status code (503) indicates that the HTTP server is temporarily overloaded, and unable to handle the request. -Rashmi - 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: Getting a project deployed
On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: That's it, you can then start Tomcat with startup.sh and access it at http://localhost:8080/ by default, and remember to shut it down with shutdown.sh and not CtrlC Then, to see a simple JSP application, create a new folder under Tomcat's webapps folder. Put a JSP file with any text there. You can then access the JSP at http://localhost:8080/SomeFolder/somefile.jsp , in this case SomeFolder is known as the application's context. Anything in the ROOT context appears immediately after the slash here: http://localhost:8080/ Ah, you make me happy. It works perfectly standalone. So it appears my issue is with either Apache or mod_jk, not with Tomcat. Which is odd, because no error messages have appeared in mod_jk.log. So maybe it's Apache I'm having troubles with. I'm doing a 'JkMount /path/to/jmarks/*.jsp ajp13' in my Apache configuration, as I said, plus an alias to the webapps folder—do I need another configuration directive somewhere to finish it up? Is there anything more I can plead from this list or would my problem be best dealt with elsewhere? Thanks. - 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: Getting a project deployed
I personally haven't worked with mod_jk , I'm sure there's someone on this list who could help you with mod_jk config. A lot of info is available in the docs also: http://tomcat.apache.org/connectors-doc/index.html But simply running JSPs doesn't require any connection with Apache Httpd. -Rashmi - 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: Getting a project deployed
On 4/18/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: I personally haven't worked with mod_jk , I'm sure there's someone on this list who could help you with mod_jk config. A lot of info is available in the docs also: http://tomcat.apache.org/connectors-doc/index.html But simply running JSPs doesn't require any connection with Apache Httpd. Yeah, it's just nicer to have a port 80 connection… At the moment my pressing question is where to find more information about errors. The mod_jk log doesn't appear to have any details, nor does the Apache log. So I don't really have anything to go on. For anyone tuning in, my problem is this message displayed in the browser: HTTP Status 404 - /path/to/jmarks/index.jsp type: Status report message: /path/to/jmarks/index.jsp description: The requested resource (/path/to/jmarks/index.jsp) is not available. Apache Tomcat/5.0 - 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: Getting a project deployed
On 4/18/07, John Calsbeek [EMAIL PROTECTED] wrote: Yeah, it's just nicer to have a port 80 connection… So run Tomcat on port 80 -- is there any aspect of Apache httpd you actually /require/? PHP, proxy to Mongrel, whatever? If not, simplify your life and run Tomcat standalone :-) 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: Getting a project deployed
On 4/18/07, John Calsbeek [EMAIL PROTECTED] wrote: For anyone tuning in, my problem is this message displayed in the browser: I just want to add that the following error message is not related to mod_jk or Apache, this error commonly occurs on Tomcat alone if the project is not configured correctly. It is most likely that the project is not configured properly. We can fix the 404 error by properly configuring your project for Tomcat alone. For starters, what is the absolute path of this index.jsp from the root folder of the Linux machine? HTTP Status 404 - /path/to/jmarks/index.jsp type: Status report message: /path/to/jmarks/index.jsp description: The requested resource (/path/to/jmarks/index.jsp) is not available. Apache Tomcat/5.0 -Rashmi - 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: HTTP Status 503 - occurs once - only when i stop and start server
Is it just that Tomcat is taking time to start up? I wouldn't be surprised to get a 503 error if Tomcat isn't ready to handle requests yet. What happens if you start the server, wait for a minute, then launch the browser? -- Len On 4/18/07, risky57 [EMAIL PROTECTED] wrote: I am working with tomcat embeded. i got the thing to run. a gui pops up where you can start the server. a button to launch a browser to the localhost. this works fine. displays as running. when i press the stop button. it destroys and stops the server. now when i press the start button, it starts the server. if i press the launch a browser button, i get the HTTP Status 503 error. this only occurs once. if i refresh the page its fine. or if press the launch a browser button again its fine. if stop and start again, same problem. does anyone have any ideas? can i automatically refresh the browser page when the page is launched with Java? thank you for your help. -- View this message in context: http://www.nabble.com/HTTP-Status-503---occurs-once---only-when-i-stop-and-start-server-tf3603240.html#a10066453 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: Jasper5 And Fedora Core 6, build-classpath problems
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - 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: sending smtp mail failure
It was churning for a long time and still didn't manage to send the email. But it left me this exception: org.apache.commons.mail.EmailException: Sending the email to the following serve r failed : smtp.gmail.com:465 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:873) at org.apache.commons.mail.Email.send(Email.java:898) at TimeTravelMailer.sendMessage(TimeTravelMailer.java:29) at CreateAccountServlet.doPost(CreateAccountServlet.java:12) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Appl icationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationF ilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperV alve.java:210) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextV alve.java:174) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.j ava:117) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineVal ve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.jav a:151) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java :870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpo int.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFol lowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadP ool.java:685) at java.lang.Thread.run(Thread.java:619) Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.g mail.com, port: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java :1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect( SMTPTransport.java:37 0) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863) ... 19 more On 4/17/07, Johnny Kewl [EMAIL PROTECTED] wrote: Ha ha now you need to read up on threads and background processing Very good description in the java tutorial from sun. The browser will wait so u need to start the email as a background process. The browser will come back instantly, and depending on what u doing, you will have to log the error messages, and possibly allow the user to see a report via the browser. enjoy - Original Message - From: Mighty Tornado [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, April 17, 2007 2:35 AM Subject: Re: sending smtp mail failure Thanks for the input, I was able to actually send email from Outlook Express after changing port numbers and changing the host name to smtp.gmail.com instead of smtp.google.com. Now I encountered a different problem - when I attempt to send an email from a servlet running on my local XP machine it looks like it is doing something but the green bar in the browser doesn't progress, it is there but stays white. And no exceptions thrown. Just sitting there not proceeding to the next page. Like it is trying to send an email but it is taking a year. On 4/16/07, Len Popp [EMAIL PROTECTED] wrote: That's a timeout error. I was able to send an email thru smtp.google.com using Outlook Express, with no timeout error, so it looks like there's something wrong with either your email settings or your connection to gmail.com (firewall or something). Google has a troubleshooter program to diagnose POP SMTP setup problems: http://mail.google.com/support/bin/answer.py?answer=44769 -- Len On 4/16/07, Mighty Tornado [EMAIL PROTECTED] wrote: I heeded your advice and tried setting up Outlook Express for gmail server. This is the message that I got: The connection to the server has failed. Account: 'smtp.google.com', Server: 'smtp.google.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E On 4/15/07, Johnny Kewl [EMAIL PROTECTED] wrote: Here is a little framework that u can play with MimeMessage msg = new MimeMessage(session); msg.setFrom(new InternetAddress(from)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to)); msg.setSubject(subject); msg.setSentDate(new Date()); // ADD TEXT
Jasper compiler very slow
Hello All, The compile time for my .jsp pages is extremely slow -- like 10 seconds on a modern PC to the first time any page is run. Painful during development. I can compile a vast amount of Java code in 2 seconds. It is difficult to imagine what could be happening within Jasper to be that slow. I have been using the .tag facility to define custom tags fairly heavily. The pages are template driven, so that my top level JSPs contain little or no actual HTML. But there is not that much template code -- an XML parser should be able to read the lot in a few tens of milliseconds. I suspect that there is something very specific that is causing the very bad performance. Have not started profiling. I'd call this a bug. Any ideas most welcome. [Pre-compiling the JSPs would not help -- it would make things worse. At least now I only need to wait for the recompile of the JSPs that I actually want to test in a run. Pre-compiling would require me to wait for all the JSPs to recompile -- many minutes. (One needs to blast the Jasper work area regularly otherwise changes to .tag files do not get reflected in .jsps)] Anthony [[My general comment would be for web development use Servlets, not JSPs. With a few well thought out templates you don't write much HTML anyway, and using servlets ends the impedance mismatch, as well as much of the pain... But too late for me now.]] -- Dr Anthony Berglas Ph. +61 7 3227 4410 (Mob. +61 42 783 0248) [EMAIL PROTECTED]; [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: error-page
I have an error-page directive in a webapp's web.xml to display a custom error page on 404/500 errors. . It works on my local machine which has Tomcat 5.5.17, but it does not work on my server which has 5.5.20 installed. Any ideas? Below is my web.xml: -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameNavigation Update Application/display-name !-- Standard Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-filenavigationPassword.jsp/welcome-file /welcome-file-list error-page error-code500/error-code location/error.jsp/location /error-page error-page error-code404/error-code location/error.jsp/location /error-page taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld /taglib-location /taglib taglib taglib-uri/tags/struts-html/taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld /taglib-location /taglib /web-app __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: error-page
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - 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: Jasper compiler very slow
Hi Anthony, The compile time for my .jsp pages is extremely slow -- like 10 seconds on a modern PC to the first time any page is run. Painful during development. I can compile a vast amount of Java code in 2 seconds. It is difficult to imagine what could be happening within Jasper to be that slow. The slow compile time of Jasper is expected behavior. JSP pre-compiling should only be done immediately before creating a WAR file, there is no need to pre-compile your JSPs during development of your application. Many people pre-compile JSPs to see the changes they've made to the JSPs , this is not necessary at all. All you need to do to see the changes is refresh your browser. Just point the docBase (if your project is outside Tomcat's folder) to your Project's root folder and make changes to the JSP and refresh the browser. As an alternative to JSP pre-compiling with a compiler, you could also achieve the same results with Apache Cactus --- it unit tests your JSP pages and in the process calls each JSP page and as a result of the first call pages get pre-compiled. I was given this tip on the Ant mailing list, but have not tried it yet. The advantage they said was that it keeps your JSPs portable across web containers. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page directive in 5.5.20 - resending
Hi, I have an error-page directive in a webapp's web.xml to display a custom error page on 404/500 errors. . It works on my local machine which has Tomcat 5.5.17, but it does not work on my server which has 5.5.20 installed. Any ideas? Below is my web.xml: -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameNavigation Update Application/display-name !-- Standard Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-filenavigationPassword.jsp/welcome-file /welcome-file-list error-page error-code500/error-code location/error.jsp/location /error-page error-page error-code404/error-code location/error.jsp/location /error-page taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld /taglib-location /taglib taglib taglib-uri/tags/struts-html/taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld /taglib-location /taglib /web-app __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: error-page
I did not realize/know that this will create a problem. I apologize for doing that. I have sent a new message for my topic/question. Thanks for bringing it to my attention. --- Mark Thomas [EMAIL PROTECTED] wrote: When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
problems configuring mod_jk
Hi, I'm trying to set up Apache to talk to Tomcat using the mod_jk connector. However, I get the following error in the log, /var/log/apache2/mod_jk.log jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13_worker Apparently it cannot find the definition (or whatever) for ajp13_worker, but this is defined in /etc/libapache2-mod-jk/workers.properties as far as I can tell. I include the relevant portions of my config below. If anyone can tell me what I'm doing wrong, that would be great. Thanks in advance. Faheem. Relevant portion of apache config LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so VirtualHost x.x.x.60:443 ServerName ... # Sample mod_jk configuration # for Apache 2 # # for all commands/options available see the manual # provided in libapache-mod-jk-doc package. # The location where mod_jk will find the workers definitions JkWorkersFile /etc/libapache2-mod-jk/workers.properties # The location where mod_jk is going to place its log file JkLogFile /var/log/apache2/mod_jk.log # The log level: # - info log will contain standard mod_jk activity (default). # - warn log will contain non fatal error reports. # - error log will contain also error reports. # - debug log will contain all information on mod_jk activity # - trace log will contain all tracing information on mod_jk activity JkLogLevel info # Assign specific URLs to Tomcat. In general the structure of a # JkMount directive is: JkMount [URL prefix] [Worker name] # send all requests ending in .jsp to ajp13_worker JkMount /*.jsp ajp13_worker #JkMount /* ajp13_worker # send all requests ending /servlet to ajp13_worker #JkMount /*/servlet/ ajp13_worker # JkUnmount directive acts as an opposite to JkMount and blocks access # to a particular URL. The purpose is to be able to filter out the # particular content types from mounted context. # do not send requests ending with .gif to ajp13_worker #JkUnMount /servlet/*.gif ajp13_worker # JkMount / JkUnMount directives can also be used inside VirtualHost # sections of your httpd.conf file. /VirtualHost /etc/libapache2-mod-jk/workers.properties # workers.properties - # # This file is a simplified version of the workers.properties supplied # with the upstream sources. The jni inprocess worker (not build in the # debian package) section and the ajp12 (deprecated) section are removed. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to do is un-comment and modify the first three # properties, i.e. workers.tomcat_home, workers.java_home and ps. # Most of the configuration is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp13 worker that connects to localhost:8009 # - A load balancer worker # # # OPTIONS ( very important for jni mode ) # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # workers.tomcat_home=/usr/share/tomcat5.5 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=/usr/lib/j2sdk1.5-sun # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=/ # #-- ADVANCED MODE #- # # #-- worker list -- #- # # # The workers that your plugins should create and work with # worker.list=ajp13_worker # #-- ajp13_worker WORKER DEFINITION -- #- # # # Defining a worker named ajp13_worker and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13_worker.port=8009 worker.ajp13_worker.host=localhost worker.ajp13_worker.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13_worker.lbfactor=1 # # Specify the size of
Re: Jasper compiler very slow
Anthony, Please ignore my first reply on this thread, I misunderstood your post, the reply I posted is irrelevant. Here's my new reply : On 4/18/07, Berglas, Anthony [EMAIL PROTECTED] wrote: Hello All, The compile time for my .jsp pages is extremely slow -- like 10 seconds on a modern PC to the first time any page is run. Painful during development. I agree that 10 seconds is too long, normally having JSP pages with a lot of plain-text, causes them to be slow, also JSP page load time can be attributed to non-optimized application layer code as well. Here are a few suggestions that have worked for me: 1) If the JSP pages have a lot of plain-text, move the plain text to a persistent store - for example an XML file or database. 2) See if there's any code in the application layer that could be optimized --- JDBC code (normally using Connection Pooling and Prepared Statements, batch updates/inserts). 3) If the result set returned from the persistence layer is too large try paging it into smaller chunks. After carefully making some of the above changes to my JSPs (especially moving out the plain text to a persistent store), my JSP page load within 1 second in the development environment on *first access*. I can compile a vast amount of Java code in 2 seconds. It is difficult to imagine what could be happening within Jasper to be that slow. I thought you meant the Jasper *pre-compiler* , and not the normal run-time compiler. I have been using the .tag facility to define custom tags fairly heavily. The pages are template driven, so that my top level JSPs contain little or no actual HTML. But there is not that much template code -- an XML parser should be able to read the lot in a few tens of milliseconds. I store all plain text in an XML file and I use XSLT to transform the XML structure into an HTML file. Then I call the transformation from a JSP page with JSTL's x:transform tag. This causes the page to load very quickly. Most of the HTML is dynamically generated by the XSLT. Also, I store chunks of plain text with HTML formatting in an XML file and transform it with XSLT to make the page load faster. I suspect that there is something very specific that is causing the very bad performance. Have not started profiling. I'd call this a bug. Is the HTML being generated dynamically? or is there a lot of static HTML and plain text? Also, it would help to optimize the database layer and app layer code. Any ideas most welcome. [Pre-compiling the JSPs would not help -- it would make things worse. At least now I only need to wait for the recompile of the JSPs that I actually want to test in a run. Pre-compiling would require me to wait for all the JSPs to recompile -- many minutes. (One needs to blast the Jasper work area regularly otherwise changes to .tag files do not get reflected in .jsps)] Yeah, I agree - pre-compiling is not meant to be used during application development anyway. Others are of course welcome to make their suggestions :-) -Rashmi - 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: error-page directive in 5.5.20 - resending
Hi Eqbal, Try upgrading the DTD/Schema URIs to 2.4 version since that's the latest version supported by 5.5.x . To upgrade, remove these lines: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; and change the web-app node to web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; Also move the error-page nodes to the bottom of the web.xml , that is after the taglib nodes. to display a custom error page on 404/500 errors. . It works on my local machine which has Tomcat 5.5.17, but it does not work on my server which has 5.5.20 installed. Any ideas? Could you please elaborate -- does not work doesn't give us much clue as to what may be wrong. -Rashmi - 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 deployment question
I have upgraded from Tomcat 3.3 to Tomcat 5.5.23. It is running on WinXP and I am using Java 1.5. Here's my dierctory set up: ${Catalina.Home} -- conf -- Catalina --localhost htdocs.xml -- htdocs index.html --bin --html --jsp --css --jar --WEB-INF web.xml --classes --lib In server.xml, I modified the Host element to have {appBase=htdocs autoDeploy=false} I am using htdocs.xml in ${Catalina.home}/Catalina/localhost as the context descriptor and is defined as follows: Context docBase=${catalina.home} override=true privileged=true Loader className=com.example.appClassLoader reloadable=true/ !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- Manager pathname= / /Context Tomcat is able to load appClassLoader. However, when I type, http://localhost:8080, it is not able to load the index.html found under the htdocs directory. If I create ROOT directory and move the index.html over there it is able to load it. I guess, my main problem is how can I maintain the same direstory structure as above without having to create ROOT and move everything below it? The above directory structure worked in Tomcat 3.3. What am I missing? Thanks Lakshmi
Re: Tomcat deployment question
Hi Lakshmi, Rename the context file from htdocs.xml to ROOT.xml then you should be able to access the app at http://localhost:8080/ -Rashmi - 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 deployment question
Hi Rashmi, Thanks! I renamed htdocs.xml to ROOT.xml. http://localhost:8080 did not work. However, http://localhost:8080/htdocs/index.html worked which is some progress. I think my organization would prefer only http://localhost:8080 I am confused between the concepts appBase, docBase and path. So given the directory structure below, what should be the values of appBase, docBase and path so http://localhost:8080 looks for index.html under htdocs. Thanks again Lakshmi -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 9:04 PM To: Tomcat Users List Subject: Re: Tomcat deployment question Hi Lakshmi, Rename the context file from htdocs.xml to ROOT.xml then you should be able to access the app at http://localhost:8080/ -Rashmi ---Original posting by Lakshmi --- I have upgraded from Tomcat 3.3 to Tomcat 5.5.23. It is running on WinXP and I am using Java 1.5. Here's my dierctory set up: ${Catalina.Home} -- conf -- Catalina --localhost htdocs.xml -- htdocs index.html --bin --html --jsp --css --jar --WEB-INF web.xml --classes --lib In server.xml, I modified the Host element to have {appBase=htdocs autoDeploy=false} I am using htdocs.xml in ${Catalina.home}/Catalina/localhost as the context descriptor and is defined as follows: Context docBase=${catalina.home} override=true privileged=true Loader className=com.example.appClassLoader reloadable=true/ !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- Manager pathname= / /Context Tomcat is able to load appClassLoader. However, when I type, http://localhost:8080, it is not able to load the index.html found under the htdocs directory. If I create ROOT directory and move the index.html over there it is able to load it. I guess, my main problem is how can I maintain the same directory structure as above without having to create ROOT and move everything below it? The above directory structure worked in Tomcat 3.3. What am I missing? Thanks Lakshmi - 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]
Context.xml in tomcat 5.5
Hi all, Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we have to write in this xml file and when is this file needed,i made two sample web application in jsp and servets ,i just deployed those in webapps ,i se the java and tomcat home as required and these application are running ,i just want to know that when we have to configure this file. Thanks
Re: Context.xml in tomcat 5.5
the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all application, you ll wanna use that if you have a global environment variable. for example you need a DataSource (connection pool) that is shared for all application. you can configure a context.xml inside META-INF of your web app. On 4/19/07, Avinash Kumar [EMAIL PROTECTED] wrote: Hi all, Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we have to write in this xml file and when is this file needed,i made two sample web application in jsp and servets ,i just deployed those in webapps ,i se the java and tomcat home as required and these application are running ,i just want to know that when we have to configure this file. Thanks -- -Andre- People see things the way they are and say why ? I see things that never were and say Why not ?