Re: Deploying an application with its own xml file
In what way, do you mean path seperator or something else ? Within my context.xml im using forward slash (UNIX notation) for both and its the Windows one that is working Phillip Qin wrote: Windows and linux use different url. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 13, 2005 4:22 AM To: Tomcat Users List Subject: Re: Deploying an application with its own xml file Ok, it is working on my test (Windows) environment. But with same war deploying it to my Live environment(Linux) results in it creating myapp.xml as a directory rather than a file ! Ive doubled checked this and the behaviour is constant, anyone ever sdeen this? Paul Taylor wrote: Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e63db745621951019963! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying an application with its own xml file
Ok, it is working on my test (Windows) environment. But with same war deploying it to my Live environment(Linux) results in it creating myapp.xml as a directory rather than a file ! Ive doubled checked this and the behaviour is constant, anyone ever sdeen this? Paul Taylor wrote: Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e4fe7c238787962119335! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple domain names to a single site
Still struggling perhaps I need to buy a book but Ive had a tentaive look at your options Parsons Technical Services wrote: Does the dnsmanager have a choice for redirection of an URL? It has lots of choices, you can change the dn server, and can use their own dnsmanager to chanage various web,domain and email settings. Unfortunately there is a lack of documentation explaining it. There is nothing saying redirection but I have raised a support request so wiill see what happens. If not: If the URL is pointed to an IP it will not change on its own. You could set up an app under a host of myapp.net and do a redirect to .com yourself. I think Im just llacking the understanding. My server.xml file and the one I previously used in another company just use the default host of localhost and that seemed to work ok. I did create a new host called www.mycompany.com which meant tomcat expect to find a directory of the same name underneath conf/Catalina but i cant really understand the point of it. Or I think you can do the rewrite of the URL from a jsp welcome page of myapp. I think Im right in saying this will only work on the default page www.mycompany.net not if they go to straight to www.mycompany.net/page1.jsp ecetera. OR Try the alias. I don't know if the alias will change the URL or not. (Or is this what you were doing?) Tried adding alises of www.mycompany.net and www.mycompany.com to the existing host of localhost but made no difference. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connections not released during reload
Write a ServletContextLlistener and in its contextDestroyed() method use the shutdown() method of the DBCP pool to close connections. rgds Antony Paul On Thu, 13 Jan 2005 11:37:22 +0100, Bernhard Slominski [EMAIL PROTECTED] wrote: Hi, I'm using the following conmfiguration: - tomcat 5.0.28 - Windows 2000 - Oracle 9i database on Sun Solaris I'm using the Tomcat connection pooling dbcp and have the following problem. When reloading the applcation, the open connections are not released and just stay open on the database forever. These connections never die, even though the configuration to remove dead connections is enabled. I then get a whole set of new connections for the reloaded application. Seems the reference to the old connections is just lost. This only happens when reloading the application, not during stop/start. Is there a way to fix this (except stop/start of course :-)) Thanks Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying an application with its own xml file
I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying an application with its own xml file
Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e4fe7c238787962119335! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple domain names to a single site
I have three domains mycompany.com mycompany.net myapp.com I have setup a website with a hosting provider using Tomcat 5 which contains the ROOT application and myapp application so currently if user goes to http://mycompany.host/ they will go to ROOT application and if they go to http://mycompany.host/myapp it will go to myapp appliation. I now want to change the dns records of my domains to point to my website. My question is are all the domains equal or is there a concept of a master and aliases, i.e should I just change the nameservers of all three domains to use my hosts name servers or is it more complicated to that for example I could map mycompany.net to redirect to mycompany.com. Also is it possible for myapp.com to go straight to the relvent application (http://mycompany.host/myapp) rather than the root application (http://mycompany.host/) Thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple domain names to a single site
Could anyone get me started on this please ? Paul Taylor wrote: I have three domains mycompany.com mycompany.net myapp.com I have setup a website with a hosting provider using Tomcat 5 which contains the ROOT application and myapp application so currently if user goes to http://mycompany.host/ they will go to ROOT application and if they go to http://mycompany.host/myapp it will go to myapp appliation. I now want to change the dns records of my domains to point to my website. My question is are all the domains equal or is there a concept of a master and aliases, i.e should I just change the nameservers of all three domains to use my hosts name servers or is it more complicated to that for example I could map mycompany.net to redirect to mycompany.com. Also is it possible for myapp.com to go straight to the relvent application (http://mycompany.host/myapp) rather than the root application (http://mycompany.host/) Thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple domain names to a single site
Parsons Technical Services wrote: You will be working with the host entries in the server.xmlFrom how I read this you want mycompany..com and .net pointing at the same app. You can do this either at the dns level or in the host entry with an alias. As for master slave the master will be the desired URL. If you want people to use .com the set it up as your main entry and the redirect in the dns or alias .net to it. This way when they get to the site the URL in the address will be .com If the mycompany site is the default site, as it appears to be, any URL that points to the server IP that does not have a matching host entry will go to the mycompany site. So you could just point both mycompany urls to the IP and it will work. With this the URL will remain as typed .com or .net For public relations don't do this as confusion will result. Especially when it comes to email. You have understood me correctly and I understand what you say in principal. I want to do achieve the first case you describe so that if they enter www.mycompany.com it will remain so, if they enter www.mycompany.net it will redirect as www.mycompany.com. But Im still not sure how to do this, when you say mainentry do you mean using dns or do you mean the first host in server.xml (currently I just have the default localhost confgured). Then how do I create an alias for the second address is 'alias' a tomcat thing or a dns thing ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
Ok, Well I decided to try kgbinternet.com instead and its exactly what I wanted. You have complete control over configuration and Ive encoutered no problems so far, and its considerably cheaper. Mark Benussi wrote: H Paul, Yes in terms of the logging and connection pooling I had that problem and so I implemented the commons database pooling and use log4j to do my logging. Sorry it wasn't so clear for you Original Message Follows From: Paul Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Mark Benussi [EMAIL PROTECTED],Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Please recommend a Low Cost Tomcat Hosting platform Date: Fri, 07 Jan 2005 15:36:32 + Review of noname.net I made the mistake of selecting a Shared VM trial thinking I could get way with it but I couldnt. I managed to get my basic application running, although deployment was a very hit a and miss affair, Tomcat Manager didnt work properly and I didnt receive satisfactory explanations of what was going on. But I wanted to implement database connection pooling and changes to the tomcat logging and this was not possible so I requested an upgrade to a trial to a private JVM, but was told only one trial per customer is allowed. At least they give a free trial but Im checking out http://www.servlets.com/isps/ and deciding on someone else to try. Paul Mark Benussi wrote: Let me know how you get on Paul, and feel free to let them know I referred you ; ) As a tip I would recommend the following: If you have any custom XMl with external DTD then ask them to make sure your account has external access to retrieve the DTD's (They don't do this by default). Also if you need SSL ask them now as they need to do some specifics with your host IP address. Cheers, Mark Benussi Original Message Follows From: Paul Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Please recommend a Low Cost Tomcat Hosting platform Date: Tue, 04 Jan 2005 16:26:40 + I've taken a look at the recommended options and this is my view from looking at the Websites provided. 1. WebConnexions has very little information regarding JSPs (there is only one question regarding Java on Support) and the pricing ids unfairly skewed to be cheaper for US accounts. Im a bit dubious about it because I have already signed up with a supposed Java Host and found it lacking. 2. MythicBeasts is very flexible but would require me to deal with the administration of the whole machine which isnt something I really want todo, having deployed by application I want to just leave it be as much as possible. 3. NameOnTheNet looks promising, they only seem to do Java Hosting and there is alot of support information and they are based in the UK so I think I might give them a try. 4. AssortedInternet look OK, but they seem to cover so many different types of hosting I am unsure of how important Java Hosting is, also based in US. Paul Taylor wrote: Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preventing directory listings in WebApplication
Hi How exactly do I stop the user going into directory containing jsps and listing all the jsps within it as a directory listing. I dont mind them specifying a particular jsp and going straight to that but I would / to map to the default page for the particular some section. i.e myapp/section1 i want go to myapp/section1/start.jsp myapp/section2 i want go to myapp/section2/start.jsp I guess its something to do with mappings the applications in web.xml but I cant get it working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preventing directory listings in WebApplication
Ok Ive realised what I was doing wrong I was listing a file on each directory as follows welcome-file-list id=WelcomeFileList_1 welcome-filesection1/start.jsp/welcome-file welcome-filesection2/start.jsp/welcome-file /welcome-file-list when i just needed to specify the file Also you can use it in conjunction with listing =false which I need because some directories do not have a suitable default. Ben Souther wrote: Just before the error page listings in your application's web.xml file. 4305 4306 welcome-file-list id=WelcomeFileList_1 4307 welcome-fileindex.html/welcome-file 4308 welcome-fileindex.jsp/welcome-file 4308 welcome-filestart.jsp/welcome-file - 4309/welcome-file-list 4310 !-- On Mon, 2005-01-10 at 11:03, Paul Taylor wrote: Hi Are these exclusive options. I can disable the listings but cant get the default pages to work Should the default pages go in the applications web.xml or Tomcats main web.xml Ben Souther wrote: You can add start.jsp to your welcome file list or you can set listings to false in the the default servlet entry of TOMCAT_HOME/conf/web.xml On Mon, 2005-01-10 at 09:21, Paul Taylor wrote: Hi How exactly do I stop the user going into directory containing jsps and listing all the jsps within it as a directory listing. I dont mind them specifying a particular jsp and going straight to that but I would / to map to the default page for the particular some section. i.e myapp/section1 i want go to myapp/section1/start.jsp myapp/section2 i want go to myapp/section2/start.jsp I guess its something to do with mappings the applications in web.xml but I cant get it working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy using war file on tomcat 5
For this to work if you havent already you must have also configured your Tomcat Manager Application with a valid user and password if you havent already.Acess to documentation here http://localhost:8080/manager/manager-howto.html Mike Fowler wrote: Sandeep - The ant deploy task you need is found in catalina-ant.jar in $TOMCAT_HOME/server/lib. Then in your build file a target like this should do: target name=deploy deploy url=127.0.0.1:8080 username=${manager_username} password=${manager_password} path=${webapp_path} war=${war_file} update=true/ /target Hope this helps! -Mike Fowler I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it Sandeep Kang wrote: Hi all, I have been trying hard to deploy my webapp on Tomcat-5.0.27 using a WAR file. I have searched through the mail archives but havent been able to find a well defined proceudre for deploying webapps using WAR files. Plz can someone guide me on how to do that using Ant build.xml. Kindly give detailed step by step procedure. Thanks in advance. Bye. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
Review of noname.net I made the mistake of selecting a Shared VM trial thinking I could get way with it but I couldnt. I managed to get my basic application running, although deployment was a very hit a and miss affair, Tomcat Manager didnt work properly and I didnt receive satisfactory explanations of what was going on. But I wanted to implement database connection pooling and changes to the tomcat logging and this was not possible so I requested an upgrade to a trial to a private JVM, but was told only one trial per customer is allowed. At least they give a free trial but Im checking out http://www.servlets.com/isps/ and deciding on someone else to try. Paul Mark Benussi wrote: Let me know how you get on Paul, and feel free to let them know I referred you ; ) As a tip I would recommend the following: If you have any custom XMl with external DTD then ask them to make sure your account has external access to retrieve the DTD's (They don't do this by default). Also if you need SSL ask them now as they need to do some specifics with your host IP address. Cheers, Mark Benussi Original Message Follows From: Paul Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Please recommend a Low Cost Tomcat Hosting platform Date: Tue, 04 Jan 2005 16:26:40 + I've taken a look at the recommended options and this is my view from looking at the Websites provided. 1. WebConnexions has very little information regarding JSPs (there is only one question regarding Java on Support) and the pricing ids unfairly skewed to be cheaper for US accounts. Im a bit dubious about it because I have already signed up with a supposed Java Host and found it lacking. 2. MythicBeasts is very flexible but would require me to deal with the administration of the whole machine which isnt something I really want todo, having deployed by application I want to just leave it be as much as possible. 3. NameOnTheNet looks promising, they only seem to do Java Hosting and there is alot of support information and they are based in the UK so I think I might give them a try. 4. AssortedInternet look OK, but they seem to cover so many different types of hosting I am unsure of how important Java Hosting is, also based in US. Paul Taylor wrote: Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please recommend a Low Cost Tomcat Hosting platform
Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
Thanks, it loooks quite good but have you actually used it ? Guy Katz wrote: you have http://www.webconexion.net based @ the uk. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 4:32 PM To: Tomcat Users List Subject: Please recommend a Low Cost Tomcat Hosting platform Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
I tried nameonthenet.co.uk and it cant find it and nameonthenet.com is up for sale Mark Benussi wrote: Paul, I use a company called name on the net who work out at £100 a year. They support WAR deployment in a pure sense (my only comment would be they provide a Tomcat 5 container). Support is good, they are a small company and from that point of view you always get a quick response. Original Message Follows From: Paul Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Please recommend a Low Cost Tomcat Hosting platform Date: Tue, 04 Jan 2005 14:32:12 + Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
I've taken a look at the recommended options and this is my view from looking at the Websites provided. 1. WebConnexions has very little information regarding JSPs (there is only one question regarding Java on Support) and the pricing ids unfairly skewed to be cheaper for US accounts. Im a bit dubious about it because I have already signed up with a supposed Java Host and found it lacking. 2. MythicBeasts is very flexible but would require me to deal with the administration of the whole machine which isnt something I really want todo, having deployed by application I want to just leave it be as much as possible. 3. NameOnTheNet looks promising, they only seem to do Java Hosting and there is alot of support information and they are based in the UK so I think I might give them a try. 4. AssortedInternet look OK, but they seem to cover so many different types of hosting I am unsure of how important Java Hosting is, also based in US. Paul Taylor wrote: Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please recommend a Low Cost Tomcat Hosting platform
Yeah, they have been mentioned before but I sent them an email a couple of weeks ago regarding some questions about hosting and they never got back to me. Guy Katz wrote: www.javaservlethosting.com is also considered one of the best out there. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:27 PM To: [EMAIL PROTECTED] Cc: Tomcat Users List Subject: Re: Please recommend a Low Cost Tomcat Hosting platform I've taken a look at the recommended options and this is my view from looking at the Websites provided. 1. WebConnexions has very little information regarding JSPs (there is only one question regarding Java on Support) and the pricing ids unfairly skewed to be cheaper for US accounts. Im a bit dubious about it because I have already signed up with a supposed Java Host and found it lacking. 2. MythicBeasts is very flexible but would require me to deal with the administration of the whole machine which isnt something I really want todo, having deployed by application I want to just leave it be as much as possible. 3. NameOnTheNet looks promising, they only seem to do Java Hosting and there is alot of support information and they are based in the UK so I think I might give them a try. 4. AssortedInternet look OK, but they seem to cover so many different types of hosting I am unsure of how important Java Hosting is, also based in US. Paul Taylor wrote: Hi I have a Tomcat 4 Application ready to deploy as a WAR. It uses database pooling to connect to a MYSQL database. I recently selected a Tomcat hosting platform to deploy my application but the deployment is non -standard you have to copy various parts of the WAR to different locations which dont match the standard deployment and it doesnt use database pooling to connect to MYSQL. I have been unable to get my application to run on it because these issues. This is not a high performance website and I do not need/cannot afford a dedicated server I just want to easily be able to deploy my application. I am based in the UK so a UK/English Speaking host would be preferable. Could anyone recommend a hostthat provides this straight forward deployment facilities. Thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error to install Tomcat
Can somebody help me? I installed the jdk 1.5 in whitebox 3.0 but to install tomcat the follow message was showed: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lan/Object Thanks Paul ___ Saludos, Paul Viteri Ing. Sis Inf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile and Deploy JSPs - Tomcat 4.0
Usually Tomcat JSPC compiler compiles classes to package org.apache.jsp. You can override it by specifiying packagename as an argument to the compile command/Ant task. Perhaps something is wrong with the compile arguments you used or the classfiles are not packed into the war file. rgds Antony Paul On Thu, 23 Dec 2004 07:47:14 +0200, Abhay Hiwarkar [EMAIL PROTECTED] wrote: Harry, I decompiled all the class files and checked for CLASS NAME. They are same as provided in web.xml. servlet servlet-nameclient/servlet-name servlet-classclient/servlet-class /servlet Still not able to access any jsp through http://localhost:8080/myProj/client.jsp Any help will be appriciated... Abhay Hiwarkar -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Wed, 22 Dec 2004 18:32 To: Tomcat Users List Subject: Re: Compile and Deploy JSPs - Tomcat 4.0 I might be picking up fag ends here, but I noticed that in this block: servlet servlet-nameclient/servlet-name servlet-classclient/servlet-class /servlet The 'servlet-class' element would normally take the fully qualified name of the class - IOW the complete package name. Also, classes, by Java conventions, should have capitalised names - so perhaps your entry there is wrong. Good luck. Harry Mantheakis Hi, Thanks for your help. Also, I looked into archives and got more details. Still, I am not able to load any jsp which is comipled to class and deployed in a war file containing web.xml. On the other hand, I am able to get an html (also packed in the war file) loaded without any error. conf/server.xml has entry as follows - Context path=/myProj docBase=C:/tomcat4.0/myProj.war debug=0 privileged=true conf/web.xml has enry as follows - servlet servlet-nameclient/servlet-name servlet-classclient/servlet-class /servlet ... servlet-mapping servlet-nameclient/servlet-name url-pattern/client.jsp/url-pattern /servlet-mapping Upon issuing URL as : http://localhost:8080/myProj/client.jsp, following error is thrown : HTTP Status 500 : Internal Server Error ... javax.servlet.ServletException: Wrapper cannot find servlet class client or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87 3) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) Could any one help. Thanks in advance, Abhay -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Tue, 21 Dec 2004 09:34 To: Tomcat Users List Subject: Re: Compile and Deploy JSPs - Tomcat 4.0 The proper way to do this is use the JSPC task to compile JSP files to class files and then create url mappings in the web.xml for the JSPs to class files. The class files are to be deployed in the WEB-INF/classes directory. The Anto JSPC task(which is same supplied with Tomcat). I think this topic is discussed previously and you can find details in the archives. rgds Antony Paul On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar [EMAIL PROTECTED] wrote: Hi, I have around 120 JSP files and want to avoid deploying them with the source-code. Using JSPC utility, I am able to compile them to .java files. If required, I can get the .class files from: /tomcat4.0/work/myApp. Can anybody help me deploying only the .class files with Tomcat4.0. Many Thanks in advance, Regards, Abhay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gurus! JCE and classloader question
Which JCE provider you are using ? rgds Antony Paul On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Hello again! Any guru around to solve my problem please? :-) Lionel Pasquier wrote: Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, then create a certificate and want to self sign it. Finally i need to store the private key to create a p12. Here is the code: I am using the IAIK JCE. KeyPair keyPair; IAIK IAIKprovider = new IAIK(); Security.insertProviderAt(IAIKprovider, 2); KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(RSA, IAIKprovider.getName()); keyPairGenerator.initialize(keySize); keyPair = keyPairGenerator.generateKeyPair(); X509Certificate cert; [...] cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(), IAIKprovider.getName()); if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){ error(Generated RSA private key is not of type RSA!); } KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(), certLabel, certLabel.getBytes()); The problem is that if I have more than one tomcat context using the same pice of code, the 2nd context to use it triggers the if (that is, without it I get a ClassCastException). Meaning that the generated private key is not compatible with RSAPrivateKey, while I asked for a RSA key. I also have the same problem with the other way around: CertificateFactory certFactory = CertificateFactory.getInstance(X.509, IAIK); Collection certCollection = certFactory.generateCertificates(new ByteArrayInputStream( certChainBlob.getDatabinary() )); cert = (X509Certificate)certChain.get(0); //where X509Certificate being iaik.x509.X509Certificate) gets a ClassCastException if being the second context to call this code. Oh, one more important thing: I add the security provider dynamicaly with a: Security.insertProviderAt(new IAIK(), 2); Could someone help me on this? Thank you, Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gurus! JCE and classloader question
Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it in shared/lib or common/lib if the same jar file is used by multiple applications. rgds Antony Paul On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul [EMAIL PROTECTED] wrote: Which JCE provider you are using ? rgds Antony Paul On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Hello again! Any guru around to solve my problem please? :-) Lionel Pasquier wrote: Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, then create a certificate and want to self sign it. Finally i need to store the private key to create a p12. Here is the code: I am using the IAIK JCE. KeyPair keyPair; IAIK IAIKprovider = new IAIK(); Security.insertProviderAt(IAIKprovider, 2); KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(RSA, IAIKprovider.getName()); keyPairGenerator.initialize(keySize); keyPair = keyPairGenerator.generateKeyPair(); X509Certificate cert; [...] cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(), IAIKprovider.getName()); if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){ error(Generated RSA private key is not of type RSA!); } KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(), certLabel, certLabel.getBytes()); The problem is that if I have more than one tomcat context using the same pice of code, the 2nd context to use it triggers the if (that is, without it I get a ClassCastException). Meaning that the generated private key is not compatible with RSAPrivateKey, while I asked for a RSA key. I also have the same problem with the other way around: CertificateFactory certFactory = CertificateFactory.getInstance(X.509, IAIK); Collection certCollection = certFactory.generateCertificates(new ByteArrayInputStream( certChainBlob.getDatabinary() )); cert = (X509Certificate)certChain.get(0); //where X509Certificate being iaik.x509.X509Certificate) gets a ClassCastException if being the second context to call this code. Oh, one more important thing: I add the security provider dynamicaly with a: Security.insertProviderAt(new IAIK(), 2); Could someone help me on this? Thank you, Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gurus! JCE and classloader question
May be there are two jar files or unzipped class files of the same class. Check for it also. rgds Antony Paul On Thu, 23 Dec 2004 16:22:33 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Well, I tried to put the library in common/lib (and I think also for a different try, in shared/lib). Usually it is in WEB-INF/lib. But the problem occured also. I believe that the factory used by the jvm searches for the first instance of the JCE. Then it tries to cast it into another instance of the lib which is different from the first, but I am not too sure about that since I am no expert in Tomcat. Have you an explanation or any solution? Antony Paul wrote: Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it in shared/lib or common/lib if the same jar file is used by multiple applications. rgds Antony Paul On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul [EMAIL PROTECTED] wrote: Which JCE provider you are using ? rgds Antony Paul On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Hello again! Any guru around to solve my problem please? :-) Lionel Pasquier wrote: Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, then create a certificate and want to self sign it. Finally i need to store the private key to create a p12. Here is the code: I am using the IAIK JCE. KeyPair keyPair; IAIK IAIKprovider = new IAIK(); Security.insertProviderAt(IAIKprovider, 2); KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(RSA, IAIKprovider.getName()); keyPairGenerator.initialize(keySize); keyPair = keyPairGenerator.generateKeyPair(); X509Certificate cert; [...] cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(), IAIKprovider.getName()); if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){ error(Generated RSA private key is not of type RSA!); } KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(), certLabel, certLabel.getBytes()); The problem is that if I have more than one tomcat context using the same pice of code, the 2nd context to use it triggers the if (that is, without it I get a ClassCastException). Meaning that the generated private key is not compatible with RSAPrivateKey, while I asked for a RSA key. I also have the same problem with the other way around: CertificateFactory certFactory = CertificateFactory.getInstance(X.509, IAIK); Collection certCollection = certFactory.generateCertificates(new ByteArrayInputStream( certChainBlob.getDatabinary() )); cert = (X509Certificate)certChain.get(0); //where X509Certificate being iaik.x509.X509Certificate) gets a ClassCastException if being the second context to call this code. Oh, one more important thing: I add the security provider dynamicaly with a: Security.insertProviderAt(new IAIK(), 2); Could someone help me on this? Thank you, Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Java developer friendly Linux distro
Hi all, Which distro (free) is most friendly for Java development. I need J2SE 1.4.2 to work on it plus Eclipse 3.x(Linux dont have a good text editor in which I can run Ant builds). I also need a good GUI so that others will be attracted to it. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile and Deploy JSPs - Tomcat 4.0
The proper way to do this is use the JSPC task to compile JSP files to class files and then create url mappings in the web.xml for the JSPs to class files. The class files are to be deployed in the WEB-INF/classes directory. The Anto JSPC task(which is same supplied with Tomcat). I think this topic is discussed previously and you can find details in the archives. rgds Antony Paul On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar [EMAIL PROTECTED] wrote: Hi, I have around 120 JSP files and want to avoid deploying them with the source-code. Using JSPC utility, I am able to compile them to .java files. If required, I can get the .class files from: /tomcat4.0/work/myApp. Can anybody help me deploying only the .class files with Tomcat4.0. Many Thanks in advance, Regards, Abhay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Babie query - pls pls help me
You need to create a mapping in web.xml to invoke the servlet. Look at the elements servlet and servlet-mapping elements in the example/WEB-INF/web.xml. Create a similar one and restart Tomcat. rgds Antony Paul On Mon, 13 Dec 2004 21:09:07 +0800, Manisha Sathe [EMAIL PROTECTED] wrote: Hi, I am totally totally new to Servlet/Tomcat. I wrote a very simple HelloWorld servlet. I could compile it and could create the HelloWorld.class file. But how to test it thr Tomat web server ? I put the class inside servlet example dir C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes But whe tried to run it like http://localhost:8080/servlets-examples/servlet/HelloWorld always i get description The requested resource (/servlets-examples/servlet/HelloWorld) is not available. I tried to start-stop/reload the tomcat servlet-example but still the same, i understand i need to change some files - but can any body tell stepwise instructions ? Pls pls help me I am stuck Thanks in advance Manisha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with deployment process using Eclipse + Ant + Tomcat
We use ant build scripts (launched from eclipse, anthill, command prompts, just about anywhere) to deploy webapps to Tomcat and it works fine for us. But we did have difficulties when we started doing so. We are currently using Tomcat 5.0.28; we've done it for a long time on Tomcat 4.1; we've tested it on Tomcat 5.5, but I can't say that it worked - we had other issues (unrelated to ant or Tomcat) that got in the way. Its been a while since I went through these problems, but here's my recollections: a) There are several tasks in the catalina-ant.jar. In particular, though, there are two different sets of tasks that can be used for deploying webapps: install/remove and deploy/undeploy. You cannot remove a deploy'd app nor can you undeploy an install'd app. I don't fully recall the difference between those sets of tasks, but we discovered that the deploy/undeploy tasks worked better for us. b) We change the unpackWars attribute in the Host element of the server.xml from true (its default value on a Windows installation) to false. Without this change, Tomcat unpacked the deployed webapp, which caused difficultied with the removal (files weren't removed) which then prevented redeployment. c) Side note about your ant scripts: your deploy target uses a bunch of ant calls to do different things (build, war, tomcat_deploy and email). In each case you are passing inheritrefs=true and inheritall=true and calling targets in the same build file. You'd probably be better off just doing this as dependencies instead: target name=deploy depends=init, build, war, deploy_tomcat, email/ I hope that helps, -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.connector.Request
I am creating a custom realm because I want to take advantage of Tomcat's implementation to prevent users from accessing some directories. The only real addition I'm adding to the realm is storing passwords using a salted hashing scheme so I'm only overriding the authenticate method although I'd like access to the request object to redirect when necessary. In the CVS browser I only saw revisions relating to Tomcat 5 - it wasn't obvious to me which version was for Tomcat 4.1. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 7:02 AM To: Tomcat Users List Subject: Re: org.apache.catalina.connector.Request In the cvs browser, you can view by a specific tag. From there you can easily determine which revision is associated with which version. Next - it will probably be much easier to not use container based authentication based on your requirements. Servlet Filters would probably be much easier. As for the java imports, importing a class and importing a source file are 2 totally different actions. -Tim Anderson, M. Paul wrote: Sorry for another question...I am using Tomcat 4.1 ... Is there a way to know which version of the org.apache.catalina.connector.Request class is used with this version? I have gone to the Apache CVS Repository but I can't figure out which version revision of JDBCRealm.java goes with this Tomcat version. I guess in the mean time I'll try to find the source for Tomcat 4.1 but I don't suspect its available any longer. I'm trying to create a derived realm and I want to re-direct the user to an error page after he/she has tried to access the site 3 times unsuccessfully. To do this I need access to a Response object but I can't seem to get at this very easily. I find it odd that in Java the imports in a base class do not carry over into a derived class...this is not like c++ as I am use to. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.connector.Request
I've been on and off this topic for the last couple of months and have just gotten back to it. I also didn't realize there were significant differences between Tomcat 4 and 5 until recently. It's all been worth the experience of learning a little about how Tomcat works and should make it easier to implement a Tomcat 5 version at a later date. Thanks for the info. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:29 AM To: Tomcat Users List Subject: RE: org.apache.catalina.connector.Request Hi, Much of the Tomcat 4.x code is in the CVS module jakarta-tomcat-4.0. The jakarta-tomcat-catalina, jakarta-tomcat-jasper, etc were separated out for Tomcat 5.0. It's kind of interesting how you've chosen to spend all this time doing development work on an old branch. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:17 AM To: Tomcat Users List Subject: RE: org.apache.catalina.connector.Request I am creating a custom realm because I want to take advantage of Tomcat's implementation to prevent users from accessing some directories. The only real addition I'm adding to the realm is storing passwords using a salted hashing scheme so I'm only overriding the authenticate method although I'd like access to the request object to redirect when necessary. In the CVS browser I only saw revisions relating to Tomcat 5 - it wasn't obvious to me which version was for Tomcat 4.1. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 7:02 AM To: Tomcat Users List Subject: Re: org.apache.catalina.connector.Request In the cvs browser, you can view by a specific tag. From there you can easily determine which revision is associated with which version. Next - it will probably be much easier to not use container based authentication based on your requirements. Servlet Filters would probably be much easier. As for the java imports, importing a class and importing a source file are 2 totally different actions. -Tim Anderson, M. Paul wrote: Sorry for another question...I am using Tomcat 4.1 ... Is there a way to know which version of the org.apache.catalina.connector.Request class is used with this version? I have gone to the Apache CVS Repository but I can't figure out which version revision of JDBCRealm.java goes with this Tomcat version. I guess in the mean time I'll try to find the source for Tomcat 4.1 but I don't suspect its available any longer. I'm trying to create a derived realm and I want to re-direct the user to an error page after he/she has tried to access the site 3 times unsuccessfully. To do this I need access to a Response object but I can't seem to get at this very easily. I find it odd that in Java the imports in a base class do not carry over into a derived class...this is not like c++ as I am use to. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.catalina.connector.Request
Can anyone tell me which jar file the org.apache.catalina.connector.Request class is in? I can't find it to add it to my project to allow me to compile my custom realm. Thanks a lot!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.connector.Request
Never mind...I realize now it's in Tomcat 5 and I'm still using Tomcat 4. -Original Message- From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 3:12 PM To: Tomcat Users List Subject: org.apache.catalina.connector.Request Can anyone tell me which jar file the org.apache.catalina.connector.Request class is in? I can't find it to add it to my project to allow me to compile my custom realm. Thanks a lot!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.connector.Request
Sorry for another question...I am using Tomcat 4.1 ... Is there a way to know which version of the org.apache.catalina.connector.Request class is used with this version? I have gone to the Apache CVS Repository but I can't figure out which version revision of JDBCRealm.java goes with this Tomcat version. I guess in the mean time I'll try to find the source for Tomcat 4.1 but I don't suspect its available any longer. I'm trying to create a derived realm and I want to re-direct the user to an error page after he/she has tried to access the site 3 times unsuccessfully. To do this I need access to a Response object but I can't seem to get at this very easily. I find it odd that in Java the imports in a base class do not carry over into a derived class...this is not like c++ as I am use to. -Original Message- From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 3:17 PM To: Tomcat Users List Subject: RE: org.apache.catalina.connector.Request Never mind...I realize now it's in Tomcat 5 and I'm still using Tomcat 4. -Original Message- From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 3:12 PM To: Tomcat Users List Subject: org.apache.catalina.connector.Request Can anyone tell me which jar file the org.apache.catalina.connector.Request class is in? I can't find it to add it to my project to allow me to compile my custom realm. Thanks a lot!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging and Deployment best practices
We've recently upgraded from 4.1, which we've been using for 2+ years, to 5.0.28. While doing this, I've been looking into our logging in order to try and do things better. And I'm curious what other people do - if there are any best practices that I could follow. What we do today: We use log4j (wrapped inside commons logging) in our webapps. Each war file includes a jar that has a log4j.properties file which controls logging from that webapp. We use the log4j ConsoleAppender so that all of our log messages ended up in the tomcat stdout.log file. It was always a minor annoyance that we had to manually back up those files when we did a restart of the service (we are using W2K and XP servers). But I finally decided as I was upgrading Tomcat that I'd address that problem by moving to a rolling file appender. Seems to me that I have two choices for doing this: a) Convert my log4j.properties file to use a RollingFileAppender. I did this, and much to my surprise the log files showed up in my %WIN_HOME%/system32 folder. Try as I might (for example, setting AppDirectory inside Parameters using the Registry Editor), I couldn't figure out how to change the home directory for Tomcat running as a Service. We have different installation of Tomcat on different servers, so I can't (nor do I want to) use a full path for the logging; I'd rather use a relative path (something like ./logs) and have the logs all end up in %TOMCAT_HOME%/logs. b) Leave my log4j.properties file using ConsoleAppender and use a Logger element in my Context to have Tomcat put the output into a file. I have not tried this yet, and wanted to post this query before digging further into it. Is this a good alternative? I have two issues with it: i) I just saw another post that indicated that this functionality is being removed in 5.5. Seems like the wrong time for me to start using functionality that has already been removed from future versions. ii) We use ant tasks to deploy our war files to multiple contexts. We have never included a context.xml in our webapps, instead getting the default behavior when we deploy. If I included a context.xml in the war file, then I can't deploy the exact same war (checked out from CVS) to a new context without modifying it. Or can I? (Sorry - the whole META-INF/context.xml is very new to me. I only started reading about it yesterday). We do deploy the same war file to different contexts: for development and staging environments. So: what is the right approach for file logging in a webapp under Tomcat? + Put all of the responsibility into the webapp using log4j? If so - how can I configure the home directory of Tomcat when I install the Service? Or should I hardwire some other location for the logs? + Or use the logging functionality of Tomcat via Logger elements? If so - how do I manage deploying the same webapp to different context paths? + Some other alternative? Thanks for any insights, -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Deployment best practices
On Tue, 23 Nov 2004 10:14:24 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: a) Convert my log4j.properties file to use a RollingFileAppender. I This is good. I'd rather use a relative path (something like ./logs) and have the logs all end up in %TOMCAT_HOME%/logs. Log4j configuration files can have environment variables in them, e.g. ${CATALINA_HOME}/logs/mylog.txt. Alternatively, you could use programmatic configuration instead of log4j.properties. Cool! I guess it pays to know where to look. I've been digging through Tomcat documentation to find an answer, when I guess I needed to read the log4j documentation. I want to stay away from programmatic configuration of log4j, and just use property files. Using an environment variable gives me the flexibility I need. Thanks for your answers! -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Deployment best practices
Shapira, Yoav writes: Loggers are gone in Tomcat 5.5. One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was just getting interested in them before reading a post on the topic this morning. Thanks again, PC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Deployment best practices
Phillip Qin writes: Hi, I don't think the log will go to system32 directory. Try something like this log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt It will when I just do this, though: log4j.appender.file.File=lciponline_debug.txt Using the environment variable was the trick that I didn't know about. Thanks for your answer! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.0.28 Service Shutdown problem on Windows
I just upgraded from 4.1.30 to 5.0.28 on two windows machines: one XP and one W2K. Both of them are having the same problem: When I stop the installed Tomcat service, the destroy() method on my servlets does not appear to get called. I do not get my logging information from my destroy methods, and file handles that should get closed are left open. The last message in my Tomcat stdout.log is: INFO: Pausing Coyote HTTP/1.1 on http-8081 When I run Tomcat standalone (using bin/startup and bin/shutdown), this message is then followed by additional logging information and the destroy() method of my service gets called. When I run bin/shutdown, it returns before the full Tomcat shutdown is completed. In fact, to my untrained eye it appears to return shortly after the Pausing log message. So it appears that when running Tomcat as a service, the service is getting halted when shutdown finishes - which has Paused the service. But the remainder of the shutdown process is not invoked. I've used the Windows installer, and made only four modifications to the installed service: + I replaced tomcat-users.xml + I changed the unpackWARS from true to false + I installed my webapp + I changed the service to run under a specific user account I've exhausted my google skills searching for answers, but to no avail. I tried to search bugzilla but got SQL errors (is that a known problem? I followed the instructions on the error page and sent an email with the error message to [EMAIL PROTECTED], which seems too generic for that type of error message). -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.0.28 Service Shutdown problem on Windows
OK, many thanks. I'll check back with bugzilla later. Shapira, Yoav wrote: Hi, Bugzilla is having a tough day: its admins ([EMAIL PROTECTED]) are aware of the problem and working on it. There's an open issue with what you describe: destroy not being called when Tomcat is run as a Windows service for Tomcat 5.0.28. The issue was first reported in an early 5.0 version, fixed for 5.0.16 or 5.0.19, and now apparently has re-appeared. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Paul Christmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: 5.0.28 Service Shutdown problem on Windows I just upgraded from 4.1.30 to 5.0.28 on two windows machines: one XP and one W2K. Both of them are having the same problem: When I stop the installed Tomcat service, the destroy() method on my servlets does not appear to get called. I do not get my logging information from my destroy methods, and file handles that should get closed are left open. The last message in my Tomcat stdout.log is: INFO: Pausing Coyote HTTP/1.1 on http-8081 When I run Tomcat standalone (using bin/startup and bin/shutdown), this message is then followed by additional logging information and the destroy() method of my service gets called. When I run bin/shutdown, it returns before the full Tomcat shutdown is completed. In fact, to my untrained eye it appears to return shortly after the Pausing log message. So it appears that when running Tomcat as a service, the service is getting halted when shutdown finishes - which has Paused the service. But the remainder of the shutdown process is not invoked. I've used the Windows installer, and made only four modifications to the installed service: + I replaced tomcat-users.xml + I changed the unpackWARS from true to false + I installed my webapp + I changed the service to run under a specific user account I've exhausted my google skills searching for answers, but to no avail. I tried to search bugzilla but got SQL errors (is that a known problem? I followed the instructions on the error page and sent an email with the error message to [EMAIL PROTECTED], which seems too generic for that type of error message). -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a war in TC4
I am still unable to get this to unpack automatically, I have to unpack it myself before starting Tomcat and then it is ok in my web.xml I have web-app servlet servlet-nameController/servlet-name servlet-classcom.testapp.Controller/servlet-class load-on-startup0/load-on-startup /servlet servlet-mapping servlet-nameController/servlet-name url-pattern/controller/url-pattern /servlet-mapping /web-app Is there anything I can do here which might make a difference. Paul Taylor wrote: Thanks I use a File() constructor because the same class is used in a standalone situation Ive checked my server.xml and it already seems to have unpacking set. !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true should my docbase me appname or appname.war Shapira, Yoav wrote: Hi, How can I get round this ? Two ways: either configure the Host in server.xml to unpackWARs (which is the default I think even for Tomcat 4.x). Or write your app to the Servlet Spec, which means no File constructions except in the javax.servlet.context.tempdir directory. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use of Referer header
Ok, I misunderstood what it did. It seems to work ok on both IE and Firefox always returning a value when navigating from a page but being null when accessing the page directly because there is no referer. So Ive just coded my page like to only show a back link when actually come from another page. % if (request.getHeader(REFERER)!=null) { % pa href=%=request.getHeader(REFERER)%back/a/p % } % p/p Jon Wingfield wrote: Also from Section 14.36 of rfc2616: extract The Referer field MUST NOT be sent if the Request-URI was obtained from source that does not have its own URI, such as input from the user keyboard. /extract So you can't rely on it being present. Shapira, Yoav wrote: Hi, But I have 2 questions: 1. Where are these header values defined I've not beeen able to find a good source. See the HTTP protocol RFC itself for common headers like referrer. Other servers and routers may add custom headers along the way. Your app and other apps can also use custom headers if they wish. 2. It worked when coming from my pages but I then tried going to another page (e.g www.sun.com) and then pasting in the url and it just returned null. Does referer only apply when hyperlink from another page ? Some browsers, including IE, are known to have bugs regarding the referrer header. Sometimes it's null or not included in the request at all. So your app, if it uses the referrer header, must be tolerant of these bugs. What about a history.go(-1) alternative to the referrer header? Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preventing users getting accessing to directory contents in Tomcat
Thanks works a treat Is there a similar way to prevent the user typing in the url of a partciuar jsp or image and stop them being taken it. Ive looked at security-constraints but this seems to be based on only certain/logged in users gaining access. I have no concept of logged users in my application but I only want them to access pages via the interface rather than the url except for a few pages which they can access via url to allow them to bookmark them. Shapira, Yoav wrote: Hi, Add a listings parameter to the DefaultServlet in conf/web.xml with a param-value of false. IIRC. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:00 AM To: Tomcat Users List Subject: Preventing users getting accessing to directory contents in Tomcat Under tomcat 4 my jsps are held in a subdiir called jsp which contains further subdirectories What do I put into web.xml to stop requests such as http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info listing the contents of the directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preventing users getting accessing to directory contents in Tomcat
Point taken regarding images. But is this the only way to protect jsp ? I have a directory structure as follows /jsp/feedback/start.jsp /jsp/feedback/finish.jsp I want them to be able to bookmark start.jsp and access it either through the interface or directly from the url. but I dont want them to access finish.jsp directly because it doesnt make any sense as it is is only shown after processing start.jsp. From what your saying I would have to either do /WEB-INF/feedback/start.jsp /WEB-INF/feedback/finish.jsp which would mean they couldnt bookmark anything or do /jsp/feedback/start.jsp /WEB-INF/feedback/finish.jsp which screws up my links and stuff, meaning quite alot of rework and stuff over the whole site. On a similar note, some of my jsps calls a servlet. In my web.xml it is defined and url mapped as follows servlet servlet-nameController/servlet-name servlet-classcom.myapp.Controller/servlet-class load-on-startup0/load-on-startup /servlet servlet-mapping servlet-nameController/servlet-name url-pattern/controller/url-pattern /servlet-mapping My jsp would then call form name=feedbackform2 method=post action=%=request.getContextPath()%/controller to call the servlet the trouble is the user can type directly into the url localhost:8080/myapp/controller and call the servlet ot of context how do I stop that ? Tim Funk wrote: You can't prevent images from being taken. As for JSP's. Move them to your WEB-INF directory. Then use a servlet to validate the incoming parameters and then forward to the JSP. -Tim Paul Taylor wrote: Thanks works a treat Is there a similar way to prevent the user typing in the url of a partciuar jsp or image and stop them being taken it. Ive looked at security-constraints but this seems to be based on only certain/logged in users gaining access. I have no concept of logged users in my application but I only want them to access pages via the interface rather than the url except for a few pages which they can access via url to allow them to bookmark them. Shapira, Yoav wrote: Hi, Add a listings parameter to the DefaultServlet in conf/web.xml with a param-value of false. IIRC. Yoav Shapira http://www.yoavshapira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do default to get website to go straight to my webapp ?
How do you default to get website to go straight to my webapp ? I have a web application called testapp and in web.xml I have welcome-file-list welcome-filejsp/overview.jsp/welcome-file /welcome-file-list Going to http://localhost:8080/testapp takes the user to http://localhost:8080/testapp/jsp/overview.jsp which is fine. BUT how can I get the user to go straight to http://localhost:8080/testapp/jsp/overview.jsp when they enter http://localhost:8080 at the moment it just goes to the tomcat home page index.jsp and is there a way I can do without the user needing to specify the port i.e http://localhost as other servers seem to do. Thanks, (one day i will get this webserver business) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do default to get website to go straight to my webapp ?
Thanks for the quick prompt reply. Is this normal to do, it feels like I am messing up the standard config and would the end result be that the url would display as localhost/overview.jsp rather than localhost/testapp/overview.jsp Would it be better to replace ROOT app with a mini app. For example say I have two applications running on tomcat could I create a third app which simply had a webpage giving links to the start of the other two apps Shapira, Yoav wrote: You need to make your webapp reside at context path (the empty string, not null and especially not /) in the Tomcat configuration. That means you need to replace the ROOT webapp that ships with Tomcat with your application. To do so, remove webapps/ROOT, remove conf/Catalina/localhost/root.xml if it's present, and remove all contents of the work directory. Then add a testapp.xml file on conf/Catalina/localhost, containing a Context element like Context path= docBase=testapp / Also set autoDeploy=false in the Host declaration in your conf/server.xml file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do default to get website to go straight to my webapp ?
Ok, ive done the section so that I can add an extra application at a later stage if I need to. You say in your post index.xml do you mean index.jsp or web.xml I've created a new index.jsp which provides the user with a hyperlink to testapp but I dont know if I can make the new page automatically go to testapp either through further mod of index.jsp or whether the web.xml can reference my testapp. Shapira, Yoav wrote: Would it be better to replace ROOT app with a mini app. For example say I have two applications running on tomcat could I create a third app which simply had a webpage giving links to the start of the other two apps That's also a fine option. You can replace the ROOT index.xml file with one that forwards to /testapp very easily. This involves no server-side configuration, so it's quick and easy. However, URLs like http://yourhost/somePageOtherThanIndex.html will not work. Yoav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do default to get website to go straight to my webapp ?
Ok FYI, done it added head meta http-equiv=refresh content=1; URL=../testapp/overview/startup.jsp/ /head to index.jsp Paul Taylor wrote: I've created a new index.jsp which provides the user with a hyperlink to testapp but I dont know if I can make the new page automatically go to testapp either through further mod of index.jsp or whether the web.xml can reference my testapp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preventing users getting accessing to directory contents in Tomcat
Thanks Tim For all non JSTLers I added this to my page: %if (request.getMethod().equals(GET)) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } % Tim Funk wrote: The easy way is to make start.jsp a GET and all the other pages POST. When pages are bookmarked - they are asked for via GET requests. Code you JSP to look for the request method. If the method is NOT POST, then redirect them to some error page. (Or the start page) For example, in JSTL (but not verified) c:if test='${POST ne pageContext.request.method}' c:redirect url=start.jsp / /c:if -Tim Paul Taylor wrote: Point taken regarding images. But is this the only way to protect jsp ? I have a directory structure as follows /jsp/feedback/start.jsp /jsp/feedback/finish.jsp I want them to be able to bookmark start.jsp and access it either through the interface or directly from the url. but I dont want them to access finish.jsp directly because it doesnt make any sense as it is is only shown after processing start.jsp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use of Referer header
I have a WebPage which can be called from two different webpages, and I wanted it to have a back button. Originally I had the calling pages passing a parameter to tell the called page what called it. Then someone pointed out %=request.getHeader(REFERER)% to m. This works much better. But I have 2 questions: 1. Where are these header values defined I've not beeen able to find a good source. 2. It worked when coming from my pages but I then tried going to another page (e.g www.sun.com) and then pasting in the url and it just returned null. Does referer only apply when hyperlink from another page ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preventing users getting accessing to directory contents in Tomcat
Under tomcat 4 my jsps are held in a subdiir called jsp which contains further subdirectories What do I put into web.xml to stop requests such as http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info listing the contents of the directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tell me the steps to configure Tomcat
What you did ? What OS you are using ?. What you downloaded ? Version ? File type zip or exe ?. rgds Antony Paul On Sat, 6 Nov 2004 18:38:45 +0530, inr [EMAIL PROTECTED] wrote: Hai all, I am new to Tomcat and i am struggling in configuring it . can anyone help me to configure it. Thanks and Regards, inr. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying a war in TC4
Hi I was originally deploying an application in Tomcat 4 using the exploded directory structure. Ive now created a war and tried to deploy that instead. First attempt it didnt do anything I then changed docbase from appname to appname.war in server.xml and on starting tomcat it tried to deploy it. Unfortunately I thought the first thing it would do was unpack the WAR and then run it but it seems to use it as is and in my default servlet I have some code which opens a file (new File()...) this fails because the war hasnt been upacked yet so the file is still in the WAR rather than directly n the file system. If I unpack the war myself and change docbase back to appname things are ok. How can I get round this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a war in TC4
Thanks I use a File() constructor because the same class is used in a standalone situation Ive checked my server.xml and it already seems to have unpacking set. !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true should my docbase me appname or appname.war Shapira, Yoav wrote: Hi, How can I get round this ? Two ways: either configure the Host in server.xml to unpackWARs (which is the default I think even for Tomcat 4.x). Or write your app to the Servlet Spec, which means no File constructions except in the javax.servlet.context.tempdir directory. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authentication in virtual host redirecting to wrong index.jsp
I've just setup a new website as a subdomain of my primary website. My server setup contains Apache fronting Tomcat 4.x on a Unix server. I'm directing all traffic that goes to the Apache webserver to the Tomcat server and setting up my subdomains in the server.xml file. This all works fine except that the application on my subdomain uses form authentication and after a successful login, the redirect goes to the default Tomcat index.jsp file rather than the default index.jsp file for the application as its supposed to. The index.jsp page for the app is in the root dir of the app folder. If I don't configure the app as a subdomain, it works fine but as soon as I change the config to use the subdomain, it redirects to the wrong page. Some other info: Struts-based Jdk 1.4 MySQL db Below is the server.xml host config for my subdomain: Host name=securecoin.outernett.com debug=0 appBase=webapps/securecoin unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- context resources for application -- Context path= docBase= debug=999 reloadable=true crossContext=true Realm className=org.apache.catalina.realm.JDBCRealm debug=999 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/myapp?user=dbUnameamp;password=dbpass userTable=userTable userNameCol=usernameField userCredCol=password userRoleTable=userRoleTable roleNameCol=userRoleField/ /Context /Host And my web.xml auth config: !-- Define the Login Configuration for this Application -- login-config auth-methodFORM/auth-method realm-nameSecure Coin Invoice Application/realm-name form-login-config form-login-page/login/login.jsp/form-login-page form-error-page/login/error.jsp/form-error-page /form-login-config /login-config - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 not starting, how do I track error (database pooling)
Hi having written an application that ran fine on Tomcat 5 I am having to regress it to run on Tomcat 4.1 running on Windows. part of the deployment involves setting up database pooling. First of all I deployed my application war only and started Tomcat using catalina start this worked ok, but I then needed to configure database pooling to get it fully working. In Tomcat 5.0 I had a config file /contextname.xml /under CATLINA_HOME/conf/catalina/localhost which worked fine, under Tomcat 4.0 I have added the contents to server.xml. I then ran catalina.bat start this starts another window but then disappears immediately before I am able to trap the problem, there is nothing in the log file to indicate the problem. Could anybody please help with any of the following ? 1. How do I stop the window started my Catalina from disappearing so I can see what the problem is. 2. In Tomcat 4.0 can I have a config file for my application rather than adding it to server.xml 3. I am using the mysqllConnectector 3.15 driver does this work with Tomcat 4.0. 4. Are pooling connections configured the same in 4 as 5 or not below I have listed the contents of my xml file from Tomcat 5. Context path=/kijil displayname=kijil debug=0 privileged=true Resource name=jdbc/kijil auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/kijil parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuekijil/value /parameter parameter namepassword/name valueflyup/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/kijil?autoReconnect=true/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 not starting, how do I track error (database pooling)
Thanks very much all working, the problem was I had removed docbase paramter not hinking it was needed because the code was hosted directly under webapps. BTW username is correct in TC4. My context is privileged just because I copied it from somehwere else without knowing what it meant, no good reason. Shapira, Yoav wrote: Hi, 1. How do I stop the window started my Catalina from disappearing so I can see what the problem is. Use catalina.bat run instead of startup.bat (which calls catalina.bat start). 2. In Tomcat 4.0 can I have a config file for my application rather than adding it to server.xml No. 3. I am using the mysqllConnectector 3.15 driver does this work with Tomcat 4.0. Yes. 4. Are pooling connections configured the same in 4 as 5 or not below I have listed the contents of my xml file from Tomcat 5. Mostly the same, but some attribute names are different. Context path=/kijil displayname=kijil debug=0 privileged=true Why is your context privileged? parameter nameusername/name valuekijil/value /parameter Try changing name to user instead of username -- I believe this was a change made in DBCP. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Using Tomcat certificate for signing applet
Hi all, Can I use the same SSL certificate used by tomcat to sign an Applet ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL on tomcat breaks file download
I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL on tomcat breaks file download
Worked perfectly! Thank you. Paul Dobson, F-16 Programmer/Analyst Viranim Technologies, Inc OO-ALC/LGFBR (801) 755-3679 [EMAIL PROTECTED] -Original Message- From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:34 AM To: Tomcat Users List Subject: Re: SSL on tomcat breaks file download hey, it is simply an header problem. I encountered the same problem few month except that I am using servlet and not JSP file. But I think it should be exactly the same. Tomcat by default set Cache-Control and Pragma to no-cache. So you have to force those to to cache. I had to add those two line to my servlet: response.setHeader( Cache-Control, cache ); response.setHeader( Pragma,cache ); I hope it will help you Doud On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield [EMAIL PROTECTED] wrote: Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how do I unsubscribe from this mailing list?
You will get a mail asking for confirmation whether you want to unsuscribe. Send an empty reply for it. rgds Antony Paul On Mon, 1 Nov 2004 09:31:04 -, Adrian Harrison [EMAIL PROTECTED] wrote: can anyone please tell me how to? sent an email to this address but still receiving tomcat emails [EMAIL PROTECTED] thanks harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Return Custom Error Page from Realm
I've created a derived realm that performs a custom authentication scheme. I'd like to be return a custom error page when the user has attempted to login to the system 3 times and failed. The user will be locked out until a sys admin allows them back in. Since I'm obviously doing the authentication in the Realm I'd also like to return the error page from the realm. Is there a way to do this? Thanks!
Does DIGEST work in Tomcat 4.1.24?
Looking at RealmBase, it doesn't seem as if DIGEST authentication can ever work: public Principal authenticate(String username, String clientDigest, String nOnce, String nc, String cnonce, String qop, String realm, String md5a2) { String md5a1 = getDigest(username, realm); if (md5a1 == null) return null; snip } I have read that DIGEST does not work in conjunction with digesting of passwords in the database (although I have seen the DigestableMemoryRealm example that was posted to this group). In the above code, the getDigest(...) method will always return null unless the user has set the digest=md5 attribute in the Realm configuration in server.xml. In this case, this authenticate method will always return null unless md5 is in fact requested. In previous postings I've already seen where these cannot be combined. Am I interpreting this method call correctly? I took a look at the latest code online for this class ( http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s hare/org/apache/catalina/realm/RealmBase.java?rev=1.41view=auto ) and it doesn't appear to have changed - am I missing something? Shouldn't this method handle the case when md5a1 returns null but not handle the case when it returns md5? Confused! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 12:02 PM To: Tomcat Users List Subject: RE: org.apache.catalina.Realm Hi, Or follow any of the links that say CVS Repositories on the apache.org pages, which will take you here: http://cvs.apache.org/viewcvs.cgi/. Then go to jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:56 AM To: [EMAIL PROTECTED] Subject: RE: org.apache.catalina.Realm Download the source distribution? [EMAIL PROTECTED] 10/15/04 9:51 AM Is there somewhere I can find the implementation of the JDBCRealm class? Looking at the Realm how-to I don't get a lot of information about sequence of calls, what methods are overridable, etc. Can anyone point me to the implementation of this class? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: Re: org.apache.catalina.Realm IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where you would put your implementation, too (if it is in a jar...if it is a class, put it in $CATALINA_HOME/server/classes). Larry [EMAIL PROTECTED] 10/15/04 9:21 AM Can someone help me get started building my own custom realm? I can't seem to locate which jar file this class is in. Also, once I create the Realm in, say for example, package my.realm.package, where do I place the class files so that the custom realm can be accessed from Tomcat? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF-TOPIC] Validated Environment (FDA)
I haven't seen the paperwork but my understanding is that our web infrastructure is validated. Environments include Tomcat 4 and 5 among other things. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 10:25 AM To: Tomcat Users List Subject: [OFF-TOPIC] Validated Environment (FDA) Hi, Is anyone running Tomcat in a validated environment? As in validated for Biotech/pharma, CFR Part 11, GxP operations. If so, I'm interested in hearing from you, please send a note my way. No details needed, just that you've done it. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to find a javac compiler error
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually this is placed in the TOMCAT_HOME\common\lib directory. If it is not there then copy it to there from JAVA_HOME\lib directory. Restart Tomcat and try the JSP page. rgds Antony Paul On Mon, 18 Oct 2004 17:38:07 +0200, Andrea Mennini [EMAIL PROTECTED] wrote: Hi, I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is running under win2k: === !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN !-- Simple HTML file to test server setup and configuration. Taken from More Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.moreservlets.com/. (C) 2002 Marty Hall; may be freely used or adapted. -- HTML HEADTITLEJSP Test/TITLE/HEAD BODY BGCOLOR=#FDF5E6 H1JSP Test/H1 Time: %= new java.util.Date() % /BODY /HTML === When I run it, I receive a message like this one: === Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK === I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run. What am I doing wrong? TIA -- Andrea ICQ:5459894 Registered Linux User #24583 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot connect to remote server
Which version of Java you are using. Tomcat 5.5 requires JDK 5. Or you need to download an extra package from jakarta. rgds Antony Paul On Wed, 20 Oct 2004 01:11:34 +1000, Robert Mark Bram [EMAIL PROTECTED] wrote: Hi All! I am using RH9 with Tomcat 5.5.3 I have installed Tomcat as a Daemon process according to these instructions: http://phd.netcomp.monash.edu.au/RobertMarkBram/protected/notes/installingTomcat5.txt I have $CATALINA_HOME/conf/server.xml set up so that Tomcat runs on port 8080. But when I access http://localhost:8080 I get Cannot connect to remote server. When I examine catalina.out log I find the following exception: 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory ... Further debugging information is below. Any ideas about what is going wrong would be most appreciated! Rob :) /usr/local/jakarta-tomcat-5.5.3/logs #host localhost Host localhost not found: 3(NXDOMAIN) /usr/local/jakarta-tomcat-5.5.3/logs #cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost localhost 127.0.0.1 localhost dijong /usr/local/jakarta-tomcat-5.5.3/logs #cat /etc/resolv.conf ; generated by /sbin/dhclient-script search @home nameserver 192.168.0.1 /usr/local/jakarta-tomcat-5.5.3/logs #tail -13 catalina.out 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:161) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:189) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:201) jsvc.exec error: Service exit with a return value of 1 My /etc/rc.d/init.d/Tomcat5 is below. #!/bin/sh ## # # Copyright 2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ## # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat running on port 80 please modify the server.xml # file: # #!-- Define a non-SSL HTTP/1.1 Connector on port 80 -- #Connector className=org.apache.catalina.connector.http.HttpConnector # port=80 minProcessors=5 maxProcessors=75 # enableLookups=true redirectPort=8443 # acceptCount=10 debug=0 connectionTimeout=6/ # # That is for Tomcat-5.0.x (Apache Tomcat/5.0) # # Adapt the following lines to your configuration JAVA_HOME=/usr/java/j2sdk1.4.2_02 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.3 DAEMON_HOME=/usr/local/jakarta-tomcat-5.5.3 TOMCAT_USER=robertmarkbram TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business
RE: shutdown problems tomcat 5.0.28
name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Agent8050 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8052 maxThreads=50 minSpareThreads=4 maxSpareThreads=25 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8051 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine name=Agent8050 defaultHost=localhost debug=0 jvmRoute=nss Logger className=org.apache.catalina.logger.FileLogger prefix=Agent8050. suffix=.log timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager Host name=localhost debug=0 appBase=webapps unpackWARs=false autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server I have deployed what should be identical installs on SuSE 8.2 Pro and SuSE Enterprise 8 (SLES8). The connection timeout occurs only on SLES8. Any help would be appreciated. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:45 AM To: Tomcat Users List Subject: RE: shutdown problems tomcat 5.0.28 Thanks for the advice. I have tried a number of new things with no success. 1. I removed the JNDI configuration file for my application. 2. I verified that port 8005 is listed in the server.xml file. I also did netstat -a | grep 8005 and verified that the port is open and listening when tomcat is running. And I can telnet to that port as localhost when tomcat is running with no problems. 3. I verified that I had all the required jar files as listed in the release notes. 4. The release notes mention changing the default stack size for Linux users. I did that, ulimit -s 2048. 5. The release notes also mention setting an environment variable called LD_ASSUME_KERNEL. I set that to the value suggested in the release notes: 2.2.5 After each change I would start and then stop tomcat and still tomcat hangs, then reports exceptions in the catalina.out, before finally stopping after about 5 minutes. Sep 21, 2004 5:35:21 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Sep 21, 2004 5:38:30 AM org.apache.coyote.tomcat5.CoyoteConnector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out etc... Has anyone else had a problem like this? Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] i.com cc: Subject: RE: shutdown problems tomcat 5.0.28 09/20/04 06:15 PM Please respond to Tomcat Users List Hi, If you remove your separate JNDI configurations file, does the problem go away? Can you verify the shutdown socket (8005 by default) is open and listening (use a program like netstat to do this)? Have you tried setting the LD_ASSUME_KERNEL parameter that many Linux users suggest on RedHat (search the archives of this list for LD_ASSUME_KERNEL) for details) Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 11:52 AM To: [EMAIL PROTECTED] Subject: shutdown problems tomcat 5.0.28 I am running tomcat 5.0.28 on Redhat 9.0 with java 1.4.2_05. Starting tomcat using startup.sh shows no errors in any of the log files. The application is running fine. However, when I use shutdown.sh, tomcat hangs for a few minutes, prints the below message in catalina.out, and finally exits. Obviously, I can kill the process using the kill command but I am afraid that this problem might be a symptom of a larger problem. The server.xml file is the default that came with the release. All JNDI
stop task do not release jar files
Hi all, Repost due to typ error. I use Ant stop task to stop the context and delete the files in the application context folder. But it is unable to delete the jar files. Tomcat 4.1.30 rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] tomcat not running
I know nothing about Turbine and it is Tomcat list. You can better ask it at Turbine list. But on seeing the error message I can give you a checklist. What the application contains. Does application have an index.jsp. Does application have a web.xml in WEB-INF directory. Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there. Also go to Tomcat installation directory. There will be one webapps directory. Check it contains a ROOT folder. rgds Antony Paul On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A [EMAIL PROTECTED] wrote: hello all, i hope i have posted to the correct lists : ( . i am first time user to tdk. my tomcat is not running. i am using tdk 2.3. my question is: when all applications from webapps folder are deleted following messages come when i click on startup.bat Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27-LE-jdk14 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/15 config=E:\software\TDK_2.3\conf\jk2.properties and in the browser when i type http://localhost:8080 then Http Status 500 error comes. and when i shut it down and create an application then following error comes on clicking startup : WebappClassLoader: validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class log4j:ERROR setFile(null,false) call failed. java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path specified) .and a big list of errors and exceptions [INFO] Turbine - -Turbine: init() Ready to Rumble! Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=E:\software\TDK_2.3\conf\jk2.proper and in browser again i get : Http Status 500 error . my directory structure is: webapps -appl1 -WEB-INF -build -classes -conf -db -lib -src ummm, this can be a very primary question to most of you over there. so it might sound silly to you : ) .but i just joined this mailing list with a hope to get some answer. any answers are welcome : ) . thanks a lot, bye, george. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stop task do not release jar files
Hi all, I use Anto stop task to stop the context and delete the files in the application context folder. But it is unable to delete the jar files. Tomcat 4.1.30 rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache giving source code of JSP in win2k
Hi, I am having Apache in from of Tomcat. Mapped all .jsp tom Tomcat. But if I type index.JSP Apache will give the source code. How to prevent it. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.catalina.Realm
Can someone help me get started building my own custom realm? I can't seem to locate which jar file this class is in. Also, once I create the Realm in, say for example, package my.realm.package, where do I place the class files so that the custom realm can be accessed from Tomcat? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using the Standard jdk 1.4 logging with Tomcat 5
Spoke to someone else who had the same problem. As far as I can see this is a bug in Tomcat, it is unable to find the custom formatter unless anyone knows different Ill raise this as a bug. Paul Taylor wrote: Did you specify your own formatter in your properties file ? Ive changed my code from com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); System.getProperties().setProperty(java.util.logging.config.class, com.appserver.util.logging.LogProperties); LogManager.getLogManager().readConfiguration(); to com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); LogManager.getLogManager().readConfiguration(com.appserver.util.logging.LogProperties.getPropertiesAsStream()); Now I dont get any errors and only messages for the LEVEL is set to the value I specify in my LogProperties class are displayed. However I also specify a Formatter to use for console output but Tomcat just seems to ignore it and uses its own default formatter. Jukka Uusisalo wrote: Hi, I have used jdk 1.4 logging with tomcat 5.0.x without any problems, but i have configured logging with java.util.logging.config.file property and config file. - Jukka - Paul Taylor wrote: Hi in a previous non Tomcat project I wrote some classes that used the java.util.logging library that comes with java 1.4 quite successfully. I am now trying to use the same classes with Toimcat 5.0 but it doesnt like it. With the logging classes you can provide a configuration class which you define with a property java.util.logging.config.class, I put the class in my WEB_INF\classes with all the other classes. When I run with Tomcat i have a servlet that does the following to try and initilse the logging com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); System.getProperties().setProperty(java.util.logging.config.class, com.appserver.util.logging.LogProperties); LogManager.getLogManager().readConfiguration(); it complains it cant find the class, when running readConfiguration(), (The 1st two lines run ok). I think the problem is to do with Tomcat classloader, with a simple Java application the classes would be expected to be on the system classpath, but on Tomcat the system classpath only contains bootstrap.jar. I realise I could probably get things working using Apaches log4j instead but it seems a bit silly to use that when there is a perfectly adequate logger built into the language now. Anyone done this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.Realm
THANK YOU!~ -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: Re: org.apache.catalina.Realm IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where you would put your implementation, too (if it is in a jar...if it is a class, put it in $CATALINA_HOME/server/classes). Larry [EMAIL PROTECTED] 10/15/04 9:21 AM Can someone help me get started building my own custom realm? I can't seem to locate which jar file this class is in. Also, once I create the Realm in, say for example, package my.realm.package, where do I place the class files so that the custom realm can be accessed from Tomcat? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.Realm
Is there somewhere I can find the implementation of the JDBCRealm class? Looking at the Realm how-to I don't get a lot of information about sequence of calls, what methods are overridable, etc. Can anyone point me to the implementation of this class? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: Re: org.apache.catalina.Realm IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where you would put your implementation, too (if it is in a jar...if it is a class, put it in $CATALINA_HOME/server/classes). Larry [EMAIL PROTECTED] 10/15/04 9:21 AM Can someone help me get started building my own custom realm? I can't seem to locate which jar file this class is in. Also, once I create the Realm in, say for example, package my.realm.package, where do I place the class files so that the custom realm can be accessed from Tomcat? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.catalina.Realm
Thanks again! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 12:02 PM To: Tomcat Users List Subject: RE: org.apache.catalina.Realm Hi, Or follow any of the links that say CVS Repositories on the apache.org pages, which will take you here: http://cvs.apache.org/viewcvs.cgi/. Then go to jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:56 AM To: [EMAIL PROTECTED] Subject: RE: org.apache.catalina.Realm Download the source distribution? [EMAIL PROTECTED] 10/15/04 9:51 AM Is there somewhere I can find the implementation of the JDBCRealm class? Looking at the Realm how-to I don't get a lot of information about sequence of calls, what methods are overridable, etc. Can anyone point me to the implementation of this class? -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: Re: org.apache.catalina.Realm IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where you would put your implementation, too (if it is in a jar...if it is a class, put it in $CATALINA_HOME/server/classes). Larry [EMAIL PROTECTED] 10/15/04 9:21 AM Can someone help me get started building my own custom realm? I can't seem to locate which jar file this class is in. Also, once I create the Realm in, say for example, package my.realm.package, where do I place the class files so that the custom realm can be accessed from Tomcat? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 Ready/Recommended For Production?
Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. rgds Antony Paul On Thu, 14 Oct 2004 04:41:53 -0400 (EDT), Alex [EMAIL PROTECTED] wrote: From a security point of view, leaving tomcat hanging out there is one tier less a malicious person would be faced with hacking...three tiers is a nice simple security solution. $0.02. On Wed, 13 Oct 2004, Peng Tuck Kwok wrote: Date: Wed, 13 Oct 2004 11:59:28 +0800 From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: mod_jk2 Ready/Recommended For Production? Do you really need to put apache in front of tomcat ? Standalone tomcat (since ver 4.x) has always been pretty good in terms of performance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat email system or analogs for it
Do you want an e-mail server or just send an e-mail. To send e-mail use JavaMail. As far as Tomcat is concerned, you can bind a mail session to Tomcat JNDI tree and retrieve it to send mail. I JavaMail API jar is bundled with Tomcat at common\lib\mail.jar. Look at the server.xml and JNDI Resources How to in tomcat-docs for an example. rgds Antony Paul On Thu, 14 Oct 2004 14:09:09 +0300, aleksej [EMAIL PROTECTED] wrote: Hi! I am wondering, how to send emails from Tomcat? As I understand, Tomcat has'nt native J2EE JavaMail API support. Then what kind of libraries I should use to get email support? I saw some emailing projects in sendbox, but its not in production quality. Then JAMES maybe? I have no access to the server where Tomcat is installed, so I need to give exact information to server admin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to redirect http to https automatically?
Is it possible to switch from https to http using this kind of configuration ? I tried with NONE for user constraint but it still remains in https. rgds Antony Paul On Thu, 14 Oct 2004 08:40:31 -0700, David Wall [EMAIL PROTECTED] wrote: This is part of the servlet specs. In your WEB-INF/web.xml file, you need a security constraint that says the site should be secure, something like: security-constraint web-resource-collection web-resource-nameEntire site/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint The confidential keyword ensures that the webapp will require https, so if you try to get it via http, then the redirect stuff specifed in your server.xml will be applied. David - Original Message - From: Won Sim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:13 AM Subject: How to redirect http to https automatically? I set redirectPort attribute to 443, which is my SSL connector port number, from port 80 connector in the server.xml. This doesn't redirect http to https automatically. In other words, I still can access the application via http://server/myapp. I want to know how to redirect http to https automatically so when I enter http://server/myapp, Tomcat redirects to htts://server/myapp. I am using Tomcat 4.1.30. Thanks in advance. Won. _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Listeners
I could'nt find anything wrong with the listener element. Perhaps it is caused by something else. Remove all other elements than listener and try to see the error. Also post the full error log. rgds Antony Paul On Wed, 13 Oct 2004 01:14:15 -0700, Ray Madigan [EMAIL PROTECTED] wrote: The top of my web.xml is as follows. It worked fine until I added the listener declaration. I am using tomcat 4.1.24 ?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 listener listener-class com.mbresearch.main.util.AccessListener /listener-class /listener servlet -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. From the top. rgds Antony Paul On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan [EMAIL PROTECTED] wrote: I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. I get the digester error: Digester.error : Parse Error at line 9 column 13: Element type listener must be declared. Line 9 is the listener line. What am I missing? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Setting default value for form input type
Hi, Is there any way to set the default value for the file field when the form is loaded ?. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Setting no-cache headers for javascript
Using filter to set the headers works. Thanks for the help. rgds Antony Paul On Thu, 7 Oct 2004 19:20:18 +0530, Antony Paul [EMAIL PROTECTED] wrote: Ok. I will test by adding a header using a Filter to all js requests. I thought I have to interpret every js request and read the file from dist and deliver it. Thanks rgds Antony Paul On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin [EMAIL PROTECTED] wrote: Read servlet spec or books. In short, extend filter, then your custom class add header, finally map your in web.xml. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 7:52 AM To: Tomcat Users List Subject: Re: [OT] Setting no-cache headers for javascript I used JSP. How to use filter ? rgds Antony Paul On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder [EMAIL PROTECTED] wrote: Antony Paul wrote: How to add no-cache header to a javascript file which is set in the html as script src=scripts/hello.js/script. Either make your JavaScript file a JSP, or use a Filter. (The first is quicker, the second's more scalable if you might want to do this with multiple JS files...) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41652df0280486782219933! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Setting no-cache headers for javascript
Hi all, How to add no-cache header to a javascript file which is set in the html as script src=scripts/hello.js/script. This comes in an HTML page. I set the meta tags for cache control. But no use. Uses IE 6.0, Tomcat 4.1.30. rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Setting no-cache headers for javascript
I used JSP. How to use filter ? rgds Antony Paul On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder [EMAIL PROTECTED] wrote: Antony Paul wrote: How to add no-cache header to a javascript file which is set in the html as script src=scripts/hello.js/script. Either make your JavaScript file a JSP, or use a Filter. (The first is quicker, the second's more scalable if you might want to do this with multiple JS files...) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Setting no-cache headers for javascript
Ok. I will test by adding a header using a Filter to all js requests. I thought I have to interpret every js request and read the file from dist and deliver it. Thanks rgds Antony Paul On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin [EMAIL PROTECTED] wrote: Read servlet spec or books. In short, extend filter, then your custom class add header, finally map your in web.xml. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 7:52 AM To: Tomcat Users List Subject: Re: [OT] Setting no-cache headers for javascript I used JSP. How to use filter ? rgds Antony Paul On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder [EMAIL PROTECTED] wrote: Antony Paul wrote: How to add no-cache header to a javascript file which is set in the html as script src=scripts/hello.js/script. Either make your JavaScript file a JSP, or use a Filter. (The first is quicker, the second's more scalable if you might want to do this with multiple JS files...) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41652df0280486782219933! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using the Standard jdk 1.4 logging with Tomcat 5
Did you specify your own formatter in your properties file ? Ive changed my code from com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); System.getProperties().setProperty(java.util.logging.config.class, com.appserver.util.logging.LogProperties); LogManager.getLogManager().readConfiguration(); to com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); LogManager.getLogManager().readConfiguration(com.appserver.util.logging.LogProperties.getPropertiesAsStream()); Now I dont get any errors and only messages for the LEVEL is set to the value I specify in my LogProperties class are displayed. However I also specify a Formatter to use for console output but Tomcat just seems to ignore it and uses its own default formatter. Jukka Uusisalo wrote: Hi, I have used jdk 1.4 logging with tomcat 5.0.x without any problems, but i have configured logging with java.util.logging.config.file property and config file. - Jukka - Paul Taylor wrote: Hi in a previous non Tomcat project I wrote some classes that used the java.util.logging library that comes with java 1.4 quite successfully. I am now trying to use the same classes with Toimcat 5.0 but it doesnt like it. With the logging classes you can provide a configuration class which you define with a property java.util.logging.config.class, I put the class in my WEB_INF\classes with all the other classes. When I run with Tomcat i have a servlet that does the following to try and initilse the logging com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); System.getProperties().setProperty(java.util.logging.config.class, com.appserver.util.logging.LogProperties); LogManager.getLogManager().readConfiguration(); it complains it cant find the class, when running readConfiguration(), (The 1st two lines run ok). I think the problem is to do with Tomcat classloader, with a simple Java application the classes would be expected to be on the system classpath, but on Tomcat the system classpath only contains bootstrap.jar. I realise I could probably get things working using Apaches log4j instead but it seems a bit silly to use that when there is a perfectly adequate logger built into the language now. Anyone done this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Digested Passwords and DIGEST Authentication at the sam e time.
As I am knew to Tomcat I will ask you to excuse my ignorance. I have just realized (and I am asking those with the necessary experience to verify this) that when you talk about DIGEST authentication there are really two separate and distinct forms of it: 1. Indicate to the BROWSER to digest the password before it is passed over the network. Tomcat would then extract the PLAIN TEXT password from the database, digest it using the same algorithm and copare it to the digested value that was just received from the browser. 2. Indicate to the REALM that passwords in the database are stored as hash values of the user password. Tomcat will receive the password from the browser in PLAIN TEXT - the realm will hash it and compare it to the retrieved hashed password from the database. As mentioned below, combining these two mechanisms won't work. This happens to be fine for me - we use SSL for all data transfer but we were storing passwords in plain text in the database. We'd like to store hashed values. It is now my understanding that I can continue to use BASIC authentication but simply configure the realm to expect hashed passwords in the database. That really clarifies a lot (assuming I haven't bungled it). I kept finding opposing views concerning digestion of passwords and I couldn't find any absolutes about it. What a relief to finally get some insight! Any clarification or correction of this information would be greatly appreciated before I commit it to memory. Thanks!!! -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 1:17 PM To: 'Tomcat Users List' Subject: RE: Using Digested Passwords and DIGEST Authentication at the sam e time. I don't think MD5+DIGEST will work. Take a look at any subclass of RealmBase. Realm has nothing to do with web.xml attribute login-config. In the authenticate method, Realm checks hasMessageDigest() - value of Realm digest=. If hasMessageDigest, in your case =MD5, Realm digests the password and compare it with the value stored in database. -Original Message- From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 12:51 PM To: Tomcat Users List Subject: Re: Using Digested Passwords and DIGEST Authentication at the sam e time. Hi Phillip, Have you tried it based on the howto? Yep. Here's what I tried: (All with o.a.c.r.MemoryRealm) clear text + BASIC - works! clear text + DIGEST - works! MD5 digest + BASIC - works! SHA digest + BASIC - works! MD5 digest + DIGEST - doesn't work! SHA digest + DIGEST - doesn't work! Strangely, if I enter the digested password, it passes. Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416573fa311026568999013! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication Mechanisms
What mechanisms do you developers typically use for preventing unauthorized access to a web application? I'm trying to determine the best approach for my web app. Here are the basic guidelines I need to follow: 1. We must limit access to the site to registered users. 2. We currently use BASIC authentication. 3. We currently store passwords in a database in plain text but we now wish to encrypt them. 4. I was leaning towards using DIGEST authentication but am not convinced it works correctly based on various articles/books I've seen. Do you recommend any other approaches? Eventually we will be moving towards a salted-hash scheme for encryption but we were hoping we could stand up a site using DIGEST to provide some basic initial encryption before moving to the stronger scheme. Any advice would be appreciated.
RE: How to make Apache direct Servlet to Tomcat
In your configuration, apache has no way of knowing that /ServletTest needs to be forwarded to Tomcat. Try adding something like: [uri:/ServletTest] group=lb And see if that works. If it does, you can then figure out a more efficient way for apache to redirect servlets. So you don't have to map every single servlet. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, October 04, 2004 3:32 PM To: Tomcat Users List Subject: RE: How to make Apache direct Servlet to Tomcat Bellow is my Apache2/conf/wrokers2.property. I also wonder if I need to add an listner like Listener className=org.apache.ajp.tomcat5.config.ApacheConfig / in the httpd.conf file wrokers2.property: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] Bellow is the # Example socket channel, override port and host. [channel.socket:MyComputerIP:8009] port=8009 host=MyComputerIP # define the worker [ajp13:MyComputerIP:8009] channel=channel.socket:MyComputerIP:8009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] group=lb [uri:/www/*] group=lb [uri:/jdbcRowset/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: Thank you. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 6:22 PM To: 'Tomcat Users List' Subject: RE: How to make Apache direct Servlet to Tomcat I can't see your attachments. Just paste the relevant parts in the body of the email. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 5:15 PM To: Tomcat Users List Subject: RE: How to make Apache direct Servlet to Tomcat Thank you for your attention. The Apache2/conf/wrokers2.property is attached. The Tomcat/conf/jk2.property is empty, all lines are commented. in the httpd.conf I added: LoadModule jk2_module modules/mod_jk2-2.0.43.so the .so files are in apache2/modules Thanks -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:23 PM To: 'Tomcat Users List' Subject: RE: How to make Apache direct Servlet to Tomcat Hi, It should be done the same way you redirected jsp requests to tomcat. It needs to be mapped in your jk (or jk2) properties file. Post the relevant parts of your properties file if you're not sure why it doesn't work. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:38 PM To: Tomcat Users List Subject: How to make Apache direct Servlet to Tomcat On my Apache 2.0.43 + Tomcat5.0.28 on UNIX sparc, I can run the same JSP files from both Apache and Tomcat, and run servlets on Tomcat, but I cannot run Servlet from Apache. I register the servlet in tomcat/webapps/www/WEB-INF/web.xml: servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /www is the DocBase. The error message on the screen is: /ServletTest was not found on this server. From the Apache error log, I see Apache looked for the file in Apache htdocs folder, instead pass the request to Tomcat. When I start Tomcat I get some errors. The are probably not related to the problem above. the errors are: 1) in catalina.out INFO: Installing web application at context path /balancer from URL file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors . 2) in localhost_log.2004-10-01.txt 2004-10-01 10:14:50 StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65) ... Please help me with the servlet problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
DIGEST Authentication in Tomcat 4 vs Tomcat 5
Can anyone point me to information concerning whether or not DIGEST authentication works in Tomcat 4 and/or Tomcat 5? I have only found conflicting information on the web as well as in several books. Is there a tutorial out there somewhere that would help me set this up? I have seen comments such as Container managed digest authentication is broken in almost all of Tomcat 4.1's realm implementations. Is this true? Have they been fixed in 5? Thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_rewrite pass rewrited URL to mod_jk how ?
Hi , I want Apache to rewrite the URL's before passing it to Tomcat. It is rewriting the URL(from rewrite_log) but when passed to Tomcat it is sending original URL ?. I want to pass the rewritten URL. How to achieve this ?. Using Apache 1.3.29 Tomcat 4.1.30 mo_jk(JK) AJP13 connector. setting JkOptions +ForwardURICompat or JkOptions +ForwardURICompatUnparsed are of no use. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_rewrite pass rewrited URL to mod_jk how ?
Using PT flag only helped me to pass the relevant request to Tomcat. I found it at http://helma.org/docs/howtos/mod_jk/. rgds Antony Paul On Sat, 2 Oct 2004 13:57:35 +0200, Mark Lowe [EMAIL PROTECTED] wrote: You can rewrite urls as you would without jk .. JK only cares about urls that match the mounts typically /*.jsp, /servlet/*, /*.do or /*.jsf Mark On 2 Oct 2004, at 11:36, Antony Paul wrote: Hi , I want Apache to rewrite the URL's before passing it to Tomcat. It is rewriting the URL(from rewrite_log) but when passed to Tomcat it is sending original URL ?. I want to pass the rewritten URL. How to achieve this ?. Using Apache 1.3.29 Tomcat 4.1.30 mo_jk(JK) AJP13 connector. setting JkOptions +ForwardURICompat or JkOptions +ForwardURICompatUnparsed are of no use. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
When I try to remove the uri's in the worker2.properties and set up the mappings in my httpd.conf I get the Apache web page saying I've successfully installed Apache for both virtual hosts. Thanks, Paul -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 7:58 AM To: 'Tomcat Users List' Subject: RE: JK2 2.0.4 To avoid all confusion, I would remove your [uri: mappings from the workers2.properties and then specify the mappings in your httpd.conf: VirtualHost 1.1.1.1:80 Location / JkUriSet worker ajp13:localhost:8409 /Location /VirtualHost VirtualHost 2.2.2.2:80 Location / JkUriSet worker ajp13:localhost:8209 /Location /VirtualHost This gives you a well-defined mapping and will be more useful should you want to allow Apache to host any of your files/urls Charlie -Original Message- From: Paul D. Hester [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 6:00 PM To: 'Tomcat Users List' Subject: RE: JK2 2.0.4 I've attached my workers.properties file below. Paul #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] [channel.socket:localhost:8209] #define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 [uri:/*] group=ajp13:localhost:8409 [uri:/*] group=ajp13:localhost:8209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk configuration question
Hi all, Is it possible to define two AJP13 connectors both listening at different ports and different addresses. These two addresses have different Host elements. Config Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8005 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 192.168.4.1/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8006 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 address=192.168.4.2/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.1 debug=0 appBase=192.168.4.1 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.2 debug=0 appBase=192.168.4.2 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Both connectors should connect to respective hosts context. When I tested this all JSP requests are going to the localhost. rgds Anto Paul -- To strive,to seek,to find and not to yield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
Thanks Charlie for you help. I tried what you suggested and now http://orbt.at.ufl.edu is accessing the ORB webapp properly. However, http://edist.at.ufl.edu renders an 'Internal Server Error' and I now have an HTTP1.1 500 error in my apache log file. My httpd.conf and workers2.properties file are enclosed. What looks wrong? workers2.properties [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] port=8409 host=orbt.at.ufl.edu type=ajp13 [channel.socket:localhost:8209] port=8209 host=edist.at.ufl.edu type=ajp13 # define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 httpd.conf ServerName mmdbt.at.ufl.edu Listen 80 AddHandler cgi-script .cgi Directory /home/*/public_html Options FollowSymLinks ExecCGI Includes Indexes AllowOverride AuthConfig Fileinfo Limit Indexes /Directory LoadModule jk2_module modules/mod_jk2.so VirtualHost * ServerName mmdbt.at.ufl.edu DocumentRoot /home/www/public_html Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ Redirect permanent /tomcat/tomcat-docs http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ /VirtualHost VirtualHost 128.227.8.67:8209 ServerName edist.at.ufl.edu Location /* JkUriSet worker apj13:localhost:8209 /Location /VirtualHost VirtualHost 128.227.8.67:8409 ServerName orbt.at.ufl.edu Location /* JkUriSet worker ajp13:localhost:8409 /Location /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
OK...I've got it working but am getting errors in my Apache error log: [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 How is it possible for it to work. Here is my set up: Running two user accounts each running its own instance of Tomcat 4.1.31 each with their own port designation. Running Apache 2.0.50 and JK2 2.0.4. Each virtual host is being sent over by Apache successfully but I'm getting the above errors and don't know why it still works. http://orbt.at.ufl.edu is using port 8409 and accesses the webapp ORB successfully. http://edist.at.ufl.edu is using port 8209 and accesses the webapp EDIS successfully but why...the above errors are concerning port 8209. Below is my httpd.conf and workers2.properties files: httpd.conf ServerName mmdbt.at.ufl.edu Listen 80 AddHandler cgi-script .cgi Directory /home/*/public_html Options FollowSymLinks ExecCGI Includes Indexes AllowOverride AuthConfig Fileinfo Limit Indexes /Directory LoadModule jk2_module modules/mod_jk2.so VirtualHost * ServerName mmdbt.at.ufl.edu DocumentRoot /home/www/public_html Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ Redirect permanent /tomcat/tomcat-docs http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ /VirtualHost VirtualHost 128.227.8.67:8209 ServerName edist.at.ufl.edu Location /* JkUriSet worker apj13:localhost:8209 /Location /VirtualHost VirtualHost 128.227.8.67:8409 ServerName orbt.at.ufl.edu Location /* JkUriSet worker ajp13:localhost:8409 /Location /VirtualHost workers2.properties #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] port=8409 host=orbt.at.ufl.edu type=ajp13 [channel.socket:localhost:8209] port=8209 host=edist.at.ufl.edu type=ajp13 # define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 [uri:orbt.at.ufl.edu/*] group=ajp13:localhost:8409 [uri:edist.at.ufl.edu/*] group=ajp13:localhost:8209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
Below is a copy of the jk2.properties for the 8209 tomcat: jk2.properties # Set the desired handler list handler.list=apr,channelSocket,request # Set the default port for the channelSocket channelSocket.port=8209 #shm.file=/usr/local/apache-2.0.50/logs/jk2.shm apr.NativeSo=/usr/local/apache-2.0.50/modules/libjkjni.so Thanks, Paul -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 11:36 AM To: Tomcat Users List Subject: RE: JK2 2.0.4 This is working because of your workers2.properties not the httpd.conf as your port definitions will never match in there. You should be able to remove those virtual hosts and it will still work. Can you post your jk2.properties from the 8209 tomcat? -Original Message- From: Paul D. Hester [mailto:[EMAIL PROTECTED] Sent: 01 October 2004 16:27 To: 'Tomcat Users List' Subject: RE: JK2 2.0.4 OK...I've got it working but am getting errors in my Apache error log: [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 How is it possible for it to work. Here is my set up: Running two user accounts each running its own instance of Tomcat 4.1.31 each with their own port designation. Running Apache 2.0.50 and JK2 2.0.4. Each virtual host is being sent over by Apache successfully but I'm getting the above errors and don't know why it still works. http://orbt.at.ufl.edu is using port 8409 and accesses the webapp ORB successfully. http://edist.at.ufl.edu is using port 8209 and accesses the webapp EDIS successfully but why...the above errors are concerning port 8209. Below is my httpd.conf and workers2.properties files: httpd.conf ServerName mmdbt.at.ufl.edu Listen 80 AddHandler cgi-script .cgi Directory /home/*/public_html Options FollowSymLinks ExecCGI Includes Indexes AllowOverride AuthConfig Fileinfo Limit Indexes /Directory LoadModule jk2_module modules/mod_jk2.so VirtualHost * ServerName mmdbt.at.ufl.edu DocumentRoot /home/www/public_html Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ Redirect permanent /tomcat/tomcat-docs http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ /VirtualHost VirtualHost 128.227.8.67:8209 ServerName edist.at.ufl.edu Location /* JkUriSet worker apj13:localhost:8209 /Location /VirtualHost VirtualHost 128.227.8.67:8409 ServerName orbt.at.ufl.edu Location /* JkUriSet worker ajp13:localhost:8409 /Location /VirtualHost workers2.properties #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] port=8409 host=orbt.at.ufl.edu type=ajp13 [channel.socket:localhost:8209] port=8209 host=edist.at.ufl.edu type=ajp13 # define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 [uri:orbt.at.ufl.edu/*] group=ajp13:localhost:8409 [uri:edist.at.ufl.edu/*] group=ajp13:localhost:8209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
Thanks Matt. By deleting the Virtual Host and all directive within in the httpd.conf remedied the errors I was getting in the Apache log file. All is working now! Thanks everybody for your help. Have a great weekend. Paul -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 11:36 AM To: Tomcat Users List Subject: RE: JK2 2.0.4 This is working because of your workers2.properties not the httpd.conf as your port definitions will never match in there. You should be able to remove those virtual hosts and it will still work. Can you post your jk2.properties from the 8209 tomcat? -Original Message- From: Paul D. Hester [mailto:[EMAIL PROTECTED] Sent: 01 October 2004 16:27 To: 'Tomcat Users List' Subject: RE: JK2 2.0.4 OK...I've got it working but am getting errors in my Apache error log: [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 [error] uriEnv.init() map to invalid worker /* apj13:localhost:8209 How is it possible for it to work. Here is my set up: Running two user accounts each running its own instance of Tomcat 4.1.31 each with their own port designation. Running Apache 2.0.50 and JK2 2.0.4. Each virtual host is being sent over by Apache successfully but I'm getting the above errors and don't know why it still works. http://orbt.at.ufl.edu is using port 8409 and accesses the webapp ORB successfully. http://edist.at.ufl.edu is using port 8209 and accesses the webapp EDIS successfully but why...the above errors are concerning port 8209. Below is my httpd.conf and workers2.properties files: httpd.conf ServerName mmdbt.at.ufl.edu Listen 80 AddHandler cgi-script .cgi Directory /home/*/public_html Options FollowSymLinks ExecCGI Includes Indexes AllowOverride AuthConfig Fileinfo Limit Indexes /Directory LoadModule jk2_module modules/mod_jk2.so VirtualHost * ServerName mmdbt.at.ufl.edu DocumentRoot /home/www/public_html Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ Redirect permanent /tomcat/tomcat-docs http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ /VirtualHost VirtualHost 128.227.8.67:8209 ServerName edist.at.ufl.edu Location /* JkUriSet worker apj13:localhost:8209 /Location /VirtualHost VirtualHost 128.227.8.67:8409 ServerName orbt.at.ufl.edu Location /* JkUriSet worker ajp13:localhost:8409 /Location /VirtualHost workers2.properties #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] port=8409 host=orbt.at.ufl.edu type=ajp13 [channel.socket:localhost:8209] port=8209 host=edist.at.ufl.edu type=ajp13 # define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 [uri:orbt.at.ufl.edu/*] group=ajp13:localhost:8409 [uri:edist.at.ufl.edu/*] group=ajp13:localhost:8209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.4
My httpd.conf and worker2.properties files are as follows: httpd.conf # # /usr/local/etc/httpd.conf # # Local Apache configuration file for mmdb.at.ufl.edu # ServerName mmdbt.at.ufl.edu Listen 80 AddHandler cgi-script .cgi Directory /home/*/public_html Options FollowSymLinks ExecCGI Includes Indexes AllowOverride AuthConfig Fileinfo Limit Indexes /Directory # # Configuration for Tomcat connectors on this node # LoadModule jk2_module modules/mod_jk2.so VirtualHost * ServerName mmdbt.at.ufl.edu DocumentRoot /home/www/public_html # # configuration for Tomcat examples # container # Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ Redirect permanent /tomcat/tomcat-docs http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ /VirtualHost workers2.properties #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] port=8409 host=orbt.at.ufl.edu type=ajp13 [channel.socket:localhost:8209] port=8209 host=edist.at.ufl.edu type=ajp13 # define the worker [ajp13:localhost:8409] channel=channel.socket:localhost:8409 [ajp13:localhost:8209] channel=channel.socket:localhost:8209 [uri:orbt.at.ufl.edu/*] group=ajp13:localhost:8409 [uri:edist.at.ufl.edu/*] group=ajp13:localhost:8209 Thanks again Matt and Charlie, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make Apache direct Servlet to Tomcat
Hi, It should be done the same way you redirected jsp requests to tomcat. It needs to be mapped in your jk (or jk2) properties file. Post the relevant parts of your properties file if you're not sure why it doesn't work. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:38 PM To: Tomcat Users List Subject: How to make Apache direct Servlet to Tomcat On my Apache 2.0.43 + Tomcat5.0.28 on UNIX sparc, I can run the same JSP files from both Apache and Tomcat, and run servlets on Tomcat, but I cannot run Servlet from Apache. I register the servlet in tomcat/webapps/www/WEB-INF/web.xml: servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /www is the DocBase. The error message on the screen is: /ServletTest was not found on this server. From the Apache error log, I see Apache looked for the file in Apache htdocs folder, instead pass the request to Tomcat. When I start Tomcat I get some errors. The are probably not related to the problem above. the errors are: 1) in catalina.out INFO: Installing web application at context path /balancer from URL file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors . 2) in localhost_log.2004-10-01.txt 2004-10-01 10:14:50 StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65) ... Please help me with the servlet problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make Apache direct Servlet to Tomcat
I can't see your attachments. Just paste the relevant parts in the body of the email. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 5:15 PM To: Tomcat Users List Subject: RE: How to make Apache direct Servlet to Tomcat Thank you for your attention. The Apache2/conf/wrokers2.property is attached. The Tomcat/conf/jk2.property is empty, all lines are commented. in the httpd.conf I added: LoadModule jk2_module modules/mod_jk2-2.0.43.so the .so files are in apache2/modules Thanks -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:23 PM To: 'Tomcat Users List' Subject: RE: How to make Apache direct Servlet to Tomcat Hi, It should be done the same way you redirected jsp requests to tomcat. It needs to be mapped in your jk (or jk2) properties file. Post the relevant parts of your properties file if you're not sure why it doesn't work. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:38 PM To: Tomcat Users List Subject: How to make Apache direct Servlet to Tomcat On my Apache 2.0.43 + Tomcat5.0.28 on UNIX sparc, I can run the same JSP files from both Apache and Tomcat, and run servlets on Tomcat, but I cannot run Servlet from Apache. I register the servlet in tomcat/webapps/www/WEB-INF/web.xml: servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /www is the DocBase. The error message on the screen is: /ServletTest was not found on this server. From the Apache error log, I see Apache looked for the file in Apache htdocs folder, instead pass the request to Tomcat. When I start Tomcat I get some errors. The are probably not related to the problem above. the errors are: 1) in catalina.out INFO: Installing web application at context path /balancer from URL file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors . 2) in localhost_log.2004-10-01.txt 2004-10-01 10:14:50 StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65) ... Please help me with the servlet problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]